-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
macFrameworkPath isn't working? #3323
Comments
As I said in #970 (comment), it seems there's a difference between writing manually the |
The code action is implemented in the addToIncludePathCommand method in our open source (https://github.com/Microsoft/vscode-cpptools/blob/master/Extension/src/LanguageServer/configurations.ts), but it basically just writes to the c_cpp_properties.json, so I don't know why the behavior would be different. |
Any news? It's Troublesome |
@julee What issue are you hitting? I don't think we found a repro for this issue. Can you provide more repro info? |
Project: you may edit the .vscode/setting.json , change Qt5_DIR to the correct path:
After cmake: configure the project, Qt head files cannot find by vscode, though all include path are detected. C/C++ Log Diagnostics output:
|
@sean-mcmanus Any news for this issue? |
I'm not sure if anyone investigated this yet. What is the exact error message, i.e. which header is missing? QtGui/QGuiApplication or a dependency of that ? Where is the file located? At one of the paths in the "Includes" in your logs? |
QtGui/QGuiApplication not found. it's locate at: /Users/julee/Qt5.10.1/5.10.1/clang_64/lib/QtGui.framework/Versions/5/Headers |
@sean-mcmanus You can try that demo project with macOS, just edit the .vscode/setting.json ,set Qt5_DIR to correct path, you can find the bug |
I think the problem is that |
You could write it as |
use |
Yes, you are right! It's a bug with CMake Tools. Thanks you! |
Ah yes, that's a problem if the dependencies are all using the framework syntax. 🤦♂️ Thanks for opening the bug for CMake Tools. |
Open a issue: |
Unfortunately this feature seems to not work on my side,
As you can see i tried different things, put the root folder or frameworks/headers directories directly.
The result is always the same.
If i switch "fuzzy" mode on & off the result is the same (well in fuzzy mode it's underlined in green with a message telling to update includePath). Did I miss something ?
OSX 10.14.3
VSCode 1.32.3
CPP Tools 0.21.0
Originally posted by @jbltx in #970 (comment)
The text was updated successfully, but these errors were encountered: