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
 #include listbox problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Hexagonal
Senior Member

35 Posts

Posted - Nov 28 2006 :  03:23:02 AM  Show Profile  Reply with Quote
VA 1539:

- turn on "Get content from default Intellisense option";
- type #include " and then press Ctrl+Space;
- you'll see list of all identifiers instead of file list;

I turn on "default intellisense" option because it can parse those structure/class fields that VA cannot, seemingly for lack of preprocessor support.

Can you integrate full preprocessor in VA? It's fast, and number of open sources is available in the net.

Simplified preprocessors cannot parse things such as "boost/preprocessor" constructions.

Edited by - Hexagonal on Nov 28 2006 03:26:49 AM

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 28 2006 :  3:19:52 PM  Show Profile  Reply with Quote
Which IDE are you using? I cannot reproduce this problem with #include.

Preprocessor support, one answer is given here:
http://docs.wholetomato.com?W321

Can you give an example of code inside Boost that VA is not handling properly? If I can reproduce the problem I can then put a bug report in for it.

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

Hexagonal
Senior Member

35 Posts

Posted - Dec 09 2006 :  5:22:48 PM  Show Profile  Reply with Quote
first, about #include

IDE is Microsoft Visual Studio 2005 Professional
Version 8.0.50727.42 (RTM.050727-4200)

tried Visual Assist 1541, the same problem persist:

turn on "Get content from default Intellisense option", without this option it behaves normally

if you type only #in, then press Tab, you will see normal behaviour (list of files and dirs and so on)

but if you type #include "", then set the cursor inside "" and press Ctrl+Space, it will show all identifiers in project, like it does when you Ctrl+Space in empty line

Edited by - Hexagonal on Dec 09 2006 5:31:08 PM
Go to Top of Page

Hexagonal
Senior Member

35 Posts

Posted - Dec 09 2006 :  5:28:25 PM  Show Profile  Reply with Quote
Now example related to preprocessor.

Surprisingly VA parses it well when default Intellisense is enabled, whether or not "get content from Intellise option" is set.

But Intellisense often crashes on my project, so I disabled it renaming FEACP.DLL

Without default Intellisense, VA cannot get fields of "s" structure. When I type "s." then Ctrl+Space, nothing happens.

Of course we cannot name this behaviour "bug", but only real preprocessor can parse constructions like boost/preprocessor's


#include <boost/preprocessor/seq/size.hpp>
#include <boost/preprocessor/seq/elem.hpp>
#include <boost/preprocessor/repeat.hpp>
#include <boost/preprocessor/tuple/elem.hpp>

//================================================================
//
// example macro
//
//================================================================

#define EXAMPLE__TYPE(elem) \  BOOST_PP_TUPLE_ELEM(2, 0, elem)

#define EXAMPLE__NAME(elem) \  BOOST_PP_TUPLE_ELEM(2, 1, elem)

//----------------------------------------------------------------

#define EXAMPLE__FOR_EACH(macro, container) \  BOOST_PP_REPEAT(BOOST_PP_SEQ_SIZE(container), macro, container)

//----------------------------------------------------------------

#define EXAMPLE__CREATE_FIELD_DECL_(elem) \  EXAMPLE__TYPE(elem) EXAMPLE__NAME(elem);

#define EXAMPLE__CREATE_FIELD_DECL(z, n, seq) \  EXAMPLE__CREATE_FIELD_DECL_(BOOST_PP_SEQ_ELEM(n, seq))

//----------------------------------------------------------------

#define EXAMPLE_CREATE(Name, params) \  \  struct Name \  { \    EXAMPLE__FOR_EACH(EXAMPLE__CREATE_FIELD_DECL, params) \  }

EXAMPLE_CREATE
(
  My_struct,
  ((int, A))
  ((float, B))
);

//================================================================
//
// my_func
//
//================================================================

void my_func(const My_struct& s)
{
}



Edited by - Hexagonal on Dec 09 2006 5:41:59 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Dec 11 2006 :  12:36:28 PM  Show Profile  Reply with Quote
I am seeing the same problem with #include lines, it only happens in VS2005, which is why I was unable to reproduce it before.

case=4055

I have put in a case for this macro code, so that we know about the problem. I am not sure when we will try to tackle this problem though.

case=4056

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

Hexagonal
Senior Member

35 Posts

Posted - Dec 23 2006 :  4:30:12 PM  Show Profile  Reply with Quote
Thanks!

quote:

I have put in a case for this macro code, so that we know about the problem. I am not sure when we will try to tackle this problem though.



Yes. It's better to wait for Microsoft to fix Intellisense enough.

Edited by - Hexagonal on Dec 23 2006 4:33:13 PM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 29 2007 :  02:37:40 AM  Show Profile  Reply with Quote
case=4055 is fixed in Build 1614
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