-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Describe the bug
I have a VS Code window running in a container, and I've installed this plugin into the container. The full error is:
node:internal/modules/cjs/loader:1921
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: /root/.vscode-server/extensions/uniquevision.vscode-plpgsql-lsp-1.4.10/server/node_modules/libpg-query/build/Release/queryparser.node: cannot open shared object file: No such file or directory
at Object..node (node:internal/modules/cjs/loader:1921:18)
at Module.load (node:internal/modules/cjs/loader:1465:32)
at Function._load (node:internal/modules/cjs/loader:1282:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.require (node:internal/modules/cjs/loader:1487:12)
at require (node:internal/modules/helpers:135:16)
at Object.<anonymous> (/root/.vscode-server/extensions/uniquevision.vscode-plpgsql-lsp-1.4.10/server/node_modules/libpg-query/index.js:1:17)
at Module._compile (node:internal/modules/cjs/loader:1730:14)
at Object..js (node:internal/modules/cjs/loader:1895:10) {
code: 'ERR_DLOPEN_FAILED'
}
However, that file does exist:
$ file /root/.vscode-server/extensions/uniquevision.vscode-plpgsql-lsp-1.4.10/server/node_modules/libpg-query/build/Release/queryparser.node
/root/.vscode-server/extensions/uniquevision.vscode-plpgsql-lsp-1.4.10/server/node_modules/libpg-query/build/Release/queryparser.node: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=b9a2e0a73e430cac9e164886fd64fda9809fbc6c, with debug_info, not strippedBut note that it says it's for x86-64. However, I am on an Apple M3 Pro, i.e. not x86-64:
$ uname -m
aarch64
$ /root/.vscode-server/bin/2901c5ac6db8a986a5666c3af51ff804d05af0d4/node
Welcome to Node.js v22.15.1.
Type ".help" for more information.
> process.arch
'arm64'Expected Behavior
The plugin should load its shared library.
Current Behavior
The shared library cannot be loaded, perhaps because of an architecture mismatch.
Steps to Reproduce
- Open VS Code in a running container, i.e. via Remote Explorer > Attach in New Window.
- Install the PostgreSQL Language Server plugin into the container.
Environment
- Windows
- Mac (Apple M3 Pro)
- Linux
- Linux container running inside Colima on aforementioned M3-based MacBook Pro.
Metadata
Metadata
Assignees
Labels
No labels