Notepad++ 8.4.2 not recognizing file extension to define language
-
I missed the edit window to correct this, sorry.
Before my taskbar screenshot I meant to say:
Opening N++ by opening a file in Windows Explorer also shows a a second N++ icon in my taskbar: -
@pallieguy said in Notepad++ 8.4.2 not recognizing file extension to define language:
Unpinning the old shortcut (originally pinned so long ago I don’t recall which N++ version it was) and pinning the new one Fixed the problem entirely.
Yeah. I wonder if you still have a residual notepad++ installation somewhere else other than your newly-pinned shortcut.
Actually, your data actually already shows that. Earlier, you were running from
C:\Program Files\Notepad++\notepad++.exe, as your Debug Info showed. Your REG QUERY output showedHKEY_CLASSES_ROOT\Applications\notepad++.exe\shell\open\command (Default) REG_SZ "D:\Notepad++\notepad++.exe" "%1"(though I didn’t see it yesterday, because I didn’t scroll far enough in your black box)
So when you double-click when no notepad++ was running, it ran your
D:-drive copy of Notepad++. If you used your old shortcut, it was apparently running yourC:-drive copy … and then, because you presumably don’t have multi-instance enabled, when you double clicked, it tried to run theD:-drive copy, but saw theC:-drive copy running and opened the file with that instead.Since I believe you pinned the copy that was associated, I believe your pin should now point to the
D:-drive copy. If so, I would recommend removing theC:-drive copy, to avoid future confusion. But check your pin to make sure: right click on the pin, then right click on thenotepad++near the bottom, then select “properties”: the Target field will show which one is now pinned. -
@peterjones
I do indeed have a C: and a D: install, I wonder when I did that?Glad this is resolved, thanks fro all your help!
-
@pallieguy said in Notepad++ 8.4.2 not recognizing file extension to define language:
I wonder when I did that?
Probably at one of the updates: there was a while when the installer would not notice an old installation if it wasn’t in
c:\program files\notepad++, so even if you had installed toD:\notepad++\, the updater/installer would put the newer copy inc:\program files\notepad++instead. IIRC, that has been fixed (I spent a couple minutes searching through the issues list, but wasn’t using a narrow enough set of search terms, so couldn’t find it buried in all the other results), so the next time you run the installer/updater for whatever version you end up keeping, it should hopefully default to the existing location.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login