Skip to content
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

Plugins - better support for dotnet tool commands #893

Closed
belav opened this issue May 8, 2023 · 2 comments · Fixed by #1188
Closed

Plugins - better support for dotnet tool commands #893

belav opened this issue May 8, 2023 · 2 comments · Fixed by #1188

Comments

@belav
Copy link
Owner

belav commented May 8, 2023

          still exists for csharpier v0.24.1 + rider plugin v1.3.7 + macOS + globally installed tool.

since it's hard to set PATH environment variable for macOS GUI apps, the PATH env is default and does not contain dotnet tools install -g dir. ~/.dotnet/tools/

$ which dotnet-csharpier
/Users/magicdawn/.dotnet/tools/dotnet-csharpier

suggestions:

https://github.com/belav/csharpier/blob/rider-1.3.7/Src/CSharpier.Rider/src/main/java/com/intellij/csharpier/CSharpierProcessProvider.java#L161


And a note for other macOS users want to set PATH for GUI apps

launchctl config user path "xxxx1:xxxx2:xxxx3", requires reboot

see https://github.com/hschmidt/EnvPane#why-cant-i-set-path-with-envpane

Originally posted by @magicdawn in #716 (comment)

@belav
Copy link
Owner Author

belav commented Sep 25, 2023

Related

Cannot format in Rider. I'm getting
SEVERE - #c.i.c.CSharpierLogger - Cannot run program "dotnet": error=2, No such file or directory
This is on linux. Seems that adding env DOTNET_ROOT fixed the problem

@belav
Copy link
Owner Author

belav commented Feb 12, 2024

See if we can use the same option rider uses for finding dotnet if it is not available on the PATH. It is at Settings | Build,Execution,Deployment | and Build | .NET Core CLI executable path
Can we retrieve it somehow?

belav added a commit that referenced this issue Feb 24, 2024
belav added a commit that referenced this issue Feb 27, 2024
* Better support for dotnet commands.

closes #893

* Finishing up the changes

* update version number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant