Would you be interested in including links/directions to a HaikuVM/arduino eclipse plugin I'm working on? The plugin enables you to add HaikuVM nature to java projects, and build multiple HaikuVM projects in the workspace into separate folders in $ARDUINO_LIB_DIR. Also includes some marker support to indicate different type of errors (e.g. missing entry point methods, or missing haiku and arduino installation).
Remaining high-priority features: Porting/testing on linux/mac, code cleanup, and integration with INO to support arduino uploads, performance optimization. I expect this will all be done soon. Let me know if you are looking for any other features.
thank you very much for adding a feature. Your plugin is very welcome and sounds promising. I really like to give further feedback to your plugin.
But, I have no experience with Eclipse plugins. Please tell me/us, how to
1) download your plugin
2) install it,
3) activate it and
4) apply it to a *.java program (or Eclipse project? or Eclipse workspace?).
BTW, which version(s) of Eclipse does it support?
Kind regards and thank you for using HaikuVM
Bob Genom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ideally I'd like to setup an update site so you can download it using the Eclipse Workbench without having to perform manual steps.
You can try downloading and installing it with the following steps:
1. Pull down the source from the git repo
2. From the plugins folder, copy the two jar files and drop them into your eclipse/plugins directory. Restart eclipse in clean mode (to make sure the new plugin is picked up). http://stackoverflow.com/questions/2030064/how-to-run-eclipse-in-clean-mode-and-what-happens-if-we-do-so
3. To make sure the new plugin was started by eclipse, run the OSGI console and run the command "start haiku.eclipse.plugin".
To use the plugin:
1. Set preferences in Window->Preferences->HaikuVM preferences
- path to Arduino/Libraries
- path to HaikuVM directory.
2. Create a java project
3. Right click on Project -> Configure -> Enable Haiku
4. Pick your 'entry point java file' containing loop and setup methods (e.g. Blink.java). In package explorer view, right click on Blink.java -> left click on 'Set HaikuVM java class'.
5. Run Project -> Build Project to see the console running the haiku.bat command.
If you miss any of the steps above, ideally you should get a build error indicating the same in the 'Problems' view.
Tested platforms:
1. Only tested on Windows 8 so far, with Eclipse Juno.
Notes:
There is a long list of issues that I'll need to fix before this can be added to the main distribution or publicized. I am finding bug and fixing them as they come up. Any help on that is welcome. :)
The compiled jar files in plugins folder may go out of date with the source code; I usually create those Jars once I've gone through a round of testing. There should be a better way to do this; I haven't gotten to it yet.
If anyone needs access to the git repo, and I need to do something to enable that, please lmk. I'm using google code style, so if you want to contribute, please use that. I'm ok using some other style if that's the preference, but it should be uniform.
I'm running into issues testing some of hte non-trivial cases, which may be due to the existing commands (haiku.bat, haikuc.bat etc) having bugs or my misunderstanding of how they work. For instance, I can't seem to have more than one java file in a project: the javac command created by haiku.bat doesn't compile any java files in the java project other than the 'entry point' java file. I'll post these issues in this forum as I find them.
Not sure how we can do code reviews. What is the current process? I have used gerrit in the past, but not sure if I can do it with github, where the project is currently hosted.
Note: I also continue to use C++/Arduino to do most of my actual work until the issues I'm facing with HaikuVM are addressed... But, I'm really interested in helping fix the issues so I can leverage java for Arduino.
Please report any issues with the plugin on the github project link posted above. Please provide as much detail as possible. I'll try to get to it asap.
This is my first plugin, and I'm writing code with a new set of tools that I don't use at work. So, appreciate all the f/b you can provide.
Thanks!
Chinmay
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Would you be interested in including links/directions to a HaikuVM/arduino eclipse plugin I'm working on? The plugin enables you to add HaikuVM nature to java projects, and build multiple HaikuVM projects in the workspace into separate folders in $ARDUINO_LIB_DIR. Also includes some marker support to indicate different type of errors (e.g. missing entry point methods, or missing haiku and arduino installation).
Remaining high-priority features: Porting/testing on linux/mac, code cleanup, and integration with INO to support arduino uploads, performance optimization. I expect this will all be done soon. Let me know if you are looking for any other features.
The plugin is located here: https://github.com/nagarkar/plasticsandpcbs/tree/master/haikuvm/haiku.eclipse.plugin
Hello Chinmay,
thank you very much for adding a feature. Your plugin is very welcome and sounds promising. I really like to give further feedback to your plugin.
But, I have no experience with Eclipse plugins. Please tell me/us, how to
1) download your plugin
2) install it,
3) activate it and
4) apply it to a *.java program (or Eclipse project? or Eclipse workspace?).
BTW, which version(s) of Eclipse does it support?
Kind regards and thank you for using HaikuVM
Bob Genom
Ideally I'd like to setup an update site so you can download it using the Eclipse Workbench without having to perform manual steps.
You can try downloading and installing it with the following steps:
1. Pull down the source from the git repo
2. From the plugins folder, copy the two jar files and drop them into your eclipse/plugins directory. Restart eclipse in clean mode (to make sure the new plugin is picked up).
http://stackoverflow.com/questions/2030064/how-to-run-eclipse-in-clean-mode-and-what-happens-if-we-do-so
3. To make sure the new plugin was started by eclipse, run the OSGI console and run the command "start haiku.eclipse.plugin".
To use the plugin:
1. Set preferences in Window->Preferences->HaikuVM preferences
- path to Arduino/Libraries
- path to HaikuVM directory.
2. Create a java project
3. Right click on Project -> Configure -> Enable Haiku
4. Pick your 'entry point java file' containing loop and setup methods (e.g. Blink.java). In package explorer view, right click on Blink.java -> left click on 'Set HaikuVM java class'.
5. Run Project -> Build Project to see the console running the haiku.bat command.
If you miss any of the steps above, ideally you should get a build error indicating the same in the 'Problems' view.
Tested platforms:
1. Only tested on Windows 8 so far, with Eclipse Juno.
Notes:
Note: I also continue to use C++/Arduino to do most of my actual work until the issues I'm facing with HaikuVM are addressed... But, I'm really interested in helping fix the issues so I can leverage java for Arduino.
Please report any issues with the plugin on the github project link posted above. Please provide as much detail as possible. I'll try to get to it asap.
This is my first plugin, and I'm writing code with a new set of tools that I don't use at work. So, appreciate all the f/b you can provide.
Thanks!
Chinmay