Open elvitin opened 2 years ago
I can't start the extension in vscode-linux, the following message is presented to me:
Unable to start the RSP server: Extension backend error - rsp error - community server connector failed to start - typeerror: cannot read properties of undefined (reading 'map')
What information about my environment do I need to provide to troubleshoot this issue?
UPDATE, I managed to solve it! Adding the following line to my settings.json
:
"java.home": "/home/cebola/.asdf/installs/java/openjdk-11.0.2/"
However, vscode tells me to use "java.jdt.ls.java.home"
instead of "java.home"
:
This setting is deprecated, please use 'java.jdt.ls.java.home' instead.
Should I be concerned?
Same issue on VS Code windows v1.67.2, rpr-ui v0.23.11. @beept workaround worked for me.
Same issue on VS Code windows v1.67.2, rpr-ui v0.23.11. @beept workaround worked for me.
How did you fix it on windows? I can't get it working by adding this at the end "java.home": "c:\Program Files (x86)\Java\jdk1.8.0_191"
"java.home": "/usr/lib/jvm/jdk1.8.0_202"
in my case.
Same issue on VS Code windows v1.67.2, rpr-ui v0.23.11. @beept workaround worked for me.
How did you fix it on windows? I can't get it working by adding this at the end "java.home": "c:\Program Files (x86)\Java\jdk1.8.0_191"
May be you need to restart the windows, or the server connector. it is a little confusing, but the config that work with the connector is that.
similar issue on ubuntu using sdkman have jdk 8 on the path but have 17 installed as well. using amzn jdks no project just from user settings.json:
{ "java.jdt.ls.java.home": "/home/developer/.sdkman/candidates/java/17.0.7-amzn/", "java.configuration.runtimes": [ { "name": "JavaSE-1.8", "path": "/home/developer/.sdkman/candidates/java/8.0.372-amzn/", "default": true },{ "name": "JavaSE-17", "path": "/home/developer/.sdkman/candidates/java/17.0.7-amzn/" } ], "files.autoSave": "afterDelay", "redhat.telemetry.enabled": true, "rsp-ui.enableStartServerOnActivation": [ { "id": "redhat.vscode-community-server-connector", "name": "Community Server Connector", "startOnActivation": true, "rsp-ui.rsp.java.home": "/home/developer/.sdkman/candidates/java/17.0.7-amzn/" } ] }
My understanding is that the actual undefined reference was fixed back in November: * | 5c8a74c - Safety check all calls to .map for null arrays, see vscode-server-connector/issues/557 (6 months ago)
Regarding java.home
or java.jdt.ls.java.home
, our specific key has been changed to rsp java.home
last July: see Commit 849975d0968cd89032c3e4eab5155a465eb587f0
But we still check java.home
and java.jdt.ls.java.home
for backup values.
@tim-oe please show me the actual error you receive. Most of the above errors should have been fixed long ago.
I can't start the extension in vscode-linux, the following message is presented to me:
Unable to start the RSP server: Extension backend error - rsp error - community server connector failed to start - typeerror: cannot read properties of undefined (reading 'map')
What information about my environment do I need to provide to troubleshoot this issue?