code
(1.96.4 in stable) has a serious known issue, that does not allow pasting. It is fixed in the latest version in 1.97 (in unstable). Any chance the latest package can be pushed to stable more quickly?
If I’m reading the information properly, the actual issue relates to Electron.
See this comment from the Arch Linux packager responsible for Electron.
A workaround is to use Use Ctrl+Shift+V instead of Ctrl+V until a fix for Electron is released upstream.
a Workaround for me was to downgrade the electron32
package:
$ pamac info electron32
Name : electron32
Version : 32.0.1-1
Description : Build cross platform desktop apps with web technologies
URL : https://electronjs.org
Licences : MIT BSD-3-Clause
Repository : extra
Installed Size : 252.3 MB
Groups : --
Depends On : c-ares gcc-libs glibc gtk3 libgtk-3.so=0-64 libevent
libffi libffi.so=8-64 libpulse libpulse.so=0-64 nss
zlib libz.so=1-64 fontconfig libfontconfig.so=1-64
brotli libjpeg libjpeg.so=8-64 icu libicui18n.so=75-64
libicuuc.so=75-64 flac libFLAC.so=12-64 libdrm libxml2
libxml2.so=2-64 minizip opus libopus.so=0-64 harfbuzz
libharfbuzz.so=0-64 libharfbuzz-subset.so=0-64 libxslt
libxslt.so=1-64 libpng libpng16.so=16-64 freetype2
libfreetype.so=6-64
Optional Dependencies : kde-cli-tools: file deletion support (kioclient5) [Installed]
pipewire: WebRTC desktop sharing under Wayland [Installed]
qt5-base: enable Qt5 with --enable-features=AllowQt [Installed]
gtk4: for --gtk-version=4 (GTK4 IME might work better on Wayland) [Installed]
trash-cli: file deletion support (trash-put)
xdg-utils: open URLs with desktop’s default (xdg-email, xdg-open) [Installed]
Required By : code
Optional For : --
Provides : --
Replaces : --
Conflicts With : --
Packager : Caleb Maclennan <alerque@archlinux.org>
Build Date : Fri 23 Aug 2024 10:49:23
Install Date : Sun 09 Feb 2025 09:18:06
Install Reason : Installed as a dependency for another package
Validated By : Signature
Backup files : --
Note:
I used
sudo manjaro-downgrade electron32
…to do the downgrade, not some other Frankenstein’s-monster’ish way to hack and slash everything.
Please notice it isn’t about key bindings but really about electron’s paste functionality vscode relies on. When i tried to change keybindings i accidentially removed the Ctrl+V from vscode and then it seemingly worked again, because the pasting was handled directly via Plasma clipboard manager i guess. One can easily verify this by trying to invoke vscode’s paste command via the menu, which still doesn’t work. So depending on your environment this or that key command may or may not work. The real issue is electron. This also means updating vscode to 1,97,0 presumably won’t do if it still uses the same electron version.
electron32 version 32.3.0-1 is in all branches
results provided by mbn (manjaro-check-repos)
[master] $ mbn info electron32 -q
Branch : archlinux
Name : electron32
Version : 32.3.0-1
Repository : extra
Build Date : Thu 23 Jan 2025 14:38:20
Packager : Caleb Maclennan <alerque@archlinux.org>
Branch : unstable
Name : electron32
Version : 32.3.0-1
Repository : extra
Build Date : Thu 23 Jan 2025 14:38:20
Packager : Caleb Maclennan <alerque@archlinux.org>
Branch : testing
Name : electron32
Version : 32.3.0-1
Repository : extra
Build Date : Thu 23 Jan 2025 14:38:20
Packager : Caleb Maclennan <alerque@archlinux.org>
Branch : stable
Name : electron32
Version : 32.3.0-1
Repository : extra
Build Date : Thu 23 Jan 2025 14:38:20
Packager : Caleb Maclennan <alerque@archlinux.org>
And for code the state is
[master] $ mbn info code -q
Branch : archlinux
Name : code
Version : 1.97.0-1
Repository : extra
Build Date : Fri 07 Feb 2025 18:54:55
Packager : Massimiliano Torromeo <mtorromeo@archlinux.org>
Branch : unstable
Name : code
Version : 1.97.0-1
Repository : extra
Build Date : Fri 07 Feb 2025 18:54:55
Packager : Massimiliano Torromeo <mtorromeo@archlinux.org>
Branch : testing
Name : code
Version : 1.96.4-1
Repository : extra
Build Date : Fri 17 Jan 2025 09:50:48
Packager : Massimiliano Torromeo <mtorromeo@archlinux.org>
Branch : stable
Name : code
Version : 1.96.4-1
Repository : extra
Build Date : Fri 17 Jan 2025 09:50:48
Packager : Massimiliano Torromeo <mtorromeo@archlinux.org>
You will have to wait for the next stable snap or If you really, really need it - you can pull the package using pacman -U; something like this
sudo pacman -U http://mirror.easyname.at/manjaro/unstable/extra/x86_64/code-1.97.0-1-x86_64.pkg.tar.zst
Remember the above will only be valid until next sync from upstream; meaning: if you read this 3weeks from now the uri may have changed.
Please note that my comment was in response to another Member, and the key combination (as stated) was an apparent workaround (according to comments made by the Arch Linux packager responsible for Electron) to the problem until Electron is fixed upstream.
Downgrading electron32
(as mentioned above) is also a temporary workaround. I imagine switching branches to Unstable likely would have been a valid workaround as well, considering Unstable had Code 1.97.0-1
and all branches had Electron 32.3.0-1
.
Interestingly, I couldn’t reproduce the issue on my local machine .
What does Help>About show and does clicking on Edit>Paste work?