To me that looks like the DLL loaded now.
This answer is correct. See the json response with information on the running instance of Rhino there? Try running from vscode again
Iâm going to try again but:
in log.txt, line 117 ?
Unrelated
Ok I seem to have another bug in the vscode extension. Running the subprocess with spaces in the path C:\Program Files\Rhino 8 WIP\System
is the bug
Just pushed an update for the vscode extension 0.0.3
. That should fix the problem
VSCode extension return now:
[Extension Host] Error checking rhinocode path \RhinoCode.exe | Error: ENOENT: no such file or directory, stat '\RhinoCode.exe'
I solve this by specifying rhinocode.rhinoInstallPath
in settings.json
{
"rhinocode.rhinoInstallPath": "C:\\Program Files\\Rhino 8 WIP\\System"
}
Itâs strange. Previously, the extension seemed to put the correct path of âProgram Filesâ
That said, it might be good to set a default value on rhinoPathConfig
let rhinoPathConfig = configs.get<string>("rhinoInstallPath", "");
if (rhinoPathConfig == "") {
switch (os.platform()) {
case 'darwin': rhinoPathConfig = ...; break;
case 'win32' : rhinoPathConfig = "C:\\Program Files\\Rhino 8 WIP\\System" break;
}
}
Works on my end as well. Two things I did a) copy config file attached above, b) explicitly adding rhinocode.rhinoInstallPath to settings.
Yeah thatâs not a bug. I think I forgot to mention that in the video RhinoCode extension has a bunch of settings
Great ! Yes ! (I was not sure you would accept the PR).
As soon as possible (and before next year).
What is the default path of ârhinoPathConfigâ under MacOS ?
/Applications/RhinoWIP.app
We also need to add a message there if the extension can not find rhinocode
in any of the provided paths (the rhinoInstallPath
accepts a ;-delimited list of paths)
done
Can you explain to me how you compile C# scripts?
Are these Roslyn scripts (like those with a â.csxâ extension) or do you use custom transform so you can compile them as a standard assembly?
I would like to add OmniSharp support to have automatic completion (if possible).
We are working on providing language support for Python and C#. Stay tuned. Thanks for the PR!
@kitjmv Merged your PR for review. I have a couple of questions posted here thatâd be great to get your answers on (code divided into functions and improved errors by corbane ¡ Pull Request #1 ¡ mcneel/rhinocodevscode ¡ GitHub)
Iâve installed this extension for VS Code under Windows but⌠what do I do next? There is no âRun in Rhino Wipâ option anywhere⌠Can you please provide SIMPLE step-by-step guide for noobs!
Hello @monkelisha
Start Rhino WIP
Start RhinoCode (this is optional, but if youâve updated Rhino, or never started RhinoCode, you need to do so. If you donât know, do so)
In VSCode
Of course, you must have a script file (* .py
, * .cs
) open.
press F1 (or View menu > Command palette)
find âRun in Rhino WIPâ
thatâs all
Thank you @kitjmv,
I had no idea about this âCommand paletteâ option, so I was just at this chaotic clicking all over the VSC for couple hours without any success⌠and in a such hopelessness I even was on the verge of resorting to the tambourine-dance method.