microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.59k stars 29.03k forks source link

VSCode doesn't let me select with the mouse with ibus-pinyin #175473

Closed KaahSilva closed 1 year ago

KaahSilva commented 1 year ago

Type: Bug My mouse is working perfectly in other editors, but inside vscode specifically in the code files I can't select them. I already uninstalled the vs code and the extensions, I already checked some settings and I didn't get the solution

VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:32:34.589Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz (4 x 2592)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|11.84GB (5.85GB free)| |Process Argv|--crash-reporter-id ee807043-5cca-457f-8935-f34b95b045fa| |Screen Reader|no| |VM|0%|
Extensions (12) Extension|Author (truncated)|Version ---|---|--- vscode-intelephense-client|bme|1.9.5 vscode-css-modules|cli|0.4.2 prettier-vscode|esb|9.10.4 auto-rename-tag|for|0.1.10 code-runner|for|0.12.0 vscode-exec-node|mir|0.5.5 vscode-language-pack-pt-BR|MS-|1.75.2023021509 LiveServer|rit|5.7.9 vscode-icons|vsc|12.2.0 php-debug|xde|1.32.0 php-pack|xde|1.0.3 php-intellisense|zob|1.1.2 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewvextcfv2:30669238 azure-dev_surveyone:30548225 pyindex848:30662994 nodejswelcome1:30587005 2e4cg342:30602488 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 a9j8j154:30646983 showlangstatbar:30672706 vsccsb:30662443 vscodeenable:30660116 ```
vscodenpa commented 1 year ago

Obrigado por criar este problema!

No entanto, como a descrição não está em inglês, é difícil para nós trabalhar nela. Se você puder, edite esta edição para estar em inglês. Por favor, não adicione um novo comentário ou crie um novo problema, mas sim edite o problema existente.

Infelizmente, os serviços de tradução automática não são capazes de lidar com a linguagem técnica necessária para se comunicar efetivamente sobre problemas de software, por isso recomendamos encontrar um tradutor humano que esteja familiarizado com nossa tecnologia para ajudar a traduzir.

Caso contrário, esse problema foi marcado como precisando de tradução e um membro da comunidade poderá ajudar a traduzi-lo.


Thanks for creating this issue!

Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.

In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.

Otherwise, we have marked this as needing translation and a community member may be able to help out.

alexdima commented 1 year ago

Could you please try the following page in Chrome?

This is how it looks for me when doing it with the mouse. The pointermove event counter increases when the mouse is outside the red area:

image
jspaine commented 1 year ago

I'm getting this too after updating from 1.74.3-1673284829 to 1.76.0-1677667493

It also happens with a new install of the insiders build code-insiders_1.77.0-1678081396_amd64.deb (both versions tried with --disable-extensions)

The fiddle in chromium Version 110.0.5481.100 (Official Build) snap (64-bit) shows the same as you, but the counter increments whether the pointer is inside or outside the red area

In vscode it seems to happen after the window loses focus, and can be fixed by making a selection with the keyboard before trying to select with the mouse. Actually it seems like any typing fixes it. Double or triple clicking to select a word or line doesn't fix it. There's nothing shown in the developer tools console while selecting or trying to select text.

Wisgon commented 1 year ago

The same problem, but mine is Ubuntu 22.04.2 LTS.It happened after I updated from xxx(I forget the version, but the problem happened about one mounth ago.).Sometime the problem fixed automatically, but after a while, it happen again.

sci-42ver commented 1 year ago

The same problem, but mine is Ubuntu 22.04.2 LTS.It happened after I updated from xxx(I forget the version, but the problem happened about one mounth ago.).Sometime the problem fixed automatically, but after a while, it happen again.

I also ungraded to ubuntu 22, but I forgot whether I can use mouse to select when ubuntu 20, because I always use 'shift' key to select contents(recently my friend work with me on my computer, he complains about unable to select by mouse)

more details in this outside comment

Could you please try the following page in Chrome?

  • open https://jsfiddle.net/my4vg2wc/
  • open developer tools (cmd+alt+i)
  • click with the input device inside the red rectangle and drag around, and then release
  • what is the output? do you receive pointermove events when dragging outside the red area?

This is how it looks for me when doing it with the mouse. The pointermove event counter increases when the mouse is outside the red area: image

In my computer using vivaldi browser, I can drag mouse with the infos like in the png shown.

sci-42ver commented 1 year ago

weird, it may be ibus-pinyin caused. And use ibus-libpinyin, ibus-sunpinyin or rime no problem, where the mouse selection can be used in vscode both stable and insider version

version info( reset ibus no use)

$ ibus version
IBus 1.5.26
$ sudo apt-cache policy ibus-pinyin 
ibus-pinyin:
  Installed: 1.5.0-6.1build1
  Candidate: 1.5.0-6.1build1
  Version table:
 *** 1.5.0-6.1build1 500
....
$ ibus reset-config
....
$ ibus restart

ibus-pinyin github repo codes not updated since 2012 and I not met with problems before Maybe it's time to change ime

Wisgon commented 1 year ago

weird, it may be ibus-pinyin caused. And use ibus-libpinyin, ibus-sunpinyin or rime no problem, where the mouse selection can be used in vscode both stable and insider version

version info( reset ibus no use)

$ ibus version
IBus 1.5.26
$ sudo apt-cache policy ibus-pinyin 
ibus-pinyin:
  Installed: 1.5.0-6.1build1
  Candidate: 1.5.0-6.1build1
  Version table:
 *** 1.5.0-6.1build1 500
....
$ ibus reset-config
....
$ ibus restart

ibus-pinyin github repo codes not updated since 2012 and I not met with problems before Maybe it's time to change ime

Oh, yes, that's right. As soon as I saw your comment, I change my input source to English, the problem was gone! Wow, the problem is the ibus-pinyin...

sci-42ver commented 1 year ago

weird, it may be ibus-pinyin caused. And use ibus-libpinyin, ibus-sunpinyin or rime no problem, where the mouse selection can be used in vscode both stable and insider version

version info( reset ibus no use)

$ ibus version
IBus 1.5.26
$ sudo apt-cache policy ibus-pinyin 
ibus-pinyin:
  Installed: 1.5.0-6.1build1
  Candidate: 1.5.0-6.1build1
  Version table:
 *** 1.5.0-6.1build1 500
....
$ ibus reset-config
....
$ ibus restart

ibus-pinyin github repo codes not updated since 2012 and I not met with problems before Maybe it's time to change ime

So Sorry for my somewhat arbitrary comment, ibus is still in maintainance but in a new organization.

alexdima commented 1 year ago

@KaahSilva Because you never got back to us, we'll use this issue to track the problem on linux with ibus.

deepak1556 commented 1 year ago

Can users on linux check if the issue is present with our insiders version https://code.visualstudio.com/insiders that comes with a updated runtime version.

sci-42ver commented 1 year ago

tested ibus-pinyin still no use in ubuntu 22 with x11. (ibus not newest version, If I have time, I tried upgraded ubuntu to 23 and test whether work)

But after I switched ime, I found fcitx5 can use mouse select both in wayland with 1.78 code version (here temporarily using archlinux to auto use newest package, avoiding version lagging) and x11 where 1.77 also works .

Thanks for your replies and development dealing with the bug.

version

$ code-insiders -v
1.78.0-insider
2da5a0024fe2ca407f741f19340f1a10f4d692af
x64
$ sudo apt list --installed | grep ibus

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

gir1.2-ibus-1.0/jammy,now 1.5.26-4 amd64 [installed,automatic]
ibus-data/jammy,jammy,now 1.5.26-4 all [installed,automatic]
ibus-gtk3/jammy,now 1.5.26-4 amd64 [installed,automatic]
ibus-gtk4/jammy,now 1.5.26-4 amd64 [installed,automatic]
ibus-gtk/jammy,now 1.5.26-4 amd64 [installed,automatic]
ibus-libpinyin/jammy,now 1.12.1-2ubuntu2 amd64 [installed]
ibus-pinyin/jammy,now 1.5.0-6.1build1 amd64 [installed]
ibus-rime/jammy,now 1.5.0-1 amd64 [installed]
ibus-sunpinyin/jammy,now 2.0.3+git20181120-5build1 amd64 [installed]
ibus-table-wubi/jammy,jammy,now 1.8.2-3 all [installed]
ibus-table/jammy,jammy,now 1.16.7-1 all [installed,automatic]
ibus/jammy,now 1.5.26-4 amd64 [installed]
...
python3-ibus-1.0/jammy,jammy,now 1.5.26-4 all [installed,automatic]
vscodenpa commented 1 year ago

Hey @deepak1556, this issue might need further attention.

@KaahSilva, you can help us out by closing this issue if the problem no longer exists, or adding more information.

vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!