Last night, NB 11.3 started throwing seemingly random null pointer exceptions. New editor would open with a blank panel, although switching from source view to history view and back got the text to display. So I figured something died badly and used that "Restart IDE" plugin. This was followed by a consistent NPE on startup. One artifact of the error was that despite closing all but one file before exiting the IDE, the restart opened all my working files from the last start (maybe 100 or so in number).

Looking at the errors, it seemed that the exception was being generated by the "sort tabs by full path" feature. Sure enough, disabling that made the problem go away. Since then I have been unable to reproduce the problem. Sadly, I did not save the logs.


I'm not sure if the next issue is an artifact or not, but it was concurrent. My fonts got messed up: NB didn't recognize my selection and moved to the next one in the font list. I was planning on changing fonts anyway so I switched to Consolas, but some identifiers stuck with the old selection. I went through everything in the font dialog and found no reference to other fonts. Better yet, the options preview was fine, but editor windows still had this rogue font.

I exported settings and did a search. Down in config/Editors/text/x-php5/FontsColors/My Big Monitor/org-netbeans-modules-editor-settings-CustomFontsColors-tokenColorings.xml I found this:

    <fontcolor name="mod-custom1">
        <font name="Source Code Pro Semibold" style="plain"/>
    </fontcolor>

There seems to be no way to access this through the UI. I took the name attribute out of the live configuration and all is well. Unsure what "mod-custom1" is/was for and if it should be removed or not, but it's an interesting rabbit hole to have gone down.

Everything is now working for me. I'm just noting what I discovered in case someone else is experiencing something similar.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to