Giter VIP home page Giter VIP logo

Comments (10)

dbaeumer avatar dbaeumer commented on July 17, 2024

@ALF-er sorry for that. On which OS are you?

from vscode-eslint.

ALF-er avatar ALF-er commented on July 17, 2024

@dbaeumer Windows 10 (10586.17) x64

from vscode-eslint.

dbaeumer avatar dbaeumer commented on July 17, 2024

@ALF-er strange me too. Does it easy reproduce for you with the test case you once provided to me?

from vscode-eslint.

ALF-er avatar ALF-er commented on July 17, 2024

@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.

dbaeumer avatar dbaeumer commented on July 17, 2024

@ALF-er thanks for trying to come up with a minimal project revealing the problem.

from vscode-eslint.

ALF-er avatar ALF-er commented on July 17, 2024

@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.

dbaeumer avatar dbaeumer commented on July 17, 2024

@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.

dbaeumer avatar dbaeumer commented on July 17, 2024

and electron/electron#2033

from vscode-eslint.

dbaeumer avatar dbaeumer commented on July 17, 2024

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.

capture

from vscode-eslint.

ALF-er avatar ALF-er commented on July 17, 2024

Sweet! Thank you!

from vscode-eslint.

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.