Code Editor not opening for GHGL components in WIP

Latest version of the WIP.

The code editor will not open for GHGL components in Grasshopper. Double clicking does not work. Selecting “Edit code” from the right click menu does not open the code editor.

Python and C# components open the code editor, no problem with the double click method. Standard behavior.

I have “repaired” the WIP installation via Windows, restarted, no change.

Drag a GL Mesh Shader onto the Grasshopper workspace.
Double click it, or right click and select “Edit code…”

Does the code editor window open?

On my machine it does not.

Can you post an example file?

This is probably not the solution, but maybe check that the GPU is set to OpenGL:

I’m pretty sure the WIP defaults to Direct3D now.’

Edit: Never mind, just tried installing it via Package Manager and see the same behaviour you’re describing.

1 Like

The code editor does not open on a GL Mesh Shader, either with double click or with the menu selection. The code editor opens fine on Python and C# components.

It worked as expected on previous WIP releases.

The GL shaders work just fine, just the code editor is not opening.

GL.gh (3.5 KB)

Thanks for reporting, looks like the plugin needs a update

RH-94526 GHGL Edit component in WIP

Noticed this crash dump on my desktop afterwards, looks related:

RhinoDotNetCrash.txt

[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method not found: ‘System.Threading.Tasks.Task Ed.Eto.Ed.RegisterProvideCompletionsAsync(System.Func4<System.String,Int32,Char,System.Threading.Tasks.Task1<System.Collections.Generic.List1<System.String>>>, System.Collections.Generic.List1)’.
at ghgl.GLSLEditorDialog.ShowTab(ShaderType type)
at ghgl.GLSLEditorDialog..ctor(GLSLViewModel model, Boolean includeTessellationShaders, String componentName)
at ghgl.GLShaderComponentBase.OpenEditor()
at ghgl.GLShaderComponentBase.b__34_0(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
[END ERROR]

1 Like

Re-assigned the ticket to me. Looks like this is a regression related to recent changes in editor control shared between the new script editor and legacy ones. Will look into it and push a fix.

1 Like

@nxakt Pushed a fix to Rhino WIP (download build from here to test before it is includes in the next weekly wip build)

You also need to update the ghgl package in package manager to the latest 9.0 version

1 Like

That opens up the editor as expected.

Thanks for the prompt fix.

1 Like