Comments (10)
@ALF-er sorry for that. On which OS are you?
from vscode-eslint.
@dbaeumer Windows 10 (10586.17) x64
from vscode-eslint.
@ALF-er strange me too. Does it easy reproduce for you with the test case you once provided to me?
from vscode-eslint.
@dbaeumer sorry, looks like i'ts project-dependent. I'll try to pick out new minimal project for it tomorrow (I'm from eastern Europe)
from vscode-eslint.
@ALF-er thanks for trying to come up with a minimal project revealing the problem.
from vscode-eslint.
@dbaeumer sorry for delay here it's https://github.com/ALF-er/vscode-eslint-test Just npm install
and try to lint (via VSCode) index.js
from vscode-eslint.
@ALF-er The problem is caused by the react plugin writing to console.log which when executed in a electron node environment causes an exception:
"Error: EPERM: operation not permitted, write
at Error (native)\n at Object.fs.writeSync (fs.js:663:20)
at SyncWriteStream.write (fs.js:1981:6)
at Console.log (console.js:36:16)
at EventEmitter.module.exports.character.Program (p:\mseng\VSCode\Playgrounds\bugs\vscode-eslint-test\node_modules\eslint-plugin-react\lib\rules\jsx-quotes.js:52:15)
at emitOne (events.js:82:20)
at EventEmitter.emit (events.js:169:7)
at NodeEventGenerator.enterNode (p:\mseng\VSCode\Playgrounds\bugs\vscode-eslint-test\node_modules\eslint\lib\util\node-event-generator.js:42:22)
at CommentEventGenerator.enterNode (p:\mseng\VSCode\Playgrounds\bugs\vscode-eslint-test\node_modules\eslint\lib\util\comment-event-generator.js:98:23)
at Controller.module.exports.api.verify.controller.traverse.enter (p:\mseng\VSCode\Playgrounds\bugs\vscode-eslint-test\node_modules\eslint\lib\eslint.js:767:36)"
This seems to be related to electron/electron#1471 and electron/electron#3482
from vscode-eslint.
from vscode-eslint.
I fixed this by using a separate pipe for stdio even if we use IPC communication. Nice side effect is that console.log statements of the linter now show up in a corresponding output channel.
from vscode-eslint.
Sweet! Thank you!
from vscode-eslint.
Related Issues (20)
- why is the exlint:source-code-fxer shouldFix parameter false HOT 7
- Bug: When "Open Workspace from File" eslint complains that it cannot find imports, when "Open from Folder" the same code, no issues HOT 5
- bug: import attributes is not supported HOT 2
- Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@eslint/js' HOT 4
- [flat config] `import.meta.{filename,dirname}` is undefined in `eslint.config.mjs` HOT 2
- Findings not visible in editor. HOT 1
- Error when clicking on file tab in VS Code Editor HOT 1
- VS Code eslint using outdated error for non-existent rule configuration HOT 1
- Consistent creation of zombie processes by vscode-eslint extension
- vscode-eslint extension not working on latest version of VSCode, v1.90.0 HOT 18
- Is it possible to pass parameters to the format? HOT 1
- Files are not analized when opened HOT 2
- When the user provides eslint.options, remove the requirement for a eslint.config.js file HOT 1
- "eslint.options.fixTypes" Not Working in "Format Document with: ESLint"
- No ESLint configuration (e.g .eslintrc) found for file
- `eslint.packageManager` deprecated but error message says to use it
- How Can I Display All ESLint Errors and Warnings for All Files in VSCode? HOT 1
- "eslint.onIgnoredFiles" seems not working on v3.0.10
- Issues with Rules and Prettier Integration in Versions 3.0.10 and 3.0.8 HOT 6
- Bug: In VSCode, when an incorrect config breaks the ESLint server, the "Restart ESLint Server" command does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-eslint.