Replies: 1 comment
-
[kuldeeparora89] Workaround for this issue added - |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I need to debug some backend code, therefore I am launching the Theia instance using Vscode launch config. But GLSP editor is not working when launched using VSCode config, whereas it works fine when I start Theia using standalone script 'yarn start'.
My other non-GLSP extensions are working fine in both modes.
Also, none of the breakpoints on the GLSP code is getting hit.
launch.json -
{
'type': 'node',
'request': 'launch',
'name': 'Launch Browser Backend 2',
'program': '${workspaceRoot}/browser-app/src-gen/backend/main.js',
'args': [
'--hostname=0.0.0.0',
'--port=3000',
'--no-cluster',
'--debug',
'--app-project-path=${workspaceRoot}/browser-app',
'--plugins=local-dir:${workspaceRoot}/browser-app/plugins',
'--hosted-plugin-inspect=9339'
],
'env': {
'NODE_ENV': 'development'
},
'sourceMaps': true,
'outFiles': [
'${workspaceRoot}/browser-app/src-gen//*.js',
'${workspaceRoot}/browser-app/lib//.js',
'${workspaceRoot}/node_modules/@theia//li**b//.js',
'${workspaceRoot}/node_modules/@eclipse-glsp//lib//*.js',
'${workspaceRoot}/mamba-table-rule-glsp-editor/lib//*.js'
],
'smartStep': true,
'internalConsoleOptions': 'openOnSessionStart',
'outputCapture': 'std'
}
I am running the GLSP server as a standalone process therefore passing '--debug' in args.
I have configured 5007 as the default port in the code, therefore not passing in arguments -
createLaunchOptions(): Partial {
return {
jarPath: JAR_FILE,
additionalArgs: ['--consoleLog', 'false',
'--fileLog', 'true',
'--logDir', SERVER_DIR],
serverPort: getPort(PORT_ARG_KEY, DEFAULT_PORT)
};
I can see the below message in Chrome dev tools -
Uncaught (in promise) Error: JsonrpcGLSPClient is not ready yet
at TheiaJsonrpcGLSPClient.push.../node_modules/@eclipse-glsp/theia-integration/node_modules/@eclipse-glsp/protocol/lib/jsonrpc/base-jsonrpc-glsp-client.js.BaseJsonrpcGLSPClient.checkConnectionState (33.bundle.js:16450)
at TheiaJsonrpcGLSPClient.push.../node_modules/@eclipse-glsp/theia-integration/lib/browser/theia-jsonrpc-glsp-client.js.TheiaJsonrpcGLSPClient.checkConnectionState (33.bundle.js:15630)
at TheiaJsonrpcGLSPClient.push.../node_modules/@eclipse-glsp/theia-integration/node_modules/@eclipse-glsp/protocol/lib/jsonrpc/base-jsonrpc-glsp-client.js.BaseJsonrpcGLSPClient.sendActionMessage (33.bundle.js:16444)
at 33.bundle.js:12887
Please let me know what could be the issue? Thanks !!
I have also created the issue for the same -
#221
original thread by kuldeeparora89
Beta Was this translation helpful? Give feedback.
All reactions