Friday, March 20, 2020

Linux + Visual Studio Code

I have installed Visual Studio Code on Linux

To install, go to https://code.visualstudio.com/ and download the installer

(My system for reference)

~$ cat /etc/os-release
NAME="Linux Mint"
VERSION="19 (Tara)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19"
VERSION_ID="19"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tara
UBUNTU_CODENAME=bionic


I downloaded the deb file and installed it using the command:
~$ sudo dpkg -i code_1.43.0-1583783132_amd64.deb


After creating a test code and saving it, I got a warning that there is no linter installed.
Suggested linter is pylint, but after clicking install I got some errors.

Here's what I did to fix the problem...

(The version of Code I have for reference)
~$ code --version
1.43.0
78a4c91400152c0f27ba4d363eb56d2835f9903a
x64


ERROR1: python setup.py egg_info failed with error code 1

Solution: upgrade pip

~$ sudo python3 -m pip install --upgrade pip


ERROR2: No module named setuptools

Solution: install python-setuptools

~$ sudo apt-get install python3-setuptools



./rom