Problem with remote development using cmake on Visual Studio Professional, version 17.4.2

Laurie Brown 11 Reputation points
2022-12-01T15:37:46.123+00:00

I have been using Visual Studio for remote development on an external Linux box using ssh. This has worked great until I did the latest update of VS to 17.4.2, I have verified using the connection manager that the connection is still valid but now I get the following error when I start up that project:

07:50:42:889	1> Method not found: 'Void libcmake.CMakeParameters..ctor(System.String, System.String, libcmake.CMakeConfiguration)'.  
07:50:42:894	Method not found: 'Void libcmake.CMakeParameters..ctor(System.String, System.String, libcmake.CMakeConfiguration)'.  
07:50:42:894	   at libcmake.Linux.RemoteCMakeParameters..ctor(String daemonDirectory, String cmakeListsDirectory, Func`1 remoteSourceFilesDirectoryResolver, Func`1 remoteCMakeListsTxtDirectoryResolver, CMakeConfiguration config)  
07:50:42:894	   at Microsoft.VisualStudio.CMake.Linux.Project.RemoteCMakeParserProvider.GetCMakeParameters(String cmakeListsFileOrDirectory, CMakeWorkspaceConfiguration cmakeConfiguration, String workspaceDirectory)  
07:50:42:894	   at Microsoft.VisualStudio.CMake.Project.Utils.<GetCMakeParametersAsync>d__35.MoveNext()  
07:50:42:894	--- End of stack trace from previous location where exception was thrown ---  
07:50:42:894	   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
07:50:42:894	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
07:50:42:894	   at Microsoft.VisualStudio.CMake.Project.ExternalBuildProject.ProjectProvider.<ParseProjectAsync>d__46.MoveNext()  
07:50:42:894	--- End of stack trace from previous location where exception was thrown ---  
07:50:42:894	   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
07:50:42:894	   at Microsoft.VisualStudio.CMake.Project.ExternalBuildProject.ProjectProvider.<ParseProjectAsync>d__46.MoveNext()  
07:50:42:894	--- End of stack trace from previous location where exception was thrown ---  
07:50:42:894	   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
07:50:42:894	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,062 questions
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Samuel 6 Reputation points
    2022-12-05T20:44:29.203+00:00

    For the records, rolling back to 17.4.1 is a working workaround:

    https://devblogs.microsoft.com/visualstudio/introducing-visual-studio-rollback/

    1 person found this answer helpful.

  2. Michael Taylor 55,501 Reputation points
    2022-12-01T15:46:20.2+00:00

    I would recommend you use the Report a Problem tool in VS to report the issue to MS so they can have someone with access to the code to look at it. It is possible there is a regression error. You might try creating a simple app first to ensure it is not something related to your code. MS will need a sample repro anyway.

    Without any other information the only thing I can think of is that you have cmake in your path somewhere and the updated VS needs a newer version than you have. When you try to debug Windows is picking up the older binary and failing the call. But that is a complete guess on my part at this point.

    0 comments No comments

  3. JPL_BAL 1 Reputation point
    2022-12-02T08:20:53.487+00:00

    Hello,
    I encounter the same error after updating VS to 17.4.2.
    I hope a new release will solve this problem soon.

    0 comments No comments

  4. 明 小 1 Reputation point
    2022-12-05T06:08:46.747+00:00

    Hello,
    I encounter the same error after updating VS to 17.4.2.
    I hope a new release will solve this problem soon.

    0 comments No comments

  5. Samuel 6 Reputation points
    2022-12-05T07:57:52.743+00:00

    Showstopper issue! I hope a fix release will solve this problem soon.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.