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

sbt + Scala 3 prints error summary twice #6687

Closed
reibitto opened this issue Oct 8, 2021 · 3 comments · Fixed by scala/scala3#13843
Closed

sbt + Scala 3 prints error summary twice #6687

reibitto opened this issue Oct 8, 2021 · 3 comments · Fixed by scala/scala3#13843

Comments

@reibitto
Copy link

reibitto commented Oct 8, 2021

steps

  • Create a Scala 3 project with sbt new scala/scala3.g8
  • Intentionally introduce a compile error, like trying to call a method that doesn't exist.

problem

[error] one error found gets printed twice. Example output:

[info] compiling 1 Scala source to C:\reference\scala-3-project-template\target\scala-3.0.2\classes ...
[error] -- [E006] Not Found Error: C:\reference\scala-3-project-template\src\main\scala\Main.scala:4:2
[error] 4 |  someMethodThatDoesNotExist
[error]   |  ^^^^^^^^^^^^^^^^^^^^^^^^^^
[error]   |  Not found: someMethodThatDoesNotExist
[error] one error found
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 0 s, completed Oct 9, 2021, 1:28:55 AM

expectation

The error summary should only be printed once

notes

I confirmed that using the same project with Scala 2 does not have this problem.

@reibitto reibitto added the Bug label Oct 8, 2021
@er1c
Copy link
Contributor

er1c commented Oct 8, 2021

Confirmed this still happens in 1.6.0-M1

@eed3si9n
Copy link
Member

Could someone report to lampepfl/dotty as well plz?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants