slint icon indicating copy to clipboard operation
slint copied to clipboard

Clicking element in VS Code doesn't select it in preview like in SlintPad

Open Enyium opened this issue 1 year ago • 5 comments

Demo video:

https://github.com/user-attachments/assets/a2b25873-72a8-43db-bbe5-b2d7030fe353

When clicking an element in code, it should be selected in the preview. This is the behavior in SlintPad.

Enyium avatar Oct 01 '24 08:10 Enyium

Thank you for all your bug reports. They are a huge help. I think I did not say so before :-)

This one is interesting: That definitely works for me in master and in release/1. Which version are you using here? I assume 1.8.0, which should be release/1 at this time.

hunger avatar Oct 07 '24 13:10 hunger

Which version are you using here?

VS Code extension and slint crate in Rust project are both on v1.8.0. But with the nightly extension (and unchanged Rust crate version), it also doesn't work.

Enyium avatar Oct 07 '24 14:10 Enyium

I also cannot reproduce this. The selection (blue rectangle) does update for me when i move my cursor in vscode

ogoffart avatar Oct 07 '24 15:10 ogoffart

Maybe it is something OS specific? I tested on Linux and Olivier usually is on Linux as well. What are you using?

hunger avatar Oct 07 '24 17:10 hunger

I'm on Windows 10.

Enyium avatar Oct 07 '24 17:10 Enyium

I just tried again: Still no luck. It works absolutely reliably for me in 1.8.0 and master :-/

I'll leave this open till after 1.9 and close it if the upgrade fixes it for you.

hunger avatar Nov 28 '24 13:11 hunger

I still can not reproduce and did not hear back about the issue with Slint 1.9 or later, so I'll close it for now.

Please reopen the issue if this still is a problem for you.

hunger avatar Apr 08 '25 17:04 hunger