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

Bloop swallows info-level diagnostics #2859

Open
keynmol opened this issue Apr 16, 2024 · 1 comment
Open

Bloop swallows info-level diagnostics #2859

keynmol opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@keynmol
Copy link
Contributor

keynmol commented Apr 16, 2024

// macro.scala
import scala.quoted.*

inline def showMeTheMoney = ${showMeTheMoneyImpl()}

def showMeTheMoneyImpl()(using q: Quotes) = 
  q.reflect.report.info("Here's the money")
  Expr(1)
// test.scala
@main def hello = 
  showMeTheMoney
$ scli compile .
Compiling project (Scala 3.4.1, JVM (21))
Compiled project (Scala 3.4.1, JVM (21))

$ scli compile . --server=false
-- Info: /private/var/folders/rv/tdh6r2xx2b7by3z590lq8vrm0000gn/T/tmp.KoVMG2qOmj/test.scala:2:2
2 |  showMeTheMoney
  |  ^^^^^^^^^^^^^^
  |  Here's the money
@keynmol keynmol added the bug Something isn't working label Apr 16, 2024
@tgodzik
Copy link
Member

tgodzik commented Apr 16, 2024

This might be related to #2530 and I think it's actually a problem within Scala CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants