Skip to content
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

Duplicate file names listed in Folder as Workspace when the files should have different suffixes #10710

Open
christopherpow opened this issue Oct 25, 2021 · 1 comment

Comments

@christopherpow
Copy link

Description of the Issue

After periods of use the "Folder as Workspace" view starts showing duplicate files in folders. It appears to be related to the file suffix. If, for example, the folder has filename.cpp and filename.h inside it, eventually there will be two filename.cpp's and no filename.h shown in the "Folder as Workspace" in that folder.

Steps to Reproduce the Issue

  1. Use Notepad++ for a long period - I leave it open days at a time.
  2. Have multiple folders imported into the "Folder as Workspace" view. I usually have around 10-12 large projects with hundreds of files in each.
  3. Observe the view for changes over time.

I'm not sure if it has anything to do with it but the "Folder as Workspace" view often gets horribly refresh-flashy if I am doing a build outside of Notepad++ in a console in one of the folders in my workspace.

Expected Behavior

I expected the "Folder as Workspace" view to remain synchronized with the folder. Duplicate file names are not ever present in any of the folders on disk.

Actual Behavior

"Folder as Workspace" view shows two copies of the same file name where one should have a different suffix (.cpp versus .h) than the other. Instead, see two filename.cpp files.

Debug Information

Notepad++ v8.1.5 (64-bit)
Build time : Sep 26 2021 - 15:23:23
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise 2016 LTSB (64-bit)
OS Version : 1607
OS Build : 14393.4704
Current ANSI codepage : 1252
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll

@SjurdurS
Copy link

I also experienced duplicate filenames in Folder as Workspace and found an easy way to reproduce the issue when modifying a file externally using Inno Setup Compiler 6.2.0.

Steps to Reproduce the Issue

  1. Create a new folder on your desktop: I'll call it NewFolder
  2. Create a new text document New Text Document.txt and place in NewFolder: NewFolder/New Text Document.txt
  3. Open NewFolder in Folder as Workspace in Notepad++ (8.1.9 64 bit)
  4. Now open the text document from step 2 in Inno Setup Compiler 6.2.0
  5. In Inno Setup Compiler 6.2.0 make some changes to the file and save (sometimes you need to save the file multiple times in quick succession)
  6. Notice that duplicate files start appearing in the Folder as Workspace pane in Notepad++

See screenshot for reference:
https://imgur.com/a/2WLpfzZ

Video for reference:
https://user-images.githubusercontent.com/5624291/141117754-7dc82e05-14be-4607-a732-e791c3fc01a1.mp4

Note:
I also tested by making changes and saving the file in Sublime Text 3.2.2, but I do could not replicate the issue there.
Inno Setup Compiler must be saving the file differently than Sublime Text.

Debug Information

Notepad++ v8.1.9 (64-bit)
Build time : Oct 21 2021 - 23:37:53
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 2009
OS Build : 19042.1288
Current ANSI codepage : 1252
Plugins : CodeAlignmentNpp.dll ComparePlugin.dll mimeTools.dll NppConverter.dll NppExport.dll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants