viatra / EMF-IncQuery

This repository is only kept for historic reasons. All development happens on eclipse.org
http://eclipse.org/viatra
13 stars 4 forks source link

Xtext error while writing pattern arguments #139

Closed szarnyasg closed 12 years ago

szarnyasg commented 12 years ago

Problem: Xtext validation throws error while the pattern arguments

Steps to reproduce

Error 1 (seen in a popup window) An internal error occurred during: "XtextReconcilerJob". org.eclipse.xtext.common.types.util.TypeReferences.getTypeForName(Ljava/lang/Class;Lorg/eclipse/emf/ecore/EObject;[Lorg/eclipse/xtext/common/types/JvmTypeReference;)Lorg/eclipse/xtext/common/types/JvmTypeReference;

Error 2 (seen in the Problems View) The project was not built due to "A resource exists with a different case: '/MyProj/bin/MyPckg'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent (I only typed each file name once, so no chance of confusing cases there).

istvanrath commented 12 years ago

A remark: I cannot reproduce this issue, and I have Xtext v. 2.3.0-201205081025, while Gábor has 2.3.0-201205220958!

istvanrath commented 12 years ago

I'm assigning this to @ujhelyiz as he is the most familiar with Xtext headaches...

ujhelyiz commented 12 years ago

@szarnyasg Could you please test it with the newest ci build created with Xtext 2.3RC1?

istvanrath commented 12 years ago

I cannot do a proper update:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.modeling, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.base,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.base.itc,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.databinding.runtime,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.databinding.runtime.source,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.runtime,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.runtime.source,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.tooling.core,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.tooling.generator,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.tooling.generator.databinding,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.tooling.generator.databinding.source,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.tooling.generator.ui,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.tooling.generator.validation,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.tooling.generator.validation.source,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.tooling.gui,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.validation.runtime,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.validation.runtime.source,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.validation.runtime.ui,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.emf.incquery.validation.runtime.ui.source,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.gtasm.patternmatcher.incremental.rete,3.3.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.patternlanguage.core,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.patternlanguage.core.source,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.patternlanguage.core.ui,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.patternlanguage.core.ui.source,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.patternlanguage.emf,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.patternlanguage.emf.source,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.patternlanguage.emf.ui,0.6.0.201205231235
No repository found containing: osgi.bundle,org.eclipse.viatra2.patternlanguage.emf.ui.source,0.6.0.201205231235
No repository found containing: org.eclipse.update.feature,org.eclipse.viatra2.emf.incquery.databinding.feature,0.6.0.201205231235
No repository found containing: org.eclipse.update.feature,org.eclipse.viatra2.emf.incquery.databinding.tooling.feature,0.6.0.201205231235
No repository found containing: org.eclipse.update.feature,org.eclipse.viatra2.emf.incquery.runtime.feature,0.6.0.201205231235
No repository found containing: org.eclipse.update.feature,org.eclipse.viatra2.emf.incquery.sdk.feature,0.6.0.201205231235
No repository found containing: org.eclipse.update.feature,org.eclipse.viatra2.emf.incquery.validation.feature,0.6.0.201205231235
No repository found containing: org.eclipse.update.feature,org.eclipse.viatra2.emf.incquery.validation.tooling.feature,0.6.0.201205231235
szarnyasg commented 12 years ago

@ujhelyiz It's working! The XtextReconcilerJob is gone, and the Query Explorer works fine.

The other error (The project was not built due to "A resource exists with a different case: '/MyProj/bin/MyPckg'.".) persisted, though. If I delete the bin directory from the file system, it's created again with only the .eiq file in it and the error message stays there.

ujhelyiz commented 12 years ago

@istvanrath I tried to install the same version from the update site, and it worked for me. Did you not have a net outage during install?

@szarnyasg Thanks, thats a different issue. Because the Xtext generator has issues with uppercase'd package names, we changed the generator that it always uses a lowercase characters. Now I updated the code that it prevents the use of uppercase characters in eiq package names both in the wizard and in the eiq files...

In fifteen minutes there will be a new build that contains the fixes.

szarnyasg commented 12 years ago

@ujhelyiz installed the new build, it throws the appropriate error message now. Thanks.

istvanrath commented 12 years ago

It is now working fine for me too (with the release update site).