Hello,
I am trying to get Hops working with Rhino 8. I have been reading similar topics here on the forums and have tried a fix related to the *.runtimeconfig.json files of rhino.compute and compute.geometry but unfortunately this didn’t work.
The fix I applied was based on this topic: Grasshopper Hops doesn’t work on RH8 SR17 - Rhino Developer / compute.rhino3d - McNeel Forum
Based on this I altered both
%AppData%\McNeel\Rhinoceros\packages\8.0\Hops\0.16.18\compute.geometry\computeg.geometry.runtimeconfig.json
{
"runtimeOptions": {
"tfm": "net8.0",
"rollForward": "Major",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "8.0.25"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "8.0.25"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "8.0.25"
}
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true,
"CSWINRT_USE_WINDOWS_UI_XAML_PROJECTIONS": false
}
}
}
%AppData%\McNeel\Rhinoceros\packages\8.0\Hops\0.16.28\rhino.compute\rhino.compute.runtimeconfig.json
{
"runtimeOptions": {
"tfm": "net8.0",
"includedFrameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "8.0.25"
},
{
"name": "Microsoft.AspNetCore.App",
"version": "8.0.25"
}
],
"configProperties": {
"System.GC.Server": true,
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false, "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
My installed dotnet runtimes are:
Given this setup, I keep getting the error: Path appears valid, but to something that is not Hops related.
When I start Rhino and open my GH definition, Hops seems to work fine for a while. However, I see that when the rhino.compute instance (the one bundled with Rhino locally) goes to sleep afeter some period of inactivity or when locking my laptop, I consistently get this error.
Based on this topic Error: Path appears valid, but to something that is not Hops related - Grasshopper / Hops - McNeel Forum I see that the rollForward setting might do something
I do believe modifying the *.runtimeconfig.json files can be the fix since Hops is at least working to some extent (it didn’t at all before). However, I am still missing something.
My latest insight is that the runtimeconfig of compute.geometry looks a bit different than the rhino.compute one. I specifically notice the frameworksattribute for compute.geometry vs. the includedFrameworks attribute for rhino.compute. Could this be something I need to look into?
