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

JSR package manifest for '@std/collections' failed to load. trailing characters at line 53 column 1 #25967

Closed
scarf005 opened this issue Oct 1, 2024 · 4 comments · Fixed by #25969

Comments

@scarf005
Copy link
Contributor

scarf005 commented Oct 1, 2024

Steps to reproduce

deno cache --reload 'jsr:@std/collections'
error: JSR package manifest for '@std/collections' failed to load. trailing characters at line 53 column 1

Version

deno 1.46.3 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.5-rusty
typescript 5.5.2
@bartlomieju
Copy link
Member

Do you have this problem is you delete a lockfile?

@dsherret
Copy link
Member

dsherret commented Oct 1, 2024

I opened denoland/deno_cache_dir#62

In the meantime, you can run deno clean to fix the issue.

@scarf005
Copy link
Contributor Author

scarf005 commented Oct 1, 2024

yes, deno clean temporarily fixes it but happens again immediately after i edit some script.

$ deno clean
Removed /home/scarf/.cache/deno (1081 files, 50.57MB)
$ deno task changelog --since "1 week ago" --until 2024-09-30
# (works, output truncated)

# edit read_commits.ts for a bit

$ deno task changelog --since "1 week ago" --until 2024-09-30
Task changelog deno run -A scripts/changelog/changelog_reddit.ts "--since" "1 week ago" "--until" "2024-09-30"
error: JSR package manifest for '@david/dax' failed to load. trailing characters at line 13 column 1
$ deno clean
Removed /home/scarf/.cache/deno (1181 files, 51.38MB)
$ deno task changelog --since "1 week ago" --until 2024-09-30
# (works, output truncated)

@dsherret
Copy link
Member

dsherret commented Oct 1, 2024

Kill all running deno processes and try again. There's probably an lsp using the new version that's caching stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants