This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Code assistance does not work with standard Qt release but does work with MacPorts Qt. To reproduce: 1) Install Qt from www.qt.io 2) Create c++/Qt project All Qt specific #includes result in "unresolved includes inside <header> and all Qt keywords are marked as "unable to resolve forward declarations" or "unable to resolve identifier" Note that when using Qt installed from MacPorts Qt code assistance works without issue. The main difference that I can see between the two installs is that MacPorts installs symlinks to the frameworks located in [install path]/lib to [install path]/include where Qt's release does not. Qt code assistance works on other platforms such as Microsoft & linux but again the difference in installs is that the headers are located in [install path]/include on those platforms. This only effects code completion, the project will build and run without issue. problem persists since at least 8.0.1 including 8.1-beta and developer previews.
Created attachment 156098 [details] Screen shot
Could you, please, press Ctrl+Alt+Shift+M and provide "Preprocessor States"
Created attachment 158560 [details] dump
Thanks. I see the problem. Previously on MacOS only /System/Library/Frameworks /Library/Frameworks were the "framework" dirs. Now presence of any paths in the format: /abs/path/FrameworkName.framework/headers /abs/path/FrameworkName.framework/Headers should proceed by adding /abs/path as Framework container (similar to /System/Library/Frameworks)
Also -F/framework/path should be recognized
removing regression and patch candidate, because frameworks installed not in System/Frameworks were not yet supported in prev versions as well
Integrated into 'main-silver', will be available in build *201602260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ef5088a48938 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing Bug #255216 Code assistance not working for QT
Still not working for me... Deleted user dir & cache. Installed build *201602260002* and still have the same issue. See the attached screen_shot_2
Created attachment 158662 [details] Screen_shot_2
Integrated into 'main-silver', will be available in build *201602270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ec3fa2ee57de User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixing #255216 - Code assistance not working for QT - support for frameworks and ability to ignore sysroot
could you, please, try to specify Qt folder as system's framework folder. I mean ...../lib/{framework}
(In reply to Vladimir Voskresensky from comment #11) > could you, please, try to specify Qt folder as system's framework folder. I > mean > ...../lib/{framework} Please disregard comment #8. I mis-read the email notification that I received and tested before you were done. I tried to delete the comment but couldn't. I've been using build *201602270002* and code completion with both my installed Qt frameworks and the system frameworks are working nicely!!! I did notice build *201602290002* was having some issues with Qt and forward declarations but didn't have time to test much. I'll keep testing when I have some time. Thanks for the fix! I love NetBeans again lol
This bug has fixes at sputnik