Bug? [SOLVED] 5.02(1) Log > Copy All To Clipboard

Discussion in 'Bugs & wishlist' started by sorex, Jun 30, 2015.

  1. sorex

    sorex Expert Licensed User

    Hello,

    I dumped some data to the log window (~150 lines) in order to make a default data/csv file out of it.

    When I right click and select copy all to clipboard only a portion is copied. (71 lines/4070 bytes)

    It would also be nice if we could select 10 lines and copy that but it only allows a single line to be selected.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    I'm unable to reproduce it. Copy all should copy all the lines that are in the list. The limit is around 5000 lines.
     
  3. sorex

    sorex Expert Licensed User

    well, it didn't work.

    I tried pasting in notepad and later notepad2 as I throught the limit was in notepad.
     
  4. sorex

    sorex Expert Licensed User

    even when copying it to a document inside B4A it's been cut off
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    A single call to Log will print up to 4000 characters. You should see a small "message was truncated" line at the end.

    This hasn't changed in v5.
     
  6. sorex

    sorex Expert Licensed User

    wrong guess ;)

    it's using the log command for each line that appears in the log, not a concatinated string with 1 log command.
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    Do you see all the lines in the logs list?
     
  8. sorex

    sorex Expert Licensed User

    all you need to reproduce is this.

    Code:
    Sub Activity_Create(FirstTime As Boolean)
    For x=1 To 200
    Log(x&"-1234567890123456789012345678901234567890")
    Next
    End Sub
    you won't see 200 when you paste the clipboard
     
  9. sorex

    sorex Expert Licensed User

    it's always around 4K that it stops (line 91 in this case)
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    Do you see the items in the logs listbox?
     
  11. sorex

    sorex Expert Licensed User

    sure, it goes to 200-1234567890123456789012345678901234567890 in the log window
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    The IDE uses the standard API to set the clipboard text. I don't see any documentation related to a 4k limit. It doesn't happen here. I tried it with 4000 lines and they were all copied.
     
  13. sorex

    sorex Expert Licensed User

    that's strange indeed.
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    Are you using a Windows XP computer?
     
  15. sorex

    sorex Expert Licensed User

    no, this is a new desktop with Win8.1 on it. the "device" is genymotion tho.
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    The device is not relevant if the logs appear in the list.

    Maybe there is another app that accesses the clipboard at the same time? It can happen with remote desktop for example.
     
  17. sorex

    sorex Expert Licensed User

    you're right, Erel.

    when I close Genymotion it copies everything. So it seems to pull and re-set the clipboard with a 4K limit.

    case close then :)
     
  18. tdocs2

    tdocs2 Well-Known Member Licensed User

    @sorex

    Same thing happens with AmiDuOS Lollipop...
     
Loading...