March 14, 2010
Stephen Colebourne: Java language design by use case.
In a blog in 2006 Neal Gafter
wrote
about how language design was fundamentally different to API design and how use cases
were a bad approach to language design.
This blog questions some of those conclusions in the context of the Java language.
More »
March 13, 2010
FindBugz Community Review. I am very fond of FindBugz (indeed it has found its way into the QA process of most projects I work on....). When visiting the site to check Eclispe 3.5.2 compatibility I found they were working on a new tool.
Indeed a very interesting tool.
Looks li...
More »
March/2010
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
| | 1 |
2 |
3 |
4 | 5 | 6 | | 7 | 8 | 9 |
10 | 11 |
12 |
13 | | 14 |
15 |
16 | 17 | 18 | 19 | 20 | | 21 | 22 | 23 | 24 | 25 | 26 | 27 | | 28 | 29 | 30 | 31 | | | |
|
 |
home > news >
developers >
netbeans screenshot of the week #33: finding unresolved symbols
NetBeans Screenshot of the Week #33: Finding Unresolved Symbols
In my last entry I showed that the Fix Imports action will alert you to an unresolved symbol. This is really helpful since it can help you track down runtime problems.
Obviously, you shouldn't have to go run Fix Imports on every file, periodically, to look for unresolved symbols!
NetBeans has a special semantic checker for this. It is off by default, for two reasons:
I added it just a couple of days ago - during the stabilization period for EA, so I didn't dare enable it in case it's seriously broken.
There are cases where it doesn't yet work. I'll describe that later.
To enable it, open up the Editor options dialog, and under Hints, select Python. You should now see the current batch of Python hints. Enable the "Unresolved Symbol" hint:
Now let's open up the datetime.py file again:
As you can see, the file is marked erroneous (by the red square above the scrollbar), and the scrollbar indicates where in the file the error is. Clicking on it to expose the error location you can see an underline under the unresolved symbol, and a tooltip explaining what the problem is. The error is also shown in the tasklist, so you don't have to open each file to look for problems - just let the tasklist scan your project for problems.
Here's another example. I opened up the Django 1.0 sources, and NetBeans pointed out this problem to me, in django.utils.simplejson.tool:
This shows that the import is unused, and that the at...
Date: November, 11 2008
Url: http://blogs.sun.com/tor/entry/netbeans_screenshot_of_the_week1
Others News
Leave a Reply
Related
- JavaScript Headlines NetBeans Screenshot of the Week 42: JavaScript Native Interface At the Roundup last week I talked to Robert Cooper, who's doing a lot of interesting work with GWT (Google Web ...
- NetBeans Screenshot of the Week #36: Python Code Completion Here are some screenshots of the code completion working for Python. First, let's try it from an import statement: Note that the documentation for the module is shown.
- NetBeans Screenshot of the Week #41: Type Assertions Python and Ruby are dynamically typed languages. We have a lot of heuristics in our editors to figure out the types - tracking assignments, analyzing your database migrations, etc ...
- Tor Norbye's Weblog Monday November 10, 2008 NetBeans Screenshot of the Week #32: Python Import Management. We're about to release an early access release of Python support for NetBeans.
- NetBeans Screenshot of the Week #38: E4X Support As part of the JavaScript 1.7 work, I also beefed up the E4X support. E4X allows you to embed XML objects directly in your JavaScript source. Here's some simple E4X JavaScript ...
- NetBeans IDE 6.5 Screenshots - Softpedia WEEK'S BEST; Ubuntu 8.10; Linux Kernel 2.6.2... Mozilla Firefox 3.... OpenOffice.org 3 ... Screenshot 1 of NetBeans IDE The image below has been reduced in size. Click on it to see the full ...
- Tor Norbye's Weblog Tuesday December 16, 2008 NetBeans Screenshot of the Week #39: Ruby Code Coverage, Python Code Coverage. Here's a new feature for NetBeans 7.0: Code Coverage support!
- Netbeans 6.5 Screenshot (1.6u11 + Nimbus) With Visual Form Designer ... Simplest Possible EJB 3.1 Netbeans 6.5 Quicktip: Unit Tests And Profiler Netbeans 6.5 Screenshot (1 ... see here: http://twitter.com/AdamBien/status/1452657727 I evaluated it last week ...
- Scala Support for NetBeans Screenshot#1: Syntax Highlighting and Scala ... Scala Support for NetBeans Screenshot#1: Syntax Highlighting and Scala Project ... downloadable Scala modules package can be ready in one week, so you can get it from the NetBeans ...
- Anuradha This week Screenshot #1 ... from the default stable update center of NetBeans 6.0 ... Screen shot of new Maven build plan view Please let us know ...
- NetBeans Screenshot of the Week #39: Ruby Code Coverage, Python Code ... Here's a new feature for NetBeans 7.0: Code Coverage support!
- Scala for NetBeans Screenshot#4: Basic Completion : Caoyuan's Blog Scala for NetBeans Screenshot#4: Basic Completion. Scala for NetBeans now supports basic completion ... I downloaded a version last week but since it was manually downloaded, I'm not ...
- SourceForge.net: Spring Netbeans Module The Spring Netbeans Module has been integrated into Netbeans ... Activity Percentile (last week) : 86.76 View ... Screenshots
- JavaScript Technology NetBeans Screenshot of the Week 42: JavaScript Native Interface At the Roundup last week I talked to Robert Cooper, who ' s doing a lot of interesting work with GWT (Google Web ...
- Hot Threads NB Screenshot of the Week #41: Type Assertions. Checkout this latest screenshot of the week by Tor Norbye.
|