kungfusheep / SublimeLinter-contrib-stylelint

this repo is no longer maintained - please see https://github.com/SublimeLinter/SublimeLinter-stylelint
MIT License
116 stars 19 forks source link

Error: Cannot find module stylelint_wrapper.js #1

Closed Akurganow closed 8 years ago

Akurganow commented 8 years ago

Try to lint example untitled.css file (with only one empty block) that what i have in sublime console:

SublimeLinter: stylelint: untitled.css ['/usr/local/opt/nvm/versions/node/v0.12.7/bin/node', '/Users/akurganow/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter-contrib-stylelint.sublime-package/stylelint_wrapper.js', '@', '--config', '/Users/akurganow/Projects/.stylelintrc'] 
SublimeLinter: stylelint output:
module.js:338
    throw err;
          ^
Error: Cannot find module '/Users/akurganow/Library/Application Support/Sublime Text 3/Installed Packages/SublimeLinter-contrib-stylelint.sublime-package/stylelint_wrapper.js'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3 
kungfusheep commented 8 years ago

As a workaround to this issue, you can clone this repo into your Sublime Text 3\Packages directory and you should be fine until I can get a fix out.

Thanks for reporting.

kungfusheep commented 8 years ago

I'd missed a .no-sublime-package file, which was causing the paths to screw up and point at the .sublime-package file - which is essentially a zip file. I've added the file and bumped the version, so it should be available as an update on package control shortly. I'll close the bug after confirming this has fixed it.

kungfusheep commented 8 years ago

I can confirm 1.0.1 fixes this path issue.

Thanks again for reporting!

Closing.

kungfusheep commented 8 years ago

As a side note - you may potentially have to remove the package from sublime, restart and then re-install via package control to fully fix the issue. Sorry for any inconvenience.

Akurganow commented 8 years ago

Thanks! Now it's work great

kungfusheep commented 8 years ago

👍