Skip to content

Java modules are not handled properly #2080

Open
@tgodzik

Description

@tgodzik

Copied from scalameta/metals#4847

Describe the bug
Actually, I was trying to create a sample project, for a more complicated bug, but then I noticed that my "minimal project" doesn't seem to work without any changes

https://github.com/JPro-one/HelloJPro.

Screenshot 2023-01-11 at 22 21 58

This is a pure Java project. The question is, is that supposed to work?
I'm asking because Metals it's a scala language server.

When I look into my other projects, the Java parts sometimes work with Metals/Bloop, and sometimes not.
But Metals/Bloop is always trying to compile it, so I guess it's in the scope of the project.
So, I thought I start by posting the most simple case as a bug report.

If you wonder why I post this, I usually have a lot of mixed Scala/Java projects.

Expected behavior
No response

Operating system
macOS

Editor/Extension
None

Version of Metals
v1.21.0

Extra context or search terms
No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA defect or misbehaviour.javaPull requests that update Java code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions