-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Bnd fails to launch Bndruns for JDK 8 with Unrecognized option #3869
Comments
Can you please provide the Eclipse launch and bndrun files you are using? 42277d5 changed how Bndtools formats the vm and program args for Eclipse launching. |
A small github repo which demonstrates the problem would be best. |
Sure. I would try to prepare an example project and send you the link. |
This happened after the change you made yesterday, so maybe you can look if something can cause this? |
I assume the issue results from the change I made. So I would like the launch/bndrun info to confirm. |
@bjhargrave I believe it would be easier for you if I can just provide you with the bndrun that cannot be launched. The enclosed bndrun comprises only the necessary VM arguments that you can include in any of your existing bndrun files. Then you don't have to checkout my example project and test separately. I had to rename the file since GitHub doesn't allow adding files having bndrun extensions 😉 |
Well the big problem here is that But you are using SPACE separated options. This basically worked before because Bnd treated is as one option and passed it to the Eclipse launcher which parsed it by the spaces. The recent change to Bnd to better handle options with spaces in them means that Bnd will process EACH -runvm option and quote it if it has a space. Since your bndrun file effectively has only a single -runvm option with spaces, we kindly quoted it. And the vm chokes on the very long option which it does not understand. So you do need to use commas to separate options on your -runvm value. You are not alone in this mistake. It turns out we, the Bnd team, have made the same mistake in our own bndrun files. For example:
(which I will fix shortly). Once you fix your -runvm to use comma separators, it should work fine. |
Thanks @bjhargrave. It works perfectly now. 👍 |
@bjhargrave how do I escape the comma now if I want to have it in the value of a program argument? Thanks |
@bjhargrave I will try quoting as suggested here https://groups.google.com/forum/m/?utm_source=digest&utm_medium=email#!searchin/bndtools-users/Comma/bndtools-users/9U1-WqUODeM |
See
|
Something noticeable I found in the latest Bndtools Snapshot Version (
5.1.0.DEV-202004021913-gd8d520f
). Unfortunately I cannot run any of the Bndrun files.It worked perfectly till yesterday. I switched back to
Bndtools 5.0.1.REL
to see if the problem is something not relevant to Bndtools. And luckily it works in the latest release version. I believe that any of the latest changes might have caused this.The text was updated successfully, but these errors were encountered: