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

Decoder commands are not working within Bazel codebases #7065

Open
susliko opened this issue Dec 24, 2024 · 0 comments
Open

Decoder commands are not working within Bazel codebases #7065

susliko opened this issue Dec 24, 2024 · 0 comments
Labels
bazel bug Something that is making a piece of functionality unusable

Comments

@susliko
Copy link
Contributor

susliko commented Dec 24, 2024

Describe the bug

Commands like Show decompiled with CFR or Show decoded tasty fail to execute.

Steps to reproduce (VS Code):

  • Clone repo with minimal Bazel project
  • Import build into the editor
  • Go to any Scala file (e.g. C.scala), invoke command "Metals: show decompiled with CFR"
  • Receive an error like File file:///home/user/.cache/bazel/_bazel_user/.../execroot/__main__/bazel-out/k8-fastbuild/bin/core/c.jar/c/C$.class doesn't exist

Same goes for nvim setup. But error is different: [nvim-metals] Cannot run program "/path/to/java" (in directory "/home/user/.cache/bazel/_bazel_user/.../execroot/__main__/bazel-out/k8-fastbuild/bin/core/c.jar"): error=20, Not a directory

Meanwhile c.jar is there and can be analyzed if a right command is executed.

Expected behavior

Class/tasty files can be explored without errors

Operating system

Linux

Editor/Extension

VS Code

Version of Metals

v1.4.2

Extra context or search terms

No response

@tgodzik tgodzik added bug Something that is making a piece of functionality unusable bazel labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bazel bug Something that is making a piece of functionality unusable
Projects
Status: Triage
Development

No branches or pull requests

2 participants