Skip to content

"Semanticdb is required for code" when semanticdb is enabledΒ #8154

@matthughes

Description

@matthughes

Describe the bug

JVM: OpenJDK 21.0.10
Bloop: 2.0.18
Metals: 1.6.5
SBT: 1.12.0
Scala: 3.7.4

My project now reports the following in Metals Doctor:

"Semanticdb is required for code navigation to work correctly in your project, however the Java semanticdb plugin doesn't seem to be enabled. Please enable the Java semanticdb plugin for this project in order for code navigation to work correctly"

Image

Yet if you look in SBT or even the bloop files you see semanticdb is enabled:

                "-Xsemanticdb",
                "-semanticdb-target",
                "/Users/MHughe008/work/vise/onyx-clean/common/jvm/target/scala-3.7.4/meta"
onyx-root(main)> show commonJVM/semanticdbEnabled
[info] true
onyx-root(main)> show commonJVM/semanticdbVersion
[info] 4.14.2
onyx-root(main)> show commonJVM/semanticdbOptions
[info] * -Xsemanticdb

I recently did a brew update which pulled in idk 21.0.10 (from 21.0.9) and thought that might have something to do with it but I downgraded and the problem persists. This might just be a false positive as the code seems to compile and link fine.

Expected behavior

No response

Operating system

macOS

Editor/Extension

VS Code

Version of Metals

v1.6.5

Scala version/s

3.7.4

Extra context or search terms

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementNot a bug or a feature, but something general we can improve

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions