madskristensen / WebEssentials2013

Visual Studio extension
http://vswebessentials.com
Other
944 stars 251 forks source link

Disabling JSCS disables also JSHint #1417

Open glat opened 10 years ago

glat commented 10 years ago

Step to repro:

18/08/2014 10.45.08: Something went wrong reaching: http://127.0.0.1:8136/?service=JsHint&sourceFileName=C:%5CUsers%5Cgiovanni%5CSource%5CWorkspaces%5Cglat.visualstudio.com%5CWEB_utopia%5CMaster%5Cweb%5Clogin.js& 18/08/2014 10.45.08: Something went wrong reaching: http://127.0.0.1:8136/?service=JSCS&sourceFileName=C:%5CUsers%5Cgiovanni%5CSource%5CWorkspaces%5Cglat.visualstudio.com%5CWEB_utopia%5CMaster%5Cweb%5Clogin.js& 18/08/2014 10.45.09: Something went wrong reaching: http://127.0.0.1:8136/?service=JSCS&sourceFileName=C:%5CUsers%5Cgiovanni%5CSource%5CWorkspaces%5Cglat.visualstudio.com%5CWEB_utopia%5CMaster%5Cweb%5Clogin.js& 18/08/2014 10.45.09: Something went wrong reaching: http://127.0.0.1:8136/?service=JsHint&sourceFileName=C:%5CUsers%5Cgiovanni%5CSource%5CWorkspaces%5Cglat.visualstudio.com%5CWEB_utopia%5CMaster%5Cweb%5Clogin.js&

You get no JSHint checking.

Thanks in advance

glat commented 10 years ago

Update: I tried to use the comment line on top of js files:

 /* jscs: disable */

and it does not work, jscs still does its job. By using .weignore file adding line:

**\*.js<tab>jscs

it works ignoring any JSCS check on js files.

jerone commented 9 years ago

Same issue here, getting the following error messages in build output:

28-11-2014 13:05:36: Something went wrong reaching: http://127.0.0.1:30706/?service=JSCS&sourceFileName=C:%5CUsers%5Cx%5CDocuments%5CGitHub%5COpenUserJS.org%5Ccontrollers%5Cauth.js&
28-11-2014 13:05:39: Something went wrong reaching: http://127.0.0.1:40206/?service=JSCS&sourceFileName=C:%5CUsers%5Cx%5CDocuments%5CGitHub%5COpenUserJS.org%5Ccontrollers%5Cauth.js&
28-11-2014 13:05:39: JSCS: auth.js compilation failed: The service failed to respond to this request
            Possible cause: Syntax Error!

I tried the following formats:

"excludeFiles": ["*"],
"excludeFiles": ["**"],
"excludeFiles": ["/**"],

Microsoft Visual Studio Professional 2013 Version 12.0.31101.00 Update 4 Microsoft .NET Framework Version 4.5.51641 Web Essentials 2013 2.5.2

vmariano commented 9 years ago

Similar issue here. I tried : http://stackoverflow.com/questions/22363026/how-can-i-disable-jscs-in-web-essentials-for-visual-studio-2013 and no one worked. I want to turn off jscs with jshint enabled

DenysVuika commented 9 years ago

Having the same issue as @vmariano. Seems like you are putting JSCS down our throats without any easy option to disable it entirely without breaking JsHint functionality.