microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.55k stars 29k forks source link

Getting duplicate file with different cases for same file on search #223821

Closed Shivam-SV closed 2 months ago

Shivam-SV commented 2 months ago

Type: Bug

I was working on my PHP project and I suddenly notice the in I was making the changes was not getting reflected to the local server, I amazed and try some settings to fix it, But nothing happens. Then I notice the file in which I was making the changes have a different case than the actual one. I go to the explorer panel and look there was neighter a file with that name, But the actual one exists and when I click on the right one, suddenly the file replaces with the actual one and I lost my all changes. After I'm done with my changes and ready to push the code to the git and notice there was two files having same name and location. Then I try to reproduce the issue and the step for that was follow

VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:06:49.809Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz (4 x 2712)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|7.88GB (1.09GB free)| |Process Argv|--crash-reporter-id f35a3467-3fab-41a6-9229-a7b6b717c0d7| |Screen Reader|no| |VM|0%|
Extensions (37) Extension|Author (truncated)|Version ---|---|--- laravel-extra-intellisense|ami|0.6.6 ng-template|Ang|18.1.2 biome|bio|2.3.0 vscode-intelephense-client|bme|1.10.4 vscode-tailwindcss|bra|0.12.5 catppuccin-vsc|Cat|3.15.0 laravel-goto-view|cod|1.3.11 composer-php-vscode|DEV|1.49.15728 intelli-php-vscode|DEV|0.12.15062 phptools-vscode|DEV|1.49.15728 profiler-php-vscode|DEV|1.49.15728 gitlens|eam|15.2.1 EditorConfig|Edi|0.16.4 prettier-vscode|esb|10.4.0 laravel-create-view|gli|0.0.6 laravel-blade-wrapper|IHu|1.0.1 vscode-peacock|joh|4.2.2 story-explorer|jos|1.0.2 edge|luo|0.3.2 php-namespace-resolver|Meh|1.1.9 dotenv|mik|1.0.1 vscode-docker|ms-|1.29.1 debugpy|ms-|2024.8.0 python|ms-|2024.10.0 vscode-pylance|ms-|2024.7.1 remote-wsl|ms-|0.88.2 laravel-goto-components|nao|1.2.0 laravel-blade|one|1.36.1 laravel-extension-pack|one|1.3.0 laravel5-snippets|one|1.18.0 laravel-jump-controller|pgl|0.0.33 material-icon-theme|PKi|5.8.0 LiveServer|rit|5.7.9 laravel-artisan|rya|0.0.31 vscode-blade-formatter|shu|0.24.2 tailwind-snippets|Zar|1.0.2 php-intellisense|zob|1.3.3 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaat:30438848 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 724cj586:31013169 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 refactorc:31101458 ccplt:31103426 pythonrstrctxtcf:31103194 ```
TylerLeonhardt commented 2 months ago

I can't repro this,

I try having a different case here:

image

and it opened the file correctly:

image

Couple things to try:

vs-code-engineering[bot] commented 2 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!