-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Windows. Incorrect Module.id with mounted network disk #7294
Comments
Can you launch node with |
Yes, with |
/cc @jasnell |
/cc @orangemocha |
I found similar problem with Should I write a new issue for this? |
b488b19 is responsible for this - it changed how At the same time change to how modules filenames are resolved was introduced in de1dc0a. It switched from Now 5d38d54 put change from I don't know if we should fix this. Old Of course, we could also try to fix this. For Windows, we could make |
I wrote this module ( console.log(
"__filename: " + __filename + "\r\n" +
"__dirname: " + __dirname + "\r\n" +
"path.resolve(): " + require("path").resolve() + "\r\n" +
"module.id: " + module.id + "\r\n" +
"module.filename: " + module.filename
); Run node from Output
node v6.0.0:
node v6.2.1:
node v6.2.1 --preserve-symlinks:
I do not think it's ok. |
There is more discussion about this real path issue here: #7175. |
My situation is even worse, if possible. I'm using Visual Studio Code to develop and debug node projects. |
This reverts parts of nodejs@b488b19 restoring javascript implementation of realpath and realpathSync. Fixes: nodejs#7175 Fixes: nodejs#6861 Fixes: nodejs#7294 Fixes: nodejs#7192 Fixes: nodejs#7044 Fixes: nodejs#6624 Fixes: nodejs#6978
Steps:
V:\ = \\CASTOR\
\\CASTOR\scope\
V:\scope\
(or launch node from network disk:V:\scope\node.exe
)require("ajv"); console.log(Object.keys(require.cache)[0])
Output
node v6.1.0 (and previous):
V:\scope\node_modules\ajv\lib\ajv.js
node v6.2.0 (and v6.2.1):
\\CASTOR\scope\node_modules\ajv\lib\ajv.js
process.cwd()
in all versions:V:\\scope
The text was updated successfully, but these errors were encountered: