-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conan #1213
Comments
Wait after a complete re-build from VSCode (delete build folder) let VSCode recreate the build folder, the conan symbols are now correctly resolved but all other symbols are broken. Also weirdly enough I can neither reproduce the bug nor hide it/revert to before it occured. EDIT: One more bug CMake Tools keeps trying to use Ninja which basically for some reasons doesn't properly support building of dependent targets whereas I told it to use VS Community not Ninja... EDIT2: Only Windows causes that problem Linux is fine, Linux over SSH is fine, even MacOS is fine. EDIT3: All right I just closed, reopened editor then it asked me for setting up cpp-tools I said Yes again and now it works... I don't know if that normal but for some reasons the workspace lost the auto configure cpp-tools setting... |
The 1.4 release will have a fix to prevent Ninja from being chosen despite a setting preferring something else. So, from the later edits of the second comment of this issue, are you unblocked now? Any other problems? If your project is still not working as expected, it would help us if you make a standalone project that would manifest this issue, so that we use our time debugging the extension, investigating the root cause, finding a workaround and implementing a fix instead of ramping up on the Conan technology and creating a repro from scratch. |
I am using the Arduino toolset and having a similar problem (i think), a spam of :
And
Eventually it will give up completely and I need to restart VSCode:
I havent touched this project in a few months and now this started happening. |
This issue might be related to #602: it seems that if you get the error of 602 your project IntelliSense support is permanently broken and you fall back under this issue where absolutely no symbols and no macros not even headers can be found due to incorrect or non existant c_cpp_properties.json. EDIT: Fixed by deleting .vscode folder. |
Intellisense for packages installed with conan in CMake based project doesn't work at all in vscode. E.g. the path can be https://stackoverflow.com/questions/58077908/linking-conan-include-to-vs-code I added |
The following settings won't work either (even if the path is specified explicitly):
Is the
|
Yes, that's right. If C_Cpp.default.configurationProvider is set to ms-vscode.cmake-tools, then the CppTools extension will ignore c_cpp_properties.json (and compile_commands.json as well). |
This issue has been closed automatically because it needs more information and has not had recent activity. |
Brief Issue Summary
I recently started to use conan for handling third parties in my project and for some weird reasons, now CMake Tools is like disconnected from IntelliSense.
I just imported cmake-conan helper script that allows CMake configure to automatically run conan install with support for multiple configurations. I've checked under Visual Studio Community and all seem to work fine. However when going into VSCode no more any definitions is identified, all imported names in sub modules are errors.
The project still builds fine under Windows, Mac and even Linux can be checked under Travis.
Expected:
I expected VSCode C++ IntelliSense to correctly resolve symbols with conan enabled.
Apparent Behavior:
IntelliSense for VSCode is completely unable to find any symbols at all not just the symbols of the conan libs. VSCode C++ IntelliSense is like useless on the project now...
Developer Tools Log
I get these errors when opening any file in the project now:
Command: global --encode-path " " -f "c:\Users\Yuri Edward\BlockProject3D\Framework\Compression\include\Framework\Compression\ZInflater.hpp" running...
console.ts:137 [Extension Host] Error: Error: Command failed: global --encode-path " " -f "c:\Users\Yuri Edward\BlockProject3D\Framework\Compression\include\Framework\Compression\ZInflater.hpp"'global' is not recognized as an internal or external command,
operable program or batch file.
global --encode-path " " -f "c:\Users\Yuri Edward\BlockProject3D\Framework\Compression\include\Framework\Compression\ZInflater.hpp"
(exited with error code 1)EDIT: I just captured the entire log of a fresh window reload and sent it to pastebin: https://pastebin.com/9RwNmSbQ
Platform and Versions
Other Notes/Information
I'm not entirely sure at which moment in the process of enabling conan it started to fail...
The text was updated successfully, but these errors were encountered: