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 257886 - [newcodemodel] AssertionError: virtual file path must be normalized StringRef{T:\Work\Sources\parking\trainer\qSqlDb.h} vs. FileData{Name=[string size=40+'0'] T:\Work\Sources\parking\trainer\QSqlDb.h, UniqueID=Uniqu
Summary: [newcodemodel] AssertionError: virtual file path must be normalized StringRef...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords: NO82
Depends on: 269115
Blocks:
  Show dependency tree
 
Reported: 2016-02-08 09:26 UTC by cezariusz
Modified: 2017-03-29 08:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222422


Attachments
stacktrace (4.15 KB, text/plain)
2016-02-08 09:26 UTC, cezariusz
Details
stacktrace (4.06 KB, text/plain)
2016-04-20 12:35 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2016-02-08 09:26:03 UTC
Build: NetBeans IDE Dev (Build 201512310002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 8.1

User Comments:
cezariusz: Switching to a header file.

cezariusz: Selected some text in the header.

cezariusz: Switching to a header file.

cezariusz: Pasted some text to the header.




Stacktrace: 
java.lang.AssertionError: virtual file path must be normalized StringRef{T:\Work\Sources\parking\trainer\qSqlDb.h} vs. FileData{Name=[string size=40+'0']
T:\Work\Sources\parking\trainer\QSqlDb.h, UniqueID=UniqueID{Device=-9223372036854775808, File=714804895}, IsDirectory=false, IsNamedPipe=false, InPCH=false, ModTime=2401284891, Size=2766, IsVFSMapped=false}
   at org.clang.basic.FileManager.getVirtualFile(FileManager.java:681)
   at org.clang.frontend.impl.CompilerInstanceStatics.InitializeFileRemapping(CompilerInstanceStatics.java:93)
   at org.clang.frontend.ClangGlobals.InitializeFileRemapping(ClangGlobals.java:736)
   at org.clang.tools.services.impl.PreprocessorInitializer.createPreprocessor(PreprocessorInitializer.java:259)
   at org.clang.tools.services.impl.PreprocessorSupport.dumpPreprocessedEntry(PreprocessorSupport.java:294)
   at org.clang.tools.services.impl.PreprocessorSupport.preprocessEntries(PreprocessorSupport.java:239)
Comment 1 cezariusz 2016-02-08 09:26:06 UTC
Created attachment 158409 [details]
stacktrace
Comment 2 cezariusz 2016-02-08 09:28:00 UTC
Please note the case change in the filename (outside of NetBeans).
Comment 3 Vladimir Voskresensky 2016-02-08 18:32:28 UTC
Could you, please, try the daily build? As I see you use last year build.

Thanks!
Comment 4 Vladimir Voskresensky 2016-02-09 12:21:39 UTC
And please, provide steps how to reproduce the issue.
Thanks.
Comment 5 Vladimir Voskresensky 2016-04-20 12:35:59 UTC
Created attachment 159342 [details]
stacktrace

standalone cpp file was added under hg control
Comment 6 cezariusz 2016-04-20 14:43:09 UTC
(In reply to Vladimir Voskresensky from comment #4)
> And please, provide steps how to reproduce the issue.
> Thanks.

On Windows rename a file changing only the case (outside of NetBeans). Leave the old name in the project configuration.
Comment 7 Alexander Simon 2017-03-29 08:14:46 UTC
Bug is reproduced in development build only.