Option -Xprompt broken within interactive sbt sessions #22239
Labels
area:dx
Issues tied to the developer experience when working on the compiler.
area:tooling
itype:bug
Compiler version
3.6.4-RC1-bin-SNAPSHOT-nonbootstrapped-git-4c76323
Minimized code
Passing
-Xprompt
allows us to interactively obtain the stacktrace when the compiler prints an error message (very very useful!). However, that does not work properly from within ansbt
session, e.g., when working on the compiler itself. Say we have an erroneous program infoo.scala
, and invokescalac -Xprompt foo.scala
:Output
With a precompiled
scalac
binary, it'll work fine (can pressa
,s
, orr
and it does its magic), but invoking thesbt
task of the same name in the compiler code base will not accept any input.Bonus: In a "decent" terminal emulator (e.g., iterm2) we can abort with
ctrl-c
, but using the VSCode builtin terminal (connecting withsbt --client
to Metal'ssbt
instance), not even that will work and we are completely stuck (need to kill VSCode & orphanjava
processes left behind).Expectation
It works from within an
sbt
session just the same as with the precompiled binary.Edit: + it should also work with
scala3-bootstrapped/scalac
The text was updated successfully, but these errors were encountered: