I\'m defining a custom $PATH environment variable in my ~/.bash_profile (on a Mac), like so:
PATH=\"$HOME/.cargo/bin:$PATH:$HOME/bi
I'm working with ubuntu 18.04. I had a similar problem, my enviroment variables were defined and the terminal knows the $PATH but when I tried to debug with golang, go libraries were not found in $PATH variable.
So, to solve it I uninstall the default version from ubuntu software and install manually using the following instructions:
https://code.visualstudio.com/docs/setup/linux
It works for me.