November 1, 2019 at 21:12 #26397
I’m using VisualGDB 18.104.22.16827 and when I attempt to import an existing CMake project (via right click on solution>Add New Project>Linux Project Wizard>Import a Project or via Project>Add VisualGDB Configuration>Add Linux Configuration) I get the following error:C++123456VisualGDB version: 22.214.171.12427------------------ System.NullReferenceException ------------------System.NullReferenceException: Object reference not set to an instance of an object.at pp1.c(c91 c, IVCProject b, String a)at pp1.a_2(c91 b, IProjectEditContext c, dx1 a, String d)at u31.NewLinuxConfiguration.Execute()
This occurred with version 5.4r12 as well, thus I was trying the 5.5 preview to see if it resolved it. It appears that this is a VisualGDB issue as opposed to a Visual Studio error because it is a VisualGDB error window that pops up, but I may be incorrect.
I attempted to research it myself but have not been able to come across anything. Is this something that has been encountered before in VisualGDB or am I looking in the wrong area?
November 1, 2019 at 21:26 #26399
- This topic was modified 2 months, 3 weeks ago by nOlander.
I was able to create a new project from the CMake file successfully, it appears this was occurring when attempting to add a new VisualGDB CMake project to an existing solution. Still remains a bug, but it’s less of an issue as I am able to create a new project from a CMake file and add other projects to the created solution.November 1, 2019 at 22:27 #26400
No problem, we can help you get this to work, however we would need more information in order to pinpoint it.
The error stack you attached looks like the New Linux Configuration Wizard is getting invalid/incomplete information about the current project. If the solution contains multiple projects, it could happen if the currently selected project (i.e. the project owning the currently selected item in Solution Explorer) is some special type of project that is not properly recognized by VisualGDB.
In order to diagnose it further, please try this build: VisualGDB-126.96.36.19949.msi, it should include more details in the error traces.
Please share the updated traces from:
- Using the New Linux Configuration wizard
- Using the New Linux Project wizard
If you could also share a screenshot of the Solution Explorer showing the currently selected item while trying to import the project, it can help us pinpoint the issue faster (you can send it via our support form if you don’t want to post it publicly).
You must be logged in to reply to this topic.