Skip to content
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

bug: Uncached or missing jsr package error in LSP for deno_std #24022

Closed
iuioiua opened this issue May 29, 2024 · 5 comments
Closed

bug: Uncached or missing jsr package error in LSP for deno_std #24022

iuioiua opened this issue May 29, 2024 · 5 comments
Labels
bug Something isn't working correctly duplicate a duplicate of another issue lsp related to the language server

Comments

@iuioiua
Copy link
Contributor

iuioiua commented May 29, 2024

Issue

In deno_std, the LSP reports the following error for inter-package imports, and prevents insights into types:

Uncached or missing jsr package: @std/<package>@<version>`
image

Steps to reproduce

  1. Clone deno_std and open in VSCode.
  2. Hover on an inter-package import. E.g. import { concat } from "@std/bytes/concat"; in uuid/v3.ts.

Setup

deno 1.43.6+2024c97 (canary, aarch64-apple-darwin)
v8 12.6.228.3
typescript 5.4.5

Notes

  1. The Standard Library codebase is one with multiple workspaces (packages).
  2. Internal package imports are defined in the codebase's root deno.json file.
  3. This issue doesn't occur when using relative imports.
  4. The code in question executes fine.
@marvinhagemeister marvinhagemeister added bug Something isn't working correctly lsp related to the language server labels May 29, 2024
@belyaev-dev
Copy link

WebStorm, same issue with any std lib, example - @std/dotenv

deno 1.43.6 (release, aarch64-apple-darwin)
v8 12.4.254.13
typescript 5.4.5

@nayeemrmn
Copy link
Collaborator

Let's continue in #22694.

@nayeemrmn nayeemrmn added the duplicate a duplicate of another issue label May 29, 2024
@iuioiua
Copy link
Contributor Author

iuioiua commented Jun 3, 2024

@nayeemrmn, was #24054 supposed to fix this issue? I'm using canary (1.44.0+3341c50), and I still see the problem in deno_std.

@iuioiua iuioiua reopened this Jun 5, 2024
@nayeemrmn
Copy link
Collaborator

@iuioiua No, but this issue is tracked in #22694.

@iuioiua
Copy link
Contributor Author

iuioiua commented Jun 5, 2024

My bad. I thought I saw that issue was closed.

@iuioiua iuioiua closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly duplicate a duplicate of another issue lsp related to the language server
Projects
None yet
Development

No branches or pull requests

4 participants