-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
deno hangs when npm package has itself as a dependency #17420
Comments
Does this only occur when using the lsp and deno run at the same time? Does it occur when only running Maybe related: #16577 |
I have no issue with #16577. I could run the command without problem so it may not be related. |
npm:[email protected]
specifier for run lsp
Sorry, I should have tried this out as well. It also hangs for me with that specific npm specifier. |
This Running with Instaliing via |
@bartlomieju it's a deadlock. Basically this assertion would panic if it weren't for the lock on the previous line, which causes a deadlock: deno/cli/npm/resolution/graph.rs Line 314 in 1712a88
Specifically:
|
npm:[email protected]
specifier for run lsp
It seems this package has itself as a dependency lol: "2.50.1": {
"name": "oci-workrequests",
"version": "2.50.1",
"description": "OCI NodeJS client for WorkRequests",
"repository": {
"type": "git",
"url": "git+https://github.com/oracle/oci-typescript-sdk.git"
},
"main": "./index.js",
"typings": "./index",
"scripts": {},
"author": { "name": "Oracle Cloud Infrastructure" },
"license": "(UPL-1.0 OR Apache-2.0)",
"dependencies": { "oci-common": "2.50.1", "oci-workrequests": "2.50.1" }, |
I'm not sure this properly handles scenarios where an npm package uses an alias that resolves to itself, we can fix that if we find a package that actually depends on that behavior. Closes #17420
I'm not sure this properly handles scenarios where an npm package uses an alias that resolves to itself, we can fix that if we find a package that actually depends on that behavior. Closes #17420
Steps to reproduce
Environment
Command
Expected behavior
Actual behavior
LSP doesn't work at all.
It doesn't run, just hangs.
Additional context
The following is Deno Language Server output when problem occurs.
The text was updated successfully, but these errors were encountered: