I've opened a support request for this, but I'm going to post to the forum too for the following possible reasons:
- Maybe I did something stupid and someone can point it out
- Others might run into this and search online (in which case, it might be reassuring if nothing else)
- It might be that someone else can helpfully try and either reproduce or fail to reproduce the issue
When creating a New > VI for Override in a class that inherits from a class in a Packed Project Library with debugging enabled in LabVIEW 2020, the VI fails to be created with an error 7 in CLSUIP_CreateNewVI.vi
The error occurs inside the "No Error" case (which is why debugging enabled is important - with no debugging in the PPL the block diagram doesn't load and the scripting goes through the error case) when trying to load based on a template VI (the dynamic dispatch VI in the PPL).
Initially I ran into this using a PPL built in 2019 - I reproduced it using a new 2020 PPL with only one class and one (DD) VI.
Possible reproduction steps are:
- Create a blank project
- Add a library, then a class, then a dynamic dispatch VI from template
- Create a Packed Project Library build specification.
- On the "Advanced" tab, set the Enabled Debugging to true
- Build the PPL
- Create a new project
- Add > Item the built PPL from step 5
- Create a new class (the new window makes this step much nicer - yay 2020...) and inherit from the class created in step 2+5.
- Right click on the class and choose New > VI for Override and then choose the VI that's available.
- Get the error message.
Note that if you don't do step 4, there is no error.
The error appears to be the same if you use PPLs that you already have available from e.g. 2019 (in which case skip steps 1-5).