Git Product home page Git Product logo

Comments (5)

AoDev avatar AoDev commented on May 19, 2024 1

You should check the plugin config and see if all the paths in there are correct. You should enable debug: true in the config and check the console for error messages.

from eslint-formatter.

caliangxie avatar caliangxie commented on May 19, 2024

Sorry for the very late reaction.

I tried to see whether I could figure out the issue again and this time(how did I not notice this last time) I noticed that my username folder was cut in half.

The thrown error says that module 'C:\Users\A' cannot be found but my name is 'A B' so perhaps the space is causing the issue?

from eslint-formatter.

skeggse avatar skeggse commented on May 19, 2024

The thrown error says that module 'C:\Users\A' cannot be found but my name is 'A B' so perhaps the space is causing the issue?

This seems likely. It'd be worth checking if running subprocess.Popen('C:\Users\A B\...\path\to\eslint') works as expected.

from eslint-formatter.

sricks avatar sricks commented on May 19, 2024

I was getting module_not_found issues, in my case I think it's because I'm mounting a remote filesystem via SFTP using GVFS on Linux. I think there's some issue with following symlinks, but never confirmed that.

I fixed it by copying the eslint file into my home directory and ensuring I only ever use local eslint stuff in Sublime:

{
	"local_eslint_path": {
		"linux": ""
	},
	"eslint_path": {
		"linux": "/home/username/node_modules/.bin/eslint",
		"config_path": "/home/username/.eslintrc.custom.json"
	},
	"extra_args": ["--no-eslintrc"]
}

That got rid of the error, but I noticed it's not actually fixing any kind of formatting now... but hopefully this helps someone get further.

from eslint-formatter.

sricks avatar sricks commented on May 19, 2024

Silly me, this is at least partly because config_path is not part of eslint_path, it's a top-level option. This allows it to format:

{
	"local_eslint_path": {
		"linux": ""
	},
	"eslint_path": {
		"linux": "/home/username/node_modules/.bin/eslint"
	},
	"config_path": "/home/username/.eslintrc.custom.json",
	"extra_args": ["--no-eslintrc"]
}

It's not formatting everything I would expect, but I haven't touched that eslint file in a while, and it did change at least one thing. So I think it's working this way.

from eslint-formatter.

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.