-3

This is the code,Im using the ubuntu terminal to run.

(base) pra:~/my_project/demo$ git commit
hint: Waiting for your editor to close the file... 'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin: 1: C:/Program Files/Notepad++/notepad++.exe: not found
error: There was a problem with the editor ''C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin'.
Please supply the message using either -m or -F option.
(base) pra:~/my_project/demo$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
(base) pra:~/my_project/demo$ git commit
hint: Waiting for your editor to close the file... 'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin: 1: C:/Program Files (x86)/Notepad++/notepad++.exe: not found
error: There was a problem with the editor ''C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin'.
Please supply the message using either -m or -F option.
(base) pra:~/my_project/demo$

I tried the solution on this link notepad++ not working in Git Bash , but Im unable to resolve the error.

This is the error I get on git commit

error: There was a problem with the editor ''C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin'

How do I resolve this

EDIT: output from git config --list:

(base) pra:~/my_project/demo$ git config --list 
user.name=Pra 
user.email=mask@abcs.com 
core.editor='C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin core.repositoryformatversion=0
core.filemode=true 
core.bare=false 
core.logallrefupdates=true
Scope
  • 727
  • 4
  • 15
  • 1
    You seem to be on Windows, not Ubuntu. – tripleee Aug 27 '22 at 14:56
  • No ubuntu app on windows. Ive mentioned ubuntu terminal, I didnt say the OS is Linux – Scope Aug 27 '22 at 14:57
  • Does it help if you change the path to the editor to `/mnt/c/Program\ Files/Notepad++/notepad++.exe`? (or: `"/mnt/c/Program Files/Notepad++/notepad++.exe"`) If not, please post the output from `git config --list` – Luuk Aug 27 '22 at 15:02
  • @Luuk You mean like `editor = "'/mnt/c/Program\'" `? – Scope Aug 27 '22 at 15:04
  • without the single quotes, and the complete path – Luuk Aug 27 '22 at 15:05
  • `(base) pra:~/my_project/demo$ git config --list user.name=Pra user.email=mask@abcs.com core.editor='C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true` – Scope Aug 27 '22 at 15:05
  • 1
    Please next time use [edit] (like I did just a moment ago) – Luuk Aug 27 '22 at 15:07
  • The statement after `core.editor` should start Notepad++. I doubt if that is working on your site. Change that setting until Notepad++ is starting, with the parameters you currently have. – Luuk Aug 27 '22 at 15:09

1 Answers1

1

I removed the editor from config and it worked.

Scope
  • 727
  • 4
  • 15