intel / vscode-oneapi-environment-configurator

Other
9 stars 4 forks source link

PATH environment variable is corrupted #6

Open hyacz opened 3 years ago

hyacz commented 3 years ago

My PATH environment variable is like this

[hyacz@mu01 ~]$ echo $PATH
/home/hyacz/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/bin:/usr/java/jre1.8.0_151/bin:/usr/java/jre1.8.0_151/bin:/opt/tsce4/maui/sbin:/opt/tsce4/maui/bin:/opt/tsce4/torque6/bin:/opt/tsce4/torque6/sbin:/usr/local/bin:/usr/local/bin:/home/hyacz/.vscode-server/bin/379476f0e13988d90fab105c5c19e7abc8b1dea8/bin:/usr/lib64/qt-3.3/bin:/home/hyacz/perl5/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:.:/home/hyacz/bin

and my .bashrc and .bash_profile are nothing special

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$HOME/bin:$PATH

export PATH

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

But when I initialize the OneAPI settings, the PATH is corrupted

image

bash: tty: command not found
bash: ls: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
bash: grep: command not found
bash: perl: command not found...
[hyacz@mu01 workdir]$ echo $PATH
/home/hyacz/HRR/oneapi/mpi/2021.3.0//libfabric/bin:/home/hyacz/HRR/oneapi/mpi/2021.3.0//bin:/home/hyacz/HRR/oneapi/mkl/2021.3.
[hyacz@mu01 workdir]$ 

PATH is truncated abnormally, and I tried reinstalling the plug-in but no effect. the OneAPI is the latest version downloaded yesterday, and it is installed in a custom directory in the way of ordinary users.

xmnboy commented 3 years ago

@hyacz -- You say that the oneAPI tools are installed in a custom directory. Is this the custom directory: /home/hyacz/HRR/oneapi into which you have installed the oneAPI tools?

Can you perform the following setvars.sh test, at the command-line, and show the results (what was displayed on the screen after running setvars) and the content of your path after running the setvars.sh script:

$ . /home/hyacz/HRR/oneapi/setvars.sh
...various messages are printed...
$ echo $PATH
...contents of PATH is displayed...

By "perform this test at the command-line" I mean ssh into the remote machine and perform this test at that remote command-line. Based on your path, it appears that you have used VSCode's Remote-SSH extension to connect to a remote Linux machine.

hyacz commented 3 years ago

@xmnboy thank you for your reply. Yes, /home/hyacz/HRR/oneapi is my customized installation path, and the outputs are as follows

[hyacz@mu01 ~]$ echo $ONEAPI_ROOT
/home/hyacz/HRR/oneapi
[hyacz@mu01 ~]$ source ~/HRR/oneapi/setvars.sh 

:: initializing oneAPI environment ...
   bash: BASH_VERSION = 4.2.46(2)-release
:: clck -- latest
:: compiler -- latest
:: debugger -- latest
:: dev-utilities -- latest
:: dpcpp-ct -- latest
:: dpl -- latest
:: inspector -- latest
:: ippcp -- latest
:: itac -- latest
:: mkl -- latest
:: mpi -- latest
:: tbb -- latest
:: oneAPI environment initialized ::

[hyacz@mu01 ~]$ echo $PATH
/home/hyacz/HRR/oneapi/mpi/2021.3.0//libfabric/bin:/home/hyacz/HRR/oneapi/mpi/2021.3.0//bin:/home/hyacz/HRR/oneapi/mkl/2021.3.0/bin/intel64:/home/hyacz/HRR/oneapi/itac/2021.3.0/bin:/home/hyacz/HRR/oneapi/inspector/2021.3.0/bin64:/home/hyacz/HRR/oneapi/dpcpp-ct/2021.3.0/bin:/home/hyacz/HRR/oneapi/dev-utilities/2021.3.0/bin:/home/hyacz/HRR/oneapi/debugger/10.1.2/gdb/intel64/bin:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/oclfpga/llvm/aocl-bin:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/oclfpga/bin:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/bin/intel64:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/bin:/home/hyacz/HRR/oneapi/clck/2021.3.0/bin/intel64:/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin:/home/hyacz/bin:/usr/java/jre1.8.0_151/bin:/usr/java/jre1.8.0_151/bin:/opt/tsce4/maui/sbin:/opt/tsce4/maui/bin:/opt/tsce4/torque6/bin:/opt/tsce4/torque6/sbin:/usr/local/bin:/usr/local/bin:/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin:/usr/lib64/qt-3.3/bin:/home/hyacz/perl5/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:.:/home/hyacz/HRR/SU2-6.2.0/bin
[hyacz@mu01 ~]$ 
xmnboy commented 3 years ago

@hyacz -- thanks, I don't see see anything odd in the path generated by that setvars. I notice you include . in the path, but when I tried to duplicate that it had no impact.

Would help to get a before and after env capture. For example:

$ env >env-before.txt
$ source ~/HRR/oneapi/setvars.sh
$ env >env-after.txt

Make sure there's no personal or confidential info in the env captures before you share them.

Also, can you do an ls on what's inside the /home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin folder. I'm curious if there's a utility in there that might be causing the env extension some trouble.

Thanks, in advance.

hyacz commented 3 years ago

@xmnboy -- I ran these commands as you suggested, and to facilitate the comparison I used git diff to show the difference before and after the execution of setvars.sh. The output is a bit long, I folded it.

click to show

```diff diff --git a/env-before.txt b/env-after.txt index 1d9372e..23458a5 100644 --- a/env-before.txt +++ b/env-after.txt @@ -1,61 +1,96 @@ +MKLROOT=/home/hyacz/HRR/oneapi/mkl/2021.3.0 +CPLUS_INCLUDE_PATH=/home/hyacz/HRR/oneapi/clck/2021.3.0/include +MANPATH=/home/hyacz/HRR/oneapi/mpi/2021.3.0/man:/home/hyacz/HRR/oneapi/itac/2021.3.0/man:/home/hyacz/HRR/oneapi/debugger/10.1.2/documentation/man:/home/hyacz/HRR/oneapi/compiler/2021.3.0/documentation/en/man/common:/home/hyacz/HRR/oneapi/clck/2021.3.0/man:: TOMCAT_HOME=/opt/tsce4/tomcat8 XDG_SESSION_ID=11735 +VT_MPI=impi4 TERM_PROGRAM=vscode HOSTNAME=mu01 TSCE_HOME=/opt/tsce4 GUESTFISH_INIT=\e[1;34m +INTEL_LICENSE_FILE=/opt/intel/licenses:/home/hyacz/intel/licenses:/home/hyacz/HRR/oneapi/clck/2021.3.0/licensing:/opt/intel/licenses:/home/hyacz/intel/licenses:/Users/Shared/Library/Application Support/Intel/Licenses +CLCK_ROOT=/home/hyacz/HRR/oneapi/clck/2021.3.0 TERM=xterm-256color MAUI_HOME=/opt/tsce4/maui SHELL=/bin/bash HISTSIZE=1000 +LIBRARY_PATH=/home/hyacz/HRR/oneapi/tbb/2021.3.0/env/../lib/intel64/gcc4.8:/home/hyacz/HRR/oneapi/mpi/2021.3.0//libfabric/lib:/home/hyacz/HRR/oneapi/mpi/2021.3.0//lib/release:/home/hyacz/HRR/oneapi/mpi/2021.3.0//lib:/home/hyacz/HRR/oneapi/mkl/2021.3.0/lib/intel64:/home/hyacz/HRR/oneapi/ippcp/2021.3.0/lib/intel64:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/compiler/lib/intel64_lin:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib:/home/hyacz/HRR/oneapi/clck/2021.3.0/lib/intel64 PERL5LIB=/home/hyacz/perl5/lib/perl5: TERM_PROGRAM_VERSION=1.58.2 OLDPWD=/home/hyacz/HRR/500wt/starpro QTDIR=/usr/lib64/qt-3.3 PERL_MB_OPT=--install_base /home/hyacz/perl5 QTINC=/usr/lib64/qt-3.3/include +OCL_ICD_FILENAMES=libintelocl_emu.so:libalteracl.so:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/x64/libintelocl.so TORQUE_HOME=/opt/tsce4/torque6 QT_GRAPHICSSYSTEM_CHECKED=1 USER=hyacz +IPPCRYPTOROOT=/home/hyacz/HRR/oneapi/ippcp/2021.3.0 +LD_LIBRARY_PATH=/home/hyacz/HRR/oneapi/tbb/2021.3.0/env/../lib/intel64/gcc4.8:/home/hyacz/HRR/oneapi/mpi/2021.3.0//libfabric/lib:/home/hyacz/HRR/oneapi/mpi/2021.3.0//lib/release:/home/hyacz/HRR/oneapi/mpi/2021.3.0//lib:/home/hyacz/HRR/oneapi/mkl/2021.3.0/lib/intel64:/home/hyacz/HRR/oneapi/itac/2021.3.0/slib:/home/hyacz/HRR/oneapi/ippcp/2021.3.0/lib/intel64:/home/hyacz/HRR/oneapi/debugger/10.1.2/gdb/intel64/lib:/home/hyacz/HRR/oneapi/debugger/10.1.2/libipt/intel64/lib:/home/hyacz/HRR/oneapi/debugger/10.1.2/dep/lib:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/x64:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/emu:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/oclfpga/host/linux64/lib:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/oclfpga/linux64/lib:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/compiler/lib/intel64_lin LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45: +FPGA_VARS_DIR=/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/oclfpga +FI_PROVIDER_PATH=/home/hyacz/HRR/oneapi/mpi/2021.3.0//libfabric/lib/prov:/usr/lib64/libfabric +CMPLR_ROOT=/home/hyacz/HRR/oneapi/compiler/2021.3.0 TSMM_HOME=/var/tsced +CPATH=/home/hyacz/HRR/oneapi/tbb/2021.3.0/env/../include:/home/hyacz/HRR/oneapi/mpi/2021.3.0//include:/home/hyacz/HRR/oneapi/mkl/2021.3.0/include:/home/hyacz/HRR/oneapi/ippcp/2021.3.0/include:/home/hyacz/HRR/oneapi/dpl/2021.4.0/linux/include:/home/hyacz/HRR/oneapi/dpcpp-ct/2021.3.0/include:/home/hyacz/HRR/oneapi/dev-utilities/2021.3.0/include:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/include +DPL_ROOT=/home/hyacz/HRR/oneapi/dpl/2021.4.0 +INTELFPGAOCLSDKROOT=/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/oclfpga +IPPCP_TARGET_ARCH=intel64 GUESTFISH_PS1=\[\e[1;32m\]>\[\e[0;31m\] -PATH=/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin:/home/hyacz/bin:/usr/java/jre1.8.0_151/bin:/usr/java/jre1.8.0_151/bin:/opt/tsce4/maui/sbin:/opt/tsce4/maui/bin:/opt/tsce4/torque6/bin:/opt/tsce4/torque6/sbin:/usr/local/bin:/usr/local/bin:/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin:/usr/lib64/qt-3.3/bin:/home/hyacz/perl5/bin:/usr/local/bin:/usr/bin:/home/hyacz/HRR/SU2-6.2.0/bin:/usr/local/sbin:/usr/sbin:.:/home/hyacz/HRR/SU2-6.2.0/bin:/home/hyacz/HRR/SU2-6.2.0/bin +SETVARS_COMPLETED=1 +NLSPATH=/home/hyacz/HRR/oneapi/mkl/2021.3.0/lib/intel64/locale/%l_%t/%N +VT_ADD_LIBS=-ldwarf -lelf -lvtunwind -lm -lpthread +PATH=/home/hyacz/HRR/oneapi/mpi/2021.3.0//libfabric/bin:/home/hyacz/HRR/oneapi/mpi/2021.3.0//bin:/home/hyacz/HRR/oneapi/mkl/2021.3.0/bin/intel64:/home/hyacz/HRR/oneapi/itac/2021.3.0/bin:/home/hyacz/HRR/oneapi/inspector/2021.3.0/bin64:/home/hyacz/HRR/oneapi/dpcpp-ct/2021.3.0/bin:/home/hyacz/HRR/oneapi/dev-utilities/2021.3.0/bin:/home/hyacz/HRR/oneapi/debugger/10.1.2/gdb/intel64/bin:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/oclfpga/llvm/aocl-bin:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/lib/oclfpga/bin:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/bin/intel64:/home/hyacz/HRR/oneapi/compiler/2021.3.0/linux/bin:/home/hyacz/HRR/oneapi/clck/2021.3.0/bin/intel64:/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin:/home/hyacz/bin:/usr/java/jre1.8.0_151/bin:/usr/java/jre1.8.0_151/bin:/opt/tsce4/maui/sbin:/opt/tsce4/maui/bin:/opt/tsce4/torque6/bin:/opt/tsce4/torque6/sbin:/usr/local/bin:/usr/local/bin:/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin:/usr/lib64/qt-3.3/bin:/home/hyacz/perl5/bin:/usr/local/bin:/usr/bin:/home/hyacz/HRR/SU2-6.2.0/bin:/usr/local/sbin:/usr/sbin:.:/home/hyacz/HRR/SU2-6.2.0/bin:/home/hyacz/HRR/SU2-6.2.0/bin MAIL=/var/spool/mail/hyacz +TBBROOT=/home/hyacz/HRR/oneapi/tbb/2021.3.0/env/.. PWD=/home/hyacz JAVA_HOME=/usr/java/jre1.8.0_151 +DPCT_BUNDLE_ROOT=/home/hyacz/HRR/oneapi/dpcpp-ct/2021.3.0 LANG=en_US.UTF-8 MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles +VT_LIB_DIR=/home/hyacz/HRR/oneapi/itac/2021.3.0/lib LOADEDMODULES= GUESTFISH_OUTPUT=\e[0m KDEDIRS=/usr +INSPECTOR_2021_DIR=/home/hyacz/HRR/oneapi/inspector/2021.3.0 +VT_ROOT=/home/hyacz/HRR/oneapi/itac/2021.3.0 HISTCONTROL=ignoredups SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass +INTEL_PYTHONHOME=/home/hyacz/HRR/oneapi/debugger/10.1.2/dep HOME=/home/hyacz SHLVL=5 VSCODE_GIT_ASKPASS_MAIN=/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/extensions/git/dist/askpass-main.js SU2_RUN=/home/hyacz/HRR/SU2-6.2.0/bin +VT_SLIB_DIR=/home/hyacz/HRR/oneapi/itac/2021.3.0/slib +FPGA_VARS_ARGS= PERL_LOCAL_LIB_ROOT=:/home/hyacz/perl5 LOGNAME=hyacz PYTHONPATH=:/home/hyacz/HRR/SU2-6.2.0/bin:/home/hyacz/HRR/SU2-6.2.0/bin:/home/hyacz/HRR/SU2-6.2.0/bin +ACL_BOARD_VENDOR_PATH=/opt/Intel/OpenCLFPGA/oneAPI/Boards CVS_RSH=ssh QTLIB=/usr/lib64/qt-3.3/lib SU2_HOME=/home/hyacz/HRR/download/SU2-6.2.0 VSCODE_GIT_IPC_HANDLE=/run/user/1008/vscode-git-3834b90d0d.sock -CLASSPATH=/usr/java/jre1.8.0_151/lib:/usr/java/jre1.8.0_151/lib::. +CLASSPATH=/home/hyacz/HRR/oneapi/mpi/2021.3.0//lib/mpi.jar:/usr/java/jre1.8.0_151/lib:/usr/java/jre1.8.0_151/lib::. SSH_CONNECTION=115.156.216.128 8291 222.20.95.194 63820 XDG_DATA_DIRS=/home/hyacz/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/ VSCODE_IPC_HOOK_CLI=/run/user/1008/vscode-ipc-58c83881-a81a-4cf4-98c3-16b41a47457b.sock MODULESHOME=/usr/share/Modules +PKG_CONFIG_PATH=/home/hyacz/HRR/oneapi/mkl/2021.3.0/tools/pkgconfig:/home/hyacz/HRR/oneapi/inspector/2021.3.0/include/pkgconfig/lib64: LESSOPEN=||/usr/bin/lesspipe.sh %s BROWSER=/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin/helpers/browser.sh +INFOPATH=/home/hyacz/HRR/oneapi/debugger/10.1.2/gdb/intel64/lib VSCODE_GIT_ASKPASS_NODE=/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/node GIT_ASKPASS=/home/hyacz/.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/extensions/git/dist/askpass.sh +CMAKE_PREFIX_PATH=/home/hyacz/HRR/oneapi/tbb/2021.3.0/env/.. XDG_RUNTIME_DIR=/run/user/1008 +SETVARS_VARS_PATH=/home/hyacz/HRR/oneapi/tbb/latest/env/vars.sh +ONEAPI_ROOT=/home/hyacz/HRR/oneapi QT_PLUGIN_PATH=/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins GUESTFISH_RESTORE=\e[0m PERL_MM_OPT=INSTALL_BASE=/home/hyacz/perl5 +I_MPI_ROOT=/home/hyacz/HRR/oneapi/mpi/2021.3.0 COLORTERM=truecolor BASH_FUNC_module()=() { eval `/usr/bin/modulecmd bash $*` } ```

it seems to be working perfectly. There is also nothing strange in the bin path of the vscode server.

[hyacz@mu01 ~]$ ll .vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin
total 4
-rwxr-xr-x 1 hyacz hyacz 335 Jul 15 06:29 code
drwxr-xr-x 2 hyacz hyacz  32 Jul 15 06:30 helpers
[hyacz@mu01 ~]$ tree .vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin
.vscode-server/bin/c3f126316369cd610563c75b1b1725e0679adfb3/bin
├── code
└── helpers
    └── browser.sh

1 directory, 2 files
[hyacz@mu01 ~]$ 

this plug-in works perfectly on my another server. The difference I can think of is that this server has customized the installation path when installing the oneapi tool and additionally installed the HPC tool, and selected some components to install instead of installing all the components.

xmnboy commented 3 years ago

@hyacz -- thanks for those details. The setting you describe (custom install folder and selective installation) should work fine with the extension. We have an internal ticket filed (DEV1A-3083) so we can get to the bottom of the problem.

Since you are connecting remotely into that server, the only workaround I can suggest is to source setvars.sh in your server's /etc/profile or your user's profile or bashrc or similar startup script, on the remote server. Something like this:

if [ -z "$SSH_TTY" ] && [ -n "$SSH_CLIENT" ]; then
    . /home/hyacz/HRR/oneapi/setvars.sh &>/dev/null
fi
hyacz commented 3 years ago

@xmnboy -- Thanks for the solution, it works now!

xmnboy commented 3 years ago

👍 -- we'll continue to work on resolving this issue in the environment config extension.

amakarev commented 3 years ago

@hyacz Hi. Are you using the 0.1.0 version of the extension release on 6/25/2021? You can see this in the extension tab in vscode image

hyacz commented 3 years ago

@amakarev -- yes

[hyacz@mu01 ~]$ code --list-extensions --show-versions
SSH: mu01 上安装的扩展:
intel-corporation.oneapi-environment-variables@0.1.0     <--- version = 0.1.0
intel-corporation.oneapi-launch-configurator@0.0.14
krvajalm.linter-gfortran@2.3.0
MS-CEINTL.vscode-language-pack-zh-hans@1.59.3
ms-vscode.cpptools@1.6.0
amakarev commented 2 years ago

@hyacz Hello. A new version of the extension has been released, which is available on the marketplace. If you are still seeing this problem please let us know

hyacz commented 2 years ago

@amakarev Hello. I have updated to the latest version(0.2.3) and restarted VSCode, this problem still exists with nothing change.

xmnboy commented 2 years ago

@hyacz -- thanks for the update. We'll let you know if we have any further ideas for resolving this issue. If you see anything that might relate to this issue, please let us know.