-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linter stuck on non-existent temp file "Can't execute command:" #27
Comments
I have the same issue, except I haven't manually deleted anything. |
Ok, I've solved my problem. I wasn't using eslint but phpcs and the way I got it working was to call a batch file. To solve the output issue, I have finished that |
@andrija-naglic what does your batchfile look like exactly? I ran into the same problem but I don't quite follow your explanation 😟 |
Sure thing @tom-radboudumc , there you go, my linter.xml:
And here's the .bat file:
The first SET commands are from the original phpcs.bat file - I had problems one batch file calling another one, so I created the phpcsw file. The second set commands are from some github issue or somewhere. At the end you output the content of the temp file. Bear in mind - you have to edit the proper paths for your machine .) |
It works! Thank you so much! |
I closed NP++ once while a temp file existed, and deleted it manually while NP++ was closed. Now the linter does not lint anything anymore, constantly giving an error message about being unable to lint the temp file I deleted. Relaunching NP++, reinstalling the plugin and rebooting do nothing.
my
linter.xml
:running the command and paths manually in cmd works, and the linter has worked before this happened.
The text was updated successfully, but these errors were encountered: