-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
New Bnd OSGi Workspace from template bndtools/workspace branch: origin/6.4 fails. #5476
Comments
@pkriens can you please validate this issue? My first idea was that this issue is related to the cloned workspace repository, but for what ever reasons it works if using another branch than the offical current 6.4.0. |
I encountered the same issue. |
@pkriens if you cannot reproduce the issue on your system please feel free to contact me for a coop session. |
@zelorun can you send me your email address? I am peter.kriens@aQute.biz |
I got it on mac as well ... |
As an intermediate fix, it seems to work if you use an alternative template. When I moved back to the template selection and then picked the other one it worked. |
The problem seems to be in the templates that specify a branch/tag. Using the (default) master branch works fine it seems. The current code checks out the branch in a new branch (-b in the checkout I guess). By replacing that option with an option to to just checkout all the files fixes this as far as I can test. I will make a PR for 7.0.0 and then we should cherry pick this on the next branch and think of delivering a new release 6.4.1 |
The code uses Eclipse JGit to perform the git operations. It is possible some change in JGit in the latest version of Eclipse has upset something here. Have you tried adding CheckoutCommand checkout = git.checkout()
.setCreateBranch(true)
.setName("_tmp")
.setForced(true); |
…ostly to cherry pick on 6.4.0 because it seems to work on 7.0.0 --- Signed-off-by: Peter Kriens <Peter.Kriens@aQute.biz> Signed-off-by: Peter Kriens <Peter.Kriens@aQute.biz>
Since I could only run this in another Eclipse I tried to change the boolean fields and see what happened. The fix to not create a branch and get all paths worked fine. We know the directory is empty since we just created it. Can you take this issue to cherry pick it on the next branch? |
@pkriens after checking out this repository (and applying the fix), which command do i have to run to generate the eclipse plug-ins? |
you can run it in the Eclipse debugger, that is the easiest way. The command to create a p2 repository is |
@bjhargrave how long does it normally take until a new (bugfix) release comes out? |
It should work ok for the current snapshot. We do not have a time plan yet but we should have a release in the next few months. |
Using a fresh Eclipse IDE 2022‑12, installing Bndtools using the Marketplace is not able to create a new Bnd OSGi Workspace (tested on Windows and Ubuntu).
In the Preview Changes window it shows the error:
"Checkout conflict with files: gradle.properties"
The list of files is empty. Next > button is disabled.
Version:
Bndtools 6.4.0.REL-202211291949-g25e4898 bndtools.main.feature.feature.group Bndtools
The text was updated successfully, but these errors were encountered: