Okay I haven't had a problem with NetBeans in the past. It's my preferred IDE because it will put an error notification type thing next to a line of code that is wrong. Example would be if I forgot a semicolon or accidentally put Jlabel instead of JLabel. Somehow last night it stopped doing that for me. I think maybe I pressed a button or accidentally changed a setting(Or maybe I need to update it?).
Anyway, if anyone knows how to fix this please let me know as if makes error catching take longer.
Thanks in advance!
Please update your NetBeans installation.
There were some issues regarding error highlighting recently, but they should be fixed now.
Related
Every time I run certain GUI interface excercises using swing the program works perfectly but something is wrong with what I suspect might be the jdk or something as it also happens like this on Eclypse.
It first appears to show correctly but with mouse over or when entering data in a textfield it all shows distorted.
Has anyone encountered these problems?
I managed to fix the problem re-installing the drivers to my graphics card!
Thank you.
Hope this helps anyone in the future with the same issue
eclipse isn't making import suggestions anymore. I don't know why it stopped. Here is an example.
First check to see if it is enabled to automatically do it. Go to Preferences > Java > Editor > Content Assist and make sure Enable auto activation is checked.
If that doesn't fix anything, you can try to manually get it to show up by pressing CTRL + SPACE.
You should also check Content Assist > Advanced and make sure that at the very least Java Proposals is checked.
Reopen eclipse.Thats the only case i make it work again each time it happen.Cleaning up project doesnt help.I found this really annoying.Bud im sorry to tell that i have no idea why this happens. Seems like a bug in eclipse https://bugs.eclipse.org/bugs/show_bug.cgi?id=75582
It can happen when you have some brackets missing in your source code, and the suggestion system just cannot figure out how to do suggestions anymore.
There is nothing wrong with my title,but its true.When i run my Java NetBeans in the morning, it works fine.But in evening/night (without switching off my lappy/neatbeans), there is little problem.
When i try to run any program, it won't show me the modified Output of my program.
Suppose, in my program say 'A' i have a print statement say print("hi"), and when i change this to: print("bye") and run the program, it will show me "hi" not "bye".
It will show me "bye" at the 2nd run time.
I don't know whether this question will be closed or something, but this is real.Has anyone experienced any thing like that?Is this beacuse of :
1)My lappy is on from morning till late nignt,can this cause any problem?
2)My NetBeans is opened from morning till late night (any memory problems, or something?)
Note: It works fine it the morning time, please help me to find out the bug, it really irritates alot.
UPDATE:
Using Windows 7, NB 6.5.1
You could try deleting the cache (under C:\Users\yourUserName\AppData\Local\NetBeans\Cache\YourVersionOfNetBeans and delete it's contents.
Then do a clean and build
try to, clean and build After you make any change in your code. You may have changed the auto save option.
The 2 probable causes you mentioned at last are not valid at all.
I am very new to Eclipse, java programming and well all "programming" in general and I have recently been learning how to use Eclipse. I've been using it for about a week now and it has been going decent so far. Apart from some errors,(mostly on my part) that has been fixable by restarting the program itself.
However when I started using it today I could no longer see the suggestions made from the Quick Fix command, for example if I type findVi and then press CTRL+1, it shows "No suggestions available" instead of "findViewById()" or something similar.
I know it's the correct binding, I even reset the keys to default to be sure. It still finds the ID if i type it manually but I would like to able to finish words faster that way.
If you guys got any suggestions that can help me out, please let me know.
Thanks.
- First of all if you are new with Java, and want to practice Java, you should NEVER USE ANY IDE, that way you learn the proper syntax, and it helps your error finding skills.
- But as you wrote "findViewById()" it seems that you are doing Android, Now this happens sometimes that Eclipse behaves weirdly with Android. Thats the reason when you make any changes into your Eclipse GUI while working with Android, its always better to see if those changes have taken effect.
- This problem usually goes off after closing and re-opening the Eclipse once or twice.
- Ok try this....
Type findVie then press Ctrl + Space-Bar See if the suggestion pops up...
You can access the Content Assist preferences from Window > Preferences > Java > Editor > Content Assist... perhaps something got messed up.
So for example with my current object tabPanelMain, I'll type a dot after it and expect to see a drop down menu of all the object's available methods. Instead, the marker which shows my currently selected character on the editor disappears meaning I don't know where I'm typing. Worse than that is that the save and save all buttons stop working. And ctrl-s and the menu saves don't work either. I can't save my eclipse projects and have to restart, thus losing my work.
What could be wrong? This problem never used to exist but now I just can't get the methods of an object like I used to.
I hope that was clear enough, please ask me questions if not.
The save problem with not being able to save is one I've encountered before.
I don't know why it happens but for me it helps to minimize and then maximize eclipse again.
Not a fix but at least a workaround that lets you save.
Never heard of the other problem though.
I couldn't figure out what it was that was causing the problem, and while Martin Larsson provided an effective short term solution, I found it best to fresh install Eclipse.
The most annoying part about this was transferring my previous plug ins (like GWT, Subversion, etc) over to the new install. In the end I ended up re-installing them manually. If anyone could shed some light on how to keep previous plug ins, I'd like to hear how. Though I've heard this can be problematic with path urls in the files or something.