Just had this happen again. This time I couldn’t copy something from a NB
editor to paste elsewhere.  Sadly I had forgotten to add the login option
below since updating to the 12.6 release.


However after restarting the IDE with that logging option … and BEFORE
doing any copy/paste operations I do see something interesting in the
uigestures log, though I think it may be related to a different issue in
the cupboard code:

It just so happens that my system clipboard has the path to the NB user
dir, as I cut it out of the About window so I could load the log into
another editor.

Being on Windows this path starts with “c:”
Somewhere in the NbClipboard code (NbClipboard$GetContents line 429 ->
access$300 line 50 -> logFlavors line 299) it is trying to interpret the
string as a URL and is getting an exception claiming, “unknown protocol: c"
Likely benign as far as my main clipboard issues are concerned, but since
it ended up in the log I figured I would point it out.

The log does however appear many many times, even though I haven’t yet done
anything other than launch the IDE.
13000 lines in uigestures .. mostly due to 132 reports of “unknown
protocol: c"

I will try to get useful data for the failing cut/paste issues…


Scott


On Aug 6, 2021, at 11:27 AM, Geertjan Wielenga
<geertjan.wiele...@googlemail.com.INVALID> wrote:

will/won’t have.

Start with a fresh userdir and a standard NetBeans.conf, just with
-J-Dorg.netbeans.NbClipboard.level=FINEST.

Then Neil can investigate since he nor I nor others wanting to help can
reproduce this so far.

Gj

On Fri, 6 Aug 2021 at 17:24, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

Indeed, please test without settings that regular installs will have.

Gj

On Fri, 6 Aug 2021 at 17:22, Scott Palmer <swpal...@gmail.com> wrote:

Thanks,

I’ve updated my netbeans.conf file to have
-J-Dorg.netbeans.NbClipboard.level=FINEST as well as
-J-Dnetbeans.slow.system.clipboard.hack=false
Though I should probably test without that last property as well, as it
isn’t what regular installs will have.

I’m just doing whatever I can to avoid the frustration of a broken
clipboard at this point though.  You can imagine how infuriating it is when
something so basic just stops working when you need it.  Restarting the IDE
so I can paste something is rather disruptive.

Cheers,

Scott


On Aug 6, 2021, at 9:54 AM, Neil C Smith <neilcsm...@apache.org> wrote:

On Fri, 6 Aug 2021 at 04:23, Scott Palmer <swpal...@gmail.com> wrote:

It would be great if the clipboard would work on Windows for NetBeans

12.5


Yes, although that would involve understanding what's broken.  Just
spent some time having a look on my Win 10 machine (which I don't
usually use for development), but so far can't replicate.

However ...

On Fri, 14 May 2021 at 23:45, Scott Palmer <swpal...@gmail.com> wrote:

My netbeans.conf file contains
...
-J-Dorg.netbeans.core.NbClipboard=-1


I think that should be -J-Dorg.netbeans.NbClipboard.level=FINEST

With that I do get a lot of output from the clipboard in the log.
Hopefully the logging if / when it fails may tell us something.

Incidentally, your other log output about System clipboard not
available is I think because the Windows clipboard can only be opened
by one application at a time.  Not sure if it's related or not.

Best wishes,

Neil

Reply via email to