Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:17 Go to next message
Alex Gor is currently offline Alex GorFriend
Messages: 159
Registered: November 2014
Location: Russia
Senior Member
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 10:22]

Report message to a moderator

Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773645 is a reply to message #1773644] Mon, 02 October 2017 10:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
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
?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773646 is a reply to message #1773645] Mon, 02 October 2017 10:25 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 159
Registered: November 2014
Location: Russia
Senior Member
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 10:26 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
do you mean maven maven or tycho ?
in both cases importing as maven projects should work.
how does the package explorer look like?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773648 is a reply to message #1773647] Mon, 02 October 2017 11:10 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 159
Registered: November 2014
Location: Russia
Senior Member
screenshot has been attached
  • Attachment: eclipse.png
    (Size: 163.32KB, Downloaded 71 times)
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773650 is a reply to message #1773648] Mon, 02 October 2017 11:27 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
this parent project makes no sense. it should not have any source folders at all.
maybe you have a broken classpath file checked in


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773651 is a reply to message #1773650] Mon, 02 October 2017 11:35 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 159
Registered: November 2014
Location: Russia
Senior Member
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 11:39 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
yes the parent should no have source folders nor be a java project (.project file)

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773653 is a reply to message #1773652] Mon, 02 October 2017 11:57 Go to previous messageGo to next message
Alex Gor is currently offline Alex GorFriend
Messages: 159
Registered: November 2014
Location: Russia
Senior Member
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 67 times)

[Updated on: Mon, 02 October 2017 12:00]

Report message to a moderator

Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773654 is a reply to message #1773653] Mon, 02 October 2017 12:12 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
no w wrote i should not conain java & xtext nature nor their builders

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: IGrammarAccess cannot be resolved. It is indirectly access [message #1773655 is a reply to message #1773654] Mon, 02 October 2017 12:24 Go to previous message
Alex Gor is currently offline Alex GorFriend
Messages: 159
Registered: November 2014
Location: Russia
Senior Member
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 12:25]

Report message to a moderator

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


Current Time: Fri Apr 19 08:43:27 GMT 2024

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

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

Back to the top