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 207318 - Headers included in different variants are not supported 2 + Macro Expansion
Summary: Headers included in different variants are not supported 2 + Macro Expansion
Status: RESOLVED DUPLICATE of bug 225424
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-14 21:42 UTC by yuriy_lalym
Modified: 2013-05-21 15:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log (52.16 KB, application/octet-stream)
2012-01-14 21:42 UTC, yuriy_lalym
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yuriy_lalym 2012-01-14 21:42:18 UTC
Created attachment 114913 [details]
log

http://netbeans.org/bugzilla/show_bug.cgi?id=207317

Current file main.cpp

CTRL+ALT+Select func in "void func(1)() {}", "void func(2)() {}", "void func(3)() {}".

Variant 1
org.openide.filesystems.FileAlreadyLockedException
	at org.openide.filesystems.AbstractFileObject.lock(AbstractFileObject.java:257)
	at org.openide.filesystems.FileObject.delete(FileObject.java:377)
[catch] at org.netbeans.modules.cnd.navigation.macroview.MacroExpansionViewUtils.closeMemoryBasedDocument(MacroExpansionViewUtils.java:331)
	at org.netbeans.modules.cnd.navigation.macroview.MacroExpansionViewUtils.createExpandedContextDocument(MacroExpansionViewUtils.java:217)
	at org.netbeans.modules.cnd.navigation.macroview.MacroExpansionViewUtils.updateView(MacroExpansionViewUtils.java:131)
	at org.netbeans.modules.cnd.navigation.macroview.MacroExpansionCaretAwareFactory$1.run(MacroExpansionCaretAwareFactory.java:83)
	at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$5.run(CsmFileTaskFactory.java:476)
	at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$CsmSafeRunnable.run(CsmFileTaskFactory.java:493)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1404)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1984)

Variant 2
org.openide.filesystems.FileStateInvalidException: AbstractFileObject@103597a[main.cpp] parent: AbstractFileObject@1a29caf[root of MemoryFileSystem33[org.openide.filesystems.MemoryFileSystem@af9606]] validFlag: false validRoot: AbstractFileObject@1a29caf[root of MemoryFileSystem33[org.openide.filesystems.MemoryFileSystem@af9606]] isValidRoot: true
	at org.openide.loaders.DataObject.find(DataObject.java:517)
Caused: org.openide.loaders.DataObjectNotFoundException: AbstractFileObject@103597a[main.cpp] parent: AbstractFileObject@1a29caf[root of MemoryFileSystem33[org.openide.filesystems.MemoryFileSystem@af9606]] validFlag: false validRoot: AbstractFileObject@1a29caf[root of MemoryFileSystem33[org.openide.filesystems.MemoryFileSystem@af9606]] isValidRoot: true
	at org.openide.loaders.DataObject.find(DataObject.java:537)
[catch] at org.netbeans.modules.cnd.navigation.macroview.MacroExpansionViewUtils.saveFileAndMarkAsReadOnly(MacroExpansionViewUtils.java:358)
	at org.netbeans.modules.cnd.navigation.macroview.MacroExpansionViewUtils.saveDocumentAndMarkAsReadOnly(MacroExpansionViewUtils.java:347)
	at org.netbeans.modules.cnd.navigation.macroview.impl.services.MacroExpansionViewProviderImpl.showMacroExpansionView(MacroExpansionViewProviderImpl.java:118)
	at org.netbeans.modules.cnd.api.model.services.CsmMacroExpansion.showMacroExpansionView(CsmMacroExpansion.java:253)
	at org.netbeans.modules.cnd.completion.cplusplus.hyperlink.CsmAbstractHyperlinkProvider$1.run(CsmAbstractHyperlinkProvider.java:117)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl$3.run(ModelImpl.java:370)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1404)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1984)
Comment 1 Vladimir Voskresensky 2013-05-21 15:24:21 UTC

*** This bug has been marked as a duplicate of bug 225424 ***