When I run VS Code from Ubuntu graphical interface, and do echo $PATH, I see something like
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/abdelghani/.opam/4.14.1/bin
but when I execute echo $PATH from the console, the result is different:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
This causes crashes in some extension I am using.
Why is the $PATH in VS Code different from the one in the terminal and how to configure the path when VS Code is launched from the GUI?
~/.opam/...in the PATH or not? (E.g. are your extensions crashing because they're not finding executables they need, or because they're finding executables they shouldn't).bashrc.