Issue with CDT Generation (windows) [message #1790631] |
Wed, 13 June 2018 17:18 |
Sneha Sahu Messages: 20 Registered: June 2018 |
Junior Member |
|
|
1
---------------------------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_171
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64
org.eclipse.core.commands
Error
Wed Jun 13 19:04:36 CEST 2018
Problems occurred when invoking code from plug-in: "org.eclipse.core.commands".
java.lang.NullPointerException
at org.eclipse.papyrus.views.modelexplorer.ModelExplorerView$3.commandStackChanged(ModelExplorerView.java:250)
at org.eclipse.papyrus.infra.emf.gmf.command.NotifyingWorkspaceCommandStack$2.historyNotification(NotifyingWorkspaceCommandStack.java:143)
at org.eclipse.core.commands.operations.DefaultOperationHistory$2.run(DefaultOperationHistory.java:868)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.commands.operations.DefaultOperationHistory.notifyListeners(DefaultOperationHistory.java:857)
at org.eclipse.core.commands.operations.DefaultOperationHistory.notifyDone(DefaultOperationHistory.java:923)
at org.eclipse.core.commands.operations.DefaultOperationHistory.closeOperation(DefaultOperationHistory.java:1217)
at org.eclipse.ltk.internal.core.refactoring.UndoManager2.changePerformed(UndoManager2.java:164)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:264)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:305)
at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:96)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:216)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:86)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
---------------------------------------------------------------
2
---------------------------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_171
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64
org.eclipse.core.commands
Error
Wed Jun 13 19:04:36 CEST 2018
Problems occurred when invoking code from plug-in: "org.eclipse.core.commands".
java.lang.NullPointerException
at org.eclipse.papyrus.infra.ui.lifecycleevents.SaveAndDirtyService.fireIsDirtyChanged(SaveAndDirtyService.java:380)
at org.eclipse.papyrus.infra.ui.lifecycleevents.SaveAndDirtyService.access$0(SaveAndDirtyService.java:378)
at org.eclipse.papyrus.infra.ui.lifecycleevents.SaveAndDirtyService$1.commandStackChanged(SaveAndDirtyService.java:129)
at org.eclipse.papyrus.infra.emf.gmf.command.NotifyingWorkspaceCommandStack$2.historyNotification(NotifyingWorkspaceCommandStack.java:143)
at org.eclipse.core.commands.operations.DefaultOperationHistory$2.run(DefaultOperationHistory.java:868)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.commands.operations.DefaultOperationHistory.notifyListeners(DefaultOperationHistory.java:857)
at org.eclipse.core.commands.operations.DefaultOperationHistory.notifyDone(DefaultOperationHistory.java:923)
at org.eclipse.core.commands.operations.DefaultOperationHistory.closeOperation(DefaultOperationHistory.java:1217)
at org.eclipse.ltk.internal.core.refactoring.UndoManager2.changePerformed(UndoManager2.java:164)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:264)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:305)
at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:96)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:216)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:86)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
---------------------------------------------------------------
[Updated on: Sun, 22 July 2018 16:46] Report message to a moderator
|
|
|
|
Re: Problems occurred when invoking code from plug-in: "org.eclipse.core.commands". [message #1790834 is a reply to message #1790827] |
Mon, 18 June 2018 18:56 |
Sneha Sahu Messages: 20 Registered: June 2018 |
Junior Member |
|
|
It was the pingPong tutorial.
What I had done -
1. Copied the Papyrus-RT installed directory from my old machine to new one (both Windows 10 C:\ drive)
2. Created the pingPong project but got some errors.
3. Then I removed and re-installed Papyrus-RT RCP with a fresh copy. Imported this project. This is when I got the above errors.
4. Then instead of importing I again created a fresh project with the new installation and now the errors are gone.
But now, the CDT project does not recognize the c++ header files and UMLRTCapsule class.
I am now using Papyrus-RT installed from RCP with win10 linux subsystem and Jdk 1.8.
The issue that I am now facing is similar to the one in discussion "problem finishing the PingPong tutorial [message #1773520]" at https://www.eclipse.org/forums/index.php/t/1089138/
steps performed for CDT project -
1. right click on the capsule Top and select "Generate with this capsule as top".
2 switch to ubuntu subsytem in windows 10,
navigate to the generated project and create "build" folder.
3. run 'cmake ../src' inside build
upto here everything is smooth.
4. run 'make' from inside build directory. And this is where I get errors, probably because of the errors in the CDT Project itself.
I am attaching the project directories and also listing few of the errors -
1. Unresolved inclusion: cstddef
> to resolve this I added the path through Properties->C/C++ General->Paths and Symbols->Includes: Add
However, with every new addition, the previous inclusion gets resolved but a new one pops-up. I went upto 5-6 additions and it still continues for a new unresolved inclusion.
Note: all the unresolved inclusions are under 1 common directory (../rootfs/usr/include), but I am having toddll each sub-directory separately.
2. symbol 'UMLRTCapsule' could not be resolved
3. symbol 'NULL' could not be resolved
and many more...
Path of Ubuntu Subsytem in Win 10:
C:\Users\sneha\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\
Installation Details also attached.
[Updated on: Mon, 18 June 2018 19:09] Report message to a moderator
|
|
|
|
|
|
|
Re: Problems occurred when invoking code from plug-in: "org.eclipse.core.commands". [message #1790887 is a reply to message #1790841] |
Tue, 19 June 2018 16:10 |
Ernesto Posse Messages: 438 Registered: March 2011 |
Senior Member |
|
|
Ok, the problem is more of a CDT problem than a Papyrus-RT problem. After some quick googling I found this about configuring the CDT [1]:
Quote:You do NOT need to do any configuration, as long as the Cygwin or MinGW binaries are included in the PATH environment variable. CDT searches the PATH to discover the C/C++ compilers.
It's a bit outdated, but probably still holds true.
So what happens is that if you installed Cygwin (or the GCC in Cygwin) *after* you started your Papyrus-RT session, then the CDT included in Papyrus-RT doesn't find the GCC (and its libraries and include files). Therefore you get all those unresolved symbols.
So what you would need to do is to make sure that you have installed Cygwin with GCC first (and you may have to manually add the Cygwin's bin folder to the System PATH), and then start Papyrus-RT. If you do that, when the CDT project is generated, it will include all the required paths automatically.
By the way, don't expect that a CDT project that you generated on a different machine will work, because obviously all those paths could be different. In that case you will have to regenerate code.
[1] https://www3.ntu.edu.sg/home/ehchua/programming/howto/EclipseCpp_HowTo.html
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04925 seconds