Closed volodg closed 1 year ago
Thanks for reporting a bug.
Would you be able to share the code that is no longer working so we can investigate?
Yes, you can test layouts from this file for example - https://github.com/biotech-ng/exchange/blob/main/slint_lib/ui/app.slint
Everything seems to work alright for me. What component exactly is not working? What are the step i can use to reproduce? Could you also perhaps send screenshot, that may help me to understand
MacOS ver 12.6.3 Issue: https://user-images.githubusercontent.com/32120/233590225-2593dbff-677a-4a6a-84b2-e4308934ab97.mov
Visual studio Code ver 1.77.3
Slint preview plugin version 1.0.1
Version 1.0.0 was working fine
Thanks for the video. That shows the problem clearly; But I can't reproduce this problem on Linux. Maybe it's mac specific? @tronical could you have a look? (If i have to guess what break it, i'd say it may be releated to the always-on-top flag)
I can't reproduce this either on macOS :-(. @volodg does it help if you restart vs code?
I have tried reboot MacOS and restart Visual Studio Code, nothing helped :-(
I also confirm, I have this problem on windows
I have the preview window showing up under VSCode most times in windows rather often :-( Is the window visible in the
You can try to use the WASM based viewer in the VSCode settings (check Extensions/Slint): That is rendered in an editor panel inside VSCode. Does that work?
Something that could explain the behavior is if the preview thread is stuck in an infinite loop. Is the slint-lsp process taking a lot of CPU in the background?
@ogoffart No, id does not
@volodg what version of macOS are you running?
Yes, you can test layouts from this file for example - https://github.com/biotech-ng/exchange/blob/main/slint_lib/ui/app.slint
Just to double check: a new vs code instance, open this file, preview the last component, and then nothing shows but you see an entry on the task bar?
@CarbonPool do you have some steps that reproduce this?
I have the feeling that this might be content related.
@tronical MacOS ver.: 12.6.3
Yes, exactly: "nothing shows but you see an entry on the task bar"
I don't think it's content related, seems I can not preview any component
Do you see anything in the output tab for "Slint LSP"? There should be some messages there. I wonder what it says there when you click "Show Preview".
@CarbonPool do you have some steps that reproduce this?
I have the feeling that this might be content related.
@tronical Not sure, where I can find this tab? Maybe this?
We mean the output tab: If there is no "Slint LSP" there, it means there was no output for the LSP. But if the LSP crashes, the panic message should be printed there.
Nothing special there:
I actually can reproduce. I confirm that the version 1.0.1 doesn't work. What's strange is that the nightly version works.
What's really strange is that i tried to install previous nightly build, and none of the nightly build between april 19th and april 21st reproduce the problem, despite it should be exactly the same as the 1.0.1 release
I was able to bisect and found out this was caused by commit abdbb8d8c648f5a8568fd6be5d70019013637b71 just before the release, and this was fixed just after the release in 21a06d1765c0f0558d31a4382250a684bede4fd1
We will release a version soon. I'd like to thanks everyone involved for reporting the issue and the patience helping with the debugging. (also in #2616 )
Given a slint layout When preview layout in Visual Studio Code Then preview appears in menu bar but does not show up