[ identity crisis | warning ] Cannot copy origin from
NaBL2 started giving errors on origins.
(From: https://github.com/metaborg/nabl/blob/master/org.metaborg.meta.nabl2.shared/trans/nabl2/shared/ast.str#L44)My ast has origins, I’m checking that with at the end of my desugaring:
warning-on-missing-origin: term -> <id> with terms-missing-origin;filter(not(?[]));map(debug(|"Warning: Term missing origin")) terms-missing-origin = collect-all(not(origin-offset))
Errors in console:
16:37 | INFO | stderr - [ identity crisis | warning ] Cannot copy origin from 16:37 | INFO | stderr - "NodeParentRelation" 16:37 | INFO | stderr - [ identity crisis | warning ] Cannot copy origin from 16:37 | INFO | stderr - "parentRelation" 16:37 | INFO | stderr - [ identity crisis | warning ] Cannot copy origin from 16:37 | INFO | stderr - "childrenRelation" 16:37 | INFO | stderr - [ identity crisis | warning ] Cannot copy origin from 16:37 | INFO | stderr - "parent" 16:37 | INFO | stderr - [ identity crisis | warning ] Cannot copy origin from 16:37 | INFO | stderr - "children" 16:37 | INFO | stderr - [ identity crisis | warning ] Cannot copy origin from 16:37 | INFO | stderr - "children" 16:37 | INFO | stderr - [ identity crisis | warning ] Cannot copy origin from 16:37 | INFO | stderr - "parent"
(This causes various further errors, such as names not resolving.)
Spoofax version:
Eclipse: org.eclipse.platform.ide 4.6.2.M20161124-1400 Spoofax: org.metaborg.spoofax.eclipse 2.2.0.20170201-122621-master System: Mac OS X x86_64 10.12.2
Spoofax version that did not have this error:
Submitted by Daco Harkes on 1 February 2017 at 16:41
Jan 31 16:23
Issue Log
In the commits on Feb 1st, the only line that was changed that has to do with origins is: https://github.com/metaborg/nabl/blob/afec6d595ff8873db0f3887589f6798939a47b1a/org.metaborg.meta.nabl2.java/src/main/java/org/metaborg/meta/nabl2/stratego/StrategoTerms.java#L156
Change: https://github.com/metaborg/nabl/compare/8401c5a59b9a351b0286f078526249bf40b7cdf4…afec6d595ff8873db0f3887589f6798939a47b1a#diff-cca6fada3340679afc012686a68ce7abL155
This has been resolved since, if I am correct.
Log in to post comments