T O P I C R E V I E W |
WheretIB |
Posted - Jun 30 2007 : 3:49:55 PM If I have some long code in one line like: funcdef = str_p("func") >> varname[&str_push][&freg_add] >> '(' >> funcvars[&freg_start] >> ch_p(')') >> ch_p('{') >> (*expression)[&freg_end] >> '}'; and place my caret at "freg_start" for exmpl., squared parentheses are highlighted. Then I scroll right, and at some moment highlighting disappears. |
13 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Jul 11 2007 : 2:59:38 PM Thank you for the files.
I have opened this solution on two different test machines, one using VA 1557 and one using VA 1559, and I am not seeing any colouring problems on either machine.
How are you scrolling sideways? I have tried scrolling to the right (the code moves to the left) by using single left mouse button clicks on the right hand arrow at the end of the horizontal scrollbar.
I have also tried scrolling a long way to the right, and then placing the caret in the long comment line and pressing the left arrow key to move the caret one character at a time, to scroll the window to the left, which moves the window two characters at a time.
For me moving the caret along the long comment line to the right causes the code to jump 25 characters sideways, which is obviously to far.
Which OS are you using? Do you have any other IDE plugin's installed?
In your stable include directories you have:
C:\\Documents and Settings\\ ... \\Visual Studio Projects\\boost;
Which version of Boost is this?
Downloading and installing the two DirectX SDK's is probably the next step, to see if this makes any difference. But I want to make sure I end up with the same version of Boost as you. |
feline |
Posted - Jul 10 2007 : 07:08:45 AM So much for that theory.
quote: Originally posted by WheretIB
I was trying to make a smallest example possible, and here it is: void if_jump(char const *, char const *){__FUNCTION__;} void if_setjump(char const *, char const *){__FUNCTION__;} void else_pre(char const *, char const *){__FUNCTION__;} void else_set(char const *, char const *){__FUNCTION__;}
The most important part is __FUNCTION__ macro! I can even see in real-time how the function name changes color as I type it in.
Using this, do you have a simple test project that shows this problem that you would be able to send me? If so please submit the files via the form:
http://www.wholetomato.com/support/contact.asp
including this thread ID or URL in the description, so we can match it up.
This way I would know I was using the same code, and could then try and do this exactly the same was as you.
I really don't know what is causing this problem, but obviously something is. |
WheretIB |
Posted - Jul 09 2007 : 3:06:02 PM "are any of the items inside the function shown in blue?" Nope. They are underlined with red. "If you place the caret into each of these functions in turn does VA show you anything in the context and definition fields to suggest they are known functions?" Nope "Does alt-g on any of these work and take you somewhere?" Nope
|
feline |
Posted - Jul 09 2007 : 10:21:37 AM It is almost as if these are known symbols on your system. If you copy / paste the following code into one of your files:
static void testCalling()
{
_jump(0);
_setjump();
_block();
_expr2();
}
are any of the items inside the function shown in blue? If you place the caret into each of these functions in turn does VA show you anything in the context and definition fields to suggest they are known functions? Does alt-g on any of these work and take you somewhere? |
WheretIB |
Posted - Jul 08 2007 : 4:35:58 PM quote: Have you been able to try making a new default project, and seeing if you can reproduce the problem there?
Yes I have. And can see again, how the colors are changing as I type in "__". I cleared the cache and rebuilded symbol database, and still the error occurs. |
feline |
Posted - Jul 05 2007 : 08:57:47 AM A lot of our users have Boost in their stable include directories, so that should not be causing problems. The DirectX SDK's are not quite so common, but again various users use these.
Have you been able to try making a new default project, and seeing if you can reproduce the problem there? |
WheretIB |
Posted - Jul 04 2007 : 4:06:17 PM Stable Includes: C:\\Program Files\\Microsoft DirectX SDK (April 2007)\\Include; C:\\Program Files\\Microsoft DirectX SDK (June 2007)\\Include; C:\\Documents and Settings\\#192;#228;#236;#232;#237;#232;#241;#242;#240;#224;#242;#238;#240;\\#204;#238;#232; #228;#238;#234;#243;#236;#229;#237;#242;#251;\\Visual Studio Projects\\boost; C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\include; C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\atlmfc\\include; C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include\\prerelease; C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Vc7\\PlatformSDK\\include; C:\\Program Files\\Microsoft Visual Studio .NET 2003\\SDK\\v1.1\\include; |
feline |
Posted - Jul 04 2007 : 06:38:53 AM Can you try making a new, default project and copy / pasting this code into it?
So far I cannot reproduce any problems with this code, and I am wondering if there is something in your current project or stable include directories that is triggering this effect.
Can you please go to:
VA Options -> About -> Copy Info
and paste the details (from the clipboard) into this thread. This will give us the basic information about your setup. |
WheretIB |
Posted - Jul 03 2007 : 5:22:39 PM I was trying to make a smallest example possible, and here it is: void if_jump(char const *, char const *){__FUNCTION__;} void if_setjump(char const *, char const *){__FUNCTION__;} void else_pre(char const *, char const *){__FUNCTION__;} void else_set(char const *, char const *){__FUNCTION__;} /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// The most important part is __FUNCTION__ macro! I can even see in real-time how the function name changes color as I type it in. |
feline |
Posted - Jul 02 2007 : 11:30:19 AM The screen shots show the problem very clearly, thank you for them. Something very strange is happening here. using VS2003 and VA 1557 I have just added the following code to a header file:
void if_jump(char const *, char const *);
void if_setjump(char const *, char const *);
void else_pre(char const *, char const *);
void else_set(char const *, char const *);
which is based on the first 4 lines from your screen shot. The following screen shots show what I am seeing, with no sideways scrolling and then with 7 characters of sideways scrolling:
I have set VA to colour functions in an orange colour on this system.
As a test I added the following code to the same file:
static void testCalling()
{
_jump(0);
}
for me _jump is underlined as a mistyped symbol. It is definitely not shown in blue or italic.
Do you have any other plugin's installed? Can you please go to:
VA Options -> About -> Copy Info
and paste the details (from the clipboard) into this thread. This will give us the basic information about your setup.
If you copy / paste the following code into one of your files:
static void testCalling()
{
_jump(0);
_setjump();
_block();
_expr2();
}
are any of the items inside the function shown in blue? For me none of them are. I am wondering if these are known types on your system. |
WheretIB |
Posted - Jul 02 2007 : 11:09:48 AM Word wrapping is off. "scroll sideways" - Sorry, I don't get what you mean. If you are talking about horizontal scrollbar, then yes. Try on some bigger lines of code (take some big function and remove all line breaks in it :) ) I get this problem everywgere in my file.
It looks like there is some another problem related to this.
looks fine, and now lets scroll! Somthing is realy wrong here. I suppose it's '_' symbol. |
feline |
Posted - Jul 02 2007 : 06:46:00 AM So far I am not able to reproduce this problem.
Do you have word wrapping turned on? Does the edit window scroll sideways as you move through this line of code? If so then the sideways scrolling may be a factor. However I had to scroll sideways in my tests and I did not see any problems. |
WheretIB |
Posted - Jun 30 2007 : 3:51:04 PM VAX 1557, VS2003 (7.1) |