ReSharper C++ does not work with CMake projects in VS2017

I'm using a CMake project using VS2017 and I've installed ReSharper Ultimate along with it. In a normal project everything works fine, I can jump to declarations, include header files via ALT+Enter etc.

 

However, none of ReSharpers functionality works with CMake based projects, none of it. I hit ALT+Enter and all I get is a sound notification. Nothing pops up, I can't jump to declarations either. Is there a way I can get ReSharper to work with my project?

6 comments

Hello Liam,

ReSharper 2017.1 EAP 4 (will be available tomorrow from https://www.jetbrains.com/resharper/eap/) will support CMake-based projects.

Thanks!

1

Liam,

The EAP 4 build is now public. If you have a chance, please try it with your CMake solution and let us know how it goes. 

Thanks!

0

Hi, I just installed the new EAP 4 build and it still doesn't work as it should. I can now use ALT+Enter at which point I get a context menu with the two options: "Navigate to", and "Generate code" however I can't use it to do anything else such as include a header file for a class. I also cannot use CTRL+Click to navigation to the declaration of a class or function etc.

0

Liam, sorry it didn't work for you. Would you be able to share this project with us or send us another repro project which has the same problem?

0

Of course, here are my project files. https://mega.nz/#!IApViQ5C!YUXPUKwwN18ECxMdVql6UAdpQRyr62153ENGSoH9WAk

EDIT:

Okay, after restarting VS2017 about 5 times the functionality is now working

0

Liam, it worked for me too - please make sure however that you've waited until CMake has finished generating the solution and R++ has finished updating source files (there's a progress in the status bar during that process) after a new project is opened. If you see any other problems with CMake, please let us know. Thanks for trying it out!

0

Please sign in to leave a comment.