Notepad++ v8.4.9 Release
-
@Aaron-Sherber said in Notepad++ v8.4.9 Release:
I’m not sure why, but this release breaks the Notepad replacement hack outlined in https://npp-user-manual.org/docs/other-resources/#notepad-replacement
When I double-click a text file like
c:\users\me\desktop\new 1.txt
, I get error messages thatnew
doesn’t exist and1.txt
doesn’t exist. Works fine in 8.4.8.I’m running 64-bit Notepad++ on Windows 10.
Is there anyone here who has the same problem?
-
@donho said in Notepad++ v8.4.9 Release:
Is there anyone here who has the same problem?
I can confirm: I temporarily changed to using “notepad replacement” mode with notepad.exe chosen as the app for .txt files, and when I do that, if I double-click on the .txt file, it correctly tries to load the file in Notepad++, but it splits on any spaces in the path name. I had a file with a path that that was something like
C:\Users\______\OneDrive - Some Company\Desktop\Space Name.txt
, and when I double-clicked on it, it told me that-
andSome
andCompany\Desktop\Space
andName.txt
don’t existTo make sure it wasn’t any of my plugins (I have a lot in my normal), I changed the Notepad-replacement syntax to use a fresh portable v8.4.9 instead:
v8.4.9 portable
the portable v8.4.9 has the same problem as installed v8.4.9 when I do that.
Admin cmd
ADMIN C:> reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"C:\usr\local\apps\npp\npp.8.4.9.portable.x64\notepad++.exe\" -notepadStyleCmdline -z" /f
Debug Info
Notepad++ v8.4.9 (64-bit) Build time : Jan 27 2023 - 03:11:16 Path : C:\usr\local\apps\npp\npp.8.4.9.portable.x64\notepad++.exe Command Line : -notepadStyleCmdline -z "C:\windows\system32\NOTEPAD.EXE" C:\Users\_____\OneDrive - Some Company\Desktop\Space Name.txt Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Enterprise (64-bit) OS Version : 20H2 OS Build : 19042.2486 Current ANSI codepage : 1252 Plugins : mimeTools (2.9) NppConverter (4.5) NppExport (0.4)
v8.4.8 portable
If I switch it over to a portable v8.4.8, it opens the path with spaces just fine, without giving the errors:
Admin cmd
ADMIN C:> reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"C:\usr\local\apps\npp\npp.8.4.8.portable.x64\notepad++.exe\" -notepadStyleCmdline -z" /f
Debug Info
Notepad++ v8.4.8 (64-bit) Build time : Dec 24 2022 - 19:40:27 Path : C:\usr\local\apps\npp\npp.8.4.8.portable.x64\notepad++.exe Command Line : -notepadStyleCmdline -z "C:\windows\system32\NOTEPAD.EXE" C:\Users\____\OneDrive - Some Company\Desktop\Space Name.txt Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Enterprise (64-bit) OS Version : 20H2 OS Build : 19042.2486 Current ANSI codepage : 1252 Plugins : mimeTools (2.9) NppConverter (4.5) NppExport (0.4)
-
@donho said in Notepad++ v8.4.9 Release:
Is there anyone here who has the same problem?
Confirm, same here with Win7. The last working appveyor build is https://ci.appveyor.com/project/donho/notepad-plus-plus/builds/45930728, the breaking comes from https://ci.appveyor.com/project/donho/notepad-plus-plus/builds/45936553.
Also there is a regression from
- Fix sub-menu folder display mess in non-western languages under Macro/Run menu.
Should I need to open an issue or I can explain it here?
-
Please disregard, except for the undesired orange JSON5 selection. :)
~~@donho I wasn't able to duplicate this, as I was able to use the right click on a document in the Explorer directory/file lists, and was able to open a text document with spaces in the filename. However, when it did open, it was highlighted with that orange modified color over all the test. :) This was a fresh and unused download, perhaps an older RC, not sure, but this is what I have. However, when I double-clicked the document, it still opened but in Notepad.exe (MS) so unsure where that's coming from. Hmm. Let me go get the newest one and try it. Debug Info: ~~``` Notepad++ v8.4.9 (64-bit) Build time : Jan 24 2023 - 13:28:53 Path : C:\Users\camilee\Documents\Development Tools Downloads\Notepad++ Versions\npp.8.4.9.portable.x64\notepad++.exe Command Line : "C:\Users\camilee\Desktop\Home Documents\Health\Daily Meds Lee.txt" Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Home (64-bit) OS Version : 22H2 OS Build : 19045.2486 Current ANSI codepage : 1252 Plugins : mimeTools (2.9) NppConverter (4.5) NppExport (0.4) ```~~ What I see: ![Ver8_4_9_RightClickOpenTextDocument.PNG](/assets/uploads/files/1675287467835-ver8_4_9_rightclickopentextdocument.png)~~
-
@Lycan-Thrope said in Notepad++ v8.4.9 Release:
it was highlighted with that orange modified color over all the test.
That is a red herring. You opened a text file but you have the language set to JSON5. That is correct parsing for errors in JSON5 according to stylers.xml.
Cheers.
-
@Lycan-Thrope said in Notepad++ v8.4.9 Release:
I wasn’t able to duplicate this, as I was able to use the right click on a document in the Explorer directory/file lists, and was able to open a text document with spaces in the filename. However, when it did open, it was highlighted with that orange modified color over all the test. :) This was a fresh and unused download, perhaps an older RC, not sure, but this is what I have.
However, when I double-clicked the document, it still opened but in Notepad.exe (MS) so unsure where that’s coming from.The problem that the OP reported, and Don asked for confirmation for, and I confirmed, is when someone is using the “replace notepad.exe syntax” in the registry, as described in the user manual, and similar to what I showed as my cmd, to make it so that any time the OS intends to open notepad.exe, it will use notepad++.exe instead. (There are certain situations in which some external application manually runs
notepad.exe filename.txt
instead ofuse the default verb for filename.txt
, and sometimes people want even that situation to run a real text editor instead of the lightweight app that comes with their OS.)The descriptions of the way you tried to replicate that didn’t seem to be making use of the notepad-replacement-syntax. You can tell based on your “Command Line” which doesn’t include the
-notepadStyleCmdline -z
like my example Debug Info’s did.If
*.txt
is associated with notepad.exe (not Notepad++) and you double-click on aspace name.txt
file when the “replace-notepad.exe-syntax” is in effect, even though the OS intends to launch notepad.exe, it will actually launch notepad++.Double-clicking on
space name.txt
when.txt
is associated with Notepad++ is not a way to replicate the problem. Right clicking onspace name.txt
and choosing to open with Notepad++ is not a way to replicate the problem.
So your attempts to replicate didn’t follow the problem statement. -
@Michael-Vincent
Hmm… I didn’t select it, so I have no idea why JSON would be selected for me. Count that as an additional issue then. :) -
Hmm, I think we can disavow my notices. It apparently works both ways after I fixed the (x86) that I copied in, instead of minus the (x86) in the filepath of the hack, and it opens both .txt files with and without spaces, so I can’t confirm that hack doesn’t work with the new one. I, however, don’t like it choosing JSON5 file format over a text document on a double click however.
This is the Debug info, this time, that shows the stuff you pointed out to me:
Notepad++ v8.4.9 (64-bit) Build time : Jan 27 2023 - 03:11:16 Path : C:\Users\camilee\Documents\Development Tools Downloads\Notepad++ Versions\npp.8.4.9.portable.x64\notepad++.exe Command Line : -notepadStyleCmdline -z "C:\WINDOWS\system32\NOTEPAD.EXE" C:\Users\camilee\Desktop\Home Documents\Health\Daily Meds Lee.txt Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Home (64-bit) OS Version : 22H2 OS Build : 19045.2486 Current ANSI codepage : 1252 Plugins : mimeTools (2.9) NppConverter (4.5) NppExport (0.4)
Leaving this here since I screwed up so we’re aware of it. :)
~~Thanks @PeterJones , I realized that after it came up, I thought I~~ had mine set up that way, but apparently not; so I set up the hack and I can confirm that the double click on a text file with spaces gives this error box: ![Ver8_4_9_RightClickOpenTextDocumentConfirm.PNG](/assets/uploads/files/1675289484209-ver8_4_9_rightclickopentextdocumentconfirm.png) After another test, it apparently does it for any double-clicked file, on mine. Need to make sure I did it right though. Hope that helps. Here's the new Debug info: ``` Notepad++ v8.4.9 (64-bit) Build time : Jan 27 2023 - 03:11:16 Path : C:\Users\camilee\Documents\Development Tools Downloads\Notepad++ Versions\npp.8.4.9.portable.x64\notepad++.exe Command Line : "C:\Users\camilee\Desktop\Home Documents\Health\Daily Meds Lee.txt" Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Home (64-bit) OS Version : 22H2 OS Build : 19045.2486 Current ANSI codepage : 1252 Plugins : mimeTools (2.9) NppConverter (4.5) NppExport (0.4) ```~~
-
@Lycan-Thrope said in Notepad++ v8.4.9 Release:
I, however, don’t like it choosing JSON5
If you had that file open in one session (with the default save session still on), and had accidentally chosen JSON5 somewhere, then Notepad++ will remember that on your next session, even if you’re opening it from the command line.
Also, you might want to check Preferences > New Document > Default Language, just to make sure it’s not set to JSON5. And check the JSON5 extension list.
-
OK. After changing the value of
FilterFullPath
to notepad++.exe (beside all the instructions guided by npp-manual):I can replace Notepad by Notepad++ under Windows 11, and reproduce the bug.
I will see what I can do about it.
-
Could you guys test the fix for notepad replacement opening file name with white space issue here:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13027Thx!
-
@PeterJones ,
That would make sense, if I ever opened a JSON let alone JSON5 file, but I never have and the screenshot I took, shows that the default file isNone(Normal Text)
, so for some reason, the new 8.4.9. version, does it on it’s own, which makes it the first version that has done that. :(So I guess we can add that as another regression. :)
-
I think I’ve found a minor regression in v8.4.9: When I use Control-Tab to switch between documents the entry at the bottom of the list is cut off. Reverting back to v8.4.8 fixes the issue. Tested with the 32-bit version on Windows 10 Pro.
v8.4.8
v8.4.9
-
I updated to this version.
If one goes to the edit -> character panel I think there are errors here.
1). the html number which is decimal are all missing the ending semicolon.
2). Please add another column for the html hexidecimal codes. I tend to use these alot in the autocompletion xml file i.e.
3). the html name for apostrophe and the short/long dash are missing i.e.'
and—
etc.
4). Can the codes for small/large circles, boxes filled and unfilled be added since I use them in the autocomplete xml file for bullets. Perhaps other symbols for bullets can be added i.e. diamonds and triangles. i.e●
and the others. -
These “vX.Y.Z Release” threads are focused on comments specifically on new features of vX.Y.Z, and any “regressions” caused by the newest version. “Regressions” mean “changes in vX.Y.Z that used to work in the previous version that no longer work in this version”.
What you have requested are all just feature requests, and none of them describe behaviors that changed in v8.4.9 compared to earlier versions. Feature requests do not go here. We have a whole FAQ on where feature requests go. Please follow the instructions in that FAQ to make this feature request, and any other feature requests you may have in the future.
-
@PeterJones Sorry, but this is not a feature request - this is missing codes in this panel that probably has been there for quite some time.
-
@swegmike said in Notepad++ v8.4.9 Release:
Sorry, but this is not a feature request
I am assuming that in your mind, it’s a bug report. In my mind, it was a feature request, because you were requesting that an existing feature be improved in some way.
this is missing codes in this panel that probably has been there for quite some time.
But you admitted it’s been there for some time (it has). That admission means you understand not a regression (per the definition of “regression” that you read in my post). If it’s not a regresssion or about something else specific to v8.4.9, it does not belong in this thread. If you read the FAQ I linked you to, you will see that the FAQ also describes where bug reports go – the same place as feature requests.
So whether it’s a new feature, or a feature enhancement (which is what I consider this; it’s not broken, you just want it to improve), or an actual bug – if it’s been around before release v8.4.9, it doesn’t belong in this topic.
-
@rddim said in Notepad++ v8.4.9 Release:
Fix sub-menu folder display mess in non-western languages under Macro/Run menu.
Should I need to open an issue or I can explain it here?
Please create an issue and ping me - we will talk on github.
-
@Lycan-Thrope
I don’t quit follow you.
Could you create an issue on Github and ping me. -
@donho ,
I can, but I just want to make sure I have the correct procedure, since I screwed up the thing earlier, and to make sure I’ve got the real use case. In this case, whether it has a space or not, this is what is happening. I can try finding a file with with a space but I tend to run on my names to avoid these kind of issues. :)I’m not sure how to do the test that you asked for with the fix, so that’s my inexperience at issue. However, when I install the hack, in my machine and have opened 8.4.9 and minimize it so that when I double click on a .txt file, it will open the file in 8.4.9 instead of my default system installed version which is 8.4.8.
When I double click a .txt file, NPP 8.4.9 opens it with the orange coloring in the text area and states in the lower left corner that it is a JSON5 file. When I close 8.4.9, and then double click that same file, it opens in my default NPP 8.4.8 and opens it as a text file.
That basically describes the issue. I am able to use the hack, and it functions in 8.4.9, but it opens at least a .txt file as a JSON5 file type.
If someone else can find this behavior, I’d appreciate verification, to make sure I didn’t screw the procedure up, Earlier.This is the Debug info for the file I just did this with, and then below that will be a screenshot showing the file open as I described. Below that will be a screenshot of the settings in the Registry Editor to show I did it right. :)
Notepad++ v8.4.9 (64-bit) Build time : Jan 27 2023 - 03:11:16 Path : C:\Users\camilee\Documents\Development Tools Downloads\Notepad++ Versions\npp.8.4.9.portable.x64\notepad++.exe Command Line : -notepadStyleCmdline -z "C:\WINDOWS\system32\NOTEPAD.EXE" C:\Users\camilee\Documents\foeagesgoodngproblemtext.txt Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Home (64-bit) OS Version : 22H2 OS Build : 19045.2486 Current ANSI codepage : 1252 Plugins : mimeTools (2.9) NppConverter (4.5) NppExport (0.4)