I was able to create a custom capability and custom presentation which worked (mostly) as expected.
When I went to revise the presentation, the CLI complained about version 1 already existing. I really didn’t want to play that game during development. I deleted the capability, recreated the capability, and then associated the updated presentation. No errors. Everything was displayed properly when the CLI regurgitates the files. I then repackaged, reassociated with channel, and reinstalled the driver.
No matter what I’ve tried, the old presentation is used-- even though it shouldn’t exist? Yes, I’ve tried rebooting, etc. The CLI confirms the old presentation when I query by VID, so it’s not an app thing.
I’ve made the following observations along the way:
- You can delete a custom capability without breaking a driver which references that capability.
- The package process does check that the custom capability exists.
This makes me think the capability and presentation are baked into the driver?
Maybe I’m just tired and forgetting something. I’m pretty sure I successfully updated the presentation at least once before. Does everyone else just bump the version number? If so, it seems like there’s probably a lot of dead wood on the hub and/or in the ST cloud.