-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unresponsive when open C/C++ files #227
Comments
If you have no real need to use the GNU toolchain, use this instead: |
But mine is llvm too
|
You are using a very old version of winlibs.com's MinGW distro. The latest is already GCC 13.2.0 and LLVM 17.0.6! Nevertheless, the LLVM version of winlibs.com's MinGW distro is only a second thought. It's not first class support like llvm-mingw. It's only an extension to the GNU toolchain and it uses the GNU toolchain's headers and libraries. You can verify that it links with |
Another thing I want to remind you of is: don't put things that are not installed by an installer (with admin privileges) into |
Btw, if you can build |
I remember I seem to modify the |
Yes, I tried to build, but maybe it's my environment's fault, I failed build though
My lua is lua5.4.6 built from source (it's only one exe...) |
Even though the build script for Btw, it's very likely that you will need MSYS2 as your Powershell will not work: premake/premake-core#2196. If you use MSYS2 then you don't need to download |
I never said |
Oh, it's my ignoring. I don't know premake before. I will try later. |
It's seem that xmake is similar to premake in some ways... |
If you want to build ecode you can follow the updated steps here. If you want to avoid building the other eepp projects you can add As iahung2 mentioned, there was a related fix that could help with you issue that's currently not in any released ecode version. I'll build it myself in a few days if you're unable to build it. But I'm not completely sure that this will help. I've never experienced any unresponsiveness from the LSP, but the only way to be unresponsive is that the communication thread is locking the main/GUI thread, there are a couple of small locks that could affect it but they're usually very short-lived (for example updating the semantic syntax highlighting while rendering). I don't think that your particular clangd installation should affect the final result, since LSP communication is always async to avoid any possible unresponsiveness, so if something it's slow it should be fixed in ecode. Also if possible could you describe or show us how the unresponsiveness happens? This could be very helpful to locate the issue. What I'm almost sure this is a Windows specific issue, so for the moment I'll tag it as a windows specific bug. superchick please let's try to keep issues conversations centered on the issues, I don't want to focus attention on topics that are not related to the project, it's not helpful. |
OK, like this: res.mp4There's about 0.2s responding before it turns unresponsive (does it matter?)... |
@THZrry Try moving |
No, in fact, both the two are in my disk (see Bowpad's title) |
Note: The OP is not opening |
Ummm, I try as you say too, and now there're four known methods to open: dragging, cmdline args, open file dialog and open a folder with the C/CPP file. The results are still unresponsiveness. I think it's no doubt that the cause is clangd or other LSP servers. Moreover, I opened a rust file (in a tauri project) and it turns unresponsive too.
I will have a try on llvm-mingw later. |
Ok, I tried. |
Sorry guys I'm a little lost.
What do you mean with this?
Any unresponsive LSP will turn into an unresponsive ecode without the #129 fix. BTW maybe you can run ecode with |
I think I know why it fails now. |
Yes, As for the rust issue, you installation is incorrect the important error is here: |
I can confirm this issue is a duplicate of #129 and that it's already fixed in dev. |
Awsome! It works! |
BTW how will you do if the version is really too old? Disable it? |
Awesome! |
This my computer,
Windows 11 23h2, winlibs-MinGW11.2.0
When I use ecode to open C/C++ files, it will be unresponsive.
When I remove
clangd
from lspclient.json, I can open C/C++ files without unresponsities.So is it wrong when connecting with clangd? In other environments, I haven't meet this yet, so it's about my local environment. Clangd is installed locally, though this:
The text was updated successfully, but these errors were encountered: