Scripteditor crashes Rhino8 when C# script is changed from VisualStudio

I noticed that while a C# script file is open in ScriptEditor, when that same file is changed from VisualStudio, this causes a crash. It only seems to happen with VisualStudio, not with another editor.

[ERROR] FATAL UNHANDLED EXCEPTION: Rhino.Runtime.Code.Storage.StorageException: Error loading from file:///G:/IShape/IShapeCreator3/IShapeProducer/Scripts/MakeBatch.cs~RFd496c67.TMP
 ---> Rhino.Runtime.Code.Storage.StorageException: File does not exist at G:\IShape\IShapeCreator3\IShapeProducer\Scripts\MakeBatch.cs~RFd496c67.TMP
   at Rhino.Runtime.Code.Storage.Local.FileStorage.LoadData()
   at Rhino.Runtime.Code.Storage.Storage.Load()
   --- End of inner exception stack trace ---
   at Rhino.Runtime.Code.Storage.Storage.Load()
   at Rhino.Runtime.Code.Code.get_StoredStatus()
   at RhinoCodeEditor.Editor.Panels.Codes.CodeTabs.Tab.get_ShowMarker()
   at RhinoCodeEditor.Editor.Panels.Codes.CodeTabs.DrawTab(DrawInfo di, Tab tab, DrawStyle style)
   at RhinoCodeEditor.Editor.Panels.Codes.CodeTabs.Refresh(PaintEventArgs e)
   at Eto.Forms.Drawable.Callback.OnPaint(Drawable widget, PaintEventArgs e) in D:\BuildAgent\work\dujour\src4\DotNetSDK\Eto\src\Eto\Forms\Controls\Drawable.cs:line 178
   at Eto.Wpf.Forms.Controls.DrawableHandler`3.EtoMainCanvas.OnRender(DrawingContext dc) in D:\BuildAgent\work\dujour\src4\DotNetSDK\Eto\src\Eto.Wpf\Forms\Controls\DrawableHandler.cs:line 78
   at System.Windows.UIElement.Arrange(Rect finalRect)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[END ERROR]

Thanks @i-Shape - I am able to reproduce.

https://mcneel.myjetbrains.com/youtrack/issue/RH-79763

– Dale

RH-79763 is fixed in Rhino 8 Service Release 4 Release Candidate