Git Product home page Git Product logo

Comments (13)

mitorez avatar mitorez commented on September 1, 2024

I get a similar error on:
Windows 7 SP1 Enterprise 64-bit
Brackets 1.3 - Release 1.3 build 1.3.0-16022 (release cd0a6aae5)
JSCS 0.6.3

Error:
[NodeDomain] Error loading domain "globexdesigns.brackets-jscs": Unable to load one of the modules: C:/Users/username/AppData/Roaming/Brackets/extensions/user/globexdesigns.brackets-jscs/domain, reason: Cannot find module 'jscs'

from brackets-jscs.

EvHaus avatar EvHaus commented on September 1, 2024

@mitorez The newest version of the extensions requires that you have node.js and jscs installed as a global npm package. Make sure you check out the Installation instructions in the README: https://github.com/globexdesigns/brackets-jscs#installation

from brackets-jscs.

mitorez avatar mitorez commented on September 1, 2024

@globexdesigns Thanks for the info. I must have misread the commit comment below, b/c it sounded like JSCS was now bundled in the extension. I'll install JSCS via node.
Fixes #23. JSCS is now bundled with the extension as loading it from global modules doesn't seem to work reliably.

from brackets-jscs.

jdelibas avatar jdelibas commented on September 1, 2024

When locally installed it works on and off and I am seeing

JSCS has timed out after waiting for 10000 ms

Not sure if its related.

from brackets-jscs.

EvHaus avatar EvHaus commented on September 1, 2024

@mitorez I'm trying to find a way to not bundle JSCS with the extension. There are a couple benefits to this:

  • Users can run their own versions of JSCS (allowing them to upgrade at their pace and sync up with their projects)
  • Users don't need to wait for me to release extension update to use the latest JSCS build
    However, for some reasons, not all users are able to use the global JSCS modules for some reason. It seems to work for most, but not 100%.

Let me know if the global module still doesn't work for you.

@jdelibas This can occur if you have a very large file with many errors or if your file system is slow for some reason. Sometimes, re-saving the file will make it go through. This is Brackets feature to prevent linters from taking too long to run.

from brackets-jscs.

EvHaus avatar EvHaus commented on September 1, 2024

I pushed a new 0.6.4 version. Can you give that a try?

from brackets-jscs.

mitorez avatar mitorez commented on September 1, 2024

@globexdesigns My company proxy blocks npm and I haven't had a chance to install JSCS from home yet, so I haven't tested this change - I'll try to install JSCS tonight and test tomorrow. Would you be open to a separate enhance request to include and load JSCS from within your extension if JSCS is not found globally? I'm ok with your extension not always running the latest version of JSCS, since getting JSCS installed via node is currently a pain for me at work.

from brackets-jscs.

EvHaus avatar EvHaus commented on September 1, 2024

@mitorez Yes. I've been discussing it with the Brackets team and they recommend building in a feature where the user selects the path to the JSCS module you want to use. With the choices being (global, local project, or whatever is bundled with the brackets-jscs extension). Such a feature might take a bit of time to build though.

from brackets-jscs.

mitorez avatar mitorez commented on September 1, 2024

@globexdesigns I installed JSCS globally via npm last night and your extension (v0.6.4) is working fine - it no longer writes a 'timeout' message to the code analysis console, it correctly loads the current JSCS errors for the scanned page. Thanks! Though I see you're now bundling JSCS again with v0.6.5.

from brackets-jscs.

EvHaus avatar EvHaus commented on September 1, 2024

Yeah... I'm giving up the idea of using the global packages. It never seems to work reliable for everyone despite my best efforts.

from brackets-jscs.

philliprauschkolb avatar philliprauschkolb commented on September 1, 2024

I'm on a fresh install of everything and I'm getting the message:

JSCS has timed out after waiting for 10000 ms

I've installed JSCS globally first, then the extension but can't get it to work.

Brackets 1.6
JSCS 3.0.3

from brackets-jscs.

ericgrosse avatar ericgrosse commented on September 1, 2024

I'm having the same issue. I'm using Windows 10 and same versions as phil above.

Edit: Similar issue in Gulp, version 3 doesn't do anything inside a gulp task but version 2 works just fine.

from brackets-jscs.

EvHaus avatar EvHaus commented on September 1, 2024

Sorry guys. I think I'm going to have to drop support for this extension very soon.

  • The JSCS and ESLint teams have decided to merge JSCS into ESLint, so it's best that you start migrating your rules to ESLint and the excellent bracket-eslint extension
  • I'm not actively using Brackets anymore

If you want to try and take a look yourself and submit a PR I'd be more than happy to review and merge it in.

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.