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

Need a command to delete and regenerate snapshot text #7070

Closed
tribbloid opened this issue Dec 25, 2024 · 2 comments
Closed

Need a command to delete and regenerate snapshot text #7070

tribbloid opened this issue Dec 25, 2024 · 2 comments

Comments

@tribbloid
Copy link

Is your feature request related to a problem? Please describe.

yes, a metals bug: #7064

Describe the solution you'd like

The metals server frequently give the following error message:

2024.12.25 17:47:45 INFO  compiling core (94 scala sources)
2024.12.25 17:47:49 INFO  time: compiled core in 3.81s
2024.12.25 17:48:00 WARN  Could not load snapshot text for /home/peng/git/spookystuff/prover-commons/module/core/src/main/scala/ai/acyclic/prover/commons/graph/Engine.scala
2024.12.25 18:00:23 WARN  Could not load snapshot text for /home/peng/git/spookystuff/prover-commons/module/core/src/main/scala/ai/acyclic/prover/commons/graph/Engine.scala
2024.12.25 18:00:23 WARN  Could not load snapshot text for /home/peng/git/spookystuff/prover-commons/module/core/src/main/scala/ai/acyclic/prover/commons/graph/Engine.scala
2024.12.25 18:00:23 WARN  Could not load snapshot text for /home/peng/git/spookystuff/prover-commons/module/core/src/main/scala/ai/acyclic/prover/commons/graph/Engine.scala
2024.12.25 18:00:23 WARN  Could not load snapshot text for /home/peng/git/spookystuff/prover-commons/module/core/src/main/scala/ai/acyclic/prover/commons/graph/Engine.scala
2024.12.25 18:00:53 WARN  Could not load snapshot text for /home/peng/git/spookystuff/prover-commons/module/core/src/main/scala/ai/acyclic/prover/commons/graph/Engine.scala

this is problematic, snapshot text should be generated from source code, either manually or automatically

Describe alternatives you've considered

N/A

Additional context

No response

Search terms

snapshot text, metals

@tgodzik
Copy link
Contributor

tgodzik commented Dec 27, 2024

That's not possible, since the snapshot text relates to previously compiled piece of code, but we should rethink how this is reported and what fallbacks should be used in that case.

@tgodzik tgodzik transferred this issue from scalameta/metals-feature-requests Dec 27, 2024
@tgodzik
Copy link
Contributor

tgodzik commented Dec 27, 2024

Ach, looks like with the new scope this is a duplicate of #7064

@tgodzik tgodzik closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2024
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

No branches or pull requests

2 participants