enso/lib/scala
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
..
akka-native/src/main Project Manager Native Image (#1318) 2020-12-09 14:58:11 +01:00
cli/src Getting and Setting Library Metadata (#1967) 2021-08-20 10:23:05 +02:00
connected-lock-manager/src Make Library-Related Operations Not Block the Actor System (#1975) 2021-08-30 15:51:38 +02:00
core-definition Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
distribution-manager/src/main/scala/org/enso/distribution Implement library/preinstall (Without Dependencies Yet) (#1972) 2021-08-27 14:01:13 +02:00
docs-generator Fix multiline code docparser (#3379) 2022-04-06 04:39:58 +00:00
downloader/src Revert "Revert "Library Publishing MVP (#1898)"" (#1933) 2021-08-09 16:00:04 +02:00
edition-updater/src Update the Language Server API (#3308) 2022-03-03 16:28:04 +03:00
edition-uploader/src/main/scala/org/enso/build Updating Editions (#1944) 2021-08-12 16:55:23 +02:00
editions/src Update the Language Server API (#3308) 2022-03-03 16:28:04 +03:00
flexer Bump scalac to 2.13.5 (#1531) 2021-03-01 16:35:57 +00:00
graph Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
interpreter-dsl/src/main/java/org/enso/interpreter/dsl Suppress pointless warnings coming from SBT (#3499) 2022-06-01 13:50:46 +00:00
json-rpc-server Update profiling CLI arguments (#3461) 2022-05-24 16:01:26 +03:00
json-rpc-server-test Implement library/preinstall (Without Dependencies Yet) (#1972) 2021-08-27 14:01:13 +02:00
library-manager/src Add API for component groups (#3286) 2022-02-24 15:41:14 +03:00
library-manager-test/src Add API for component groups (#3286) 2022-02-24 15:41:14 +03:00
locking-test-helper/src/main/scala/org/enso/runtimeversionmanager/test Make Locking Thread-Safe (#1267) 2020-11-06 13:53:45 +01:00
logger Add a markdown style guide (#1022) 2020-07-21 13:59:40 +01:00
logging-service/src Update profiling CLI arguments (#3461) 2022-05-24 16:01:26 +03:00
logging-truffle-connector/src/main Dynamically Loading Libraries (#1826) 2021-07-06 00:27:14 +02:00
logging-utils/src Apply automatic formatting prior to turning on checks (#3405) 2022-04-19 12:34:34 +02:00
parser/src Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00
parser-service Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
pkg New IDE build script (#3466) 2022-05-23 04:16:04 +02:00
profiling-utils/src/main/scala/org/enso/profiling Update profiling CLI arguments (#3461) 2022-05-24 16:01:26 +03:00
project-manager Update profiling CLI arguments (#3461) 2022-05-24 16:01:26 +03:00
runtime-version-manager/src Fix dev version check (#3265) 2022-02-15 16:34:33 +01:00
runtime-version-manager-test/src Fix dev version check (#3265) 2022-02-15 16:34:33 +01:00
searcher/src Profile the language server (#3389) 2022-05-10 12:44:05 +00:00
syntax Apply automatic formatting prior to turning on checks (#3405) 2022-04-19 12:34:34 +02:00
task-progress-notifications/src/main/scala/org/enso/cli/task/notifications New Language Server API Implementations / Mocks (#1875) 2021-07-17 16:49:51 +02:00
testkit/src/main/scala/org/enso/testkit Fix cleanup in tests (#3195) 2021-12-16 17:15:28 +03:00
text-buffer/src Replace Rope with CharSequence when building suggestions (#3453) 2022-05-16 06:47:35 +00:00
version-output/src/main/scala/org/enso/version Bump SBT and Scalafmt (#1203) 2020-10-22 16:12:28 +02:00