John,
Thanks for the feedback. It gives me something to look for when I
notice the hanged background processes.
-- Jason Abreu
On 2/25/22 07:00, John wrote:
Jason,
Firstly, thanks for your suggestion, however I had already tried that,
including shutting down windows, clearing cache, ensuring NetBeans
fully loaded (went away and had lunch!) before doing anything, clean
and rebuild the main project.
I even copied the source into notepad (to strip any offending
characters), created a new Java Class file in the same package and
pasted it in. Immediately the [!] appeared against that file as well!
I then did a grep search of the NetBeans directory for the offending
file name and voila!
In my John/var/log/messages.log it is reporting that NetBeans produced
an error which I will (as requested) raise as a bug against
java/source, but in case you are interested, I have attached the
offending log text file.
Apparently the exception is
java.lang.IllegalStateException: java.lang.AssertionError: Method
parameter without PARAMETER flag
at
jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.analyze(JavacTaskImpl.java:383)
Whatever that means!
Again, thanks for your time in responding which led me to think about
deducing what might be causing it.
John
*From: *Jason Abreu <mailto:jace.ab...@gmail.com>
*Sent: *24 February 2022 19:42
*To: *users@netbeans.apache.org
*Subject: *Re: Unexplainable [!] on file with no lines marked
John,
I've noticed on NetBeans 12.6 that there are some background processes
that get hung up every now and then. Close NetBeans and check your Task
Manager and look for any lingering Java processes. Kill them and
re-open NetBeans. Let it do it's background scan and check your file to
see if it still has the error indicator. A tell-tale, that I found, was
that a Clean-Build works to build the project, even with files flagged
as containing an error. This has even bitten me with building Gradle
projects.
-- Jason Abreu
On 2/23/22 07:00, John Barrow wrote:
> Hi,
>
> I have recently cloned Tomcat for some development work and resolving
> issues and came across a file that had a red [!] on the file tab, but
> the file (very short) didn't mark any lines as exceptions. The project
> also builds perfectly.
>
> I have attached a screenshot of the offending file.
>
> Is there a way of determining why the [!] appears?
>
> Hovering over or <right/left-click] on the [!] doesn't reveal anything.
>
> I have shut down NetBeans, removed the cache folder and tried again
> but it is persistently there.
>
> Tomcat is an Ant project so that may be relevant as I normally work
with Maven.
>
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists