Alexander-Miller / treemacs

GNU General Public License v3.0
2.12k stars 155 forks source link

'error in process sentinel: Args out of range: "", -1' when save org files #981

Closed binbowang1987 closed 2 years ago

binbowang1987 commented 2 years ago

version: emacs 28.1 OS: Windows 11

If the org files are listed in treemacs project, when I edit the org files and save, this error will happen. image

Alexander-Miller commented 2 years ago

What is the output of running python /treemacs/install/location/treemacs-single-file-git-status.py /path/to/your/org/file NONE?

binbowang1987 commented 2 years ago

There is nothing output after run the command python elpa\treemacs-20220917.1219\treemacs-single-file-git-status.py E:\test\test.org NONE image

binbowang1987 commented 2 years ago

The problem was found.
On my OS, C:\Users\hua'wei\AppData\Local\Microsoft\WindowsApps was added to user's PATH, and there is a python.exe, which cause emacs invoke error.

image

I removed C:\Users\hua'wei\AppData\Local\Microsoft\WindowsApps from users's PATH, this issue was gone.
Thanks @Alexander-Miller for your help.