waf/CSharpRepl

Doesn't work on Mac Big Sur 11.5.2 zsh shell

hsatopo opened this issue · 4 comments

Version

latest

What happened?

When I type csharprepl, there is an error message saying it's not found

waf commented

I think this is a known issue with .NET global tools: https://docs.microsoft.com/en-us/dotnet/core/tools/troubleshoot-usage-issues#executable-file-not-found

Can you please try adding ~/.dotnet/tools to the PATH environment variable?

@waf got it, will try it. Thanks

@waf dotnet-repl works by providing an alternative way to get the repl which is instead of
dotnet-repl, I can get to it by typing dotnet repl. But not for csharprepl though

waf commented

right, I think that's because its name starts with dotnet-, so it's invokable through the parent dotnet executable. If the dotnet team is able to fix the underlying issue with dotnet tools and ZSH, it will solve this issue.

I'll add a note for this in the readme so it doesn't catch others. Thanks for reporting and investigating!