Don't spam "multiple definitions" messages (1)
Right now if an entity or page is multiply defined, error markers will pop up everywhere, not just on the definitions but also on all (or most?)
Submitted by Lennart Kats on 6 November 2010 at 14:41module
andapplication
headers. Confusing.
Issue Log
Danny pointed out that some of the machines showed this message, which probably explains why many of these errors appear at the first line of a file:
Term is not associated with an AST node, cannot report feedback message: Define([],“eventEdit”,[Arg(“e”,SimpleSort(“Event”))],None,TemplateBody([])) - Template with signature eventEdit(Event) is defined multiple times.java.lang.RuntimeException: Term is not associated with an AST node, cannot report feedback message: Define([],“eventEdit”,[Arg(“e”,SimpleSort(“Event”))],None,TemplateBody([])) - Template with signature eventEdit(Event) is defined multiple times.
at org.strategoxt.imp.runtime.Environment.logException(Environment.java:334)
at org.strategoxt.imp.runtime.parser.ast.AstMessageHandler.addMarker(AstMessageHandler.java:101)
at org.strategoxt.imp.runtime.services.StrategoObserver.feedbackToMarkers(StrategoObserver.java:418)
at org.strategoxt.imp.runtime.services.StrategoObserver.presentToUser(StrategoObserver.java:380)
at org.strategoxt.imp.runtime.services.StrategoObserver.update(StrategoObserver.java:308)
at org.strategoxt.imp.runtime.services.StrategoObserverBackgroundUpdateJob.analyze(StrategoObserverBackgroundUpdateJob.java:71)
at org.strategoxt.imp.runtime.services.StrategoAnalysisQueue$UpdateJob.run(StrategoAnalysisQueue.java:88)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
This can be addressed in NBL-based reimplementation of the compiler.
Log in to post comments