NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Code Assistance

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
maxtir



Joined: 13 Nov 2016
Posts: 4

PostPosted: Sun Nov 13, 2016 1:25 am    Post subject: Code Assistance Reply with quote

Code assistance is not working properly

Only the main.cpp has code assistance working, every other .cpp file does not.
This happens in every project I start.
Back to top
soldatov



Joined: 05 Nov 2009
Posts: 577

PostPosted: Sun Nov 13, 2016 9:56 am    Post subject: Reply with quote

Do you have any C++ compiler? Can you attach screenshot with broken file?
Back to top
maxtir



Joined: 13 Nov 2016
Posts: 4

PostPosted: Mon Nov 14, 2016 8:40 pm    Post subject: Reply with quote

Thanks for the reply!
It's compiling perfectly every file with g++ and the executable is working perfectly
The code assistance it's working only with the main file.
Do you still need the screen shots?
Back to top
soldatov



Joined: 05 Nov 2009
Posts: 577

PostPosted: Tue Nov 15, 2016 8:02 am    Post subject: Reply with quote

maxtir wrote:
Thanks for the reply!
It's compiling perfectly every file with g++ and the executable is working perfectly
The code assistance it's working only with the main file.
Do you still need the screen shots?

Yes. I want to see Navigator, Projects and Editor tabs.
Back to top
maxtir



Joined: 13 Nov 2016
Posts: 4

PostPosted: Tue Nov 15, 2016 3:37 pm    Post subject: Reply with quote

Now it's not compiling at all


Screenshot.png
 Description:
Now it's not compiling at all
 Filesize:  194.25 KB
 Viewed:  1180 Time(s)

Screenshot.png


Back to top
soldatov



Joined: 05 Nov 2009
Posts: 577

PostPosted: Tue Nov 15, 2016 7:01 pm    Post subject: Reply with quote

I see you uses C parser in fetcha.cpp, therefore
- 'this' is a black instead of blue (in C++ 'this' is a keyword)
- C parser can't recognize C++ classes and constructors

C++ parser should be used in C++ files.
Back to top
maxtir



Joined: 13 Nov 2016
Posts: 4

PostPosted: Tue Nov 15, 2016 7:25 pm    Post subject: Reply with quote

Thanks! Solved!
Exactly what I needed to know to solve the problem!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo