-
Notifications
You must be signed in to change notification settings - Fork 133
Added launch configuration #376
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
Conversation
… shortcut ("Debug as" and "Run as") for arduino projects
|
I will merge this pull request but I'm going to wait until after I released V3. I assume that what you call launch is what is called "upload" in arduino world. With that in mind your last paragraph is very confusing to me:
A different arduino board may mean a different toolchain/core/library/define.So deviating from the project properties at that level makes no sense to me. Moreover the plugin supports multiple configurations, so if I would want this I would have multiple configs and select the proper config.
You can instantiate the serial monitor only once. The serial monitor supports up to 6 (if I remember correctly) serial connections at the same time. Each connection has its own color that can be changes in the preferences (standard eclipse way) The benefit for this is: when debugging communication between boards you get (kind of like) a time view between the boards.
After having been thinking and writing my current thinking is as follows: To take it even further. If the plugin could recognize the board that is connected to a com port there is no need to configure the com port -if only one board of each type is connected-. Again: I'm going to accept your pull request after V3 release. |
After reading your comment I have to say: No it does not bring additional easy for most users. Only if they are used to do "Right Click > Run as > Java Application" they may find it more familiar. However, I need it because the other plugins I use work with launch configurations / launch shortcuts.
Fair enough. Thanks |
|
Txs for the feedback. |
|
FYI the release of V3 is waiting for #321 which we are looking for the root cause. |
|
@wimjongman |
Conflicts: it.baeyens.arduino.core/META-INF/MANIFEST.MF
|
Hello and congrats on the release! Must have been a lot of work. Thank you very much :). I added two dependencies to the MANIFEST file: org.apache.commons.lang, org.eclipse.debug.ui
Afterwards I did not have any errors. Yay^^ |
|
txs. The merge works now. Bye the way. For ESP there is a change when opening the com port (related to DTR pin) which should conceptually be handled by the launch handler. So this may get some better integration some day. |
Hello,
I want to use the Arduino plugin together with some other tools, in which I chain launch configurations (more specifically I want to perform a launch shortcut on an ino file as part of another launch).
Therefore I added a launch configuration, launch configuration tab group and launch shortcut (for .ino files) to your project. The changes I made do not affect other parts of the plugin. It provides an alternative for the user to launch a project. To use the changes I made, one has to change the Arduino perspective so that the "Run as" and "Debug as" buttons become visible.
The launch configuration that I implemented only references the project that shall be launched and delegates the launch to your implementation.
At the moment, the Arduino plugin has a toolbar button to launch the selected project, which works great. However, launch configurations are the way how Eclipse intended to run a project. Furthermore an Arduino launch configuration can also be part of launch groups, which are available as part of the CDT. This is a way to chain launches.
In future work, the launch configuration may be extended to configure the Arduino board and port. This would be useful if someone wants to deviate from the settings in the project properties.
I did not take a look at the current implementation, but it might make sense to connect the serial monitor and stuff with a launch as well. This way one could have multiple Arduino projects launched at the same time and switch the monitor between these.
Regards
Andreas Stange