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.
Summary: | [newcodemodel] preprocessor states differ on 1 | ||
---|---|---|---|
Product: | cnd | Reporter: | Alexander Simon <alexvsimon> |
Component: | Code Model | Assignee: | issues@cnd <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 250075 |
Description
Alexander Simon
2015-09-16 16:05:48 UTC
problem is also reproduced in the build 11760 additional investigation: I reproduced bug on my computer. #cat ./testRepository/ModelBuiltFromRepository.out | grep "3190-3210" has 1 line ends on [4967556-4973715] (wrong) #cat ./testRepository-1/ModelBuiltFromRepository.out | grep "3190-3210" has 2 lines ends on [4967555-4973714] (right) and [4967556-4973715] (wrong) Indeed sqlite3.c is included from tea/generic/tclsqlite3.c: #ifdef USE_SYSTEM_SQLITE # include <sqlite3.h> #else #include "../../sqlite3.c" #endif I.e. first golden parse produced wrong ppstate, second parse produced right and wrong ppstate. I hope it help. Integrated into 'main-silver', will be available in build *201509180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b2b9455a1b6a User: Vladimir Kvashin <vkvashin@netbeans.org> Log: trying to localize iz #255337 - [newcodemodel] preprocessor states differ on 1 Integrated into 'main-silver', will be available in build *201509190002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7121a799ed9b User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #250075 Finishing interrupted parsing produces broken code model - work around blocker Bug #255337 [newcodemodel] preprocessor states differ on 1 It seems new code model do not use file owner query and always assume UTF-8 encoding. Provide default owner query for test which returns UTF-8 Fixed via changing FileSystem to ClankFileObjectBasedFileSystem |