History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-9977
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Peter Gromov
Reporter: Yann Cébron
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

DOM-Model: @NameValue references coming from another file (MergingFileDescription) not used in getVariants()

Created: 16 Aug 06 13:24   Updated: 26 Sep 06 19:26
Component/s: Editor. Code Completion
Fix Version/s: Demetra 6.0.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-8852 DOM-Model: @NameValue references comi... Resolved

Build: 5,994
Fixed in build: 5,743
Severity: High


 Description  « Hide

 All   Comments   Work Log   Change History      Sort Order:
Yann Cébron - 22 Sep 06 11:13
will this be fixed for Demetra? this makes DOM-Model not very useful for everything besides standalone single XML files

Peter Gromov - 26 Sep 06 13:21
Seems that I've understood the problem. IntelliJ IDEA gives you the file copy for the completion. What if you try to use PsiFile#getOriginalFile() in your getFilesToMerge() implementation whenever possible as a workaround?

Yann Cébron - 26 Sep 06 14:01
then everything breaks

Peter Gromov - 26 Sep 06 14:04
How?

Yann Cébron - 26 Sep 06 14:49
then even reference/completion within the same file is broken (because xmlFile.getOriginalFile() returns null?)

Peter Gromov - 26 Sep 06 14:55
If it returns null, use the file you have, otherwise change it:
PsiFile originalFile = file.getOriginalFile();
if (originalFile != null) file = originalFile;

I understand that this is not very nice, I'll do the same thing in MergingFileDescription in 6.0.1, if, of course, it proves to be the problem source


Yann Cébron - 26 Sep 06 15:09
still "no suggestions" for completion

Peter Gromov - 26 Sep 06 15:20
Strange. As usual, everything works for me. The problem still must be connected with original/non-original files. Is the getFilesToMerge() called at the completion? Is there a right physical DomElement passed?

Yann Cébron - 26 Sep 06 15:26
yes, getFilesToMerge() is called at completion and I get DomElements passed in

I will mail you the sources in private