Sysprogs forums › Forums › VisualGDB › Visual Studio crashing whenever editing CMakeLists.txt
- This topic has 5 replies, 2 voices, and was last updated 3 years, 12 months ago by Akandesh.
-
AuthorPosts
-
December 2, 2020 at 06:25 #29616AkandeshParticipant
First time user here and after installing and setting up a project I ran into this issue. The hello world and debugging works great but as soon as I open the CMakeLists.txt and try to edit anything VS just completely freezes and stops responding. I also had this issue when managing to edit it then trying to compile.
Here’s a video of it happening: https://streamable.com/4atu87
I’ve even tried reinstalling visual studio + visualgdb.
Another thing is that I don’t have any Linker settings under my project properties in VS and I can’t figure out why since many of the tutorials I see have that.
December 2, 2020 at 08:27 #29617supportKeymasterHi,
No problem, please try the steps below to narrow down the problem:
- Try creating a new project and selecting “Store source files on the Windows computer” on the last page of the wizard. Does it solve the problem?
- Does double-clicking on CMakeLists.txt file in Solution Explorer (so that it opens in a permanent tab) instead of a temporary one solve the problem?
Regarding property sheets, most likely you are using a version of CMake that does not support statement annotations. Please try right-clicking on the target icon in Solution Explorer (terminal icon) and select “Go to Definition”. If there are any issues with CMake, VisualGDB will display a link to detailed troubleshooting instructions.
December 2, 2020 at 09:28 #29619AkandeshParticipantBoth 1 & 2 failed with same result. I tested the “Go to Definition” thing and I got the error that I didn’t support target related statements and another one which said my cmake didn’t have the sysprogs extension. However your installer is the one that installed this version found in “AppData\Local\VisualGDB\CMake\bin” and it was properly configured to use this so either it installed the wrong variant or it’s using another cmake that’s automatically installed with VS. I tried downloading the cmake found in https://visualgdb.com/documentation/cmake/annotations/ but don’t know what to do with it since its of type .vgdbxpkg, tried pointing to it anyways with no noticable difference.
December 2, 2020 at 12:50 #29621supportKeymasterThis might be caused by a recent change in the VS2019 CMake parser. Our latest build [VisualGDB-5.5.103.3919.msi] was fully tested with this VS version and might resolve the issue.
Regarding CMake, please make sure you understand the difference between running CMake on Raspberry Pi itself, and running it on Windows together with a cross-compiler. The CMake building instructions page does explain it in detail.
December 3, 2020 at 05:50 #29624AkandeshParticipantI uninstalled the old verison and installed 5.5 and the old project still crashed but seems like a new one doesn’t crash so that seems nice. It’s still complaining about the CMake though. Do I need to manually build and install it on the Pi? Thought the installer checked and fixed that as well?
December 3, 2020 at 10:21 #29625AkandeshParticipantI got it working! Compiled from source on the Pi then made it use the newly compiled version with some ghetto overwriting of the old one and now it works! I finally get the linker options etc. My friend still says he didn’t have to do this though so wonder how he avoided that /shrug
-
AuthorPosts
- You must be logged in to reply to this topic.