JKISoftware / JKI-State-Machine-Objects

Object-oriented framework for LabVIEW based on the JKI State Machine
BSD 3-Clause "New" or "Revised" License
95 stars 54 forks source link

SMO.lvclass:ListThisLevelDependencies.vi works differently (incorrectly?) after the latest updates #87

Open luferau opened 2 years ago

luferau commented 2 years ago

Hello and thanks for great framework.

Describe the bug SMO.lvclass:ListThisLevelDependencies.vi does not return the expected list of dependencies. Output dependency array contains only one element: [ SMO.lvclass ]. This lead to receive error when trying to call SMO.lvclass:CastArrayDependenciesToClusterOrClass.vi:

Error 116 occurred at Flattened String To Variant in 
SMO.lvclass:CastArrayDependenciesToClusterOrClass.vi->
Microscope.lvclass:Microscope.GetDependencies.vi->
Microscope.lvclass:Microscope.GetDependenciesPublicEvents.vi->
Microscope.TestLauncher.vi

Possible reason(s):

LabVIEW:  Unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data.

This behavior was discovered after applying the latest updates.

To Reproduce Steps to reproduce the behavior:

  1. Clone https://github.com/JKISoftware/HAL-Webinar
  2. Open project
  3. Open Microscope.TestLauncher.vi
  4. Run

Incorrect code situated in Microscope.lvclass:Microscope.GetDependencies.vi

francois-normandin commented 2 years ago

Thanks @luferau for the report. I confirm I have reproduced the error. It seems the list of "This Level" is not correct. I get a microscope class instead of a XYStage. I'll look into it.