-
Notifications
You must be signed in to change notification settings - Fork 132
[Question] What is the -application command line parameter for the new Sloeber project wizard #1283
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
Comments
I'm sorry but I do not understand your question. |
@jantje for instance here is how you would kick off the new project wizard for a normal C++ project:
what is the correct |
I tried to run the command but I get an error with the following error log I'm still not sure what this is supposed to do 😕 |
that one needs this plugin: https://gnu-mcu-eclipse.github.io/advanced/headless-builds/ |
Reading the doc it looks to me this won't work yet with sloeber. I mean there is currently no import but the work I'm currently doing #1268 will require one. The use case I currently see for import in #1268 is: I'm currently progressing through the foundation of step 1. |
AWESOME! for step one, that would be all the decisions the user makes when creating a new project? What you are describing sounds a LOT like how platformio defines their projects. Maybe look at their stack to see if there is anything you could use? Even better would be the ability to use the same config files the platformio.ini If you had step one, and a command line argument to call to load it, that would be all i need. I have my own installers and set up sctipts to keep my Arduino and Sloeber in sync with libraries and toolchains. My Use Case: I have a robotics IDE that manages all of my source projects for a given robots CAD, Code, Firmware (Arduino), robot definitions. From my IDE i can call command line arguments for Eclipse to import a project. I use this to push my groovy code into eclipse. I hand create the .project and .classpath files to make an appropriate Eclipse project, then call eclipse with the path to the project root. In eclipse, the project import wizard is initiated. To my surprize a whole new eclipse was not started, but instead the commands are passed into the running eclipse, and the wizard to import the project is started in my already running eclipse. |
Not really. It is the stuf in project properties->arduino. There is no need to know the project started of from the blink example.
👍
That is an impressive script. I'm surprised you dumped sloeber and your configuration inside a github release. Do you realize this causes lots of overhead (like the download folder)
The need for these files is why I want to go the sloeber.cfg route. The import should create these files and all should be well.
There is no human who understands the way of |
I did notice that Sloeber did not know it had the new toolchain when looking in the toolchain installer, but it did know it was there when creating a project, so it can be used to develop with. Can you give me some tips to "complete" the transfer? Also I would like some tip on how to read the current toolchain info from the sloeber config files? If i wanted to generate a config file, i would like to use the most recent toolchain info. Going the other way didnt work at all im afraid. I would love to sync the sloeber packages into my arduino install, but Arduino never recognized them. As for my use case, a little more detail:
Here is how i do that process for Groovy projects: |
Well ... it depends. The whole toolchain selection is a complex issue. I guess you are not well versed in the arduino framework dirty details so I will spare you them. To keep it nice and simple: "to be sure it works use the sloeber boardsmanager"
I'm not sure which transfer you are referring to. If you are referring from arduino installed platforms to Sloeber installed platforms. Step 2 mentioned above would mean: you only need to add the info to the sloeber.cfg
It won't work properly, never. Basically the IDE needs the json files and the installed platforms (packages folder) to pick and run the correct toolchain.
|
This is what the Sloeber.cfg currently looks like
|
I had to do lots of changes to get this to work but now there is a "convert to sloeber project" which works with a new general project (when adding a sloeber.cfg and .ino before conversion no additional actions are needed) I guess there are plenty of problems but I wanted to check in this code One of the reasons this was complicated is because config info was stored based on the ID and not on the name. I neded to switch because tI do not want the id in the sloeber.cfg and I can not create ID's so I needed to switch to using names That also means that there was work on making config name renames work.
I have added a file-> new->other->arduino->convert to arduino project |
Before this fix only release worked properly
This does not work as you describe here. In fact, a new eclipse is started in "headless" mode (no GUI). The -application is the id to a java class [1] that is defined in the Applications extension point. The reason that it looks like it works in your current application is that the workspace refreshes automatically. You don't need to run the application, you can just drop the project into the workspace and it will become visible (providing you have the correct .project as you describe). The -application you point to is a way to compile a project headless (without an Eclipse GUI starting) e.g. for use on a build server. |
That was what I was thinking to. But that does mean the workspace is opened twice. This is not possible when using the gui only.So I must assume a headless eclipse can open a already open workspace. |
The "application" is the first java class that gets loaded after the normal boot. The concept of a locked workspace is from the "normal" GUI application (called IDEApplication [1] (around line 222)) Other applications don't give diddly-squat about a lock. It is just a file that is checked. A workspace cannot be "opened". That is also just an IDEApplication concept. The WS it is just a directory, not the cave of Ali Baba. ;) |
@wimjongman |
Version 4.4 is out that supports the sloeber.cfg I talked about earlier. I made a video how to make this work in the gui https://www.youtube.com/watch?v=bqdw1L_8Gjs&t |
This is not a bug but a request for information.
how you would kick off the new project wizard for a normal C++ project:
what is the correct
-application
parameter for the new Sloeber project wizard?The text was updated successfully, but these errors were encountered: