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 256315 - Unresolved type at offset 0
Summary: Unresolved type at offset 0
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on: 256318
Blocks:
  Show dependency tree
 
Reported: 2015-11-02 09:46 UTC by Alexander Simon
Modified: 2016-03-16 08:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2015-11-02 09:46:09 UTC
Code model cannot resolve type started at line 1, column 1 (offset 0).
Example:
main.cpp:
#include "A.h"
#include "header.h"
int main(int argc, char** argv) {
    return 0;
}

header A.h:
struct A {
}

header header.h:
A table[20] {
    {},
};

IDE underline type A "Unable to resolve identifier A".
Comment 1 Vladimir Voskresensky 2015-11-02 12:16:56 UTC
CsmCompletionExpression item has var with empty name ""
Comment 2 Vladimir Voskresensky 2015-11-02 12:57:06 UTC
fixed on enum:  changeset: 303808:5ad0dbc9c70d [release81]
Comment 3 Vladimir Voskresensky 2015-11-03 10:56:11 UTC
extra fix:
 changeset: 303843:7d20295608de [release81]
Comment 4 Vladimir Voskresensky 2015-11-03 11:41:33 UTC
and one more:
changeset: 303844:ca20d6d4ed09 [release81]
Comment 5 Quality Engineering 2015-11-10 02:32:29 UTC
Integrated into 'main-silver', will be available in build *201511100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2cf97abf0b29
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #256315 - Unresolved type at offset 0
- use own getIdentifierBlock based on LineDocumentUtils (due to https://netbeans.org/bugzilla/show_bug.cgi?id=256318)
(transplanted from 5ad0dbc9c70d4b12643912fceae78fb7a47338ff)
Comment 6 Alexander Simon 2015-11-17 13:03:22 UTC
v.
Comment 7 soldatov 2015-11-20 13:53:30 UTC
Verified in NetBeans 8.1patch1