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

Summary: [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
Product: cnd Reporter: cezariusz <cezariusz>
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal CC: cezariusz
Priority: P3 Keywords: NO82
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 222422
Bug Depends on: 269115    
Bug Blocks:    
Attachments: stacktrace
stacktrace

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.