-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get run/debug working. #277
Conversation
Changed working directory in run configuration. Added tuxguitar-gm-settings-SNAPSHOT.jar and tuxguitar-utils-SNAPSHOT.jar to classpath in run configuration.
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/tuxguitar-gm-settings/target/tuxguitar-gm-settings-SNAPSHOT.jar" path="5" type="2"/> "/> | ||
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry internalArchive="/tuxguitar-gm-utils/target/tuxguitar-gm-utils-SNAPSHOT.jar" path="5" type="2"/> "/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my comments in #276: it does not solve the issue (at least in my config)
I found a discussion about this: https://stackoverflow.com/questions/7071470/maven-does-not-add-classpath-to-eclipse-project In the run If I add just the folder, https://stackoverflow.com/questions/219585/including-all-the-jars-in-a-directory-within-the-java-classpath So I'll stick to my solution |
It does not work "as is" in my configuration, but I think you've found the correct path to a solution. The build directives in the pom file copy the jar files of the different plugins to a dedicated folder : see I don't know what differs between our configurations, I'm working on Linux. I can understand why adding jar files from share/plugins can solve the issue, but I really don't understand why files from lib folder should change something. |
Hmm interesting, I only seem to need I will try to make a new work space, and do a fresh install, trying to follow the install instructions exactly. |
I'm starting to understand. In fact we had already identified the need to add some dependencies, see #175 (quite a long discussion, now closed): at least swt and ui-toolkit-swt were required, or else the ui did not even start. So we added these 2, delivered a debug configuration and stopped there. These 2 jars are copied to |
(edit: updated after 3ce7e5c)
Procedure in Eclipse:
Then "Apply", and "Debug" My understanding:
I could not find a way to configure Eclipse in such a way to recreate exactly the same command line parameters as tuxguitar.sh script, so the procedure above remains an approximation. If it's OK for you then I suggest closing this PR, and I will update the run/debug config and associated doc. |
PR closed, superseded by #359 |
Changed working directory in run configuration.
Added tuxguitar-gm-settings-SNAPSHOT.jar and
tuxguitar-utils-SNAPSHOT.jar to classpath in run configuration.