Skip to content

Notepad replacement regression #12775

@neodyne

Description

@neodyne

Description of the Issue

Having replaced stock notepad with notepad++ in registry according to the docs, selected formats open in notepad++ v8.4.8 but now additionally display a Cannot open file " ". (whitespace within doublequotes) error.

This can be observed by doubleclicking .ps1 powershell files, or opening registry .reg files with the Edit action in the file context menu. Other file formats defaulting to Edit on open may be affected as well. Standard .txt files, as well as files potentially associated with (windows) notepad by the user (for example .cfg, .json , .log, .xml ...) are unaffected.

Steps to Reproduce the Issue

  1. Replace notepad with notepad++ in registry according to the documentation
  2. Create a dummy test.ps1 or test.reg with any content
  3. Doubleclick test.ps1, or rightclick->Edit test.reg

Expected Behavior

File opens (notepad++ <=v8.4.7)

Actual Behavior

File opens, but a Cannot open file " ". message box is displayed first (notepad++ v8.4.8)

msgbox

Debug Information

Notepad++ v8.4.8 (64-bit)
Build time : Dec 24 2022 - 19:40:27
Path : C:\npp\notepad++.exe
Command Line : -notepadStyleCmdline -z "C:\Windows\System32\notepad.exe" "C:\test\test.ps1"
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Home (64-bit)
OS Version : 22H2
OS Build : 19045.2364
Current ANSI codepage : 1250
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions