-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
node_modules are not located correctly #45
Comments
what vim / nvim version? |
I have the same issue. Vim: 8.2 |
I've been running into an issue that looks very similar. I can reproduce it by simply cloning the official project template and changing the current working directory to
A bit more involved way to reproduce the problem is to create a monorepo setup with a single top-level Minimal setup using npm workspaces (requires a relatively recent version of npm):
Reproduction using Apple's default vim:
Reproduction using latest Neovim:
These changes fix the issue for me:
After applying the patch all working directories seem to work as expected (both in vim and in Neovim). |
…or one could modify the l:res_bin_dir variable before these lines to save some cycles. 😉 |
Okay, the changes above were just a partial fix. They fixed these:
Didn't fix these:
The latter three will call |
As a side note, I noticed that the analysis exe returns |
Interesting 🤔 Thanks for the instructions to reproduce this issue. Will try it myself. |
For some reason
finddir
returns the full path on my system sogetCwd() . finddir()
causes the path to be/Users/user/path/to/project//Users/user/path/to/project/node_modules/...
. I had to remove getCwd() calls fromrescript#UpdateProjectEnv()
and it all works. It's probably something about my setup but I cannot figure it out.The text was updated successfully, but these errors were encountered: