Rhino 8 Script Editor unable to load/save to mapped network drive

I’m using Rhino 8 BETA (8.0.23262.12303, 2023-09-19) on Windows 11 running in an vmware 16 virtual machine on a linux host.

The Rhino script editor (Python, CS, etc.) is unable to save or load scripts from network drives (network mapped drived, vmware shared drives etc.). It will display a red error status bar on the bottom with an error message Error saving script as or Error occured in comand “”.

The standard RhinoeScript editor works fine with mapped drives, just as the rest of Rhino 8.

Is this a known bug ? Is there a work-around?

Hi -

Virtualization systems such as VMWare are simply not supported. What works, works. What doesn’t, doesn’t.
-wim

Just found the log entry for the error:

Error 20.09.2023 09:51:28 [RhinoCode] Error saving code as | Rhino.Runtime.Code.Storage.StorageException: Error storing to file://vmware-host/Shared Folders/xx/src/Untitled.cs
—> System.IO.IOException: The filename, directory name, or volume label syntax is incorrect. : ‘C:\Program Files\Rhino 8 WIP\System\file:\vmware-host\Shared Folders\xx\src\Untitled.cs’
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.File.WriteAllBytes(String path, Byte bytes)
at Rhino.Runtime.Code.Storage.Local.FileStorage.StoreData(StorageData data)
at Rhino.Runtime.Code.Storage.Storage.Store(StorageData data)
— End of inner exception stack trace —
at Rhino.Runtime.Code.Storage.Storage.Store(StorageData data)
at Rhino.Runtime.Code.Code.Store(IStorage storage, StorageSerializer serializer)
at Rhino.Runtime.Code.Code.Store(IStorage storage)
at RhinoCodeEditor.Editor.Commands.BaseSaveCodeCommand.SaveCode(RCE rce, StateCode stateCode, Boolean saveAs)

Fiddeling around a bit more - the problem seems to be network drives (samba shared drives or vmware shares). A work-around is to actually map the drive to a local drive letter (Z:, Y:, X: etc.). Sorry I misslabled the topic - the problem seem to be network drives, not mapped network drives.

@corax Thanks for reporting this. I fixed the bug and should be available in the next build

The problem was with the way file path was being handled for network drives