-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
no instance of constructor "smartview" matches the argument list
error in vscode
#12
Comments
This seems to be windows related, what's your exact compiler version?
With the latest clangd version (could also not reproduce with older versions) I could not observe this error, so it may be related to the C/C++ Tools Extension |
This might be related: microsoft/vscode-cpptools#2912 |
I could reproduce this with some basic code that uses concepts, the issue lies within the C/C++ VSCode extension as their language server is not able to deduce concepts correctly. Another related issue: microsoft/vscode-cpptools#8132 I would strongly recommend to use the clangd extension as it suffers from way less bugs imho. |
I've filed an additional issue for you here: microsoft/vscode-cpptools#11624 There is nothing I can do to fix this, it's on the C/C++ Extension. As mentioned earlier I'd recommend using clangd instead. |
Thanks for the suggestion, I'll try the clangd extension later. |
Make sure you're properly exporting compile commands when using clangd (this may require clang-cl as well) |
✍️ Bug Description
cmake could build with no error, but vscode shows an error in editor:
![image](https://private-user-images.githubusercontent.com/8199708/280446331-f37f1d57-3dc0-4551-b8ae-28e1d3f28868.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5MzcwMDEsIm5iZiI6MTcyNTkzNjcwMSwicGF0aCI6Ii84MTk5NzA4LzI4MDQ0NjMzMS1mMzdmMWQ1Ny0zZGMwLTQ1NTEtYjhhZS0yOGUxZDNmMjg4NjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MTBUMDI1MTQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjU3MWEzNzk3NGUyYWE0MTg0N2I0NWMxYzFjZGQzZmMyYWM2NTJhZmQwODM2ZTc0OGM5NjRmNjBjMzAzYzViNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.NKwo3kmDIHcmnAaqmKJMqEJRQbd2A9TGtwKIECBg6_g)
🔁 Steps to reproduce
I created a project following the tutorial on Windows 11: https://saucer.github.io/docs/getting-started/basic-app.
I can build the project with no error using cmake:
But vscode shows an error in editor:
no instance of constructor "smartview" matches the argument list
.My
c_cpp_properties.json
:❔ Expected behavior
No response
👀 Screenshots
No response
🛸 Saucer Version
v2.1.0
🖥️ Operating System
Windows 11
🖥️ Distribution
No response
✅ I confirm that...
The text was updated successfully, but these errors were encountered: