On Mon, Dec 13, 2021 at 4:58 PM Scott Palmer <swpal...@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 ebre...@gmail.com