Skip to content
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

Can't load reporter file: C:\Users\username\AppData\Roaming\Sublime Text 3\Packages\JSHint\reporter.js #68

Closed
cranej opened this issue Nov 11, 2013 · 8 comments · Fixed by #70

Comments

@cranej
Copy link

cranej commented Nov 11, 2013

OS:                              Windows 8.1
Sublime Text Version:            3
How did I install the package:   Via Package Control

The cause is that no JSHint folder was created under %APPDATA%\Sublime Text 3\Packages\ after installation.

I manually created JSHint folder and downloaded reporter.js into it then it works well.

Thanks.

@uipoet
Copy link
Owner

uipoet commented Nov 13, 2013

Thanks for reporting this. I just got my Windows virtual machine running again and will troubleshoot this weekend.

@therealklanni
Copy link

I have the same problem on Mac OS X 10.9 (Mavericks), for ST3

@therealklanni
Copy link

Also this is a duplicate of #66

@agreco
Copy link

agreco commented Nov 27, 2013

I haven't used it in a while but just discovered my JSHint installation is reporting the same problem.

I'm using ST3. Mac OS X 10.9 Mavericks

@budkin76
Copy link

Thanks, just ran into the same thing.

@ticky
Copy link
Contributor

ticky commented Jan 13, 2014

This is because JSHint is presuming the Sublime Text 2 package storage setup; from the Porting Guide;

Packages in Sublime Text 3 are able to be run from .sublime-package (i.e., renamed .zip files) files directly, in contrast to Sublime Text 2, which unzipped them prior to running.

While in most changes this should lead to no differences, it is important to keep this in mind if you are accessing files in your package.

The problem therefore is that this plug-in is attempting to access a file which does not exist, in a directory which (most likely) does not exist.

A workaround until the package is updated with Sublime Text 3 compatibility is to move the JSHint.sublime-package file from Installed Packages to Packages, and extract it in-place (leaving behind a JSHint directory), and removing the zip file.

EDIT: Turns out there's a way to tell Package Control to install packages the old way under ST3, which makes this work. I've provided a PR (#70).

@sporto
Copy link

sporto commented Jan 15, 2014

Same issue here, Mavericks with ST3

@martinszy
Copy link

This is still happening. It works when installed manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants