Skip to content

Oracle Java SE Language Server fails to initialize correctly in a directory containing spaces as of v23.0.0 #300

@mwernerh

Description

@mwernerh

As of v23.0.0, the language server fails to initialize correctly if a file is opened in a directory containing spaces. Modifying the directory names to avoid the use of spaces results in a successful initialization. However, reverting to v22.1.2 shows that the previous version of the extension could initialize the language server without problems, even for a file located in a directory containing spaces.

The error generated for a file in a directory with spaces, as of v23.0.0, is as follows

Initiating server activation
Request to kill LSP server.
Cannot kill: current process is None
Launching Oracle Java SE Language Server with /mnt/c/Users/invin/Desktop/Everything/Utilities/open-jdk-23.0.1 and userdir /home/Uinvin/.vscode-server/data/User/workspaceStorage/498fc74986182e8db43e45809883926d/Oracle.oracle-java
LSP server launching: 181
LSP server user directory: /home/Uinvin/.vscode-server/data/User/workspaceStorage/498fc74986182e8db43e45809883926d/Oracle.oracle-java
There are parameters but nobody wants to proces them: [2024/Data, Structures]
Cannot find org.netbeans.modules.java.lsp.server in the log!
Please refer to troubleshooting section for more info: https://github.com/oracle/javavscode/blob/main/README.md#troubleshooting
Request to kill LSP server.
Cannot kill: Requested kill on 181, current process is None
Oracle Java SE Language Server not enabled

Note that "2024" and "Data Structures" are part of the folder names that contain spaces.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions