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

Ammonite crashes with "scala.MatchError: ArraySeq()" in highlightFrame in Repl.scala #1520

Open
edwardcwang opened this issue Jul 19, 2024 · 0 comments

Comments

@edwardcwang
Copy link

Steps to reproduce:

wget https://github.com/com-lihaoyi/Ammonite/releases/download/3.0.0-M2/2.13-3.0.0-M2 -O amm
chmod +x amm
wget https://github.com/edwardcwang/chisel-single-file/raw/chisel6/GCD.scala
./amm -p GCD.scala -c "main()"

Expected behaviour: The script runs successfully without Ammonite crashing.

Error message:

$ ./amm -p GCD.scala -c "main()"
Compiling /tmp/(console)
Exception in thread "main" scala.MatchError: ArraySeq() (of class scala.collection.immutable.ArraySeq$ofRef)
	at ammonite.repl.Repl$.highlightFrame(Repl.scala:295)
	at ammonite.repl.Repl$.$anonfun$showException$2(Repl.scala:319)
	at scala.collection.ArrayOps$.map$extension(ArrayOps.scala:935)
	at ammonite.repl.Repl$.$anonfun$showException$1(Repl.scala:319)
	at scala.collection.immutable.List.map(List.scala:247)
	at scala.collection.immutable.List.map(List.scala:79)
	at ammonite.repl.Repl$.showException(Repl.scala:316)
	at ammonite.MainRunner.handleWatchRes(MainRunner.scala:101)
	at ammonite.MainRunner.watchLoop(MainRunner.scala:59)
	at ammonite.MainRunner.runCode(MainRunner.scala:74)
	at ammonite.AmmoniteMain$.main0(AmmoniteMain.scala:94)
	at ammonite.AmmoniteMain$.main(AmmoniteMain.scala:31)
	at ammonite.AmmoniteMain.main(AmmoniteMain.scala)
@edwardcwang edwardcwang changed the title Ammonite crashes with scala.MatchError: ArraySeq in highlightFrame Ammonite crashes with "scala.MatchError: ArraySeq()" in highlightFrame in Repl.scala Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant