OmniSharp/omnisharp-emacs

Unable to create directory "/x86/Debug/". Access to the path "/x86" is denied.

CyberShadow opened this issue · 2 comments

The package appears to not be working.

Log:

[03:12:34] Starting OmniSharpServer using project folder/solution file: /home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit/AxiomVerge.sln
[03:12:34] Using server binary on /home/vladimir/.emacs.d/.cache/omnisharp/server/v1.31.1/run
[03:12:35] INFORMATION: OmniSharp.Stdio.Host, Starting OmniSharp on arch 0.0 (x64)
[03:12:35] INFORMATION: OmniSharp.Services.DotNetCliService, DotNetPath set to dotnet
[03:12:35] INFORMATION: OmniSharp.MSBuild.Discovery.MSBuildLocator, Located 1 MSBuild instance(s)
            1: StandAlone 15.0 - "/home/vladimir/.emacs.d/.cache/omnisharp/server/v1.31.1/omnisharp/msbuild/15.0/Bin"
[03:12:35] INFORMATION: OmniSharp.MSBuild.Discovery.MSBuildLocator, MSBUILD_EXE_PATH environment variable set to '/home/vladimir/.emacs.d/.cache/omnisharp/server/v1.31.1/omnisharp/msbuild/15.0/Bin/MSBuild.dll'
[03:12:35] INFORMATION: OmniSharp.MSBuild.Discovery.MSBuildLocator, Registered MSBuild instance: StandAlone 15.0 - "/home/vladimir/.emacs.d/.cache/omnisharp/server/v1.31.1/omnisharp/msbuild/15.0/Bin"
            MSBuildExtensionsPath = /usr/lib/mono/xbuild
            BypassFrameworkInstallChecks = true
            CscToolPath = /home/vladimir/.emacs.d/.cache/omnisharp/server/v1.31.1/omnisharp/msbuild/15.0/Bin/Roslyn
            CscToolExe = csc.exe
            MSBuildToolsPath = /home/vladimir/.emacs.d/.cache/omnisharp/server/v1.31.1/omnisharp/msbuild/15.0/Bin
            TargetFrameworkRootPath = /usr/lib/mono/xbuild-frameworks
[03:12:35] INFORMATION: OmniSharp.Cake.CakeProjectSystem, Detecting Cake files in '/home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit'.
[03:12:36] INFORMATION: OmniSharp.Cake.CakeProjectSystem, Could not find any Cake files
[03:12:36] INFORMATION: OmniSharp.DotNet.DotNetProjectSystem, Initializing in /home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit
[03:12:36] INFORMATION: OmniSharp.DotNet.DotNetProjectSystem, Auto package restore: False
[03:12:36] INFORMATION: OmniSharp.DotNet.DotNetProjectSystem, Update workspace context
[03:12:36] INFORMATION: OmniSharp.DotNet.DotNetProjectSystem, Resolving projects references
[03:12:36] INFORMATION: OmniSharp.MSBuild.ProjectSystem, Detecting projects in '/home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit/AxiomVerge.sln'.
[03:12:36] INFORMATION: OmniSharp.MSBuild.ProjectManager, Queue project update for '/home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit/AxiomVerge.csproj'
[03:12:36] INFORMATION: OmniSharp.Script.ScriptProjectSystem, Detecting CSX files in '/home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit'.
[03:12:36] INFORMATION: OmniSharp.Script.ScriptProjectSystem, Could not find any CSX files
[03:12:36] INFORMATION: OmniSharp.Stdio.Host, Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[03:12:36] INFORMATION: OmniSharp.Stdio.Host, Configuration finished.
[03:12:36] INFORMATION: OmniSharp.Stdio.Host, Omnisharp server running using Stdio at location '/home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit' on host -1.
[03:12:36] INFORMATION: OmniSharp.MSBuild.ProjectManager, Loading project: /home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit/AxiomVerge.csproj
[03:12:36] WARNING: OmniSharp.MSBuild.ProjectLoader, Unable to create directory "/x86/Debug/". Access to the path "/x86" is denied.
[03:12:37] WARNING: OmniSharp.MSBuild.ProjectLoader, Could not write state file "/x86/Debug/AxiomVerge.csprojResolveAssemblyReference.cache". Could not find a part of the path "/x86/Debug/AxiomVerge.csprojResolveAssemblyReference.cache".
[03:12:37] ERROR: OmniSharp.MSBuild.ProjectLoader, Could not write lines to file "/x86/Debug/AxiomVerge.csproj.CoreCompileInputs.cache". Could not find a part of the path "/x86/Debug/AxiomVerge.csproj.CoreCompileInputs.cache".
[03:12:37] WARNING: OmniSharp.MSBuild.ProjectManager, Failed to load project file '/home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit/AxiomVerge.csproj'.
[03:12:37] ERROR: OmniSharp.MSBuild.ProjectManager, Attemped to update project that is not loaded: /home/vladimir/work/tas/axiom-verge/AxiomVerge.exe.il/AxiomVerge-edit/AxiomVerge.csproj
[03:12:53] <-- 1 /findusages: ((QuickFixes))
[03:13:16] <-- 2 /checkalivestatus: t

Project file:

<?xml version="1.0"?>
<Project xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  <PropertyGroup>
    <ProjectGuid>{01234567-89AB-CDEF-0123-456789ABCDEF}</ProjectGuid>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
    <AssemblyName>AxiomVerge</AssemblyName>
    <OutputType>WinExe</OutputType>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    <OutputPath>bin\Debug\</OutputPath>
    <DebugSymbols>true</DebugSymbols>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <Optimize>false</Optimize>
    <WarningLevel>4</WarningLevel>
    <DebugType>full</DebugType>
    <ErrorReport>prompt</ErrorReport>
    <PlatformTarget>x86</PlatformTarget>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    <OutputPath>bin\Release\</OutputPath>
    <DebugSymbols>false</DebugSymbols>
    <DefineConstants>TRACE</DefineConstants>
    <Optimize>true</Optimize>
    <WarningLevel>4</WarningLevel>
    <DebugType>pdbonly</DebugType>
    <ErrorReport>prompt</ErrorReport>
    <PlatformTarget>x86</PlatformTarget>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="FNA">
      <HintPath>.\AxiomVergeReferences\FNA.dll</HintPath>
    </Reference>
    <Reference Include="System.Core" />
    <Reference Include="Steamworks.NET">
      <HintPath>.\AxiomVergeReferences\Steamworks.NET.dll</HintPath>
    </Reference>
    <Reference Include="log4net">
      <HintPath>.\AxiomVergeReferences\log4net.dll</HintPath>
    </Reference>
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <!-- ... file list omitted ... -->
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

Hi @CyberShadow .

This appears to be an issue with omnisharp-roslyn server package and I cannot find what could be wrong with your .csproj with a glance. It attempts to make a directory on the root of the filesystem so apparently a base path is missing somewhere by concatenation but I have no idea why this might be. It COULD be related to the fact that you are loading .NET FX 4.0 Windows EXE project on Linux but that is probably not the cause.

omnisharp-emacs provides a frontend for emacs to the omnisharp-roslyn language server. Could you report this to the language server team @ omnisharp-roslyn/issues ?

You may also try to change emacs variable omnisharp-expected-server-version to a later version, as I see v1.32.1 is already available on omnisharp-roslyn/releases page.

Sorry, I am unable to follow up on this, so I'm going to close this issue.