Validate coffee script by default
See original GitHub issueI’m having trouble getting this extension to run at all, within a Meteor project on a Windows 10 machine. I can run eslint .
and eslint <filename>
fine from the terminal. But in the ESLint output I get:
Uncaught exception received.
Error: ENOENT: no such file or directory, realpath 'C:\Users\edemaine\Projects\cocreate\.meteor\local\build\programs\.build768781.web.browser\dynamic\package.json'
at Function.realpathSync.native (fs.js:1588:3)
at Function.native (electron/js2c/asar.js:302:42)
at c:\Users\edemaine\.vscode\extensions\dbaeumer.vscode-eslint-2.1.14\server\out\eslintServer.js:1:14128
at I (c:\Users\edemaine\.vscode\extensions\dbaeumer.vscode-eslint-2.1.14\server\out\eslintServer.js:1:14188)
at c:\Users\edemaine\.vscode\extensions\dbaeumer.vscode-eslint-2.1.14\server\out\eslintServer.js:1:28946
at Array.forEach (<anonymous>)
at Object.handler (c:\Users\edemaine\.vscode\extensions\dbaeumer.vscode-eslint-2.1.14\server\out\eslintServer.js:1:28925)
at Object.processQueue (c:\Users\edemaine\.vscode\extensions\dbaeumer.vscode-eslint-2.1.14\server\out\eslintServer.js:1:22071)
at Immediate.<anonymous> (c:\Users\edemaine\.vscode\extensions\dbaeumer.vscode-eslint-2.1.14\server\out\eslintServer.js:1:21212)
at processImmediate (internal/timers.js:439:21)
I believe the relevant context is that Meteor creates builds in .meteor/local
which includes package.json
files that (on Windows) are weird Windows symlinks.
What I don’t understand is why this extension is looking at these files at all. I have a package.json
at the root, and an .eslintrc.yml
. I tried adding ignorePatterns: [.meteor]
, and I tried creating an .eslintignore
with contents .meteor
, but the extension still seems to be looking through all directories and calling realpath
…
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
CoffeeScript
Note though that unlike with the existential operator, the default is only applied with the value is missing or undefined —passing null will...
Read more >A quick romp through default values in CoffeeScript - Evan Hahn
CoffeeScript's existential operator can be used to set default values. sendThreateningMessageFromUFO = (options) -> options.message ?= "I will ...
Read more >How to check syntax error in coffeescript - Stack Overflow
I am not familiar with coffee script, I try to move jquery from view to put in asset but not able to make...
Read more >Simplify your JavaScript with CoffeeScript - Creative Bloq
In CoffeeScript, variables are local by default, instead of global as in ... This prevents another JavaScript file redefining validate, ...
Read more >CoffeeScript Tricks - Product, UX, & Engineering Careers
Four CoffeeScript tricks which aren't in the docs. ... You can use the default argument value to create variables which will only live...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I assume the probing for coffee script fails. You can always force validation using the deprecated
validate
setting. I will look into making coffee script probing work.Yes, correct.