app-editors/visual-studio-code-1.26.1 can't find "/x86/Debug/"
When trying to open a project in VScode, I get the following output:
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/home/shadowcat8/dv/git/chk-permissions' on host 7011.
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /home/shadowcat8/dv/git/chk-permissions/Chk_Permissions/Chk_Permissions.csproj
[warn]: OmniSharp.MSBuild.ProjectLoader
Unable to create directory "/x86/Debug/". Access to the path "/x86" is denied.
[warn]: OmniSharp.MSBuild.ProjectLoader
Could not write state file "/x86/Debug/Chk_Permissions.csprojResolveAssemblyReference.cache". Could not find a part of the path "/x86/Debug/Chk_Permissions.csprojResolveAssemblyReference.cache".
[fail]: OmniSharp.MSBuild.ProjectLoader
Unable to create directory "/x86/Debug/". Access to the path "/x86" is denied.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file '/home/shadowcat8/dv/git/chk-permissions/Chk_Permissions/Chk_Permissions.csproj'.
/home/shadowcat8/dv/git/chk-permissions/Chk_Permissions/Chk_Permissions.csproj
/home/shadowcat8/.vscode/extensions/ms-vscode.csharp-1.15.2/.omnisharp/1.30.1/omnisharp/msbuild/15.0/Bin/Microsoft.Common.CurrentVersion.targets(1089,5): Error: Unable to create directory "/x86/Debug/". Access to the path "/x86" is denied.
/home/shadowcat8/.vscode/extensions/ms-vscode.csharp-1.15.2/.omnisharp/1.30.1/omnisharp/msbuild/15.0/Bin/Microsoft.Common.CurrentVersion.targets(2067,5): Error: Could not write state file "/x86/Debug/Chk_Permissions.csprojResolveAssemblyReference.cache". Could not find a part of the path "/x86/Debug/Chk_Permissions.csprojResolveAssemblyReference.cache".
/home/shadowcat8/.vscode/extensions/ms-vscode.csharp-1.15.2/.omnisharp/1.30.1/omnisharp/msbuild/15.0/Bin/Microsoft.Common.CurrentVersion.targets(2674,5): Error: Unable to create directory "/x86/Debug/". Access to the path "/x86" is denied.
I have already made a post to the forums regarding this issue, where it was suggested that it might be similar to the one posted at the OmniSharp Project page. In that post, it was found to be an issue with the version of MSBuild and was resolved by installing the latest "msbuild-stable" package.
However, Antergos Linux is based on Arch Linux where they have multiple versions of MSBuild available through their AUR (e.g. Arch User Repository), where we only have the one version available in the dotnet overlay.
Any recommendations on how to resolve this issue? Thanks in advance for your assistance.
I faced similar issue while using Debian.
As a workaround i used chmod to alter permission to entire project folder and the issue is resolved for me
chmod 777 /home/shadowcat8 -R
@biluriuday: Thank you for your response.
Out of curiosity, how similar was the issue you faced?
The reason I ask is it seems a bit counter-intuitive as to why your workaround would have worked when it seems to be looking for "/x86/Debug" from the root of the filesystem. The fact that it did work would indicate that there was something that the application couldn't read, write and/or execute as another user, within your home directory.
That seems a bit odd to me.
@biluriuday: I tried setting the permissions on the project directory to 777, but still no change in behavior.
Any other thoughts?