-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Broken intellisense for mounted filesystem #7154
Comments
@tinganho I see that you're having issues with the nightlies/ |
|
@DanielRosenwasser This was the the date when it didn't work: typescript@1.8.0-dev.20160116. So everything before that works. |
And here is the PRs closed that day https://github.com/Microsoft/TypeScript/pulls?utf8=%E2%9C%93&q=is%3Apr+updated%3A2016-01-16+is%3Aclosed+ |
Is there anyway I can get the error output from VSCode? So I can get exactly what is wrong? |
#6509 could very well be the source, though I could be wrong. You can select Toggle Developer Tools from the Help menu, but I don't know what you'll get out of that since TSServer runs out of process. |
I have tried that already though it doesn't give me any error. I was also thinking about that one. |
Can you try running |
@billti I'm getting:
|
I feel that our |
I use http://osxfuse.github.io/ on my Mac. I mount with Don't know much about file systems. |
Don't we decide based purely on OS whether to use case-sensitive filenames? I'm guessing if you mount a file-system different to the OS default, this logic is always going to fail: // win32\win64 are case insensitive platforms, MacOS (darwin) by default is also case insensitive
const useCaseSensitiveFileNames = platform !== "win32" && platform !== "win64" && platform !== "darwin"; |
Yes, even for Darwin assumption that it is always case insensitive is incorrect - AFAIR HFS+ and HFSX will have different defaults. I was thinking if on darwin we should try to create a temp file and look it up with a different casing |
Though it does not really help if case sensitivity changes between volumes |
To test the case sensitivity on mac, can we change the casing of the first file opened and call something like |
I'm having the same issue. I have a case sensitive mac. |
I have also a case sensitive mac and this problem. It has to be fixed on site of typescript. It must be checked with fileExists or something and not on process.platform() !== "darwin", because you can have different volumes on your mac. First i thought the problem is on Node.js, because the process.platform() don't differentiate on darwin case sensitive or case insensitive. But actually platform is right. It has nothing todo with the actual filesystem. In Typescript Version 1.7.5 there is no Problem with CaseSensitivity because the filename and not the path is taken and in one case the variable useCaseSensitiveFileNames doesn't matter at all.
|
I just treat all TypeScript project files as case sensitive (i.e take care in tsconfig.json and any import / references). After all they are case sensitive on Git / |
@zhengbli I pulled it down. It seems to work now. At least for my case. |
@tinganho Thanks! |
Actually I have pretty the same issue on OSX(10.11.4 (15E65))
tsc -v |
Hope @tinganho will be able to look at this issue and reopen it. |
Downgrade to 1.7.5 - fixes this problem. |
@ivanzvakoms I don't think the working version is released yet. You probably have to use As you can see the milestone is marked for |
@tinganho yeah, I see. I just noticed this bug which is connected to ver >1.7.5 and If I understand correctly, because of some regression this issues is happening on newest versions now(in typescript@next as well). |
I haven't experienced any regression. So have you ran?
and then:
today? |
yes, I've run this today(typescript@1.9.0-dev.20160405 ), and error is the same as described above. |
OK But the intellisense from VSCode does. |
I've got an error like bellow. I use Mac on casesensitve root filesystem. $ node -v
v5.11.1
$ tsc -v
Version 1.8.10
$ npm test
> angular2-quickstart@1.0.0 test /Volumes/quickstart/quickstart
> tsc && concurrently "tsc -w" "karma start karma.conf.js"
[0] fs.js:1425
[0] throw error;
[0] ^
[0]
[0] Error: watch /volumes/quickstart/quickstart ENOENT
[0] at exports._errnoException (util.js:953:11)
[0] at FSWatcher.start (fs.js:1423:19)
[0] at Object.fs.watch (fs.js:1450:11)
[0] at addDirWatcher (/Volumes/quickstart/quickstart/node_modules/typescript/lib/tsc.js:1036:3```
the error says that couldn't find "/volumes/quickstart/quickstart".
actuall path was...
```bash
$ pwd
/Volumes/quickstart/quickstart so I've make a symbolic link for it. sudo ln -s /Volumes /volumes it works well just for now. $ npm test
> angular2-quickstart@1.0.0 test /Volumes/quickstart/quickstart
> tsc && concurrently "tsc -w" "karma start karma.conf.js" it seems work well. |
@kazuhiko-hotta can you test using the nightly? The fix was merged in master, it wasn't ported to 1.8 yet. |
Hey guys, I'm with a problem about ENOENT in my project using Version 1.8.10. How I can resolve? someone can help me, please? this is problem: Error: watch /users/pedropolisenso/applications/b2w/simple-basket-api ENOENT
at exports._errnoException (util.js:953:11)
at FSWatcher.start (fs.js:1423:19)
at Object.fs.watch (fs.js:1450:11)
at addDirWatcher (/Users/pedropolisenso/Applications/b2w/simple-basket-api/node_modules/typescript/lib/tsc.js:1036:39)
at Object.addFile (/Users/pedropolisenso/Applications/b2w/simple-basket-api/node_modules/typescript/lib/tsc.js:1051:21)
at Object.watchFile (/Users/pedropolisenso/Applications/b2w/simple-basket-api/node_modules/typescript/lib/tsc.js:1172:48)
at Object.executeCommandLine (/Users/pedropolisenso/Applications/b2w/simple-basket-api/node_modules/typescript/lib/tsc.js:34546:44)
at Object.<anonymous> (/Users/pedropolisenso/Applications/b2w/simple-basket-api/node_modules/typescript/lib/tsc.js:34877:4)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10) I run this command using npm run build-watch - "build-watch": "tsc -w --pretty", |
@pedropolisenso is it possible for you to test using the nightly version of the compiler? The fix was merged in master but not ported in 1.8. You can using:
in your package.json. |
I tested with TypeScript nigtly build. "typescript": "^1.9.0-dev.20160603-1.0", removed the trick that I did before. sudo rm -f /volumes
ls -l / | grep -i volumes
drwxrwxrwt@ 4 root admin 170 6 3 19:40 Volumes checked "npm test" again. % npm test
> angular2-quickstart@1.0.0 test /Volumes/quickstart/quickstart
> tsc && concurrently "tsc -w" "karma start karma.conf.js"
[1] 03 06 2016 20:39:12.405:WARN [watcher]: Pattern "/Volumes/quickstart/quickstart/app/**/*.html" does not match any file.
[1] 03 06 2016 20:39:12.412:WARN [watcher]: Pattern "/Volumes/quickstart/quickstart/app/**/*.css" does not match any file.
[1] 03 06 2016 20:39:13.245:WARN [karma]: No captured browser, open http://localhost:9876/
[1] 03 06 2016 20:39:13.265:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
[1] 03 06 2016 20:39:13.277:INFO [launcher]: Starting browser Chrome
[0] 20:39:14 - Compilation complete. Watching for file changes.
[1] 03 06 2016 20:39:14.914:INFO [watcher]: Changed file "/Volumes/quickstart/quickstart/app/app.component.js".
[1] 03 06 2016 20:39:14.947:INFO [watcher]: Changed file "/Volumes/quickstart/quickstart/app/main.js".
[1] 03 06 2016 20:39:14.962:INFO [watcher]: Changed file "/Volumes/quickstart/quickstart/app/app.component.spec.js".
[1] 03 06 2016 20:39:15.178:WARN [karma]: No captured browser, open http://localhost:9876/
[1] 03 06 2016 20:39:15.429:INFO [Chrome 51.0.2704 (Mac OS X 10.11.5)]: Connected on socket /#sxj38cAB15UjpQmWAAAA with id 41710968
Chrome 51.0.2704 (Mac OS X 10.11.5): Executed 3 of 3 SUCCESS (0.184 secs / 0.166 secs) it works. |
IntelliSense still not working for me on Sublime 3 with a project on a mounted filesystem under OSX El Capitan with Sublime 3 (build 3126) with I copied the project folder to the local drive and everything is fine. While opening from the remote filesystem (which is a Raspberry Pi folder mapped through Netatalk as a local volume) IntelliSense is not working at all. No errors in the Sublime console but autocompletion is not working, for example. I tried @kazuhiko-hotta 's solution with the symlink, I changed the paths to be fully lower case, set I use Any clue on how could I debug this and see what's wrong? LE: I realised I still had a capital letter in the project path and converting it to _lowercase fixed the problem_. Strange thing is that However, I was hoping that after the 1.9.x release this case-sensitivity issue should not be a problem anymore. |
I've got a broken intellisense for a mounted file system for VSCode. Though it works in older versions of TypeScript. Any thoughts on what is wrong?
Please check out:
microsoft/vscode#3160
The text was updated successfully, but these errors were encountered: