Menu

#820 "Find references of" doesn't always work

Undefined
open
nobody
Bug_Report
2021-05-17
2019-04-26
No

Open the attached project and do a "Find references of" on the screen_index variable. The first time it doesn't show any references, the second time it shows them. Doing the same on another variable now lists the references. Sometimes I found that not all of them were shown.

If you reparse the project then the issue is back again.

I'v tried C::B svn 11657 on Linux and svn 11628 on Win10 (Nightly build).

1 Attachments

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2019-04-26

    Did you wait for reparse to end before using "Find references"? It can take a long time in the background.

     
  • Fabián Inostroza

    Yes, once I load the project or reparse it the log shows:
    NativeParser::OnParserEnd(): Project 'find_references' parsing stage done!
    I also tried doing nothing for some minutes but the result is the same.

    After I use the find references functionality the log shows a series of "Loading lexer" messages.

    This is the full log:

    Opening /media/Datos/cb_bugs/find_references/find_references.cbp
    Done.
    NativeParser::CreateParser(): Finish creating a new parser for project 'find_references'
    NativeParser::OnParserEnd(): Project 'find_references' parsing stage done!
    ################# Here I use the Find references menu
    Scanning for lexers in /opt/codeblocks/share/codeblocks/lexers/...
    Found 60 lexers
    Loading lexer_properties
    Loading lexer_lua
    Loading lexer_ruby
    Loading lexer_verilog
    Loading lexer_vbscript
    Loading lexer_sql
    Loading lexer_make
    Loading lexer_f77
    Loading lexer_java
    Loading lexer_rc
    Loading lexer_python
    Loading lexer_haskell
    Loading lexer_perl
    Loading lexer_autotools
    Loading lexer_cmake
    Loading lexer_d
    Loading lexer_bash
    Loading lexer_postscript
    Loading lexer_prg
    Loading lexer_javascript
    Loading lexer_markdown
    Loading lexer_OgreMaterial
    Loading lexer_ada
    Loading lexer_cg
    Loading lexer_css
    Loading lexer_squirrel
    Loading lexer_masm
    Loading lexer_objc
    Loading lexer_OgreCompositor
    Loading lexer_powershell
    Loading lexer_tehex
    Loading lexer_plain
    Loading lexer_inno
    Loading lexer_angelscript
    Loading lexer_smalltalk
    Loading lexer_proto
    Loading lexer_A68k
    Loading lexer_hitasm
    Loading lexer_bibtex
    Loading lexer_vhdl
    Loading lexer_batch
    Loading lexer_pascal
    Loading lexer_diff
    Loading lexer_registry
    Loading lexer_lisp
    Loading lexer_cpp
    Loading lexer_srec
    Loading lexer_coffee
    Loading lexer_nsis
    Loading lexer_yaml
    Loading lexer_gm
    Loading lexer_latex
    Loading lexer_fortran
    Loading lexer_xml
    Loading lexer_matlab
    Loading lexer_html
    Loading lexer_caml
    Loading lexer_cu
    Loading lexer_glsl
    Loading lexer_ihex
    
     

    Last edit: Fabián Inostroza 2019-04-26
  • Fabián Inostroza

    Any pointer to what file/class/method to debug?

     
  • Teodor Petrov

    Teodor Petrov - 2019-06-15

    Probably start from the CodeCompletion::OnFindReferences method.

     
  • Teodor Petrov

    Teodor Petrov - 2021-05-17
    • labels: --> CodeCompletion
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.