Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
CC's new bug, SVN6049, XPSP3
Loaden:
--- Quote from: MortenMacFly on January 05, 2010, 02:54:28 pm ---Notice that you'll need to save the file for CC to "know" about the newly added code fragments. CC does only know what's been saved.
--- End quote ---
I confirm that the file has been saved! And when I close the project, and then open the project (Note: do not exit CB), still fail to prompt any information.
Unless I quit CB, re-open the project. In this case, smart tips work well.
Loaden:
--- Quote from: jens on January 05, 2010, 03:11:01 pm ---If I start a console-project with the wizard and add vector to the includes it works without error (without saving).
--- End quote ---
However, even though I was not built in an empty project, CC does not work properly.
Loaden:
--- Quote from: ollydbg on January 06, 2010, 02:16:47 am ---
--- Quote from: Loaden on January 05, 2010, 12:33:45 pm ---Operation steps:
1. Create a new C + + project
2. Add # include <vector>
3. In the main function, define a variable: vector <int> v;
4. The next line, enter the 'v.', at the point, after there has been no intelligence tips.
5. Close the current project, and then re-open this project.
6. Repeat step 4, and all normal!
--- End quote ---
I can not reproduce this.
When you create a new C++ project. I have already one cpp file in the project. some thing like below:
--- Code: ---#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
Then adding some code as you said.(I don't save that file)
--- Code: ---#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector <int> v;
v.
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
you can see the screen shot below:
So, it seems I can't reproduce this bug. :D
windowsXP SVN rev 6056.
--- End quote ---
Hi, ollydbg, I know you are from China, I am also from China. Can QQ, MSN or GTalk on the exchange about this issue?
My QQ: 1090833
My MSN: loaden # live.com
My GTalk: loaden # gmail.com
Thanks!
In addition, I built an open source project: http://portablecb.googlecode.com
Can download the packaged of the CB inside, and to reproduce the problem?
blueshake:
@Loaden
maybe the error come from this.
see the attachment.
[attachment deleted by admin]
ollydbg:
--- Quote from: Loaden on January 06, 2010, 02:58:34 am ---
--- Quote from: ollydbg on January 06, 2010, 02:20:15 am ---@Loaden.
What is your macro replacement map contains?
You can view them in
Settings->Editor->CodeCompletion and Symbols browser
then in the "C/C++ parser", see the "replacement tokens" list.
You should have several entries.
--- End quote ---
Only one item.
--- End quote ---
OK,that's the reason why your CC failed.
Please read Re: New code completion remarks/issues and do what I suggest in that post.
In fact, You need to add more replacement rules to let the parser works correctly.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version