New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template reloading sometimes throws #138

Closed
Tarmil opened this Issue Oct 6, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@Tarmil
Member

Tarmil commented Oct 6, 2017

It seems we are trying to read the file while it's still being written to, or something like that.

Exception Info: System.IO.IOException
   at System.IO.__Error.WinIOError(Int32, System.String)
   at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
   at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, Int32, System.IO.FileOptions, System.String, Boolean, Boolean, Boolean)
   at System.IO.StreamReader..ctor(System.String, System.Text.Encoding, Boolean, Int32, Boolean)
   at System.IO.File.InternalReadAllText(System.String, System.Text.Encoding, Boolean)
   at <StartupCode$WebSharper-UI-Next-Templating-Runtime>.$Runtime.reload@97(System.String, System.String)
   at <StartupCode$WebSharper-UI-Next-Templating-Runtime>.$Runtime+handler@218-1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.__Canon)
   at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers+h@349[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Object, System.__Canon)
   at System.IO.FileSystemWatcher.OnChanged(System.IO.FileSystemEventArgs)
   at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32, UInt32, System.Threading.NativeOverlapped*)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

@Tarmil Tarmil added the bug label Oct 6, 2017

@Tarmil Tarmil self-assigned this Oct 6, 2017

@Tarmil Tarmil closed this in 0a91c39 Mar 29, 2018

@Tarmil Tarmil added the 4.2.4.114 label Mar 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment