Several months ago, I started getting an error when I use control+q to open a location in a stack trace or method list after entering an index into that list on the REPL any time I attempt to open a file from the REPL while ENV["EDITOR"] = "code"
. The error I get is the following (printed at the REPL):
node:net:413
throw errnoException(err, 'open');
^
Error: open EISDIR
at new Socket (node:net:413:13)
at createWritableStdioStream (node:internal/bootstrap/switches/is_main_thread:78:18)
at process.getStderr [as stderr] (node:internal/bootstrap/switches/is_main_thread:170:12)
at console.get (node:internal/console/constructor:220:44)
at console.value (node:internal/console/constructor:347:50)
at console.warn (node:internal/console/constructor:382:61)
at Object.h [as onError] (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:1:7727)
at _.onError (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:1:12590)
at h._onLoadError (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:3:7877)
at l (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:3:9082)
at Object.errorback (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:3:9457)
at d.triggerErrorback (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:1:13508)
at C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:1:13259
at i.load (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:2:1654)
at d.load (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:1:13214)
at l (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:3:9338)
at Object.errorback (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:3:9457)
at d.triggerErrorback (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:1:13508)
at C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:1:13259
at i.load (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:2:1654)
at d.load (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:1:13214)
at l (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:3:9338)
at h._loadModule (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:3:9466)
at h._resolve (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:4:452)
at h.defineModule (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:3:5561)
at _ (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:4:1741)
at m (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:2:2448)
at Object.<anonymous> (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\node\cli.js:31:28)
at Object.<anonymous> (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\node\cli.js:31:27732)
at i._createAndEvalScript (C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:2:2492)
at C:\Users\mikm\AppData\Local\Programs\Microsoft VS Code\resources\app\out\cli.js:2:2133
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
errno: -4068,
code: 'EISDIR',
syscall: 'open'
}
Node.js v18.15.0
As best I can tell from reading online, EISDIR is thrown when Node.js intends to open a file but receives a directory.
The issue is resolved and the file opens successfully with my environment’s EDITOR=vim
or another editor, but I’m hoping to get this working again with my preferred editor code
. I can call code --goto ~/julia-1.10.0/share/julia/base/math.jl:50
and VSCode successfully opens the specified file to the requested line number, so it (naively) seems that something is wrong in the Julia interface to it. My VS Code installation affirms it is up to date. Julia is installed and run from a WSL Ubuntu install on a Windows 10 machine.
This functionality had worked on this machine for years but no longer does. I wish I remembered whether this started failing after a VS Code or Julia update, but I don’t. Does anyone have a suggestion with how to resolve this?