Coder Social home page Coder Social logo

Comments (24)

attilacsanyi avatar attilacsanyi commented on July 26, 2024

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.

EvHaus avatar EvHaus commented on July 26, 2024

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.

attilacsanyi avatar attilacsanyi commented on July 26, 2024

Dear @globexdesigns unfortunately the problem is the same, jscs module not found. It seems only win issue?

from brackets-jscs.

ptakes avatar ptakes commented on July 26, 2024

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.

EvHaus avatar EvHaus commented on July 26, 2024

Actually, I've tested 0.6.x only on WIndows so it should work. I'll keep looking into it.

from brackets-jscs.

attilacsanyi avatar attilacsanyi commented on July 26, 2024

I am using windows 8 64 bit, perhaps this is also matters

from brackets-jscs.

EvHaus avatar EvHaus commented on July 26, 2024

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:

  1. What the error prints as your NODE_PATH, and
  2. Where the jscs module ends up being installed after you type npm install -g jscs

from brackets-jscs.

ptakes avatar ptakes commented on July 26, 2024

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.

attilacsanyi avatar attilacsanyi commented on July 26, 2024

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.

EvHaus avatar EvHaus commented on July 26, 2024

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.

attilacsanyi avatar attilacsanyi commented on July 26, 2024

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.

EvHaus avatar EvHaus commented on July 26, 2024

@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.

ptakes avatar ptakes commented on July 26, 2024

Yep, it is working now. Thank you for solving this so quickly.

from brackets-jscs.

EvHaus avatar EvHaus commented on July 26, 2024

@ptakes Can you try the 0.6.3 build using the instructions in my comment above as well?

from brackets-jscs.

ptakes avatar ptakes commented on July 26, 2024

I did test 0.6.3 following your instructions and everything is working now.

from brackets-jscs.

attilacsanyi avatar attilacsanyi commented on July 26, 2024

Dear @globexdesigns it was working for me as well. Great job!

from brackets-jscs.

EvHaus avatar EvHaus commented on July 26, 2024

Thanks guys! I'll push 0.6.3 out.

from brackets-jscs.

RonniePoulsen avatar RonniePoulsen commented on July 26, 2024

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.

EvHaus avatar EvHaus commented on July 26, 2024

@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.

RonniePoulsen avatar RonniePoulsen commented on July 26, 2024

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.

EvHaus avatar EvHaus commented on July 26, 2024

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.

cutpix avatar cutpix commented on July 26, 2024

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.

ivan-yosifov avatar ivan-yosifov commented on July 26, 2024

Link to Dropbox is not working

from brackets-jscs.

EvHaus avatar EvHaus commented on July 26, 2024

@ivan-yosifov It is no longer needed. The official release no longer suffers from this issue.

from brackets-jscs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.