You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] stack trace is suppressed; run last Compile / compileIncremental for the full output
[error] (Compile / compileIncremental) java.lang.AssertionError: assertion failed: position not set for {
[error] val ent$proxy2: io.getquill.Ent =
[error] {
[error] final class $anon() extends Object(), io.getquill.Ent("something") {}
[error] new $anon():io.getquill.Ent
[error] }:io.getquill.Ent
[error] "Foo"
Also note that this has to be a compile-from-scratch. If you compile the macros first and then 'test' in separate cycles (as is the case of Test is in src/main/scala) then the error will not happen.
Expectation
Compile should succeed.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Okay, this one is a bit more complex.
Start by creating a macro that declares some inline defs and then uses them:
Then define a macro that expects an input:
Then define a macro that does a simple field extraction:
Then define a macro to test these. Make sure it is in the same compilation path (i.e. when I put it into src/test/scala it will compile fine).
Compile it and voila!
I checked this into a branch of my pos_bug_reproduction repo:
https://github.com/deusaquilus/pos_bug_reproduction/tree/more_complex
Also note that this has to be a compile-from-scratch. If you compile the macros first and then 'test' in separate cycles (as is the case of Test is in src/main/scala) then the error will not happen.
Expectation
Compile should succeed.
The text was updated successfully, but these errors were encountered: