deadem / notepad-pp-linter

Notepad++ Linter. Realtime code check against any checkstyle-compatible linter: jshint, eslint, jscs, phpcs, csslint etc
MIT License
37 stars 7 forks source link

Space in path seems to result in error 'Invalid output format' #4

Closed poberlohr closed 6 years ago

poberlohr commented 6 years ago

Hi,

I just tried to get this plugin working using ESLint, but I got an error when I opened my file index.js:

Linter: Invalid output format. Only checkstyle-compatible output allowed.

After trying this and that for way too long I moved my project folder to

E:\c-d\

instead of

E:\Eigene Dateien\c-d\

and it worked, so I think the space in Eigene Dateien lets the linter fail.

deadem commented 6 years ago

You need to quote the path:

`

`

poberlohr commented 6 years ago

There are no spaces in my path to *.cmd.

The spaces are in the path to the file the linter should check. So in the XML that ESLint returns there are spaces in the path.

I'll post the XML that ESLint creates after the weekend, if that helps

deadem commented 6 years ago

Ow! Thanks! You can download the updated version from sourceforge: https://sourceforge.net/projects/notepad-linter/

poberlohr commented 6 years ago

Great, it works now, thanks!

raja-muhammad-asher commented 5 years ago

I am receiving the following error in Windows 10 64 Bit. Although there is no space in the paths to the cmd file and my JS file.

Linter: Invalid output format. Only checkstyle-compatible output allowed.

deadem commented 5 years ago

I am receiving the following error in Windows 10 64 Bit. Although there is no space in the paths to the cmd file and my JS file.

Linter: Invalid output format. Only checkstyle-compatible output allowed.

You should check the linter ouput, try to type and run command from the command line.

raja-muhammad-asher commented 5 years ago

Command line is working perfectly. I have local install of eslint for my project. The path to cmd is D:\node\nodetest2\node_modules.bin\eslint.cmd

bunglegrind commented 5 years ago

Command line is working perfectly. I have local install of eslint for my project. The path to cmd is D:\node\nodetest2\node_modules.bin\eslint.cmd

I have the same issue. No spaces in both the command path and the file path, but linter gives me the same error message.

This is my configuration file:

`<?xml version="1.0" encoding="utf-8" ?>

` My environment: **Notepad++ v7.6.6 (64-bit) Build time : Apr 3 2019 - 23:52:32 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : ON Local Conf mode : OFF OS : Windows 7 (64-bit) Plugins : JSMinNPP.dll Linter.dll mimeTools.dll NppConverter.dll** Any suggestions? Thanks
brennanyoung commented 5 years ago

Same issue here. No spaces in command path or file path

Owyn commented 4 years ago

Same issue here.

Could it be due to notepad++ using other-direction slashes for some of the target path / \ perhaps ?

pablo-sg-pacheco commented 3 years ago

I also have the same problem. The command line is working just fine