enso/project
Radosław Waśko a2a1aefc14
Check cargo return value to ensure issues are reported back to SBT (#5588)
Before, any failures of the Rust-side of the parser build would be swallowed by sbt, for example if I add gibberish to the Rust code I will get:
<img width="474" alt="image" src="https://user-images.githubusercontent.com/1436948/217374050-fd9ddaca-136c-459e-932e-c4b9e630d610.png">

This is problematic, because when users are compiling in SBT they may get confusing errors about Java files not being found whereas the true cause is hard to track down because it is somewhere deep in the logs. We've run into this silent failure when setting up SBT builds together with @GregoryTravis today.

I suggest to change it so that once cargo fails, the build is failed with a helpful message - this way it will be easier to track down the issues.

With these changes we get:
<img width="802" alt="image" src="https://user-images.githubusercontent.com/1436948/217374531-707ae348-4c55-4d62-9a86-93850ad8086b.png">
2023-02-08 10:46:40 +00:00
..
src/main/scala/licenses Register instruments/language in their own compilation units to fix the sbt build issues (#3509) 2022-06-13 14:09:08 +00:00
BenchTasks.scala Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
build.properties Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
BuildInfo.scala Another attempt at M1 compilation (#3859) 2022-11-09 15:26:25 +00:00
Cargo.scala Check cargo return value to ensure issues are reported back to SBT (#5588) 2023-02-08 10:46:40 +00:00
CopyTruffleJAR.scala Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
CustomLogManager.scala Suppress pointless warnings coming from SBT (#3499) 2022-06-01 13:50:46 +00:00
Distribution.scala Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
DistributionPackage.scala Upgrade to GraalVM 22.3.0 (#3663) 2022-11-23 14:30:48 +00:00
Editions.scala Nightly proccess preparations: Setting Enso version through the environment (#3241) 2022-02-07 15:14:32 +01:00
EnvironmentCheck.scala Generate native image for engine-runner (#3638) 2022-09-22 14:45:10 +00:00
FrgaalJavaCompiler.scala Removing Unsafe.set_atom_field (#4023) 2023-01-09 13:39:14 +00:00
GatherLicenses.scala Register instruments/language in their own compilation units to fix the sbt build issues (#3509) 2022-06-13 14:09:08 +00:00
GenerateFlatbuffers.scala New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
LauncherShimsForTest.scala Check cargo return value to ensure issues are reported back to SBT (#5588) 2023-02-08 10:46:40 +00:00
LibraryManifestGenerator.scala Preinstalling With Dependencies (#1981) 2021-11-23 11:51:17 +03:00
NativeImage.scala Upgrade to GraalVM 22.3.0 (#3663) 2022-11-23 14:30:48 +00:00
Platform.scala Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
plugins.sbt Expanding Derived Columns and Expression Syntax (#3782) 2022-11-08 15:57:59 +00:00
RecompileParser.scala Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
StdBits.scala Duration type is a builtin type (#3759) 2022-10-14 18:08:08 +00:00
VerifyReflectionSetup.scala Fix the project manager reflection configuration (#1394) 2021-01-14 10:46:01 +00:00
WithDebugCommand.scala Tweaks to make benchmarking easier (#3961) 2022-12-08 20:30:19 +00:00