Code Snippets crashing when adding new snippets

For some reason every time I try to add a code snippet, I keep getting this error. There is plenty of space on my local drive where my snippets live. I only have about 20 snippets of text set up, but would like to expand on this as it saves me a’ lot of time in new development and testing.

System.IO.IOException
There is not enough space on the disk.

Stack Trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at Quest.Toad.CodeSnippets.SnippetsManagerControl.ReserveNewSnippetFile(String path)
at Quest.Toad.CodeSnippets.SnippetsManagerControl.AddNewSnippet()
at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarButtonItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarItemLink.OnLinkClick()
at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraBars.Controls.CustomControl.WndProc(Message& msg)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Hi Lance, I can’t seem to replicate the scenario with loading 20+ custom code snippets. What version of Toad are you using and have you tried closing/reopening the application trying again?

Hi Gita,

I have rebooted 3x this week and just opened Toad from a reboot I had to do not long ago and I still get the same issue. It seems odd that it’s causing any issues as code snippets are just text files. We are on the Toad Data Studio Subscription 2.0.1.35099 (64 bit). I have also reviewed local space and there is over 100Gb’s free as I assume it’s saving the snippets in the program files on the C:/.

Thanks,

Lance

Hi Lance,
I checked with the team, and based on their investigation, they predict this type of issue can be typical when the snippets path is redirected or cloud-backed and file creation is blocked immediately.

Most likely causes even with free space on C: snippets are stored under user-profile locations either under user profile Roaming or Documents | Shared Toad. If those folders are redirected to say a network share, onedrive, roaming profile, or under NTFS/user quota, Windows can return “disk full” despite local C: having plenty of space.

Would you say that would be your case?

Can you share your exact snippets path used (Roaming vs Shared Toad) and/or whether it’s OneDrive, redirected or network-backed etc.

Thanks.