-
Notifications
You must be signed in to change notification settings - Fork 194
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
Product fails build or the product is not found at startup (regression 4.0?) #3433
Comments
@jantje one common pitfall is that resources are not included in the binary build ( Second don't confuse a product definition file ( You should have a plugin with a |
@laeubi
For testing I simply added everything to the build. Unfortunately the successful builds do not show the splash
I hadn't thought about giving the product file an ID that is the filename (sdk.product). unfortunately the build fails on that one to. Sloeber/arduino-eclipse-plugin#1618 Basically if the only value for product file ID I have found to have a successful build is the plugin name itself and that gives a warning in the eclipse ide. |
The splash screen is not a feature of Tycho, it is provided by your product / configuration. Eclipse itself is build with Tycho 4 and has a splash screen, so something likely is wrong in your product configuration. |
I think you are trying to tell me something here that I fail to grasp.
I didn't know about the eclipse build being done in Tycho 4. Thanks for that info.
Or something weird is going on. That is why I wrote:
Facts are:
=> I'm kind of stuck due to "out of ideas"* One idea I had last night is to create a branch starting from a successfully build of Sloeber and then only upgrade tycho ( maven upgrade; build; tycho upgrade; build) and check the build results. At least that should confirm it is related to the maven/tycho upgrade or not. |
@jantje yes thats sometimes the best start from something working and change only a little thing... I just can tell that numerous products are build successfully with Tycho4 so there is no general problem. |
I'm dumping this here to support my memory as it has proofed in the past not to be reliable Trial build Sloeber 4.0.0 and simply upgrade tychoV4.0.0 didn't want to build stating java errors (I am on Java version 21 on my machine)
My brains ache and I reread my writings. I did write I tested this and it worked...; what changed? |
I have figured out what was wrong with my project and I'll dump it here just in case someone comes here (via a search engine or so) with the same/similar issue when @laeubi wrote
He was absolutely right. If I had checked the jars I would have found this out earlier. I do not think the fact that products are not part of the deliverable is common knowledge (it may even be a bug). I do not see this mentioned here https://www.vogella.com/tutorials/EclipseProductDeployment/article.html Just for the record: Thanks for the help and Tycho 👍 . |
@jantje basically in your IDE every imported project will be considered, if you build a distribution only these parts you include in your product file will be packaged. |
I'm maintaining the Sloeber repository which contains 2 products which are build using github actions using maven and tycho.
Both products have a splashScreen and I currently fail to build both of them with maven in such a way that the splash screen appears at startup.
It worked fine until I started using target files somewhere in September and therefore had to upgrade to tycho V4 at which time I upgraded to V4.0.4 (and tried downgrading without success).
After the first release (December 2023) people complained the splash screen was no longer there.
Now I'm preparing a new release and tested the splash screen and found it indeed no longer worked.
I tried to change things so the maven build shows the splash screen but haven't succeeded after days.
When the build fails I looks like this
note that "default-publish-products" is the next maven step so it looks as if the build didn't happen and no error was generated (I know very little of maven/tycho so it is just my 2cent)
When the build succeeds I get this
But following error in the error log
The only difference between the 2 builds is the product UID in the .product file.
With the warning like below tycho builds but the result does not find the product
Anything else as UID and the build fails
As V4 has been out for a while and I didn't find any issues on this so I assume there are other things at play.
If you look at this pull request and look at the commit named "reintroducing the warning fixes the build"
Sloeber/arduino-eclipse-plugin#1618
you can see that the actions failed before and succeeds after the commit.
And the only change in the commit is the uid
Sloeber/arduino-eclipse-plugin@719ded0
Anny help is appreciated.
The text was updated successfully, but these errors were encountered: