NppToR icon indicating copy to clipboard operation
NppToR copied to clipboard

problems with passing line selection

Open ew-ut opened this issue 8 years ago • 9 comments

I seem to be having the problem mentioned here. If I press F8 to pass single or multiple lines to R, NpptoR+R seem to work as expected. However, if I select a subset of a single line and press F8 the selected text just un-highlights and nothing happens.

Thank you for providing this excellent tool. I use it nearly every day at work :)

Edit: I'm on 64-bit Windows 7 with the latest Notepad++ and NpptoR versions. Please let me know if there are any other helpful bits of information I can provide about the problem or my system. Thanks!

ew-ut avatar Mar 02 '16 19:03 ew-ut

I've also been having this issue over the past several weeks (perhaps since mid Feb). I've noticed the following:

  1. If I press F8 when the cursor is within a single line, it sometimes works. In the past few days, though, it's started having trouble if the line is wrapped in Npp - it will pass only the first part of the line, before the soft wrap, and I can't get the second part of the line to pass even if I put my cursor there.

  2. If I select multiple lines, the commands will usually pass to R, but usually only if a hard return is the last thing selected. If a tab or space or text is the last thing selected, it (usually) doesn't pass. Likewise, if I select the whole file and the last line has text (no blank line after it), the selection doesn't pass to R.

  3. I do sometimes get a single word or phrase (part of a line) to pass when I've selected it, but this seems to be very hit-or-miss.

  4. Increasing the "time before restoring the clipboard" in NppToR Settings does not help.

I had not changed the installation of NppToR nor updated R when the issue appeared, but I do update Windows and Npp on a regular basis so one of those updates may have caused a problem.

I'm running 64-bit Windows 8.1, R 3.2.2 or 3.2.3 (two computers), the latest Npp, and NppToR 2.6.4 (updating NppToR is challenging because the antivirus software on my work computer, which I cannot override, blocks the downloaded installation file from Sourceforge).

NppToR makes my working life vastly easier on a daily basis - thank you so much for providing it!

elweiser avatar Apr 11 '16 12:04 elweiser

I've had the same issue and posted the problem in the N++ forum. I got this reply: https://notepad-plus-plus.org/community/topic/11598/np-and-np-to-r

That is, since a recent update to N++ this has changed:

Updated Parameters.cpp doesn't have SCI_LINEENDEXTEND anymore. Instead two occurances of SCI_LINEENDWRAPEXTEND exist now in line 419, previously this was SCI_LINEENDEXTEND, and line 424.

I hope this can be fixed, it makes the usage of N++ in combination with R much more of a nuisance while NpptoR made my life a lot easier, and I still prefer it to other options such as R Studio.

mackinpuff avatar Apr 12 '16 08:04 mackinpuff

YMMV, but last I checked my problems with this had cleared up. Perhaps @halpo quietly took care of it? Regardless, thanks again @halpo for an excellent tool. Cheers

ew-ut avatar Sep 14 '16 17:09 ew-ut

Is anyone still having this Issue? If not I'll close it.

halpo avatar Sep 21 '16 16:09 halpo

As far as I am concerned: feel free to close. Thanks, @halpo!

ew-ut avatar Sep 21 '16 16:09 ew-ut

I still have an issue with lines that are word-wrapped in Notepad++. Previously I could put my cursor anywhere in the line, press F8, and the whole line (from beginning to hard return) would pass to R. Now (starting in April 2016) it's only passing the first part of the line, up until the word wrap - even if I put my cursor in the line after the word wrap.

I think the Issue thread was started for a slightly different topic - selecting part of a line. That issue, as well as the problem I had with passing multiple lines, has resolved. Let me know if you need further information or a new post about passing word-wrapped lines.

Thanks!

On Wed, Sep 21, 2016 at 10:06 AM, Andrew Redd [email protected] wrote:

Is anyone still having this Issue? If not I'll close it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/halpo/NppToR/issues/8#issuecomment-248660219, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ8iyE4ixLM7y9u2iyKQXhrhUMafi08_ks5qsVYNgaJpZM4Hnw18 .

elweiser avatar Sep 21 '16 16:09 elweiser

I'm having the exact same issue as @elweiser. I had had the partial line passing problem but seems to have cleared up with the latest notepad++ update. But now I'm having the line-wrap problem where putting the cursor anywhere in the line and pressing F8 will only send the first part of the wrapped line. The workaround is to manually select the whole line (move the cursor to the margin and click) which then sends the whole thing, but this is less convenient.

Thanks!

DrRZ avatar Sep 28 '16 16:09 DrRZ

Dear all,

I am experiencing exactly the same kind of problem as mackinpuff. I am operating on Windows10 and I have an updated version of NppToR and notepad++. Passing of one, line, several lines or a fraction of a line work sporadically and erratically. After some passing line, for no reason, it stops working. I have to click on the R windows and to click back on the notepad++ window to make the connection work. That's a pity because so far (at least years of use), I found that the combination NppToR/notepad++ the best solution for R coding on Windows OS. Any suggestion ? Many thanks in advance.

fxdechaume avatar Jan 08 '17 13:01 fxdechaume

I've recently begun having the word wrap issue mentioned by @elweiser in the 2016-09-21 post and by @DrRZ subsequently. Probably due to my recent install of Notepad++ v7.5, although I'm not sure (I'm still using v2.6.2 of NpptoR, haven't updated that in years). Does anyone know if this issue is fixed by installing a specific later (or earlier) versions of Notepad++ or NpptoR? Any other workarounds? Thanks.

jmuehlbauer-usgs avatar Dec 06 '17 18:12 jmuehlbauer-usgs