Giter VIP home page Giter VIP logo

Comments (8)

dbaeumer avatar dbaeumer commented on August 16, 2024

@ALF-er this should not happen :-). Any steps to reproduce would be highly appreciated

from vscode-eslint.

ALF-er avatar ALF-er commented on August 16, 2024

Sorry for delay. Here is settings and code (just 2 lines of code) that lead to subj issue https://github.com/ALF-er/vscode-eslint-test But it's obvious that it's not eslint-settings-issue. I want to reinstall vscode from scratch. But maybe I can provide some extended issue report for you before that?

from vscode-eslint.

jwulf avatar jwulf commented on August 16, 2024

I have the same error:

Error: Header must provide a Content-Length property.
    at MessageReader.onData (/Users/sitapati/.vscode/extensions/dbaeumer.vscode-eslint/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/messageReader.js:105:27)
    at Socket.<anonymous> (/Users/sitapati/.vscode/extensions/dbaeumer.vscode-eslint/node_modules/vscode-languageclient/node_modules/vscode-jsonrpc/lib/messageReader.js:92:19)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at Pipe.onread (net.js:523:20)

from vscode-eslint.

ALF-er avatar ALF-er commented on August 16, 2024

So full reinstall of VSCode, vscode-eslint,local eslint doesn't fix problem =| Any ideas, someone?

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

@ALF-er the problem comes from the fact the something interferes with the protocol socket we use. It will not go away by installing fresh

from vscode-eslint.

ALF-er avatar ALF-er commented on August 16, 2024

@dbaeumer Good to know that the source of problem defined (approximately =)). If you need any additional information - let me know, I'll be glad to help.

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

I fixed it by allowing both stdio and node ipc as a transport. For eslint I change now to ipc transport which makes it impossible that a console.log interferes with the protocol. I publish a new version of eslint as well.

from vscode-eslint.

ALF-er avatar ALF-er commented on August 16, 2024

Great! But after update I get

EPERM: operation not permitted, write
e.doShow @ workbench.main.js:1598
e.show @ workbench.main.js:1598
e.showMessage @ workbench.main.js:1590
__dirname.undefined.t.Class.derive._oncancel @ workbench.main.js:1544
e.showMessage @ workbench.main.js:1590
e.handle @ workbench.main.js:1588
a @ workbench.main.js:1576
h.handle @ workbench.main.js:1576
(anonymous function) @ workbench.main.js:1602
(anonymous function) @ workbench.main.js:1602
emitTwo @ events.js:87
emit @ events.js:172
handleMessage @ internal/child_process.js:685
channel.onread @ internal/child_process.js:440

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.