Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Improve error message when GenerateWatchList fails #249

Closed
natemcmaster opened this issue Jan 4, 2017 · 0 comments
Closed

Improve error message when GenerateWatchList fails #249

natemcmaster opened this issue Jan 4, 2017 · 0 comments

Comments

@natemcmaster
Copy link
Contributor

natemcmaster commented Jan 4, 2017

Example: when the target fails, no file is produced.

watch : Running MSBuild target 'GenerateWatchList' on '/Users/nmcmaster/Downloads/t1/test/watch.proj'
watch : Started '/usr/local/share/dnvm/environments/default/dotnet' with process id 66330
watch : Process id 66330 ran for 835ms
watch : System.IO.FileNotFoundException: Could not find file '/var/folders/wt/qgc8g0h10y356ch360468p4r0000gn/T/tmpriVNqL.tmp'.
File name: '/var/folders/wt/qgc8g0h10y356ch360468p4r0000gn/T/tmpriVNqL.tmp'
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func2 errorRewriter) at Interop.CheckIo[TSafeHandle](TSafeHandle handle, String path, Boolean isDirectory, Func2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.UnixFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, FileStream parent)

Errors:

  • no TFM or TFMs have been specified
  • tmp file missing, couldn't read watch list

Consider logging MSBuild output to a file.

natemcmaster pushed a commit that referenced this issue Jan 13, 2017
…' to help us diagnose issues

Fixes #252 - help output shown twice in dotnet-watch
Fixes #250 - add dotnet-watch --list. Prints a list of all files discovered
Fixes #249 - better error message when GenerateWatchList fails
natemcmaster pushed a commit that referenced this issue Jan 13, 2017
…' to help us diagnose issues

Fixes #252 - help output shown twice in dotnet-watch
Fixes #250 - add dotnet-watch --list. Prints a list of all files discovered
Fixes #249 - better error message when GenerateWatchList fails
natemcmaster pushed a commit that referenced this issue Jan 13, 2017
…' to help us diagnose issues

Fixes #252 - help output shown twice in dotnet-watch
Fixes #250 - add dotnet-watch --list. Prints a list of all files discovered
Fixes #249 - better error message when GenerateWatchList fails
@natemcmaster natemcmaster self-assigned this Jan 13, 2017
@natemcmaster natemcmaster added this to the 2.0.0 milestone Jan 13, 2017
natemcmaster pushed a commit that referenced this issue Jan 17, 2017
…' to help us diagnose issues

Fixes #252 - help output shown twice in dotnet-watch
Fixes #250 - add dotnet-watch --list. Prints a list of all files discovered
Fixes #249 - better error message when GenerateWatchList fails
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant