-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Better support for case sensitive macOS #94307
Comments
(Experimental duplicate detection) |
That's great. Please provide reproducible steps so I can reproduce it locally. Provide as much information as you can. |
you should only see one folder while the dir has two |
doesn't on macOS |
macOS is case insensitive. File System Provider would have to specify that it is case sensitive which it does not atm. fyi @bpasero |
@isidorn my file system is set to be case sensitive |
@isidorn this is more than just declaring on the level of the file system provider. Every usage of node fs would need to be aware of case sensitive FS on macOS. I doubt we have adopted the FS provider consistently yet. |
Nevertheless, yeah, where we use the FS provider it would probably benefit (as in this case). I am not 100% sure how to detect this though, other than creating 2 files with the same case. |
@bpasero agree case sensitive macOS we do not fully support. In order to support that we would have to make many more changes, not only the FS provider. Due to that leaving this open as a feature request for now. Since changes would have to be done across the workbench. |
It's really annoying behavior. Would love have it fixed. |
This also occurs on Windows with the directory |
2 years after the issue was opened, any workarounds or any fixes on the radar? |
this is a thing: https://worthdoingbadly.com/casesensitive-iossim/ basically i think we need a plist file that describes that vscode should have a case sensistive view onto the filesystem:
|
Hi, |
In case this is keeping you stuck of forcing you into weird names.
Bit of a workaround but it helped me to keep working. |
I have an even weirder issue that's part of this. If I create a file. Change casing. Deleting file. Recreate with proper casing, VSCode will say the file doesn't exist, it will show in list, I can open it in a new window just fine, but in folder view it will always fail. If I close VSCode delete file and recreate, upon opening VSCode it still says file not found, create (which fails as overwrite flag is not set) and I can only use the file again after I rename it to the original working filename. |
Same issue as @Icehunter: created "README.md", renamed it to "Readme.md", now if I go back to "README.md" Visual Studio Code will complain that the file doesn't exist, and it I try to create it if fails because "overwrite flag is not set". Could fix it with the workaround from @gatsbyz: rename it through the shell to "foo.md", then with vscode rename it to "README.md". |
Interestingly, search directories (Cmd-F) appears to be case sensitive on my case insensitive macOS. Files to include: Files to include: This happens irrespective of the search's Match Case setting. |
We use Debian as the OS for our Docker images and we use Ubuntu as the OS for build and CI. In both those cases, the file-system is case-sensitive. In order to prevent issues where imports resolve on MacOS but not anywhere else, I use a case-sensitive volume for my development work. So, this is a big issue for me and my team. I understand it may be difficult to fix the file-system provider to allow it to detect this situation on MacOS. However, it seems like, as a simple work-around, we should be able to change a workspace setting so that I can manually set VSCode to case-sensitive mode on MacOS. |
Is there any progress or any plans on supporting/fixing this? |
After renaming a file on macOS to change only the case, the old casing persists even after quitting VSCode and reopening it. It's cached someplace. |
My work-around, right now, is to close VSCode (right-lick on the launch icon and choose "Quit"), use the CLI to rename the file, and then launch VSCode. |
It is VERY important VSCode starts supporting this, knowing many live environments (using case sensitive file systems) have a runtime where files are dynamically loaded. It is just silly, create a file, upper cased, rename the file in VSCode to lower cased, and the upper cased file does not show anymore... Just to know, IntelliJ already does this for many years, with good reason. It also PREVENTS bugs in live environments where one detects these bugs in development time. Yes MacOS/Windows has a case insensitive file system, but power users create a separate partition/volume to tackle this, and be as close to the real live environment this way. Please don't ignore this maybe seemingly low prio issue. |
+1 |
Issue Type: Bug
I have found a case where a GIT repo has two folders with different casing.
but VSCode only shows one directory
related to #90983
VS Code version: Code - Insiders 1.44.0-insider (20b88fa, 2020-04-01T08:34:11.087Z)
OS version: Darwin x64 19.4.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Extensions (22)
The text was updated successfully, but these errors were encountered: