BHoM / Dynamo_UI

Tools for Dynamo
GNU Lesser General Public License v3.0
8 stars 5 forks source link

Dynamo Revit 2.3 UI issues #289

Closed pawelbaran closed 3 years ago

pawelbaran commented 3 years ago

Description:

Today I have experienced a weird issue: on creation of a code block, I could not modify it or type anything in. It looked completely inactive, as in the screenshot below. The issue disappeared after removing BHoM for Dynamo Revit 2.3. Possibly it can be related with #280?

image

adecler commented 3 years ago

The problem is this:

image

If you want to read a longer rant about it: https://archi-lab.net/dll-hell-is-real/. If you google this a bit more, you realise that quite a few plugins have the same issue with popular plugins also used by Dynamo (like Newtosoft json, IronPython,...)

But basically, Dynamo uses an (very) old version of AvalonEdit. Since Dynamo loads all the dlls referenced by any plugin itself into one big melting pot, we just end up with our version of AvalonEdit masking Dynamo's version. Since the two versions are different enough, the Code Block ends up not working.

I hope that all makes sense. The irony is that We don't even have the BHoM CodeEditor in Dynamo right now (and probably never will now). So what I'll do is have the CodeEditor on a separate dll in BHoM_UI and have it referenced by all UIs but Dynamo. Will get that done as soon as I have time.

adecler commented 3 years ago

PRs raised here: