Markdown and Astro language servers do not start when the project path contains a non-ASCII character or a space
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read MarkdownLanguageServer.getInitializationOptions and AstroLanguageServer.getInitializationOptions, which the issue identifies as building the working directory from projectRootUri.getRawPath(). Check how Paths.get(projectRootUri) produces the filesystem path and look for tests covering paths with spaces or non-ASCII characters. Done when both language servers start with those project paths; the issue names no test file.
Written by the indexing model from the issue text.
Description
When a project's path contains a non-ASCII character or a space, the Markdown language server cannot start. On Windows (Eclipse 4.41, Java 25), opening a Markdown file of a project located in C:\Users\<user>\Desktop\Evénements\<project> logs:
java.io.IOException: Cannot run program "D:\Programs\eclipse\.node\node-v24.22.1-win-x64\node.exe" (in directory "C:\Users\<user>\Desktop\Ev%C3%A9nements\<project>"): CreateProcess error=267, Nom de répertoire non valide
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1112)
at org.eclipse.lsp4e.server.ProcessStreamConnectionProvider.start(ProcessStreamConnectionProvider.java:58)
at org.eclipse.wildwebdeveloper.ui.preferences.ProcessStreamConnectionProviderWithPreference.start(ProcessStreamConnectionProviderWithPreference.java:133)
at org.eclipse.lsp4e.LanguageServerWrapper.lambda$0(LanguageServerWrapper.java:438)
The working directory still contains %C3%A9 instead of é, so it does not exist.
MarkdownLanguageServer.getInitializationOptions and AstroLanguageServer.getInitializationOptions set the working directory with projectRootUri.getRawPath(), which keeps the percent-encoding of the URI (%C3%A9 for é, %20 for a space). Paths.get(projectRootUri) gives the actual file system path.
#1413 (Vue, project name with spaces) looks like the same kind of problem.
- Dominant language
- Java
- Stars
- 203
- Forks
- 76
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 30
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-wildwebdeveloper/wildwebdeveloper
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
eclipse-wildwebdeveloper/wildwebdeveloper#2236 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
eclipse-wildwebdeveloper/wildwebdeveloper#2177 ·
Maintainers usually reply within 1 day
-
SQL Language serverOpenenhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
eclipse-wildwebdeveloper/wildwebdeveloper#2122 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
eclipse-wildwebdeveloper/wildwebdeveloper#2070 · 1 comment ·
Maintainers usually reply within 1 day
-
ESLintLanguageServer and JSTSLanguageServer do not support node memory limits (--max-old-space-size)Open
Difficulty 3/5 1-2 days Newbie friendliness 48/100
eclipse-wildwebdeveloper/wildwebdeveloper#2027 · 2 comments ·
Maintainers usually reply within 1 day
All issues in eclipse-wildwebdeveloper/wildwebdeveloper
Similar issues
-
面渣逆袭Spring事务传播机制勘误Open
Difficulty 1/5 Under an hour Newbie friendliness 80/100
itwanger/toBeBetterJavaer#218 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
johanhaleby/occurrent#1462 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
SasanLabs/VulnerableApp#912 ·
Maintainers usually reply within 1 day
-
area/build area/events area/storage area/storage/kafkasql area/storage/sql
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apicurio/apicurio-registry#11079 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OpenAEV-Platform/openaev#9139 ·
Maintainers usually reply within 1 day