Open Friedi opened 1 year ago
Same with me. Notepad++: x64 8.4.8 ElasticTabstops: x64 1.5.0
I keep many temporary files open as small notes for diferent subjects => Control+N to create new file and paste the note or clipboard, so my notepad++ has "new 1", "new 2"... "new n" open and on close it saves as backup... I don't bother to save them.
After "ElasticTabstops: 1.5.0", on close, I get the "Closing file wasn't registed" warning for each unsaved file... very annoying and time consuming. So I had to remove this plugin.
@mariusv-github Please can you have a look into this issue? I've referenced the issue listed at the NPP repository.
Same issue here with NPP 8.4.8 and ET 1.5.0. But I get this warning with each file even if there's no need to save it since it has not changed.
The message comes from this line of code in function OnFileClosed()
:
if(idx==-1) { ::MessageBox(nppData._nppHandle, _T("Closing file wasn't registed"), _T("Warning"), MB_OK|MB_ICONWARNING); return; }
Is anyone in here has the issue of losing unsaved data?
Is anyone in here has the issue of losing unsaved data?
Negative. Even with dozens of files open, as long as I click "OK" in each of the error messages it closes and reopens each of my files in the same state, including bookmarks and document order.
@shawnkhall Thank you for your reply!
It happened in my case. I recently lost all my files after upgrading npp to 8.4.8 and when relaunched it was blank and had to close and then the messages started to popup and lost all files. It took me a while to figure out it was this plugin messing up.
I had the same thing with plugin version 1.5.0 and notepad++ version 8.4.9. Had to hold escape key until all dialog boxes are closed. Uninstalling the plugin fixed the behaviour.
Sheesh, almost four months later and still no fix? Think I'll go try out the original
Same here, error on closing with files open
Think I'll go try out the original
You could also try this new plugin, which has Elastic tabstops built in.
There is a fix if you do it yourself. Download the source code, unzip it, and then do the following:
ElasticTabstops.vcxproj
. Open it in Notepad++ or Notepad.G:\Downloads\Notepad++\plugins\ElasticTabstops
(there should be three) and replace them with $(SolutionDir)bin\$(Configuration)_$(Platform)\
ElasticTabstops.sln
from the master folder (the one that contains the folder "src"). Use at least Visual Studio 2017. I used Visual Studio 2019 just fine while saying yes to the two upgrades to the solution.Source Files\ElasticTabstops.h
("src\ElasticTabstops.h") in the Visual Studio IDE in the Solution Explorer on the right side and open it (double-click it).if(idx==-1) { ::MessageBox(nppData._nppHandle, _T("Closing file wasn't registed"), _T("Warning"), MB_OK|MB_ICONWARNING); return; }
by pressing Ctrl+D on your keyboard.::MessageBox(nppData._nppHandle, _T("Closing file wasn't registed"), _T("Warning"), MB_OK|MB_ICONWARNING);
if(idx==-1) { return; }
Debug
to the left of Win32
. Change Debug
to Release
and if you are using a 64-bit version of Windows, change Win32
to x64
. If you're not sure and are using Windows 7 or higher, change it to x64.Build
in the menu and then Build Solution
Sometimes the best solutions are the ones the ones you fix yourself...
@BelowZeroLH Thanks, that helped!
Just in case it's of use to anyone, there's this plugin which does the job as well.
As soon as this is not detected as a trojan I will give it a chance :)
I get the same message too "Closing file wasn't registed" when I try to close notepad++ Also Elastic tab stops is really really slow. I hope the next release will have the code optimized to make it much more faster. because as it now is really frustrating to use
Same boat
Still an issue in 2024.
Same here - I just uninstalled ElasticTabstops and the problem is gone.
There is a fix if you do it yourself. Download the source code, unzip it, and then do the following:
- Go into the src folder and find the file
ElasticTabstops.vcxproj
. Open it in Notepad++ or Notepad.- Search out all instances of
G:\Downloads\Notepad++\plugins\ElasticTabstops
(there should be three) and replace them with$(SolutionDir)bin\$(Configuration)_$(Platform)\
- Save the file and exit.
- Open the SLN file
ElasticTabstops.sln
from the master folder (the one that contains the folder "src"). Use at least Visual Studio 2017. I used Visual Studio 2019 just fine while saying yes to the two upgrades to the solution.- Find
Source Files\ElasticTabstops.h
("src\ElasticTabstops.h") in the Visual Studio IDE in the Solution Explorer on the right side and open it (double-click it).- Duplicate line 327:
if(idx==-1) { ::MessageBox(nppData._nppHandle, _T("Closing file wasn't registed"), _T("Warning"), MB_OK|MB_ICONWARNING); return; }
by pressing Ctrl+D on your keyboard.- Comment the original line 327 with two forward slashes // at the beginning of the line.
- On line 328 (the duplicate) remove/delete the following from the line:
::MessageBox(nppData._nppHandle, _T("Closing file wasn't registed"), _T("Warning"), MB_OK|MB_ICONWARNING);
- Line 328 should now be just:
if(idx==-1) { return; }
- In the toolbar you probably see
Debug
to the left ofWin32
. ChangeDebug
toRelease
and if you are using a 64-bit version of Windows, changeWin32
tox64
. If you're not sure and are using Windows 7 or higher, change it to x64.- Click
Build
in the menu and thenBuild Solution
- You may close the IDE if it says "Build succeeded" in the bottom left corner of the IDE. (If it says "Build failed", it's probably because you didn't perform steps 1 through 3. Exit the IDE and do those steps.)
- You now have a "bin" folder in the same place as your "src" folder. Inside the "bin" folder you'll find a "Release..." folder with your chosen flavor. Inside that folder you'll find your compiled DLL file.
- Open Notepad++
- Click "Plugins" in the menu and then "Open Plugins Folder..."
- Close Notepad++ once the folder opens (leave the folder open).
- Double-click "ElasticTabstops" in the plugins folder window.
- Copy your newly compiled DLL file into the ElasticTabstops plugin folder. Click "Continue" for Administrator permission (assuming you have the user rights to do so).
- ENJOY!
Sometimes the best solutions are the ones the ones you fix yourself...
it works :) thanks !
Why is this issue just not fixed in the distribution? The only fix listed is to download source, patch, build... sigh.
After installing the new version 1.5 I get a warning message box for each unsaved file open in notepad when I try to close notepad++ "Closing file wasn't registed" (the spelling error is in the message box)
Notepad++: x64 8.4.7 ElasticTabstops: x64 1.5.0
The issue is: