Comments (24)
I have the same problem, thanks for the quick fix
After I run npm install -g jscs
I still get the problem above, I have to install _findup_globally as well:
npm install -g findup
domain.js I guess the problem is around finding the required dependencies (I am under windows)
If I try to reference with full path like this its working:
// c:\Users\...\AppData\Roaming\Brackets\extensions\user\globexdesigns.brackets-jscs\domain.js (line 9.)
...
Checker = require('c:/Users/.../AppData/Roaming/npm/node_modules/jscs'),
jscsConfig = require('c:/Users/.../AppData/Roaming/npm/node_modules/jscs/lib/cli-config'),
findup = require('c:/Users/atka/AppData/Roaming/npm/node_modules/findup'),
...
After changed how I import them it is working well, but this is not the right way, I hope there will be a proper fix soon.
from brackets-jscs.
I've just pushed version 0.6.1, can you please try that?
@ptakes You'll also need to make sure you run this npm install -g jscs
and then restart Brackets.
from brackets-jscs.
Dear @globexdesigns unfortunately the problem is the same, jscs module not found. It seems only win issue?
from brackets-jscs.
I tested 0.6.1 both upgrade and complete reinstall, but problem remains. I am also running on Windows like attilacsanyi, could be indeed a Windows only issue.
from brackets-jscs.
Actually, I've tested 0.6.x only on WIndows so it should work. I'll keep looking into it.
from brackets-jscs.
I am using windows 8 64 bit, perhaps this is also matters
from brackets-jscs.
Can you please try this 0.6.2 build: https://www.dropbox.com/s/ie8a8y9wk6b1nj6/brackets-jscs-0.6.2.zip?dl=0 You'll have to unzip it into your Brackets Extensions folder (and delete the old globexdesigns.brackets-jscs extension in there). Then restart Brackets.
It will not fix the issue, but it will now print a new error message. Something like this:
Unable to load one of the modules: C:/Users/Guy/AppData/Roaming/Brackets/extensions/user/globexdesigns.brackets-jscs/domain, reason:
Unable to start brackets-jscs due to error: "Cannot find module 'jscs'".
NODE_PATH is: C:\Users\Guy\AppData\Roaming\npm\node_modules;C:\Users\Guy\AppData\Roaming\npm\node_modules
Make a note of the NODE_PATH value specified at the end of the message. Go to that directory (in my case it's C:\Users\Guy\AppData\Roaming\npm\node_modules) and make sure that jscs
is installed in there. If it's not - something is out-of-the-ordinary going on with the configured global NODE_PATH on your machine.
When you run npm install -g jscs
it should be installing the module into the directory. If it isn't, let me know the following:
- What the error prints as your NODE_PATH, and
- Where the
jscs
module ends up being installed after you typenpm install -g jscs
from brackets-jscs.
Here you go:
Unexpected JSCS processing error: Unable to load one of the modules: C:/Users/Peter/AppData/Roaming/Brackets/extensions/user/globexdesigns.brackets-jscs/domain, reason: Unable to start brackets-jscs due to error: "Cannot find module 'jscs'". NODE_PATH is: C:\Users\Peter\AppData\Roaming\npm\node_modules
I checked the NODE_PATH, and the jscs module is there (C:\Users\Peter\AppData\Roaming\npm\node_modules\jscs), could it be a permission thing? I am running Windows 8.1 64-bit.
from brackets-jscs.
I have the same OS and got the same error message above like @ptakes really weird. If I run bracket with administrator privileges I got the same. Hmmm.
from brackets-jscs.
Ok, I've pushed a final 0.6.2 release to the registry which has JSCS embedded with the extension itself. I was hoping to avoid this so that users could update their local copies of JSCS instead of me having to bundle the latest JSCS version with each extension release... but, oh well.
I'll try to work with the Brackets team to find out why this isn't working as it should for all users, but until then, the latest release should just work right out of the box without having to install anything extra.
Thank you both for your patience and help with testing.
from brackets-jscs.
Dear @globexdesigns thanks for your quick resolution. I also hope there will be a better approach so I will check this extension regularly. Thanks again!
from brackets-jscs.
@attilacsanyi Could you do me another favour? Can you please:
- Download the new 0.6.3 extension from https://www.dropbox.com/s/ih7tyqft8w01sui/brackets-jscs-0.6.3.zip?dl=0
- Uninstall the current brackets-jscs extension from Brackets
- Install the 0.6.3 version of the extension by unzipping the downloaded package into your Extensions folder
- Make sure you've got
npm install -g jscs
installed - Restart Brackets
- See if the extension works with the global JSCS now
I tried it on a few Windows machines, including ones where 0.6.0 wasn't working and I think I've got this figured out.
from brackets-jscs.
Yep, it is working now. Thank you for solving this so quickly.
from brackets-jscs.
@ptakes Can you try the 0.6.3 build using the instructions in my comment above as well?
from brackets-jscs.
I did test 0.6.3 following your instructions and everything is working now.
from brackets-jscs.
Dear @globexdesigns it was working for me as well. Great job!
from brackets-jscs.
Thanks guys! I'll push 0.6.3 out.
from brackets-jscs.
Hi @globexdesigns. I am new with the Brackets editor and I am trying to get brackets-jscs to work. Right now I am facing the exact same problem as @ptakes did in the beginning of this issue thread. How ever I have tried all solutions written in this thread with no luck. Can you please help me fix this?
I have posted a question over at Stackoverflow so I am hoping some one can point me in the right direction as I am pretty stuck right now.
http://stackoverflow.com/questions/32882744/adobe-brackets-jscs-extension-cannot-find-module-findup
Thanks in advance.
from brackets-jscs.
@RonniePoulsen Based on your StackOverflow info, it seems like you're running the extension by installing it directly from the Github repo. Is that right? Can you try removing the extension and then installing it via the Brackets Registry instead?
from brackets-jscs.
Hi @globexdesigns. Yes you're right. But I tried with both versions with no luck. I have now tried to get it working on my other computer with no problems at all. So then I uninstalled all packages and then reinstalled. Now it's working and I have no idea why haha. I guess there must have been a problem with some path references or something.
from brackets-jscs.
Yeah, the installation is a bit messy right now just because everyone's npm setup is slightly differently. So to make it work for everyone, there's a bit of a hoop you have to jump through to get it setup. Glad you got it working.
from brackets-jscs.
Can you help me with this issue? Im running on Windows 10 64-bit.
Unexpected JSCS processing error: Unable to load one of the modules: C:/Users/Andrei/AppData/Roaming/Brackets/extensions/user/globexdesigns.brackets-jscs/domain, reason: Cannot find module 'colors'
from brackets-jscs.
Link to Dropbox is not working
from brackets-jscs.
@ivan-yosifov It is no longer needed. The official release no longer suffers from this issue.
from brackets-jscs.
Related Issues (20)
- Upgrade to newest JSCS version
- Cannot find module 'jscs' HOT 13
- Unexpectedly stop the node server HOT 2
- JSCS timing out HOT 8
- Plugin breaks when JSCS is used with plugin HOT 1
- The JSCS 2.0 does not use esprima anymore HOT 1
- How to upgrade to JSCS 2.0.0 ? HOT 6
- Configuration file path HOT 1
- Feature request: Add JSCS formatting HOT 1
- Ignored rule: One space required after opening bracket. HOT 5
- Support JSCS v2.2.1 HOT 2
- I'm getting: Unexpected JSCS processing error: Unable to load one of the modules * reason: Cannot find module 'color' HOT 4
- error after latest update: HOT 4
- JSCS issue "Unexpected JSCS processing error: timeout" HOT 2
- Support for the fix parameter HOT 3
- Using multiple brackets windows broke the extension HOT 5
- update to use JSCS 3 HOT 4
- Is there a way to invoke jscs auto fix as part of "save" of a file? HOT 1
- Not clear install instruction HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brackets-jscs.