Issue with CDT Generation (windows) [message #1790631] |
Wed, 13 June 2018 13:18  |
Eclipse User |
|
|
|
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 12:46] by 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 12:10   |
Eclipse User |
|
|
|
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.05193 seconds