question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validate coffee script by default

See original GitHub issue

I’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:open
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dbaeumercommented, Feb 17, 2021

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.

0reactions
edemainecommented, Feb 16, 2021

Yes, correct.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found