Home Download Buy Blog Forum Support

Ctlr+R shows the incomplete list of functions. POC inside

Ctlr+R shows the incomplete list of functions. POC inside

Postby swdev on Mon Jan 23, 2012 5:21 pm

Hello,

When I press Ctlr+R, Sublime shows me incomplete list of functions/methods. I am viewing big C++ file with many methods and Ctrl+R outline shows only N first methods. N is various from file to file. Small cpp files are showed fully. Is this a bug or limit of unregistered version?

PS. I am using Windows version of Sublime 2 beta.

Thanks.
Last edited by swdev on Tue Jan 24, 2012 9:26 am, edited 1 time in total.
swdev
 
Posts: 3
Joined: Mon Jan 23, 2012 5:12 pm

Re: Ctlr+R shows the incomplete list of functions

Postby nick. on Mon Jan 23, 2012 7:08 pm

Have you tried typing in the first few characters of the function? I believe the list is truncated, but as you use the fuzzy search the items will appear.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Ctlr+R shows the incomplete list of functions

Postby swdev on Mon Jan 23, 2012 7:23 pm

Yes, it was first that i have tried. first-character-search looks only on incompleted list and show filtered items only from it.

updated:
Hmm, I have tested sublime on nmap sources right now at home, there were many big cpp files and i didn't see any problems. Maybe the issue which i found at work has relation with file syntax and it is a problem of internal parser.
swdev
 
Posts: 3
Joined: Mon Jan 23, 2012 5:12 pm

Re: Ctlr+R shows the incomplete list of functions. POC inside

Postby swdev on Tue Jan 24, 2012 9:29 am

Hi guys,
I could reproduce an issue and define root cause.

Proof-of-concept code:
Code: Select all

   void C::method1()
   {
      
   }

   void C::method2()
   {
      
   }

#ifdef RTOL_LAYOUT
void C::method3(const ACE_NS_WString& tsStatus)
{
#else
void C::method3(const ACE_TString& tsStatus)
{
#endif

}

   void C::lostmethod()
   {
   }



void main()
{
   C c;
}


Ctlr-R doesn't show lostmethod.
swdev
 
Posts: 3
Joined: Mon Jan 23, 2012 5:12 pm

Re: Ctlr+R shows the incomplete list of functions. POC inside

Postby anandogc on Wed Feb 12, 2014 10:27 am

Also, Ctrl+R does not show functions written in format
Code: Select all
void lostmethod
(
)
{
   ...
}


If a function takes many arguments this format is useful, such as
Code: Select all
void lostmethod
(
    int a, int b, int c,
    int d,
    int e, int f, int g
)
{
   ...
}
anandogc
 
Posts: 1
Joined: Wed Feb 12, 2014 10:21 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 16 guests