Pattern already set in the Map

29 views
Skip to first unread message

Jan Reimann

unread,
Jan 16, 2013, 8:17:48 AM1/16/13
to incquer...@googlegroups.com
Hi guys,
I just downloaded a new Eclipse 4.2 SR1 instance and tried to set it up. IncQuery belongs to my setup :) Since your doc (https://viatra.inf.mit.bme.hu/incquery/getting_started) denotes that IncQuery was tested only with Xtext 2.3 I installed Xtext 2.3.0 from http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/. Then I installed IncQuery from http://viatra.inf.mit.bme.hu/update/incquery/. But what happens now when I start my Eclipse is that the error log is filled with lots of following messages:

Pattern already set in the Map: eSuperTypes
Pattern already set in the Map: eRawType
...
Exception during Extension/Package ensure Phase
java.lang.IllegalArgumentException: Only existing, open plug-in projects are supported by the generator.
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
    at org.eclipse.viatra2.emf.incquery.core.project.ProjectGenerationHelper.ensureExtensions(ProjectGenerationHelper.java:549)
...
Exception during Normal Clean!
java.lang.IllegalArgumentException: Only existing, open plug-in projects are supported by the generator.
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
    at org.eclipse.viatra2.emf.incquery.core.project.ProjectGenerationHelper.removePackageExports(ProjectGenerationHelper.java:432)
...

All errors come from org.eclipse.viatra2.patternlanguage.emf.ui. It seems that the errors occur when the workspace is built. Can you help me how to fix this?

best regards,
Jan
and

Ujhelyi Zoltán

unread,
Jan 16, 2013, 8:32:05 AM1/16/13
to EMF-IncQuery Users on behalf of Jan Reimann
Hi,

just a quick, clarification question. Did you close by any chance a project generated from your incquery project (e.g. databinding or validation projects)? If yes, then simply open them, and the second issue should be fixed. We introduced this feature as trying to generate code into closed project had some serious side-effects, so our code generator reports these closed projects, but does not generate the code for them.

For the other issue ("pattern already set"), I'd suggest doing a clean for your incquery projects (available in the Project menu of Eclipse) - the issues should go away.

I hope, this is helpful,
Zoltán
-- Zoltán Ujhelyi
https://www.inf.mit.bme.hu/en/members/ujhelyiz

Fault Tolerant Systems Research Group
Budapest University of Technology and Economics
> --
> You received this message because you are subscribed to the Google Groups "EMF-IncQuery Users" group.
> To post to this group, send email to incquer...@googlegroups.com.
> To unsubscribe from this group, send email to incquery-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msg/incquery-users/-/Ye5XJ8NqxL0J.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Jan Reimann

unread,
Jan 16, 2013, 11:20:56 AM1/16/13
to incquer...@googlegroups.com
Thanks Zoltán, that did the job.

best regards,
Jan
Reply all
Reply to author
Forward
0 new messages