Skip to main content



      Home
Home » Modeling » TMF (Xtext) » IGrammarAccess cannot be resolved. It is indirectly access(Eclipse builder failed)
IGrammarAccess cannot be resolved. It is indirectly access [message #1773644] Mon, 02 October 2017 06:17 Go to next message
Eclipse UserFriend
Hello

I observed the following error after migration from 2.11 to 2.12 version of XText framework

The type org.eclipse.xtext.IGrammarAccess cannot be resolved. It is indirectly referenced from required .class files	PSLRuntimeModule.java	/com.psl.atom.parent/com.psl.atom/src/com/psl/atom	line 1	Java Problem


For migration I created new project and I use maven as primary builder. I use Neon version of eclipse.
The required interface is located in plugin org.eclipse.xtext.
I've import new project to eclipse as maven project.
After importing I see the parent project and all my plugin on the first level
Also parent project contains all my plugin one more. This problem is observed on parent project.


[Updated on: Mon, 02 October 2017 06:22] by Moderator

Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773645 is a reply to message #1773644] Mon, 02 October 2017 06:22 Go to previous messageGo to next message
Eclipse UserFriend
maybe your workspace is broken. did you try another one?
in the project in eclipse a maven or a plugin project?
is org.eclipse.xtext on the path
?
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773646 is a reply to message #1773645] Mon, 02 October 2017 06:25 Go to previous messageGo to next message
Eclipse UserFriend
What is correct way for importing

Should I import project as maven project?


or


Should I import project as existing eclipse project?
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773647 is a reply to message #1773646] Mon, 02 October 2017 06:26 Go to previous messageGo to next message
Eclipse UserFriend
do you mean maven maven or tycho ?
in both cases importing as maven projects should work.
how does the package explorer look like?
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773648 is a reply to message #1773647] Mon, 02 October 2017 07:10 Go to previous messageGo to next message
Eclipse UserFriend
screenshot has been attached
  • Attachment: eclipse.png
    (Size: 163.32KB, Downloaded 97 times)
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773650 is a reply to message #1773648] Mon, 02 October 2017 07:27 Go to previous messageGo to next message
Eclipse UserFriend
this parent project makes no sense. it should not have any source folders at all.
maybe you have a broken classpath file checked in
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773651 is a reply to message #1773650] Mon, 02 October 2017 07:35 Go to previous messageGo to next message
Eclipse UserFriend
Do you mean .classpath file in root folder? (com.psl.atom.parent ?)
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773652 is a reply to message #1773651] Mon, 02 October 2017 07:39 Go to previous messageGo to next message
Eclipse UserFriend
yes the parent should no have source folders nor be a java project (.project file)
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773653 is a reply to message #1773652] Mon, 02 October 2017 07:57 Go to previous messageGo to next message
Eclipse UserFriend
I tried to create new empty project with xtext wizard. The wizard created .project file and pom.xml in parent folder, but did not create .classpath file. You wrote that .project file should not exists. May be you mean .classpath file should not exists?
  • Attachment: mydsl.png
    (Size: 83.84KB, Downloaded 93 times)

[Updated on: Mon, 02 October 2017 08:00] by Moderator

Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773654 is a reply to message #1773653] Mon, 02 October 2017 08:12 Go to previous messageGo to next message
Eclipse UserFriend
no w wrote i should not conain java & xtext nature nor their builders
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773655 is a reply to message #1773654] Mon, 02 October 2017 08:24 Go to previous message
Eclipse UserFriend
in my parent folder there was .classpath file that was generated by EMF while it created code of new model for my project due to an error in configuration. I removed this file. Problem is not observed

[Updated on: Mon, 02 October 2017 08:25] by Moderator

Previous Topic:Add Xtext editor in SWT/Swing java application
Next Topic:Cyclic linking detected in Maven build
Goto Forum:
  


Current Time: Sun Jul 27 14:39:30 EDT 2025

Powered by FUDForum. Page generated in 0.04471 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top