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

Crash when no verification files are provided #1625

Open
fengwz17 opened this issue Dec 20, 2024 · 0 comments
Open

Crash when no verification files are provided #1625

fengwz17 opened this issue Dec 20, 2024 · 0 comments

Comments

@fengwz17
Copy link

Following the installation instructions to compile on the newest commit (Commit 88e4de5).

sbt universal:stage

The binary file stainless-dotty generates successfully in the directory frontends/dotty/target/universal/stage/bin/, but if we want to run it with no files provided to test if it runs well:

./stainless-dotty

it crashes.

inox.package$FatalError: Error parsing arguments from List(-Yretain-trees, -color:never, -language:implicitConversions, -Wsafe-init, -cp:/stainless/frontends/dotty/target/universal/stage/lib/ch.epfl.lara.stainless-library-88e4de560a90940e3d1cd81ba3ed826ca9cd543a.jar:/stainless/frontends/dotty/target/universal/stage/lib/org.scala-lang.scala-library-2.13.15.jar:/stainless/frontends/dotty/target/universal/stage/lib/org.scala-lang.scala3-library_3-3.5.2.jar)
	at inox.package$FatalError$.apply(package.scala:24)
	at inox.Reporter.onFatal(Reporter.scala:47)
	at inox.Reporter.internalError(Reporter.scala:63)
	at inox.Reporter.internalError(Reporter.scala:115)
	at stainless.frontends.dotc.DottyDriver.files$lzyINIT1$$anonfun$2(DottyCompiler.scala:82)
	at scala.Option.getOrElse(Option.scala:201)
	at stainless.frontends.dotc.DottyDriver.files$lzyINIT1(DottyCompiler.scala:82)
	at stainless.frontends.dotc.DottyDriver.files(DottyCompiler.scala:80)
	at stainless.frontends.dotc.DottyCompiler$Factory$$anon$1.<init>(DottyCompiler.scala:190)
	at stainless.frontends.dotc.DottyCompiler$Factory.apply(DottyCompiler.scala:207)
	at stainless.frontend.package$.build(package.scala:43)
	at stainless.MainHelpers.newCompiler$1(MainHelpers.scala:209)
	at stainless.MainHelpers.main(MainHelpers.scala:210)
	at stainless.MainHelpers.main$(MainHelpers.scala:16)
	at stainless.Main$.main(Main.scala:3)
	at stainless.Main.main(Main.scala)

The script runs well when providing a file to "fill" the argument.

./stainless-dotty filename.scala

The latest version of the release Stainless 0.9.9.0 (2024-12-09) runs well even if no files provided, so I want to know if it is a bug or just a "feature" (to avoid empty arguments )?

It is probably caused by the commit (Commit b1b106f) since the error information is showed in the code frontends/dotty/src/main/scala/stainless/frontends/dotc/DottyCompiler.scala, line 183:

val flags = Seq("-Yretain-trees", "-color:never", "-language:implicitConversions", "-Wsafe-init", s"-cp:$cps") // -Ysafe-init is deprecated (SAM 21.08.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