Author |
Topic |
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - May 20 2004 : 11:53:46 AM
|
following on from supports comments at the end of 2352 i have had a go at editing my UNIX code in VS with the help of VAX.
editing the code
mtform_AddCharYesNoField(pForm, MTF_SAMEROW, 72, 3,
"Renal mass", NULL, NULL, &stData.nr$, MTF_ALWAYS);
where $ is my caret, i am getting totally bazaar suggestions.
the variable stData is defined at the top of the C file (file extension .c) with the line:
EREF_LIN_UROLOGY stData;
this structure is defined at the top of the .c file, containing:
typedef struct {
...
char nRenalMass;
...
} EREF_LIN_UROLOGY;
i have stripped the rest out, but the only components in the structure are of type char, char [200 + 1], char [60 + 1] and char [10 + 1].
nRenalMass is the only component who's name starts "nR". a moment ago nRenalMass had a red underline resizing the window (2 panes, split horizontally) made the red underline go away and nRenalMass is now bold.
pressing ctrl-space i am given a list of suggestions, where the highlighted item is NRESARRAY. if i type 'e', so i have:
mtform_AddCharYesNoField(pForm, MTF_SAMEROW, 72, 3,
"Renal mass", NULL, NULL, &stData.nre$, MTF_ALWAYS);
the suggestion list box shrinks down to the single item NRESARRAY, which shows that this is a VAX suggestion list.
this is 100% reproducible at the moment. when i can get a tomato icon suggestion, VAX is correctly suggesting nRenalMass.
i will zip up the c file in question and email it to support. the file is sitting on one of our UNIX boxes, and i have opened it via a vision share.
i created a new empty VS project to do this, and when i added the .c file to the "source files" folder, the VAX bar at the top of the screen disappeared. also, most of the options in the VAX menu were greyed out. eg, all 4 surround options were greyed out.
at this point i closed VS .NET 2003, upgraded VAX from 1235 to 1237 and reloaded VS. it is at this point i encountered this strange suggestion error.
speculation: * there is a problem reading the file via the vision share, which seems unlikely, since the file looks fine in VS. * VAX cannot handle a structure defined in the current c file. this seems most likely, but a little hard to believe. this does put me in mind of 2345
back to editing under UNIX for now i think *shrug* |
zen is the art of being at one with the two'ness |
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - May 20 2004 : 12:02:48 PM
|
interesting, i have just found that some of the lines in this file have ctrl_m characters, ascii code 13 at the end. however most of them do not. i am seeing this under UNIX, and this has happened on the lines i added with VS .NET 2003.
it looks like something happened between vision and VS to cause this.
i have no idea if this is relivent, but it probably isnt helpful, at least under UNIX. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - May 20 2004 : 1:58:37 PM
|
Only listboxes with tomatoes are suggestion listboxes. A completion listbox, ie with all possible completions, opens when you press Ctrl+Space.
If you have "Prefer default Intellisense" enabled on our Completion node and get silly completion listboxes, we blame MS. Disable the option and restart your IDE to see what VA X provides.
We take credit for everything that appears in a suggestion listbox.
When the Context and Definition fields disappear and our menu items turn gray, VA X is not available for the current file type. We are not sure what you mean when you say you, "added the .c file to the source files folder." Whatever it was made VA X think it should not work on the file -- maybe a bug, maybe by design, maybe a limitation of plugging into an IDE that does not tell its add-ins everything it does. Reopening the file typically makes VA X alive again.
As for the EOL problem, there is a lot of code in VA X to deal with EOL issues. Maybe something is wrong.
If interested, try adding lines after unloading VA X using Tools|Add-in Manager. See if the problem is with MS and Vision. If they're okay, enable VA X, restart and post a description of what appears to be happening. |
Whole Tomato Software, Inc. |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - May 21 2004 : 1:11:22 PM
|
sorry for the confusion over describing things, i am still getting used to Visual Studio *shrug*
quote: Originally posted by support When the Context and Definition fields disappear and our menu items turn gray, VA X is not available for the current file type. We are not sure what you mean when you say you, "added the .c file to the source files folder."
*oops* i could have put that better. i created a new blank win32 project, and then went to the Solution Explorer. i then added a single (existing) c file to the project, into the "source files" folder inside the project in solution explorer.
closing and reloading the IDE fixed the problem where VAX didnt know that it supported this file. probably due to the fact that the IDE wouldnt give me any C/C++ options for the project until i added the .c file to the project.
quote: Originally posted by support If interested, try adding lines after unloading VA X using Tools|Add-in Manager. See if the problem is with MS and Vision. If they're okay, enable VA X, restart and post a description of what appears to be happening.
right, describing this as i go: load VS .NET, no project is loaded in tools|add-in manager unselect VAX load my really small project, only the one .c file, which is the file i emailed support. jump to line 191, from the first post in this thread. with my cursor where the $ is:
mtform_AddCharYesNoField(pForm, MTF_SAMEROW, 72, 3,
"Renal mass", NULL, NULL, &stData.nr$, MTF_ALWAYS);
i then pressed ctrl_space to get a completion listbox. this has a scroll bar about 50% the height of the list, so it is a short list. this is the list of all the components in the EREF_LIN_UROLOGY structure.
ignore the completion listbox, and close the project, without making any changes to the code.
go to tools|add-in manager and select VAX re-load the project go to line 191 again put the carret in the same position, and press ctrl_space, and i get the correct list box. ah, i have just noticed that VAX isnt active on this file. so i close the IDE, and it crashed this is not normal!
i will put the stack at the bottom of this post. since i never normally disable VAX, i am not going to worry about this.
reload the IDE, and make sure VAX is turned on in tools|add-in manager load my tiny project, and VAX is now active on the .c file in the VAX options, completion node, prefer default intellisense is Off, as it should be.
go to line 191 as before, and press ctrl_space nothing happens
backspace the "nr" and then retype them. i get a whole tomato icon suggestion listbox offering the correct answer. that disapeared while alt_tabbing to IE to type this ;)
press ctrl_space and i get a suggestion listbox. this is longer than normal, and is not listing the components of my structure.
it is hard to make this appear, since most times i hit ctrl_space nothing happens. retyping "nr" is required to make this appear, and it is always the same list, with the first item "NRC_ACTSES"
it seems that VAX is a factor. so far 100% reproducable. on Monday i will have another go with this file under windows if you are interested.
crash stack: > 0107d5f0() user32.dll!77d43a50() user32.dll!77d4a8e5() user32.dll!77d444f5() user32.dll!77d44525() ntdll.dll!77f75da3() user32.dll!77d4790c() msenv.dll!500c5909() msenv.dll!500c9f15() msenv.dll!500c9f57() msenv.dll!500c776f() wfx.dll!6900c636() user32.dll!77d6725a() msenv.dll!500c41d7() msenv.dll!500c41e2() user32.dll!77d43b1f() user32.dll!77d43b4f() user32.dll!77d43b33() wfx.dll!6900c636() user32.dll!77d43a50() user32.dll!77d43b1f() user32.dll!77d43b4f() user32.dll!77d43b33() user32.dll!77d43b33() user32.dll!77d45b2c() user32.dll!77d45f73() user32.dll!77d47fc4() wblind.dll!66023060() user32.dll!77d73788() user32.dll!77d44525() user32.dll!77d44535() ntdll.dll!77f75da3() user32.dll!77d47e58() PDDLGHLP.DLL!100098b3() wblind.dll!66023060() user32.dll!77d47fc4() user32.dll!77d974a3() user32.dll!77d47e58() wfx.dll!6900916f() user32.dll!77d4a8fe() user32.dll!77d43b4f() user32.dll!77d43b33() user32.dll!77d47fc4() user32.dll!77d43a50() user32.dll!77d43b1f() user32.dll!77d43d79() msenv.dll!500b3499() user32.dll!77d43ddf() msenv.dll!500b627a() msenv.dll!500c9b9d() MSO.DLL!30c19ac6() MSO.DLL!30c19a1e() msenv.dll!500c9bd4() msenv.dll!500e12e0() ntdll.dll!77f5f70f() ntdll.dll!77f60f7f() kernel32.dll!77e7b36e() kernel32.dll!77e7b380() devenv.exe!004088a8() devenv.exe!00406ed7() devenv.exe!00410032() ntdll.dll!77f7e45c() ntdll.dll!77f5f7ee() ntdll.dll!77f5f8ea() ntdll.dll!77f5f70f() ntdll.dll!77f5f70f() ntdll.dll!77f60f7f() kernel32.dll!77e7b36e() kernel32.dll!77e7b380() devenv.exe!004055a1() devenv.exe!004055c2() devenv.exe!004055d8() devenv.exe!004077bc() devenv.exe!0040780e() SHLWAPI.DLL!70a9f1ab() kernel32.dll!77e814c7() SHLWAPI.DLL!70a9f1ab()
|
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - May 22 2004 : 4:58:05 PM
|
VA X is not active on new files. Limitation of the IDE (we aren't notified of its existence, or can figure out how to get notified.)
Unloading or loading of an add-in causes instability in the IDE. Always restart after doing this. (We should have told you to do so.)
Alt+Tab does clear our suggestion listboxes. We step aside since we don't know what will happen while we're away.
More later... |
Whole Tomato Software, Inc. |
|
|
|
Topic |
|
|
|