I wanted to change the name of the binding I am currently developing due to @J-N-K’s review comment. After eclipse crashed during refactor/rename I modified the files from the console and restarted eclipse.
After some minor tweaks, the new binding code compiles, but when I try to launch the debugger (Debug OSGi on the app.bndrun) I get the following errors and I have no clue how I should tackle that.
Status ERROR: bndtools.core code=0 Cannot find /error/org.openhab.binding.heliosventilation;version=[2.5.0,2.5.1) Not found in [bndtools.m2e.MavenImplicitProjectRepository@dabead7, bnd-cache [/home/r/.bnd/default-ws/cnf/cache/4.2.0/bnd-cache r/w=false]] null
Status ERROR: bndtools.core code=0 org.openhab.binding.heliosventilation;version=[2.5.0,2.5.1) Not found in [bndtools.m2e.MavenImplicitProjectRepository@dabead7, bnd-cache [/home/r/.bnd/default-ws/cnf/cache/4.2.0/bnd-cache r/w=false]] null
mvn -DskipChecks -DskipTests clean install -U
in openhab2-addons folder, which brings the missing binding to the list selectable in “Browse Repos” and the Resolve and Debug succeeds
That took only about 5 hours and I still don’t understand what I did.
So for whatever reason I had to redo this again. I tried in the binding subdirectory, but this didn’t solve it. So I really had to do it in the openhab2-addons root folder which takes ridiculous long.
And also these days just launching the debugger with Debug OSGi on the app.bndrun pauses at 31% for maybe 3-4 minutes and afterwards suddenly jumps to starting. Any idea how to find out what exactly is soo slow?
Looks like you’re a little unlucky with the version of the code you have. So you need to rebase the code to some newer version of the openhab2-addons master code. If you haven’t added upstream, first do:
Thanks, this helped. I didn’t try to pull upstream changes, because it worked before and in earlier times I had also trouble the other way round, such that after pulling upstream changes it stopped compiling.
Now it works again - even though still with the long hang at 31% on launching the bndapp thingy…
Another thing I have to document here is - thanks to @hilbrand - that I had to add the dependency to my binding in the pom of the demo app (copy dependency for the binding from openhab2-addons/bom/openhab-addons/pom.xml to openhab-distro/launch/app/pom.xml) to make it work this time.