{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter3/issues/355","repository_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter3","labels_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter3/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter3/issues/355/comments","events_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter3/issues/355/events","html_url":"https://github.com/SublimeLinter/SublimeLinter3/issues/355","id":112862849,"number":355,"title":"Linting doesn't work if parent folder path or the opened filename contains a right parentheses ')'","user":{"login":"darkred","id":723651,"avatar_url":"https://avatars.githubusercontent.com/u/723651?v=3","gravatar_id":"","url":"https://api.github.com/users/darkred","html_url":"https://github.com/darkred","followers_url":"https://api.github.com/users/darkred/followers","following_url":"https://api.github.com/users/darkred/following{/other_user}","gists_url":"https://api.github.com/users/darkred/gists{/gist_id}","starred_url":"https://api.github.com/users/darkred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkred/subscriptions","organizations_url":"https://api.github.com/users/darkred/orgs","repos_url":"https://api.github.com/users/darkred/repos","events_url":"https://api.github.com/users/darkred/events{/privacy}","received_events_url":"https://api.github.com/users/darkred/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2015-10-22T18:29:55Z","updated_at":"2016-10-17T20:12:32Z","closed_at":null,"body":"I've noticed it by chance while using Sublime Text 3 x64 build 30836  (in win10 x64) as external editor for Greasemonkey, Using `SublimeLinter-jshint`.\r\n\r\nI noticed frequently that whenever opening specific installed userscripts, linting doesn't work. \r\nBut if I copied the code and pasted it in a new tab (as `javascript`) then linting would work again. \r\n\r\n**Eventually I found out that linting doesn't work if either the parent folder path or the opened filename contains a right parentheses ')'.**\r\n\r\n\r\n----------\r\n<ins>Use case</ins> (using a small userscript name length): \r\n- create this folder path: \r\n`C:\\Users\\user\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\abcdefgh.default\\gm_scripts\\Test_(1)` and \r\n- place a .js file in there (e.g. `Test_(1).user.js`) with some syntax errors. \r\n- If you try to open it in Sublime Text, then linting doesn't work. \r\nRenaming that file to a minimum length, e,g, `1.js` doesn't work neither. \r\n- if now you delete the right parentheses from the parent folder `)`\r\ni.e. to become `Test_(1`  \r\nand rename the file to `Test_(1.user.js`\r\nand then open the file again, linting will work as expected. \r\n_(if you don't rename both, then linting won't work)_\r\n\r\nThe same happens if you place the `Test_(1)` folder containing the `Test_(1).user.js` file \r\nto `C:\\` i.e. having the minimum length possible.\r\n\r\n----------\r\n\r\n\r\n_Enabling Debug mode in Sublimelinter3 reveals for the latter case:_ \r\n```\r\nC:\\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 -\r\n\\Test_(1).user.js was unexpected at this time. \r\n``` "},"comment":{"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter3/issues/comments/254319482","html_url":"https://github.com/SublimeLinter/SublimeLinter3/issues/355#issuecomment-254319482","issue_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter3/issues/355","id":254319482,"user":{"login":"darkred","id":723651,"avatar_url":"https://avatars.githubusercontent.com/u/723651?v=3","gravatar_id":"","url":"https://api.github.com/users/darkred","html_url":"https://github.com/darkred","followers_url":"https://api.github.com/users/darkred/followers","following_url":"https://api.github.com/users/darkred/following{/other_user}","gists_url":"https://api.github.com/users/darkred/gists{/gist_id}","starred_url":"https://api.github.com/users/darkred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkred/subscriptions","organizations_url":"https://api.github.com/users/darkred/orgs","repos_url":"https://api.github.com/users/darkred/repos","events_url":"https://api.github.com/users/darkred/events{/privacy}","received_events_url":"https://api.github.com/users/darkred/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T20:12:31Z","updated_at":"2016-10-17T20:12:31Z","body":"The cases I described in https://github.com/roadhump/SublimeLinter-eslint/issues/113#issuecomment-189465675 no longer occur (using current version of SublimeLinter 3,7,4) :\r\n\r\n```\r\nC:\\Users\\User\\Desktop\\New Text Document (3).js\r\nC:\\Users\\User\\Desktop\\New folder (2)\\3.js\r\n```\r\n\r\nBut the issue in my OP still exists, and it's caused by SublimeLinter (not the SublimeLinter-jshint),\r\nbecause neither SLjhint or SLeslint worked.\r\n\r\nTo reproduce: \r\nCreate a flile contaning `something = ;` and place it in either:\r\n```\r\nC:\\1)\\2.js\r\nC:\\1\\2).js\r\n```\r\n\r\nFor reference I have enabled both SublimeLinter-esliint and SublimeLinter-jshint\r\nand here is what I get in both cases while having the debug mode enabled:\r\n\r\n```\r\nSublimeLinter: jshint version query: C:\\Users\\Kostas\\AppData\\Roaming\\npm\\jshint.cmd --version \r\nSublimeLinter: jshint version: 2.9.3 \r\nSublimeLinter: jshint: (>= 2.5.0) satisfied by 2.9.3 \r\nSublimeLinter: jshint activated: C:\\Users\\Kostas\\AppData\\Roaming\\npm\\jshint.cmd \r\nSublimeLinter: jshint: 2).js ['C:\\\\Users\\\\Kostas\\\\AppData\\\\Roaming\\\\npm\\\\jshint.cmd', '--verbose', '--filename', '@', '-'] \r\nSublimeLinter: jshint output:\r\n\r\nC:\\1>  \"C:\\Users\\Kostas\\AppData\\Roaming\\npm\\\\node.exe\"  \"C:\\Users\\Kostas\\AppData\\Roaming\\npm\\\\node_modules\\jshint\\bin\\jshint\" --verbose --filename C:\\1\\2).js -\r\n.js was unexpected at this time. \r\nSublimeLinter: eslint: 2).js ['C:\\\\Users\\\\Kostas\\\\AppData\\\\Roaming\\\\npm\\\\eslint.cmd', '--format', 'compact', '--stdin', '--stdin-filename', '@'] \r\nSublimeLinter: eslint output:\r\n\r\nC:\\1>  \"C:\\Users\\Kostas\\AppData\\Roaming\\npm\\\\node.exe\"  \"C:\\Users\\Kostas\\AppData\\Roaming\\npm\\\\node_modules\\eslint\\bin\\eslint.js\" --format compact --stdin --stdin-filename C:\\1\\2).js\r\n.js was unexpected at this time. \r\n```\r\n\r\nPS.  Using ST3 3126 x64 in win10 x64, node 6.8.1 x64, Sublimelinter 3.7.4."}}
{"actor":{"display_login":"darkred"}}