gemoc / gemoc-studio-old

http://gemoc.github.io/gemoc-studio/
Eclipse Public License 1.0
12 stars 4 forks source link

ModelDebugging-master can't resolve bundles #38

Open zzhang03 opened 7 years ago

zzhang03 commented 7 years ago

Hi there. In order to locate the NullPointerException problem I mentioned in the last post, I downloaded the source codes of ModelDebugging-master and imported them into my workspace. It immediately gave a lot of "cannot be resolved" errors. I was able to correct some of them by downloading the plugins shown with a red cross in manifest/dependencies/required plug-ins. After download the plugins I put them into the plugins directory of Gemoc. However, I can't fix the same kind of error of the following plugins:

org.eclipse.epsilon.common org.eclipse.epsilon.ecl.engine org.eclipse.epsilon.emc.emf org.eclipse.epsilon.eol.engine

Although I already put thoses plugins under the plugin directory of Gemoc, the errors are still there:

Bundle 'org.eclipse.epsilon.common' cannot be resolved Bundle 'org.eclipse.epsilon.ecl.engine' cannot be resolved Bundle 'org.eclipse.epsilon.emc.emf' cannot be resolved Bundle 'org.eclipse.epsilon.eol.engine' cannot be resolved

These errors really drives me crazy. Plz plz give me some suggestions. Thanks in advance.

dvojtise commented 7 years ago

I really don' t see why you should have these "epsilon" dependencies, since none of the GEMOC component use it and it it not installed in the Studio.

If you want to get the sources, an easier way would be to use the import as / project from a repository accessible from the plugin view, most of the time, it helps to get the same version as the currently installed one (normally gemoc plugins should support this) image

in addition another trick, look for errors in both the Error view, and the various text consoles, consoles may have subconsole , such as the "default Messaging system console" that capture all "println" messages that are normally lost when eclipse in not run from another eclipse.

when a stack trace comes. you can copy it and paste it in the "java stack trace console" image if the source are available in the eclipse, then the trace will have hyperlink that you can easily navigate

zzhang03 commented 7 years ago

I was unable to get the source through your description: Failed to read project description file from location 'C:\Users\zhangzhe\git\concurrency\ccsljava_execution\ccsljava_engine\plugins\org.gemoc.execution.concurrent.ccsljavaengine.project'.

However I managed to open plugins by installing jd-eclipse. But it seems I couldn't add breakpoint to it.

jdeantoni commented 6 years ago

Hi, it seems that you are using the versions from the git. Be sure to understand that adding only few packages from the git in release of GEMOC studio can make bad things happening :) (lots of changes between the current git versiona nd the version used in V2.3.0 for instance)

zzhang03 commented 6 years ago

Hi @jdeantoni, Currently I want to have a look at Gemoc source codes in order to have an overview of its code structure. Is it better for me to import all the projects from git into a clean eclipse like in https://github.com/gemoc/gemoc-studio/tree/master/dev_support/full_compilation or I should directly import the Gemoc plugins as mentioned above by @dvojtise ? Please give me some suggestions. Thanks!