-
-
Notifications
You must be signed in to change notification settings - Fork 21
-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Second build in Gradle Daemon mode (2.4+) gives "engine 'memory' was not found" error #14
Comments
This may be related to https://discuss.gradle.org/t/problem-building-jbake-project-with-gradle-2-4/ - although in my case Stopping the Gradle Daemon and rerunning the build does seem to fix it. |
My experience of Gradle is extremely limited, however a bug has been raised for JBake v2.4.0 about the incremental rendering being broken which may be related... do you have the same issue when using JBake v2.3.2? |
I saw the problem with both 2.3.2 and 2.4.0 as I mentioned here: #15 |
Try to use my unofficial release of 0.2.1 and let me know if the error still exists. |
Another work-around is to use the The fundamental issue is the use of a static lifecycle call, specifically Changing the version -- or any non-trivial information about the build -- causes Gradle to tosses the old daemon. (Since it needs to recompile the build file, having the daemon "hot loaded" doesn't help.) The right way to handle this kind of thing is to either explicitly control creation and destrunction of resources in your application's context (e.g., at the start and end of Fortunately there's no need to exlicitly call In jbake-org/jbake@4e9285f the offending line was commented out as part of providing "watch" support (which would be using classloaders in a similar way to the Gradle daemon) and has been merged to master, so the good news is that whenever v2.5 comes out this will be fixed. |
For what it's worth, I upgraded my local installation to use JBake 2.5.0-SNAPSHOT and this bug no longer manifests. |
…lugin#14 which prevents continuous build by grade
The full error is:
I'm seeing this intermittently (but more than half the time.) I've search documentation and googled for the error and can't figure out what I'm doing wrong. At the very least it's not a very helpful error message.
I can provide my
build.gradle
or my complete project if necessary.One more clue: It seems to always work immediately after I change the version of a dependency in
build.grade
but if a do arm -rf build
and then rerungradle jbake
I get the error again.The text was updated successfully, but these errors were encountered: