You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Scott Palmer <sw...@gmail.com> on 2021/12/13 22:57:55 UTC

Re: Can we fix cut and paste before release?

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
<ge...@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.wielenga@googlemail.com> wrote:

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

Gj

On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@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 <ne...@apache.org> wrote:

On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@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 <sw...@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

Re: Can we fix cut and paste before release?

Posted by Ernie Rael <er...@raelity.com>.
Speaking of logging options...

There's a plugin, https://plugins.netbeans.apache.org/catalogue/?id=40, 
that allows *dynamic* control of loggers in the /running/ NetBeans. Its 
wiki has an example, http://raelity.com/jlogman/Home.html#example, 
showing how to control logging for sub-trees of the logger hierarchy.

Changes can be saved and applied automatically at startup. Additionally, 
since the changes to logging are kept in the userdir, the changes 
survive a NB version updat/e //if/ the old userdir is used.

I just noticed that there is no export/import category specifically to 
save/restore logging configurations, might add that since with an NB 
major version update I'll have to touch the plugins page anyway.

-ernie

On 12/13/2021 2:57 PM, Scott Palmer wrote:
> 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
> <ge...@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.wielenga@googlemail.com> wrote:
>
> Indeed, please test without settings that regular installs will have.
>
> Gj
>
> On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@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 <ne...@apache.org> wrote:
>
> On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@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 <sw...@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
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

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




Re: Can we fix cut and paste before release?

Posted by Tomas Poledny <sa...@gmail.com>.
Hi,
It started to be very common to me when we switched to MS Teams. Clipboard
is broken almost every hour. When we used Slack this happens once per few
days. I have no real data but just my feelings. Maybe it can help someone
to identify the issue.
Tomas

On Mon, Dec 13, 2021 at 11:58 PM Scott Palmer <sw...@gmail.com> wrote:

> 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
> <ge...@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.wielenga@googlemail.com> wrote:
>
> Indeed, please test without settings that regular installs will have.
>
> Gj
>
> On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@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 <ne...@apache.org> wrote:
>
> On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@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 <sw...@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
>

Re: Can we fix cut and paste before release?

Posted by Mark Eggers <it...@yahoo.com.INVALID>.
Oddly enough, I just spent 1/2 day copying and pasting from Chrome's 
console to NetBeans (12.4, JDK 11.0.12, Windows 10 Professional) with no 
issues.

I also pasted from NetBeans to jEdit 5.6.0 with no issues.

My project is a Maven Web project, and I was copying and pasting from 
JSP fragments and JSP server pages (working on Content-Security-Policy 
issues).

I don't have a lot of other stuff going on as far as Slack, Zoom, WebEx, 
etc. It's just me, Chrome, the IDE, the editor, and occasionally some 
mail in Thunderbird.

Not terribly helpful I suppose, but it might point to some competition 
between various programs and the clipboard?

. . . not my helpful two cents
/mde/

On 12/13/2021 2:57 PM, Scott Palmer wrote:
> 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
> <ge...@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.wielenga@googlemail.com> wrote:
> 
> Indeed, please test without settings that regular installs will have.
> 
> Gj
> 
> On Fri, 6 Aug 2021 at 17:22, Scott Palmer <sw...@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 <ne...@apache.org> wrote:
> 
> On Fri, 6 Aug 2021 at 04:23, Scott Palmer <sw...@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 <sw...@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
> 


Re: Can we fix cut and paste before release?

Posted by Eric Bresie <eb...@gmail.com>.
On Mon, Dec 13, 2021 at 4:58 PM Scott Palmer <sw...@gmail.com> wrote:

> 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.
>
> when you need it.  Restarting the IDE
> so I can paste something is rather disruptive.


I seem to recall for URL (1) there is usually a protocol prefix with the
files being protocol “file:///” followed by the rest of the paths.  Is it
possible this is not specified quit right?

Does some additional prefix need to be added in this context?

Or maybe some URI / URL conversion (2) taken into account around this
context?

(1)
https://stackoverflow.com/questions/8406025/local-file-protocol-for-java-net-url
(2)
https://www.baeldung.com/java-url-vs-uri
-- 
Eric Bresie
ebresie@gmail.com