GameMaker-Bugs icon indicating copy to clipboard operation
GameMaker-Bugs copied to clipboard

Code Editor 2: "Language server failed to load" notification appears often when starting GM

Open KormexGit opened this issue 1 year ago • 3 comments
trafficstars

Description

I've been periodically having the language server for CE2 fail to load at all, with an error message in the top right of the IDE. The message disappears super fast though, so I wasn't able to screenshot it. I'm reporting this right after it happened in hopes that maybe some of the log files will show what happened, since it seems to be fairly random. What specific project I open doesn't seem to have an affect, since I've had it happen for projects that were almost entirely empty. Once it fails to load, GM has to be restarted to fix it. The issue specifically happens when the first project is opened after opening GM, loading multiple projects without closing GM does not trigger it.

Steps To Reproduce

Start GM, open up a project, and see if the language server fails to load. Close GM and repeat. When it happens seems to be random, sometimes it won't happen for dozens of starts in a row, and other times it will happen multiple times in just a few starts.

Which version of GameMaker are you reporting this issue for?

IDE v2024.800.0.602 Runtime v2024.800.0.624

Which operating system(s) are you seeing the problem on?

Windows 10.0.22631.0

2aca7b7c-03bc-4531-81ab-ccf1ad74926f

KormexGit avatar Aug 08 '24 02:08 KormexGit

Had it happen again and managed to snap a screenshot before it vanished, the parts I redacted was just my account name and project name/filepath.

image

When this happens, none of the code gets colored properly, no feather tooltips appear, no autocomplete appears, no diagnostics appear, and more. Persists through loading any number of projects, only fixed by a full restart of GM itself.

KormexGit avatar Aug 10 '24 03:08 KormexGit

This frequency of this issue seems to have increased, I often have to start GM 2-3 times to be able to use CE2. I also had it trigger when swapping projects, so it's not just on initial GM load.

KormexGit avatar Aug 18 '24 16:08 KormexGit

In latest beta I haven't had this happen in the 3 days I've been using it so far

KormexGit avatar Oct 08 '24 00:10 KormexGit

@sykhro is this bug fix still ok to be implemented for Nov24 or does it need punting on? I'm just very aware that this bug fix hasn't yet being started.

Cheers

sihammill avatar Nov 07 '24 09:11 sihammill

@zreedy is this bug fix still ok to be implemented for Nov24 or does it need punting on? I'm just very aware that this bug fix hasn't yet being started.

Cheers

This bug in particular was already fixed, the issue is manifesting again due to a different cause (#8271).

sykhro avatar Nov 07 '24 11:11 sykhro

This regression has been fixed in the PR for the above private ticket. Please be mindful that future changes to the project format may regress this again with the fix being to readdress the above private ticket (10869).

zreedy avatar Nov 08 '24 20:11 zreedy

I have open and closed the latest Beta IDE many times now and I've not had one instance of the Language Server failing. Tested using IDE v2024.1100.0.681 Runtime v2024.1100.0.703

sihammill avatar Nov 12 '24 11:11 sihammill