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.

Bug 255216 - Code assistance not working for QT
Summary: Code assistance not working for QT
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on: 258147
Blocks:
  Show dependency tree
 
Reported: 2015-09-11 13:22 UTC by rwhartzell
Modified: 2016-04-07 09:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot (750.73 KB, image/png)
2015-09-11 13:38 UTC, rwhartzell
Details
dump (9.83 KB, text/plain)
2016-02-18 18:17 UTC, soldatov
Details
Screen_shot_2 (2.88 MB, image/png)
2016-02-27 02:27 UTC, rwhartzell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rwhartzell 2015-09-11 13:22:19 UTC
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.
Comment 1 rwhartzell 2015-09-11 13:38:50 UTC
Created attachment 156098 [details]
Screen shot
Comment 2 Vladimir Voskresensky 2016-02-18 17:09:53 UTC
Could you, please, press Ctrl+Alt+Shift+M and provide "Preprocessor States"
Comment 3 soldatov 2016-02-18 18:17:20 UTC
Created attachment 158560 [details]
dump
Comment 4 Vladimir Voskresensky 2016-02-18 20:40:26 UTC
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)
Comment 5 Vladimir Voskresensky 2016-02-19 23:17:49 UTC
Also -F/framework/path should be recognized
Comment 6 Vladimir Voskresensky 2016-02-25 19:13:39 UTC
removing regression and patch candidate, because frameworks installed not in System/Frameworks were not yet supported in prev versions as well
Comment 7 Quality Engineering 2016-02-26 02:08:25 UTC
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
Comment 8 rwhartzell 2016-02-27 02:25:12 UTC
Still not working for me...

Deleted user dir & cache. Installed build *201602260002* and still have the same issue.

See the attached screen_shot_2
Comment 9 rwhartzell 2016-02-27 02:27:38 UTC
Created attachment 158662 [details]
Screen_shot_2
Comment 10 Quality Engineering 2016-02-27 02:34:58 UTC
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
Comment 11 Vladimir Voskresensky 2016-02-29 16:11:28 UTC
could you, please, try to specify Qt folder as system's framework folder. I mean
...../lib/{framework}
Comment 12 rwhartzell 2016-03-01 16:27:31 UTC
(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
Comment 13 ilia 2016-04-07 09:51:38 UTC
This bug has fixes at sputnik