Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong path in extensions #24467

Closed
pablo-s-dev opened this issue Feb 7, 2025 · 2 comments
Closed

Wrong path in extensions #24467

pablo-s-dev opened this issue Feb 7, 2025 · 2 comments

Comments

@pablo-s-dev
Copy link

Summary

Zed is putting an additional D;/ string in the path of every node modules extension

Steps to trigger the problem:
1.Install Zed for windows 10 with scoop
2. Install an extension like emmet

Actual Behavior:

Language server error: emmet-language-server

oneshot canceled
-- stderr--
node:internal/modules/cjs/loader:1228
throw err;
^

Error: Cannot find module 'D:\C:\Users\pibli\AppData\Local\Zed\extensions\work\emmet\node_modules.bin\emmet-language-server'
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v20.17.0

Expected Behavior:

It should've found the module in the correct path "C:\Users\pibli\AppData\Local\Zed\extensions\work\emmet\node_modules.bin\emmet-language-server"

Zed Version and System Specs

Zed: v0.173.0 (Zed Dev 1dd2bbe)
OS: Windows 10.0.19045
Memory: 8 GiB
Architecture: x86_64
GPU: NVIDIA GeForce GTX 1050 || NVIDIA || 566.03

@pablo-s-dev
Copy link
Author

pablo-s-dev commented Feb 7, 2025

My current project is located in the D drive, so maybe the path string starts with \ and this leads to the additional "D:\"?

@maxdeviant
Copy link
Member

Thanks for the report!

This appears to be a duplicate of #20559.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants