You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
With .Net 6 Preview7, failed to open '/etc/dotnet/install_location' when running dotnet tool #56219
Run below commands:
dotnet tool install -g doTNetsay
dotnet tool list -g
dotnetsay
Expected Result:
Tool dotnetsay can be run successfully
Actual Result:
Failed to open '/etc/dotnet/install_location' when running dotnet tool: The install_location file ['/etc/dotnet/install_location'] failed to open: No such file or directory.
Runtime Environment:
OS Name: ubuntu
OS Version: 18.04
OS Platform: Linux
RID: ubuntu.18.04-x64
Base Path: /usr/share/dotnet/sdk/6.0.100-preview.7.21369.19/
Host (useful for support):
Version: 6.0.0-preview.7.21368.2
Commit: 8d3afa3
Looks like that error should not be printed, but it is not causing any other side effects (the process is not exiting) so I don't think this is blocking
It is blocking - we can't alter an output (stderr or stdout) of a console app if it works - the entire functionality of the app might be to print something to stderr and if something else tries to parse it it would be broken.
Blocking Preview 7 - don't know - it might. It's pretty bad and there's really no work around (creating the file is one, but one needs to know what to put into it).
Reacted by Mateo Torres-Ruiz
ghost added
in-prThere is an active PR which will close this issue when it is merged
Activity
wli3 commentedon Jul 22, 2021
@mikem8361 could you look into this install_location issue?
wli3 commentedon Jul 22, 2021
@vitek-karas
mikem8361 commentedon Jul 22, 2021
Why did I get assigned this issue?
1 remaining item
vitek-karas commentedon Jul 23, 2021
I'm gonna give this a shot of fixing (to refresh my linux debugging non-skills).
agocke commentedon Jul 26, 2021
Looks like that error should not be printed, but it is not causing any other side effects (the process is not exiting) so I don't think this is blocking
vitek-karas commentedon Jul 26, 2021
It is blocking - we can't alter an output (stderr or stdout) of a console app if it works - the entire functionality of the app might be to print something to stderr and if something else tries to parse it it would be broken.
mateoatr commentedon Jul 26, 2021
We must change this to info:
runtime/src/native/corehost/hostmisc/pal.unix.cpp
Lines 441 to 445 in 09e1608
agocke commentedon Jul 26, 2021
This is blocking Preview 7?
vitek-karas commentedon Jul 26, 2021
I have a candidate fix https://github.com/dotnet/runtime/compare/main...vitek-karas:FixErrorOnInstallLocation?expand=1
Trying to test it.
vitek-karas commentedon Jul 26, 2021
Blocking Preview 7 - don't know - it might. It's pretty bad and there's really no work around (creating the file is one, but one needs to know what to put into it).
Fix an error printed out when install_location file is missing (#56327)