Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Dmitry Jemerov 
Subsystem
Plugin Support. API 
Affected versions
Fixed in
Fixed in build
Next build 
Build
4125
Fixed in build
5147
  • Submitted by   Vassiliy Kudryashov
    4 years ago (08 Feb 2006 13:22)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:26)
  • Jira: IDEA-31371
    (history, comments)

IDEA-31371

IndexPatternSearch.search(PsiFile, IndexPattern).findAll() is empty if pattern occurence belong JavaDoc-like comment

0
Steps:
1. Add custom pattern (via IndexPatternProvider implementation), for example
author\s+(\S+)

2. Try to search by this pattern in file contaninig code fragment
/**
\* @author yole
  • /

Expression "(IndexPatternSearch.getOccurrencesCount(file, pattern) > 0)" will be true, but
"IndexPatternSearch.search(file, codeLinkType).findAll()" will return empty collection

For comment
/*
\* @author yole
  • /

same collection will contain single element.

Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments