Skip to content

Language server features not available: "write EPIPE: undefined" #2053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
JeroemvS opened this issue May 8, 2023 · 2 comments
Open
3 tasks done

Language server features not available: "write EPIPE: undefined" #2053

JeroemvS opened this issue May 8, 2023 · 2 comments
Assignees
Labels
topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@JeroemvS
Copy link

JeroemvS commented May 8, 2023

Describe the problem

Language server-based features are intermittently not available in Arduino IDE.

When I right click on a symbol in the editor, the context menu does not contain the items associated with the language server:

image

I see an error notification:

**Error communicating with the language server: Error: write EPIPE: undefined

image

To reproduce

Don't know

Expected behavior

Language server-based features are always available.

Arduino IDE version

2.1.0

Operating system

Windows

Operating system version

10

Additional context

Logs from a session with the arduino.language.log setting enabled:

inols-err.zip


Related discussion: https://forum.arduino.cc/t/f12-ctrl-f12-enz-stopd-working/1123706


I am using the "ESP32 Dev Module" board (FQBN esp32:esp32:esp32).


I am also experiencing a problem where, when the language server based features are available, it takes at least 3+ minutes before anything happens.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@JeroemvS JeroemvS added the type: imperfection Perceived defect in any part of project label May 8, 2023
@per1234 per1234 added the topic: language server Related to the Arduino Language Server label May 8, 2023
@per1234 per1234 self-assigned this May 9, 2023
@per1234 per1234 changed the title F12 funtion stops working Language server features not available: "write EPIPE: undefined" Jun 11, 2023
@robbi-blechdose
Copy link

(Likely) this issue caused the IDE to generate 464 GB log file, spamming this error over and over.
Many of these share the same timestamp down to the second, maybe rate-limiting the error would be an option?

@susanw1
Copy link

susanw1 commented Oct 17, 2023

I'd like to report similar to @robbi-blechdose - I started work, found log files had filled my disk due to repeated logging of the EPIPE exception. I'd agree, a rate limiter or duplicate compressor might be a useful addition?

2023-10-16 23:59:59 2023-10-16T22:59:59.999Z root ERROR Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writeGeneric (node:internal/stream_base_commons:151:3)
    at Socket._writeGeneric (node:net:917:11)
    at Socket._write (node:net:929:8)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at console.value (node:internal/console/constructor:300:16)
    at console.warn (node:internal/console/constructor:382:26)
    at process.env.IDE2_FILE_LOGGER.console.<computed> (/opt/arduino/arduino-ide_2.2.1_Linux_64bit/resources/app/lib/backend/main.js:2:719107)

I don't have info about what triggered it - first I knew was when other apps were complaining about disk space. I'll keep an eye open. I'm running:

Linux **** 5.15.0-84-generic #93-Ubuntu SMP Tue Sep 5 17:16:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants