Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Autocomplete weirdness !
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dinaiz
Junior Member

France
13 Posts

Posted - Aug 01 2011 :  7:11:07 PM  Show Profile  Reply with Quote
Hi !

It seems that some time, the autocomplete/suggestionbox feature isn't working with 3rd party libraries.

I correctly set up the paths in options->projects->C/C++ directories and it used to work but it suddenly stopped working.

The really strange thing is, if I manually type the name of a symbol, syntax colloration and formating (italics) work as expected, so VA X must recognize the symbols in someway.

However if I type control+space nothing happens.

Note that suggestions work for classes inside my own project. It's just with 3rd party libraries...

I tried with both "get content from default intellisense" checked, and unchecked.
I also tried a full rebuild of VA X databases & retarting the IDE but no luck so far.

I noticed that at Visual Studio startup, it doesn't scan the 3rd party directories and it seems to me that the rebuild symbols database did that after a restart ....

Is this a known problem ? (preferably, with known solution :))

Using VA X 10.6.1848 with VS 2008 SP1.

dinaiz
Junior Member

France
13 Posts

Posted - Aug 01 2011 :  7:24:20 PM  Show Profile  Reply with Quote
Ok more precisions :

Apparently, sometimes, it doesn't work with my own code and some other times it works works with 3 party libraries. It's really weird.

Sometimes it does work once and fails the second time, in the same scope !!

Example :

else
{
	bufferInfo.numSamples=bufferToFill.getNumSamples(); // Ctrl + space works
	bufferInfo.startSample=0; // Ctrl + space doesn't work ?!?!
}


Really weird ...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19077 Posts

Posted - Aug 02 2011 :  11:36:39 AM  Show Profile  Reply with Quote
In your code sample, where are you placing the caret when CTRL-SPACE works or does not work?

Which libraries are you having a problem with?

If you use alt-g on one of the library classes, does VA know how to find the class declaration? If so, what is the full path to the header file with the declaration?

Can you please go to:

VA Options -> System Info -> Copy Info

and paste the details (from the clipboard) into your reply. This will give us the basic information about your setup, along with the library directories VA is set to parse.

zen is the art of being at one with the two'ness
Go to Top of Page

dinaiz
Junior Member

France
13 Posts

Posted - Aug 02 2011 :  11:44:43 AM  Show Profile  Reply with Quote
Thanks for your reply !

bufferInfo.|numSamples=bufferToFill.getNumSamples(); // Ctrl + space works
bufferInfo.|startSample=0; // Ctrl + space doesn't work ?!?!



System info :

VA_X.dll file version 10.6.1848.0 built 2011.05.04
Licensed to:
VA X: [email protected] (Non-renewable license) Support ends 2011.05.16
DevEnv.exe version 9.0.30729.1 Professional
msenv.dll version 9.0.30729.1
Font: Courier New 13(Pixels)
Comctl32.dll version 6.10.7600.16661
Windows 7 6.1 Build 7600
8 processors (x86-64;
WOW64)

Platform: Custom
Stable Includes:
C:\\Users\\Denis\\Documents\\Visual Studio 2008\\Projects\\Springbeats\\juce;
C:\\Users\\Denis\\Documents\\Visual Studio 2008\\Projects\\Springbeats\\boost;

Other Includes:

Stable Source Directories:
C:\\Users\\Denis\\Documents\\Visual Studio 2008\\Projects\\Springbeats\\juce;
C:\\Users\\Denis\\Documents\\Visual Studio 2008\\Projects\\Springbeats\\boost;


quote:
If you use alt-g on one of the library classes, does VA know how to find the class declaration? If so, what is the full path to the header file with the declaration?



Well now, both work ?! (Alt-G fins dthe declarationa dn autocomplete works)

It seems that everything is back to normal.

What could explain what happened ?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19077 Posts

Posted - Aug 02 2011 :  11:59:09 AM  Show Profile  Reply with Quote
For the code sample, at a guess there is something else, further up the code file, that is causing some problems for our parser. If so, then as you move through your code, problems will appear and disappear "at random". If so then you should be able to get reliable behaviour in a new, empty .cpp file.

Your stable include directories, you have removed all of the default directories, so VA will have problems knowing about and helping you with the standard win32 API's. Is this deliberate?

zen is the art of being at one with the two'ness
Go to Top of Page

dinaiz
Junior Member

France
13 Posts

Posted - Aug 02 2011 :  12:02:50 PM  Show Profile  Reply with Quote
Ok, I see. Fixing all the compilation errors probably fixed the problems VA had parsing the files !

You mentioned Alt-G to go to the declaration. That's a nice shortcut. Is there another shortcut to go, from the declaration to the definition ?
Those functions in the context menu of Visual Studio never work for me :(

nd about the Win32 headers, yes it's deliberate. We are writing croiss-platform code, using boost and juce libraries, so we never directly call win32 code :)
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 02 2011 :  12:28:38 PM  Show Profile  Reply with Quote
Alt+G will ask if you want to go to the definition or the declaration. If you are already on a declaration it will jump to the definition and vice versa.

Edited by - accord on Aug 02 2011 12:30:00 PM
Go to Top of Page

dinaiz
Junior Member

France
13 Posts

Posted - Aug 02 2011 :  12:40:14 PM  Show Profile  Reply with Quote
quote:
Originally posted by accord

Alt+G will ask if you want to go to the definition or the declaration. If you are already on a declaration it will jump to the definition and vice versa.



Thanks, thatr's a huge time saver now our project is getting bigger ! Congrats for doing VA X ! I can't imagine going back to coding without it now :)
Go to Top of Page

dinaiz
Junior Member

France
13 Posts

Posted - Aug 22 2011 :  9:07:08 PM  Show Profile  Reply with Quote
quote:
In your code sample, where are you placing the caret when CTRL-SPACE works or does not work?


quote:
bufferInfo.|numSamples=bufferToFill.getNumSamples(); // Ctrl + space works
bufferInfo.|startSample=0; // Ctrl + space doesn't work ?!?!



Ok I'm actually having the same problem again. The thing I don't understand is that, even though autocompletion doesn't work, the syntax is colored properly, when I finished typing manually.

I think the syntax coloring done by VA X ? If so, why isn't autocomplete working, if the syntax coloring is ? Any idea how I could fix that ?


Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19077 Posts

Posted - Aug 24 2011 :  12:01:57 PM  Show Profile  Reply with Quote
Syntax colouring is partly done by VA and party done by the IDE. So the first test is to turn off:

VA Options -> Advanced -> Fonts and Colors -> Enable Enhanced Syntax Coloring

and see what happens.

VA syntax colouring requires a different, often smaller understanding of your code to intellisense, so one can work while the other fails. If you place the caret into the variable where intellisense fails, what is shown in VA's context and navigation fields? Does alt-g on the problem variable do anything?

Have the compilation errors returned? If so does fixing them make any difference?

zen is the art of being at one with the two'ness
Go to Top of Page

dinaiz
Junior Member

France
13 Posts

Posted - Jan 25 2012 :  07:58:40 AM  Show Profile  Reply with Quote
For some reason, every problem I ever experienced with VA X went away since I switched to visual studio 2010. Therefore, I guess this was all due to the notoriously buggy VS2008 intellisense. I disabled it in VaX but it didn't seem to be enough. Anyway, now it's working totally fine, and it really changed my coder life :-) Thanks for everything !
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000