-
Notifications
You must be signed in to change notification settings - Fork 324
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
Towards simplifying runtime-compiler
dependencies
#8894
Conversation
We need to solve the serialization manager issue. Thinking about it, it looks like the best way to solve it is to rewrite caching as requested by and remember that a single |
build.sbt
Outdated
.dependsOn(`runtime-instrument-repl-debugger`) | ||
.dependsOn(`runtime-instrument-runtime-server`) | ||
.dependsOn(`runtime-language-epb`) | ||
.dependsOn(LocalProject("runtime-instrument-common")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally, I have rewritten runtime
to LocalProject("runtime")
, because sbt was giving me some error. Is this a similar case? If not, let's rather stick with the backtick notation - that gives me navigation capabilities in my IDE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the same case. A cyclic reference between lazy val
projects.
I tend to believe we should move integration tests from runtime
to runtime-fat-jar
project and avoid these vicious circles of project dependencies...
runtime-compiler
dependencies on Jacksonruntime-compiler
dependencies on Jackson
runtime-compiler
dependencies on Jacksonruntime-compiler
dependencies on Jackson
runtime-compiler
dependencies on Jacksonruntime-compiler
dependencies
@@ -578,9 +578,12 @@ private class DefaultPackageRepository( | |||
val cache = ensurePackageIsLoaded(libraryName).toOption.flatMap { _ => | |||
if (!loadedLibraryBindings.contains(libraryName)) { | |||
loadedPackages.get(libraryName).flatten.foreach(loadDependencies(_)) | |||
val cachedBindingOption = context | |||
val cachedBindingOption = None | |||
/* TBD: this has to be called somehow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hubertp discovered this commented out piece of code. Thank you!
Pull Request Description
Initial step to address #8888. Splits
polyglot-api
(which has inherent dependencies on Jackson) into two modules. One of them is calledengine-common
and has no dependencies on external libraries. Dependencies ofruntime*
projects changed toengine-common
.Not Part of this PR
The suggestion builder functionality has to go away from
engine/runtime
. The idea is to create a new project calledruntime-suggestions
in one of the subsequent PRs. Such a change is left out from the PR to keep it smaller, and to minimize conflicts during merging. There is serialization manager issue to be solved.Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,