Language server crashes handling file paths with Turkish I #35559
Labels
Bug
A bug in TypeScript
Crash
For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output
Fix Available
A PR has been opened for this issue
Milestone
Repro: Open a file in VS Code with
İ
in the path, and an import statementLanguage service dies.
Impacts both VS and VS Code on both Windows and Mac OS.
In VS Code:
In VS (ADO bug)
The root cause is that the behavior of
tolower()
does not always match file system casing rules in case-insensitive file systems. To my knowledge, there is no API in Node.js or Windows that lets you access the actual casing rules. Furthermore, our check as to whether the file system is case-sensitive or not is rather naive and ignores possibilities like case-sensitive directories on Windows. Here are some best practices from Node.While the true fix would be to always preserve casing for file paths in the language service, in practice special-casing "Turkish İ" will fix pretty much all occurrences of this issue.
The text was updated successfully, but these errors were encountered: