-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blinking spawn process on Windows #120
Comments
I don't see how this has anything to do with VLS. |
@taozuhong do you have something similar? |
yeah, me too. it's serious for the user. Steps to reproduce: BTW, I am tracking the change of VLS every day, but not yet use it in my project(using vala extension), because vala-code does not implement the template and context autocomplete of vala file. fighting, friends. |
Hmm..there does seem to be a problem with path resolution under Windows, caused by 0aa20ba (found by bisecting). |
When I said VLS doesn't spawn a process for completion, that was correct. It does however spawn processes when initially setting up the Meson project. Perhaps issues with path resolution on Windows are causing the Meson project setup to be run multiple times. |
@gavr123456789 @taozuhong tell me if #121 fixes your issue (checkout the branch |
not yet, the behavior same as the master branch. |
This is fun Found ninja.EXE-1.10.0 at C:\msys64\mingw64\bin/ninja.EXE
ERROR: Clock skew detected. File C:/msys64/home/gavr/vala-language-server-bug-windows-path-resolution/build/../meson.build has a time stamp 9665.5390s in the future.
A full log can be found at C:/msys64/home/gavr/vala-language-server-bug-windows-path-resolution/build/meson-logs/meson-log.txt
|
It seems the issues with dependencies on Windows are also fixed by the commit. However, I wasn't abl to reproduce the stuttering/flickering. |
this is the screen recorder of vscode under MSYS2 |
@taozuhong, from this frame, it looks like the process being spawned is Just curious, are you able to downgrade to Vala 0.48.3 on your MinGW installation? If so, then try running VLS with your project. It's possible that this commit (GNOME/vala@2ad4a6e) to Vala is responsible. |
@taozuhong @gavr123456789 Just to be clear, I think the behavior you're seeing is a result of Vala doing the right thing now, after a bug fix that I made for a separate issue. It seems that this might also be a new issue that was exposed. A temporary workaround right now might be to add if host_machine.system() == 'windows'
# disable since check on Windows
add_project_arguments(['--disable-since-check'], language: 'vala')
endif |
@taozuhong @gavr123456789 you can try downgrading to a Vala version before 0.48.3 by looking in |
Exactly right, the Vala 0.48.3 is silent, and just splash the cmd.exe window once(not yet add the flag you mentioned). |
It seems what has also happened is that an update to other packages in MSYS2 changes the behavior of |
the experience of VSCode on windows is back to bad again: I have to disable it. do you try it on windows? |
@taozuhong I test VLS on Linux and Windows, but I develop most of the time on Linux. I make sure to periodically test VLS on Windows after certain changes that I think might cause problems. |
@taozuhong can you post the output of VLS? |
@taozuhong There shouldn't be any crashes in VLS. I just test-ran the master branch with updated MSYS packages and there are no crashes. But there are issues with spawning Meson and of course there's still the issue with console windows being created when spawning subprocesses. |
pls keep up making a great experience. |
So, we have to start doing something. I'm not sure if I need to create an issue in Vala or GLib. This is a very serious problem, VLS is not usable under windows as long as it exists. |
@gavr123456789 Agreed. After testing this with other programs that use GLib I've concluded this is a problem with how GLib spawns processes on Windows. The ultimate fix lies there, but perhaps if it takes too long to be fixed I could come up with a temporary hack in VLS that would minimize the problem (but not make it go away completely). |
@gavr123456789 I have an idea of how to fix this in GLib. Right now I'm finishing up symbol rename support with some edge cases. Give me a few days to start working on this issue. |
Just letting you know I haven't forgotten about this issue. I've opened a MR in GLib that I think will solve it: |
@gavr123456789 the win32-workaround branch only helps with launching If you want to test the fix in GLib, you can try installing this package I've built: If that doesn't work, try these steps in msys2 (you can use this to rebuild glib2 when it gets updated):
Or you can just apply this patch instead of steps 4-6: |
While this MR is still in progress, I've rebuilt |
My PR has been merged into GLib upstream. I think I can close this bug. Until the latest version of GLib lands in MinGW you can use the package I've built. |
Thank you |
Describe the bug
Each update of the project symbols causes the opening and closing processes to blink. They take over the focus that interrupts autocomplete.
I think its symbol extractor.
Software
OS and version (e.g. Ubuntu 20.04): Windows
Code editor (e.g. VSCode): VSCode
Vala Language Server (e.g. git commit, or PPA/AUR version): 0.48
Vala version (
valac --version
): 0.48.6https://youtu.be/r3sY2NzDyiI
A temporary solution may be the ability to disable it in the client settings.
The text was updated successfully, but these errors were encountered: