kitamstudios / rust-analyzer.vs

Rust language support for Visual Studio 2022
https://marketplace.visualstudio.com/items?itemName=kitamstudios.RustAnalyzer
Other
138 stars 10 forks source link

rust-analyzer.vs breaks running 100% C++ CMake projects #24

Closed COLAMAroro closed 1 year ago

COLAMAroro commented 1 year ago

Hello

I wanted to work on a new project, a 100% C++ Project, built with CMake. However, rust-analyzer.vs complains about "program" not being set in launch configuration

image

The only thing I did was create a new CMake based project, generate the CMake configuration, and run the target binary

parthopdas commented 1 year ago

this is definitely odd. otoh it may help fix a bug i have been chasing for a while.

please can you attach the project. i'll get to this by max tomorrow.

COLAMAroro commented 1 year ago

Sure

I've uploaded a just fresh CMake Project here: colamaroro/cmake-demo

parthopdas commented 1 year ago

thanks. running late on this. should be done by today,

COLAMAroro commented 1 year ago

Take your time, these are all personal projects with no timeline :) (And I can just turn the extension off when working on CMake projects. Annoying but nothing near the end of the world)

parthopdas commented 1 year ago

pushed in a workaround. once CI finishes please install from https://www.vsixgallery.com/extension/KS.RustAnalyzer.3a91e56b-fb28-4d85-b572-ec964abf8e31/

and let me know if the fix is fine for you.

parthopdas commented 1 year ago

released to vs marketplace. pls reactivate if not fixed.

COLAMAroro commented 1 year ago

I can confirm this is fixed for me, thanks :)