You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gedochao opened this issue
Sep 26, 2022
· 1 comment
Labels
bugSomething isn't workingduplicateThis issue or pull request already existsSIP-46All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.
Known workarounds
Just disable Bloopy by passing --server=false to see the extra compiler info coming from -explain.
▶ scala-cli --scala-snippet 'xyz' -O -explain --server=false
-- [E103] Syntax Error: ~/IdeaProjects/scala-cli-tests/.scala-build/project_fc57e0b39b_fc57e0b39b-4c13fbdfc6/src_generated/main/scala-snippet.scala:1:0
1 |xyz
|^^^
|Illegal start of toplevel definition
|-----------------------------------------------------------------------------
| Explanation (enabled by `-explain`)
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| A statement is an import or export, a definition or an expression.
| Some statements are only allowed in certain contexts
-----------------------------------------------------------------------------
1 error found
Compilation failed
Expected behaviour
There should be a way to view the extra explanations coming from -explain without disabling Bloop.
The text was updated successfully, but these errors were encountered:
Gedochao
added
bug
Something isn't working
SIP-46
All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.
duplicate
This issue or pull request already exists
labels
Sep 26, 2022
bugSomething isn't workingduplicateThis issue or pull request already existsSIP-46All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.
Version(s)
0.1.14
Describe the bug
The
-explain
compiler flag is not respected by Scala CLI unless passed alongside--server=false
(disabling Bloop).To Reproduce
Known workarounds
Just disable Bloopy by passing
--server=false
to see the extra compiler info coming from-explain
.Expected behaviour
There should be a way to view the extra explanations coming from
-explain
without disabling Bloop.The text was updated successfully, but these errors were encountered: