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

ERROR Flag -classpath set repeatedly #3766

Closed
ckipp01 opened this issue Mar 28, 2022 · 1 comment · Fixed by scalacenter/bloop#1721
Closed

ERROR Flag -classpath set repeatedly #3766

ckipp01 opened this issue Mar 28, 2022 · 1 comment · Fixed by scalacenter/bloop#1721
Labels
presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3

Comments

@ckipp01
Copy link
Member

ckipp01 commented Mar 28, 2022

Describe the bug

I've been having a fair amount of issues with Metals recently when working in the Dotty codebase. Mainly it just stops offering goto defintions, but I don't see any issues about missing semanticdb or the normal stuff. All that to say I've been paying more attention to the logs recently and I see a ton of:

2022.03.28 20:04:56 INFO  time: compiled tasty-core-test in 0.77s
2022.03.28 20:04:56 ERROR Flag -classpath set repeatedly
2022.03.28 20:04:56 ERROR Flag -classpath set repeatedly
2022.03.28 20:05:27 INFO  time: compiled scala3-compiler in 30s

The thing that sticks out is that there are ERROR here, but when I look in an simple Hello world project I also see them, but see them as WARNING.

2022.03.28 20:06:17 WARN  Flag -bootclasspath set repeatedly
2022.03.28 20:06:17 WARN  Flag -classpath set repeatedly
2022.03.28 20:06:47 INFO  time: compiled Sanity in 36s

I just wanted to throw this up here before I forgot.

Expected behavior

I'm not sure. Is this problematic? If not, then we shouldn't be getting errors for it. If it is, then we should fix it.

Operating system

macOS

Editor/Extension

No response

Version of Metals

0.11.2+112-e731195f-SNAPSHOT

Extra context or search terms

No response

@ckipp01 ckipp01 added Scala 3 Generic ticket relating to Scala 3 presentation-compiler Something relating to the presentation compiler labels Mar 28, 2022
@tgodzik
Copy link
Contributor

tgodzik commented Mar 28, 2022

I've seen it and it's most likely related to the Bloop update, but I was not able to pinpoint it exactly :/
Looks like maybe it's the way we invoke zinc 🤔 I need to take a look at it as well as some other issues I've been seeing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
presentation-compiler Something relating to the presentation compiler Scala 3 Generic ticket relating to Scala 3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants