Namespace prefix 'beh' is not defined error #165
-
I was working on a file in Bonsai 2.9 yesterday and today I cannot open it, the error is this one: ![]() Would you be able to let me know how I can recover the workflow please? Here is the file: I've also had this issue with other files that worked fine in Bonsai 2.8.5 and stopped working in either once I attempted to open them in Bonsai 2.9 Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @ChucklesOnGitHub seems like the namespace prefix declarations behavior_inputexpander_fixed.zip If this error happens in the future, I think you can open the workflow file in a code editor like <WorkflowBuilder Version="2.9.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rx="clr-namespace:Bonsai.Reactive;assembly=Bonsai.Core"
xmlns:harp="clr-namespace:Bonsai.Harp;assembly=Bonsai.Harp"
... And add in the missing reference (if you don't know what the missing reference is, you can create a separate bonsai workflow file, add a node from the package, save the file and check the namespace declaration). I think this might be a bug (maybe something during the workflow upgrade process?), so if you can reproduce the steps leading up to the error with one of those other files that you mentioned and attach a description/the file that would help us track it down! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hi @ChucklesOnGitHub seems like the namespace prefix declarations
beh
forHarp.Behavior
was somehow dropped from the.bonsai
workflow XML file. I am not sure if this is the right way to solve it (since there are now duplicate namespace prefix entries forHarp.Behavior
) but adding it back fixed it.behavior_inputexpander_fixed.zip
If this error happens in the future, I think you can open the workflow file in a code editor like
Visual Studio Code
, look for the section at the top that looks like this: