SublimeLinter: [windows] Linting doesn't work if parent folder path or the opened filename contains a right parentheses ')'
I’ve noticed it by chance while using Sublime Text 3 x64 build 3086 (in win10 x64) as external editor for Greasemonkey, Using SublimeLinter-jshint.
I noticed frequently that whenever opening specific installed userscripts, linting doesn’t work.
But if I copied the code and pasted it in a new tab (as javascript) then linting would work again.
Eventually I found out that linting doesn’t work if either the parent folder path or the opened filename contains a right parentheses ‘)’.
Example (using a small userscript name length):
- create this folder path:
C:\Users\user\AppData\Roaming\Mozilla\Firefox\Profiles\abcdefgh.default\gm_scripts\Test_(1)and - place a .js file in there (e.g.
Test_(1).user.js) with some syntax errors. - If you try to open it in Sublime Text, then linting doesn’t work.
Renaming that file to a minimum length, e,g,
1.jsdoesn’t work neither. - if now you delete the right parentheses from the parent folder
)i.e. to becomeTest_(1
and rename the file toTest_(1.user.jsand then open the file again, linting will work as expected. (if you don’t rename both, then linting won’t work)
The same happens if you place the Test_(1) folder containing the Test_(1).user.js file
to C:\ i.e. having the minimum length possible.
Enabling Debug mode in Sublimelinter3 reveals for the latter case:
C:\Test_(1)> "C:\Users\Kostas\AppData\Roaming\npm\\node.exe" "C:\Users\Kostas\AppData\Roaming\npm\\node_modules\jshint\bin\jshint" --verbose --filename C:\Test_(1)\Test_(1).user.js -
\Test_(1).user.js was unexpected at this time.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 20 (11 by maintainers)
Look here http://www.sublimelinter.com/en/stable/linter_settings.html#executable