code analysis very slow when edit code. Can you add a remote server for analyzing?
已回答
请先登录再写评论。
Hello!
If you want code analysis to take place on the remote server, please take a look at this remote approach: https://www.jetbrains.com/help/clion/remote-development-a.html
Thanks for answer
JetBrains Gateway for clion has lots fo bugs
like:
1. header files can't jump to the corresponding implementation
2. navigate not working
3. shift + shift indexing
A lot of .gitignore filtered files appear. Maybe my server git version is too low
4. plugin not working like Protocol Buffers
now version
1. header files can't jump to the corresponding implementation. problem not solved
2. navigate not working. problem not solved. It's very inconvenient to look at the code
when I go to definition of
navigate not avalible, I can go back to caller function
3. shift + shift indexing A lot of .gitignore filtered files appear. my server git version git version 2.17.6, problem not solved
act_1.pb.h in .gitingore list
4. plugin not working like Protocol Buffers. Problem solved, plugin works ok
>header files can't jump to the corresponding implementation
What action do you use?
>navigate not working. problem not solved
As I wrote, the issue is fixed in 2022.2.1, and you use 2022.2. You need to update both local CLion (or Gateway) and the remote CLion instance.
>shift + shift indexing A lot of .gitignore filtered files appear
I still don't get the problem. Do you mean that files which are listed in .gitignore appear in the search results?
> As I wrote, the issue is fixed in 2022.2.1, and you use 2022.2.
sorry, I forgot to upgrade remote CLion instance
> I still don't get the problem. Do you mean that files which are listed in .gitignore appear in the search results?
yes. but I found It's the same in clion, may be it's ok
Sometimes it takes several seconds to return query results, which is a bit slow. and also blocks my typing. This also happens when I edit the source code
Sometimes act_450.cpp:1211 This way does not jump to the correct line number
>What action do you use?
go to -> definition. after upgrade it seems ok
> navigate not working. problem not solved
may be solved part of it.
symbols defined in another file. it's ok.
symbols define in current file. Can't go back to where you started jumping. I found that it seems that the cursor is jumping back, but the content of the file is not repositioned
In short, the code prompts are sometimes absent, and typing is also stuck. The only advantage is that the analysis is slightly faster than the local one, because my remote server has 16 cores, and the experience is not as good as clion. Always like this, I can't do anything
loading for 10 minutes, cannot click or edit anything
New problem, there is a problem with the expansion of macro definitions.
obviously not empty
Please try increasing the
-Xmx
memory size on the remote server - https://www.jetbrains.com/help/clion/work-inside-remote-project.html#rd_add_vm_optionsI tried 12240 MB xmx, After using it for a while, there are no prompts and jumps. like getting stuck on an operation
>New problem, there is a problem with the expansion of macro definitions.
Is it possible that the condition inside the if operator is false (and therefore the statement is in fact empty)?
Probably related: https://youtrack.jetbrains.com/issue/CPP-30750