function-store / FunctionStore_tools

TouchDesigner workflow tools and UX improvements and more
MIT License
136 stars 0 forks source link

VSCodeTools is unhappy about a menu source reference in the popup dialog #45

Closed mickeyvanolst closed 1 day ago

mickeyvanolst commented 1 day ago

Hi Dan,

The popDialog contains a font selection dropdown for each of its button elements. This has a menu source reference that complains on startup. Here you can see the output.

/VSCodeTools/ScriptSyncFile/popDialog/button1 (Parameter menusource: Font) Traceback (most recent call last):
  File "/VSCodeTools/ScriptSyncFile/popDialog/button1", line "op("./text").par.font",
AttributeError: 'NoneType' object has no attribute 'par'

/VSCodeTools/ScriptSyncFile/popDialog/button2 (Parameter menusource: Font) Traceback (most recent call last):
  File "/VSCodeTools/ScriptSyncFile/popDialog/button2", line "op("./text").par.font",
AttributeError: 'NoneType' object has no attribute 'par'
/VSCodeTools/ScriptSyncFile/popDialog/button3 (Parameter menusource: Font) Traceback (most recent call last):
  File "/VSCodeTools/ScriptSyncFile/popDialog/button3", line "op("./text").par.font",
AttributeError: 'NoneType' object has no attribute 'par'

/VSCodeTools/ScriptSyncFile/popDialog/button3 (Parameter menusource: Font) Traceback (most recent call last):
  File "/VSCodeTools/ScriptSyncFile/popDialog/button3", line "op("./text").par.font",
AttributeError: 'NoneType' object has no attribute 'par'

Its not directly clear to me why, maybe the text COMP is not yet created on startup.

Let me know if you need any other info.

mickeyvanolst commented 1 day ago

the issue also occurs with the popDialog component from the palette, so not really something you should solve. I'll take it to the forums.

mickeyvanolst commented 1 day ago

https://forum.derivative.ca/t/popdialog-errors-in-log-on-starting-toe-file/543571

function-store commented 1 day ago

Thank you for your service Mickey!

On Fri, Oct 11, 2024, 10:19 Mickey van Olst @.***> wrote:

https://forum.derivative.ca/t/popdialog-errors-in-log-on-starting-toe-file/543571

— Reply to this email directly, view it on GitHub https://github.com/function-store/FunctionStore_tools/issues/45#issuecomment-2406881563, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNHYBO5U6KJTNQUKML27B3Z26C2ZAVCNFSM6AAAAABPYMSXICVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWHA4DCNJWGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>