For some reason Pylance does not work properly after 2023.6.40, throwing Language server extension command failed. Exception: Error: command 'python.intellicode.loadLanguageServerExtension' not found
on the VS IntelliCode extension.
Search Criteria
Package Details: code-marketplace 1.95.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/code-marketplace.git (read-only, click to copy) |
---|---|
Package Base: | code-marketplace |
Description: | Enable vscode marketplace in Code OSS |
Upstream URL: | https://marketplace.visualstudio.com/vscode |
Licenses: | unknown |
Submitter: | sainnhe |
Maintainer: | sainnhe |
Last Packager: | sainnhe |
Votes: | 105 |
Popularity: | 1.82 |
First Submitted: | 2020-10-28 13:56 (UTC) |
Last Updated: | 2024-11-01 13:19 (UTC) |
Dependencies (3)
- code (visual-studio-code-cli-binAUR, visual-studio-code-binAUR, vscodius-binAUR)
- python (python37AUR, python311AUR, python310AUR)
- code-featuresAUR (code-featuresAUR, code-features-insidersAUR) (optional) – unblock some extensions specific to the official build
Required by (0)
Sources (3)
r3dlust commented on 2024-07-01 14:11 (UTC) (edited on 2024-07-01 14:11 (UTC) by r3dlust)
curious-broccoli commented on 2024-05-13 11:37 (UTC)
so other people might find it on google: I tried this to use the "dev containers" extension by microsoft and always got the error "command dev containers resulted in an error, command not found" when I tried to use on of the extension commands. This is apparently one of the extensions that don't work with Code OSS so I had to get the https://aur.archlinux.org/packages/code-features/ which "resets" the current Code config though.
Tinister commented on 2024-03-16 19:45 (UTC)
I use visual-studio-code-bin which stores its product.json at /opt/visual-studio-code/resources/app/product.json. I changed the one line in patch.py before (re)installing.
sainnhe commented on 2024-03-02 04:35 (UTC)
@peter.kehl: This package can only be used with extra/code in the official repository, not vscodium or vscodium-bin. I've added a check to the patching script.
peter.lyonskehl commented on 2024-03-01 17:10 (UTC) (edited on 2024-03-01 17:10 (UTC) by peter.lyonskehl)
The update on/around March 1, 2024 reported the following problem. (Unsure if the problem comes from code-marketplace, Code OSS or anything else, so I'm pasting the whole message).
Preparing...
Synchronizing package databases...
Refreshing core.db...
Refreshing extra.db...
Refreshing community.db...
Refreshing multilib.db...
Cloning vscodium-bin build files...
Generating vscodium-bin information...
Checking vscodium-bin dependencies...
Checking code-marketplace dependencies...
Warning: gnome-wallpapers: local (20201023-1) is newer than extra (20201020-2)
Resolving dependencies...
Checking inter-conflicts...
Cloning code-marketplace build files...
Generating code-marketplace information...
Building code-marketplace...
==> Making package: code-marketplace 1.87.0-1 (Fri 01 Mar 2024 07:55:55 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found code-marketplace.hook
-> Found patch.py
-> Found patch.json
==> Validating source files with md5sums...
code-marketplace.hook ... Passed
patch.py ... Passed
patch.json ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "code-marketplace"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Adding install file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: code-marketplace 1.87.0-1 (Fri 01 Mar 2024 07:55:59 AM)
==> Cleaning up...
Building vscodium-bin...
==> Making package: vscodium-bin 1.87.0.24060-1 (Fri 01 Mar 2024 07:56:02 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found vscodium-bin.desktop
-> Found vscodium-bin-uri-handler.desktop
-> Found vscodium-bin.install
-> Found vscodium-bin.sh
-> Found vscodium-bin-wayland.desktop
-> Downloading VSCodium-linux-x64-1.87.0.24060.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 123M 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2 123M 2 2723k 0 0 1830k 0 0:01:09 0:00:01 0:01:08 3621k
8 123M 8 9.9M 0 0 4111k 0 0:00:30 0:00:02 0:00:28 5842k
17 123M 17 21.3M 0 0 6261k 0 0:00:20 0:00:03 0:00:17 7938k
29 123M 29 36.6M 0 0 8368k 0 0:00:15 0:00:04 0:00:11 9.7M
45 123M 45 55.8M 0 0 10.1M 0 0:00:12 0:00:05 0:00:07 11.7M
62 123M 62 76.7M 0 0 11.8M 0 0:00:10 0:00:06 0:00:04 14.8M
79 123M 79 97.8M 0 0 13.0M 0 0:00:09 0:00:07 0:00:02 17.5M
94 123M 94 116M 0 0 13.7M 0 0:00:08 0:00:08 --:--:-- 19.0M
100 123M 100 123M 0 0 14.0M 0 0:00:08 0:00:08 --:--:-- 20.1M
==> Validating source files with sha256sums...
vscodium-bin.desktop ... Passed
vscodium-bin-uri-handler.desktop ... Passed
vscodium-bin.install ... Passed
vscodium-bin.sh ... Passed
vscodium-bin-wayland.desktop ... Passed
==> Validating source_x86_64 files with sha256sums...
VSCodium-linux-x64-1.87.0.24060.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting VSCodium-linux-x64-1.87.0.24060.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "vscodium-bin"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Adding install file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: vscodium-bin 1.87.0.24060-1 (Fri 01 Mar 2024 07:56:48 AM)
==> Cleaning up...
Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
Traceback (most recent call last):
File "/usr/share/code-marketplace/patch.py", line 51, in <module>
restore()
File "/usr/share/code-marketplace/patch.py", line 34, in restore
with open(product_path, "r") as product_file:
^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/code/product.json'
Error while configuring code-marketplace
Error: code-marketplace: command failed to execute correctly
Configuring code-marketplace...
Traceback (most recent call last):
File "/usr/share/code-marketplace/patch.py", line 49, in <module>
patch()
File "/usr/share/code-marketplace/patch.py", line 19, in patch
with open(product_path, "r") as product_file:
^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/code/product.json'
Error while configuring code-marketplace
Error: code-marketplace: command failed to execute correctly
Upgrading vscodium-bin (1.86.2.24057-1 -> 1.87.0.24060-1)...
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
==> NOTE: Custom flags should be put directly in: ~/.config/codium-flags.conf
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Updating the desktop file MIME type cache...
[vscodium-bin-marketplace] Patching product.json...
Transaction successfully finished.
dgk commented on 2023-11-28 19:54 (UTC) (edited on 2023-11-28 19:56 (UTC) by dgk)
a little documentation for those wanting to use this nice! patch to irritating problem.
run sudo /usr/share/code-marketplace/patch.py code-marketplace patch
just once. close all open windows of oss-codioum. restart and it should now be functional. After that my understanding is that it will watch for changes to /usr/lib/code/product.json
and run this again. That's not documented I just cloned the aur repo and took a look at the .hook file.
btw found this package after reading this post [https://stackoverflow.com/a/65035969/4695378]
UnknownError commented on 2023-08-27 20:14 (UTC)
The latest version of Pylance doesn't seem to work anymore
sainnhe commented on 2023-08-13 13:33 (UTC)
Upgrading notes for v1.81.1
The code has been refactored in python, upgrading requires manual interventions:
pacman -Rdd code code-marketplace
pacman -S code code-marketplace
Don't reinstall them, uninstall and install these packages instead.
Since the code has been refactored, you can easily modify the code to upgrade to a new version by yourself if I cannot update this package in time. Simply download the latest tarball from code.visualstudio.com and extract them, then run update.py
to update patch.json
(The usage is documented in update.py
), and run makepkg --skipchecksums -i
to rebuild and install this package.
yxzhou commented on 2023-07-16 16:32 (UTC)
I have been struggling to install Pylance for a long time, thank you very much
Pinned Comments
sainnhe commented on 2021-04-05 08:00 (UTC) (edited on 2021-04-09 10:08 (UTC) by sainnhe)
This package basically installs a hook that will patch
/usr/lib/code/product.json
to use vscode marketplace every timecommunity/code
is updated.There are some extensions in vscode marketplace that don't work with Code OSS (e.g. pylance and remote-ssh), you can install
code-features
(thanks to @Lightsword) orcode-features-insiders
(thanks to @coxackie_) to unblock them.Btw, you may also be interested in code-icons by @coxackie which will replace the icon of Code OSS with VSCode's.