-
Notifications
You must be signed in to change notification settings - Fork 74
dotnet-watch prints invalid characters in Command Prompt #265
Comments
Can confirm. This only appears in Command Prompt, which doesn't support ANSI color codes. To workaround, use basically any other shell, like PowerShell, ConEmu, etc. |
Will consider this for a 1.0.1 patch of this package. |
@natemcmaster is this bug meant for the patch or for dev (2.0.0-preview1)? For dev I see you merged the change in - that's good. But then this bug should move to the correct milestone, and I guess we need a new bug opened for 1.0.1? |
@Eilon I'm honestly confused about whether we have 1.0.1 planned or not. Feel free to move milestones/create duplicates as necessary to satisfy bookkeeping procedures. |
Issue appears to exist in Nightly Build for Windows 7 (SP1) 64-bit. Steps to reproduce: Download ZIP of latest Windows X64 SDK: Unzip the file. Place the contents of the unzipped Open a command line ( Type Type Expected result: Actual result: It's possible I have missed some necessary steps. |
@snerks what is your version of Microsoft.DotNet.Watcher.Tools? (look for DotNetCliToolReference or |
Do I need to take steps to update this to nightly version? |
Your steps may have updated dotnet-CLI, but you're still using dotnet-watch 1.0.0. To use nightly,
See https://dotnet.myget.org/feed/aspnetcore-ci-dev/package/nuget/Microsoft.DotNet.Watcher.Tools. |
Problem with D:\DotNetCore.Nightly\dotnet-dev-win-x64.latest\testexample\mytests>dotnet resto Restoring packages for D:\DotNetCore.Nightly\dotnet-dev-win-x64.latest\testexa |
@snerks this error looks like a NuGet bug. https://github.com/NuGet/Home is the right place for this. I'd recommend using dotnet-CLI 1.0.0 instead if you're simply trying to use a new version of dotnet-watch. The latest 1.2.0-* version of Microsoft.DotNet.Watcher.Tools doesn't need dotnet-CLI 2.0.0-preview1. Combining nightlies of dotnet CLI and NuGet and dotnet-watch is going to be unstable. |
@natemcmaster - I've made progress on this. To workaround the NuGet issue above, I downloaded the Nightly I then added a Nuget Package source that points to my on-disk Nuget packages folder. Finally, I added a reference to the exact version of <ItemGroup>
<DotNetCliToolReference Include="Microsoft.DotNet.Watcher.Tools" Version="1.2.0-preview1-24137" />
</ItemGroup> Then, following the steps in the blog item by @shanselman, I now see the following:
Powershell: FYI: Git Shell does not show colorisation - not sure if this is expected. Thanks @natemcmaster for helping to resolve my issue and @shanselman for the blog post. |
dotnet-watch
prints unknown/non-ascii characters in log messages (red boxes on image).Package used:
Microsoft.DotNet.Watcher.Tools
version1.0.0-msbuild3-final
Environment:
win10-x64
, SDK1.0.0-rc4-004771
, console encodingutf-8
(green on image)Possibly related with https://github.com/dotnet/cli/issues/2590
The text was updated successfully, but these errors were encountered: