Bug #109403 | MySQL Shell vscode extension doesn't work on Pop!_OS | ||
---|---|---|---|
Submitted: | 16 Dec 2022 8:44 | Modified: | 30 Aug 12:47 |
Reporter: | rustam docstranslator | Email Updates: | |
Status: | Need Feedback | Impact on me: | |
Category: | Shell VSCode Extension | Severity: | S2 (Serious) |
Version: | 1.6.0 | OS: | Linux |
Assigned to: | MySQL Verification Team | CPU Architecture: | x86 |
[16 Dec 2022 8:44]
rustam docstranslator
[16 Dec 2022 9:19]
rustam docstranslator
For a matter of fact Wizard doesn't work at all on Pop!_OS i tried: Pop!_OS 22.04 MySQL from debian repo VSCode from apt(microsoft repo) MySQL Shell plugin for vscode doesn't generate and launch install.sh on Pop!_OS.
[16 Dec 2022 9:32]
rustam docstranslator
os-release file on POP!_OS shows ID_LIKE="ubuntu debian" $ cat /etc/os-release NAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-osv and if I change ID_LIKE to be ID_LIKE="debian" Wizard WORKS !!! so the issue is in https://github.com/mysql/mysql-shell-plugins/blob/b4eace716898a1532e827a92c362df8193de5cbc... the function is hardcoded to a single value ID_LIKE="debian" instead of searching "debian" in ID_LIKE="ubuntu debian"
[16 Dec 2022 9:40]
rustam docstranslator
I mean get_script() is hardcoded to "debian" instead of dealing with (ID_LIKE="ubuntu debian" & ID_LIKE="ubuntu") https://github.com/mysql/mysql-shell-plugins/blob/b4eace716898a1532e827a92c362df8193de5cbc... So essentially the plugin could work on any Ubuntu based Linux distro, but it doesn't cause of some hardcoded things... There are 49 distros based Ubuntu on distrowatch: https://distrowatch.com/search.php?ostype=All&category=All&origin=All&basedon=Ubuntu¬ba...
[30 Aug 12:47]
MySQL Verification Team
Hello Rustam, Thank you for the report. This is open source and if you file a pull request, we will check it and merge it if there's no problem. Thanks. Regards, Ashwini Patil