-
-
Notifications
You must be signed in to change notification settings - Fork 10
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:
🔁 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: