Skip to content
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

rocker-compiler.conf is in incorrect folder #132

Open
huw0 opened this issue Feb 22, 2020 · 1 comment
Open

rocker-compiler.conf is in incorrect folder #132

huw0 opened this issue Feb 22, 2020 · 1 comment

Comments

@huw0
Copy link

huw0 commented Feb 22, 2020

When running

RockerRuntime.getInstance().setReloading(true);

I get the stacktrace...

Exception in thread "main" java.lang.RuntimeException: Unable to activate Rocker template reloading. Unable to find /rocker-compiler.conf on classpath. Did one get generated during the build?
	at com.fizzed.rocker.runtime.RockerRuntime.buildReloadingRockerBootstrap(RockerRuntime.java:98)
	at com.fizzed.rocker.runtime.RockerRuntime.setReloading(RockerRuntime.java:67)
	at Main.main(Main.java:5)

The cause appears to be because rocker-compiler.conf is placed in ./build/classes/main/rocker-compiler.conf. Copying this file to $buildDir/generated-src/rocker which is where the README says this file should be generated appears to fix the issue.

A full reproducer is here: https://github.com/huw0/rocker-classpath-issue
I think this may also be the issue described in #77, although the issue there is with maven rather than gradle

@dector
Copy link

dector commented Dec 8, 2020

Still not merged? 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants