anaconda-navigator fails to launch with Traceback error in lib/python3.7/site-packages/anaconda_navigator/api/external_apps/vscode.py.
```
anaconda-navigator
Traceback (most recent call last):
File "/usr/local/anaconda3/lib/python3.7/site-packages/anaconda_navigator/widgets/main_window.py", line 541, in setup
self.post_setup(conda_data=conda_data)
File "/usr/local/anaconda3/lib/python3.7/site-packages/anaconda_navigator/widgets/main_window.py", line 578, in post_setup
self.tab_home.setup(conda_data)
File "/usr/local/anaconda3/lib/python3.7/site-packages/anaconda_navigator/widgets/tabs/home.py", line 169, in setup
self.set_applications(applications, packages)
File "/usr/local/anaconda3/lib/python3.7/site-packages/anaconda_navigator/widgets/tabs/home.py", line 204, in set_applications
apps = self.api.process_apps(applications, prefix=self.current_prefix)
File "/usr/local/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/anaconda_api.py", line 848, in process_apps
app = app(config=self.config, process_api=self._process_api, conda_api=self._conda_api)
File "/usr/local/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/external_apps/vscode.py", line 48, in __init__
**kwargs
File "/usr/local/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/external_apps/base.py", line 43, in __init__
self.init()
File "/usr/local/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/external_apps/base.py", line 60, in init
SUBDIR, INST_EXT, INST_DIR = self._find_linux_install_dir()
File "/usr/local/anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/external_apps/vscode.py", line 168, in _find_linux_install_dir
if DISTRO_NAME in ['ubuntu', 'debian']:
UnboundLocalError: local variable 'DISTRO_NAME' referenced before assignment
```
Expected Behavior
anaconda-launcher should launch.
Steps to Reproduce
Install POP!_OS, and VS code and try and launch anaconda-launcher.
Actual Behavior
anaconda-navigator fails to launch with Traceback error in
lib/python3.7/site-packages/anaconda_navigator/api/external_apps/vscode.py
.Expected Behavior
anaconda-launcher should launch.
Steps to Reproduce
Install POP!_OS, and VS code and try and launch anaconda-launcher.
Anaconda or Miniconda version:
Anaconda3-2020.02-Linux-x86_64
Operating System:
conda info
conda list --show-channel-urls
The fix:
Modify the three instances of
self._DISTRO_NAME in ['ubuntu', 'debian']
to be
self._DISTRO_NAME in ['ubuntu', 'debian', 'pop']
in
anaconda3/lib/python3.7/site-packages/anaconda_navigator/api/external_apps/vscode.py