enso/project
Hubert Plociniczak 31e3f39c55
Suppress pointless warnings coming from SBT (#3499)
This change introduces a custom LogManager for console that allows for
excluding certain log messages. The primarily reason for introducing
such LogManager/Appender is to stop issuing hundreds of pointless
warnings coming from the analyzing compiler (wrapper around javac) for
classes that are being generated by annotation processors.

The output looks like this:
```
[info] Cannot install GraalVM MBean due to Failed to load org.graalvm.nativebridge.jni.JNIExceptionWrapperEntryPoints
[info] compiling 129 Scala sources and 395 Java sources to /home/hubert/work/repos/enso/enso/engine/runtime/target/scala-2.13/classes ...
[warn] Unexpected javac output: warning: File for type 'org.enso.interpreter.runtime.type.ConstantsGen' created in the last round will not be subject to annotation processing.
[warn] 1 warning.
[info] [Use -Dgraal.LogFile=<path> to redirect Graal log output to a file.]
[info] Cannot install GraalVM MBean due to Failed to load org.graalvm.nativebridge.jni.JNIExceptionWrapperEntryPoints
[info] foojavac Filer
[warn] Could not determine source for class org.enso.interpreter.node.expression.builtin.number.decimal.CeilMethodGen
[warn] Could not determine source for class org.enso.interpreter.node.expression.builtin.resource.TakeNodeGen
[warn] Could not determine source for class org.enso.interpreter.node.expression.builtin.error.ThrowErrorMethodGen
[warn] Could not determine source for class org.enso.interpreter.node.expression.builtin.number.smallInteger.MultiplyMethodGen
[warn] Could not determine source for class org.enso.interpreter.node.expression.builtin.warning.GetWarningsNodeGen
[warn] Could not determine source for class org.enso.interpreter.node.expression.builtin.number.smallInteger.BitAndMethodGen
[warn] Could not determine source for class org.enso.interpreter.node.expression.builtin.error.ErrorToTextNodeGen
[warn] Could not determine source for class org.enso.interpreter.node.expression.builtin.warning.GetValueMethodGen
[warn] Could not determine source for class org.enso.interpreter.runtime.callable.atom.AtomGen$MethodDispatchLibraryExports$Cached
....
```

The output now has over 500 of those and there will be more. Much more
(generated by our and Truffle processors).
There is no way to tell SBT that those are OK. One could potentially
think of splitting compilation into 3 stages (Java processors, Java and
Scala) but that will already complicate the non-trivial build definition
and we may still end up with the initial problem.
This is a fix to make it possible to get reasonable feedback from
compilation without scrolling mutliple screens *every single time*.

Also fixed a spurious warning in javac processor complaining about
creating files in the last round.

Related to https://www.pivotaltracker.com/story/show/182138198
2022-06-01 13:50:46 +00:00
..
src/main/scala/licenses Make Legal Notices Order Deterministic (#1891) 2021-07-22 13:00:23 +02:00
BenchTasks.scala Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
build.properties Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
BuildInfo.scala Fix dev version check (#3265) 2022-02-15 16:34:33 +01:00
Cargo.scala Self-hosted Engine CI for Windows and Linux (#3182) 2021-12-27 17:56:35 +01: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 Additional sbt commands to build stdlib packages (#3431) 2022-05-11 10:12:18 +00:00
Editions.scala Nightly proccess preparations: Setting Enso version through the environment (#3241) 2022-02-07 15:14:32 +01:00
EnvironmentCheck.scala Self-hosted Engine CI for Windows and Linux (#3182) 2021-12-27 17:56:35 +01:00
FixInstrumentsGeneration.scala Upgrade GraalVM to 21.0 (#1487) 2021-02-22 13:32:55 +00:00
FrgaalJavaCompiler.scala Integrate Frgaal in Java libs (#3433) 2022-05-11 11:21:01 +00:00
GatherLicenses.scala Implement the first part of the database library (#1475) 2021-02-25 13:48:18 +00:00
GenerateAST.scala Self-hosted Engine CI for Windows and Linux (#3182) 2021-12-27 17:56:35 +01:00
GenerateFlatbuffers.scala New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
LauncherShimsForTest.scala Self-hosted Engine CI for Windows and Linux (#3182) 2021-12-27 17:56:35 +01:00
LibraryManifestGenerator.scala Preinstalling With Dependencies (#1981) 2021-11-23 11:51:17 +03:00
NativeImage.scala Upgrade Truffle and Graal to Version 21.3.0 (#3258) 2022-02-11 19:05:13 +03:00
Platform.scala Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
plugins.sbt Apply automatic formatting prior to turning on checks (#3405) 2022-04-19 12:34:34 +02:00
RecompileParser.scala Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
StdBits.scala Include only runtime dependencies in std-bits (#3445) 2022-05-12 10:44:46 +00:00
VerifyReflectionSetup.scala Fix the project manager reflection configuration (#1394) 2021-01-14 10:46:01 +00:00
WithDebugCommand.scala Qualified names & uppercase name resolution (#1062) 2020-08-05 22:16:44 +02:00