Joerg Hampel Posted March 2, 2021 Report Share Posted March 2, 2021 With VIPM 2020.3 (build 2540) and VIPM API 2020.0.2.73, it's not possible to supply a major number of 0 via the API, the API returns an error 42: Seeing as we also build projects that are in a pre-v1.0 state, I don't see a reason to not allow the major build number to be 0. I was actually tempted to file a bug report... 😉 1 2 Quote Link to comment Share on other sites More sharing options...
0 Jim Kring Posted March 2, 2021 Report Share Posted March 2, 2021 Hi Joerg, Great idea. A couple comments/questions: I see that the VI Package Builder GUI defaults to 1 for the major version, yet it allows changing it to 0. It also allows you to build and install such a package (with 0 as the major version), just fine. More so, I see there are several packages in the wild (on vipm.io) that use 0 as the major version number, too. So, it would seem reasonable to allow the VIPM API to support this, too, and it wouldn't introduce any new problems. Which VIPM API VIs are you calling and how you're using it? I'm assuming you probably have an existing .vipb file and you're using "Read VI Package Build Spec.vi" and then "Write VI Package Build Spec.vi" to update a value such as the build number, as shown below. Thanks for posting the idea and for your additional input. Quote Link to comment Share on other sites More sharing options...
0 Joerg Hampel Posted March 3, 2021 Author Report Share Posted March 3, 2021 Jim, as always, your elaboration is spot on. Here's a screenshot of what our tools do: So other than the fact that we write all the build numbers in one go (the whole cluster), it's what you described above. Thanks for taking the suggestion into consideration. 1 Quote Link to comment Share on other sites More sharing options...
0 Jim Kring Posted March 3, 2021 Report Share Posted March 3, 2021 Thanks for the clarification on your use case -- it's very helpful (and exciting) to see the code in action that does the automated builds of your VI Packages! We've done some work on a fix for this issue (we're calling it a "bug") and I'll ping you off-line so you can test it out, if you'd like. 1 Quote Link to comment Share on other sites More sharing options...
0 Joerg Hampel Posted March 3, 2021 Author Report Share Posted March 3, 2021 Yes, please, that would be great! 1 Quote Link to comment Share on other sites More sharing options...
0 sbasavaraj Posted October 6, 2022 Report Share Posted October 6, 2022 On 3/3/2021 at 10:35 PM, Jim Kring said: Thanks for the clarification on your use case -- it's very helpful (and exciting) to see the code in action that does the automated builds of your VI Packages! We've done some work on a fix for this issue (we're calling it a "bug") and I'll ping you off-line so you can test it out, if you'd like. Is this issue fixed? The issue is still present in the 2020.0.2.73 version of VIPM API which appears to be the latest. Quote Link to comment Share on other sites More sharing options...
0 Jim Kring Posted October 6, 2022 Report Share Posted October 6, 2022 hi @sbasavaraj. I'll look into it. @Joerg Hampel to you recall where this left off? I've created an issue to track it, either way: https://github.com/vipm-io/vipm-desktop-issues/issues/14 We've been working on a real command-line interface, so I'm not sure if we actually updated the VI-based API. Quote Link to comment Share on other sites More sharing options...
0 Joerg Hampel Posted October 7, 2022 Author Report Share Posted October 7, 2022 8 hours ago, Jim Kring said: @Joerg Hampel to you recall where this left off? Jim, you privately shared an unpublished version of VIPM (2020.0.3.80) with us back then, which we've been bundling with our tools ever since. 1 Quote Link to comment Share on other sites More sharing options...
0 Jim Kring Posted October 8, 2022 Report Share Posted October 8, 2022 OK, I was able to track down the fixed VIPM API package here: VIPM API 2022.0.3.80 >> jki_lib_vipm_api-2020.0.3.80.vip @sbasavaraj can you please try this and let me know if it works for you? Quote Link to comment Share on other sites More sharing options...
0 Joerg Hampel Posted October 8, 2022 Author Report Share Posted October 8, 2022 On 10/7/2022 at 12:45 AM, Jim Kring said: We've been working on a real command-line interface, so I'm not sure if we actually updated the VI-based API. It would be great if that fix made it back into the official release. If at all possible, we'd prefer to keep using the API from our LabVIEW-based tools. Quote Link to comment Share on other sites More sharing options...
0 Jim Kring Posted October 9, 2022 Report Share Posted October 9, 2022 2 hours ago, Joerg Hampel said: It would be great if that fix made it back into the official release. If at all possible, we'd prefer to keep using the API from our LabVIEW-based tools. Done. 👉 vipm.io/package/jki_lib_vipm_api/ 1 Quote Link to comment Share on other sites More sharing options...
Question
Joerg Hampel
With VIPM 2020.3 (build 2540) and VIPM API 2020.0.2.73, it's not possible to supply a major number of 0 via the API, the API returns an error 42:
Seeing as we also build projects that are in a pre-v1.0 state, I don't see a reason to not allow the major build number to be 0.
I was actually tempted to file a bug report... 😉
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.