Sublime Forum

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

#1

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.

0 Likes

#2

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.

0 Likes

#3

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.

0 Likes

#4

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

Proof-of-concept code:


	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.

0 Likes

#5

Also, Ctrl+R does not show functions written in format

void lostmethod
(
)
{
   ...
}

If a function takes many arguments this format is useful, such as

void lostmethod
(
    int a, int b, int c,
    int d,
    int e, int f, int g
)
{
   ...
}
0 Likes