Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dotnet overlay: VScode can't find /x86/Debug/
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ShadowCat8
Apprentice
Apprentice


Joined: 07 Oct 2008
Posts: 173
Location: San Bernardino, CA, USA

PostPosted: Thu Aug 30, 2018 11:52 pm    Post subject: dotnet overlay: VScode can't find /x86/Debug/ Reply with quote

Greetings,

I am getting the following errors when I try to open a C# project in app-editors/visual-studio-code-1.26.1::dotnet :

Code:
[info]: OmniSharp.Stdio.Host
        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.


Now, I have installed dev-util/msbuild-15.3-r3, dev-dotnet/msbuild-tasks-api-15.3-r1, dev-dotnet/newtonsoft-json-6.0.8-r1, dev-dotnet/buildtools-1.0.27-r1, dev-dotnet/system-collections-immutable-2.0.0_pre-r1, dev-dotnet/system-reflection-metadata-2.0.0_pre-r1, dev-dotnet/msbuild-defaulttasks-15.3-r3, dev-dotnet/msbuild-roslyn-csc-15.3-r1, dev-dotnet/dotnetcore-sdk-bin-2.1.302 and app-editors/visual-studio-code-1.26.1 from the dotnet overlay.

Here is the emerge --info:
Code:
 ~ # emerge --info
Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.26-r7, 4.12.3-gentoo-ws-20171011-01 x86_64)
=================================================================
System uname: Linux-4.12.3-gentoo-ws-20171011-01-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6700_@_2.66GHz-with-gentoo-2.4.1
KiB Mem:     8158676 total,    538892 free
KiB Swap:    7653372 total,   7197692 free
Timestamp of repository gentoo: Tue, 28 Aug 2018 21:15:01 +0000
Head commit of repository gentoo: 5255b96fa28ec4a896caa85b17cfa374d6c4b6cd
Head commit of repository wine: cba2971d19cc8b9fec5f6aa2aba1d94b2a09810f

sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.8::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.12.6-r2::gentoo, 1.13.4-r2::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r2::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo, 6.4.0-r1::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

local
    location: /usr/local/portage
    masters: gentoo

wine
    location: /var/db/package-manager/repos/wine
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/proj/wine.git
    masters: gentoo

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

dotnet
    location: /var/lib/layman/dotnet
    masters: gentoo
    priority: 50

zugaina
    location: /var/lib/layman/zugaina
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://mirrors.rit.edu/gentoo/ http://mirror.usu.edu/pub/mirrors/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 apm audiofile avi berkdb browserplugin bzip2 cairo cdda cddb cdr clamav cli consolekit crypt css cups curl cxx dbus divx4linux djvu dri dv dvd dvdr exif ffmpeg flac flash fontconfig fortran gdbm gif gimp glut gnutls gtk gtk2 gzip iconv icu imagemagick imlib ipv6 java jpeg jpeg2k junit lame libtirpc lm_sensors matroska mime ming mmx mng modules mono mozcalendar mozilla mozsvg mozxmlterm mp3 mp4 mpeg mplayer multilib mysql mysqli ncurses nls nptl nsplugin ogg openexr opengl openmp pam pcre pdf perl png policykit qt quicktime raw readline samba sandbox seccomp sensord smp sockets speex sse sse2 sse3 ssl svg tcpd theora tiff truetype udev udisks unicode usb vcd vorbis wmf x264 xattr xinerama xml xpm xprint xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python3_4 python3_5 python2_7" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

 ~ #


Any assistance would be most appreciated. If you need more information, let me know.

TIA.
_________________
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Back to top
View user's profile Send private message
Cynede
Retired Dev
Retired Dev


Joined: 30 Nov 2012
Posts: 56

PostPosted: Fri Aug 31, 2018 1:52 pm    Post subject: Reply with quote

Seems related https://github.com/OmniSharp/omnisharp-vscode/issues/2186
Back to top
View user's profile Send private message
ShadowCat8
Apprentice
Apprentice


Joined: 07 Oct 2008
Posts: 173
Location: San Bernardino, CA, USA

PostPosted: Sat Sep 01, 2018 12:00 am    Post subject: Reply with quote

Greetings and thanks for your reply.

I'm not sure that it is the same issue, though it may be.

Dustin's explanation on that post says that it may be an issue with the version of MSBuild (with respect to the Antergos Linux-cum-Arch Linux), but I notice that there is only one version of dev-util/msbuild in the dotnet overlay (namely 15.3-r3) and none in the standard portage tree.

And, trying to compare the packages between the two distros doesn't really work since Arch has both msbuild-bin and msbuild-stable packages in their AUR, and since we have to consider overlays to be experimental (doubly so, since the dotnet overlay description is "Experimental overlay for .NET packages.") then we have no "stable" msbuild package available to install.

Now, along what we can look at and/or tweak to get a resolution for us, here is the emerge -pv msbuild:
Code:
 ~ # emerge -pv msbuild

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] dev-util/msbuild-15.3-r3::dotnet  USE="gac net46 roslyn -debug -developer -doc -pkg-config" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
 ~ #


So, at this point, I am looking at possibly setting (in order of what I think might be most relevant to this) the developer, pkg-config and debug USE flags, one at a time to see if those help resolve this.

If anyone has any other insights into this issue, your assistance would be most appreciated and I will let post my findings with the different rebuilds of msbuild here.
_________________
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Back to top
View user's profile Send private message
ShadowCat8
Apprentice
Apprentice


Joined: 07 Oct 2008
Posts: 173
Location: San Bernardino, CA, USA

PostPosted: Tue Sep 04, 2018 6:03 pm    Post subject: Reply with quote

Well,

Still no join on getting it to start without error, but on enabling the +debug USE flag, I got the following output that may help more experienced eyes than mine in finding the core of this issue:

Code:
 * Messages for package dev-util/msbuild-15.3-r3:

 * Ebuild doesn't contain USE_DOTNET=
 * /v:detailed /p:TargetFrameworkVersion=v4.6 /p:Configuration=Debug /p:DebugSymbols=False /p:VersionNumber=15.3.0.0 /p:RootPath=/var/tmp/portage/dev-util/msbuild-15.3-r3/work/linux-packaging-msbuild-e08c20fd277b9de1e3a97c5bd9a5dcf95fcff926 /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=/var/tmp/portage/dev-util/msbuild-15.3-r3/distdir/mono.snk /var/tmp/portage/dev-util/msbuild-15.3-r3/work/linux-packaging-msbuild-e08c20fd277b9de1e3a97c5bd9a5dcf95fcff926/src/MSBuild/mono-MSBuild.csproj
>>> Auto-cleaning packages...


If you need any other information, let me know.

TIA for your assistance.
_________________
________________________

"As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality."

-- Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum