Solved copy paste bug (Github code view beta)
-
Your documentation says I should post here before filing a bug. Not sure if the devs will see this and post for me .
I had a bug when I tried to:
Manually copy and paste the code from github code PR commit window into my own code (manually merging) Using vivaldi on windows 11.The original file was 400+ lines for copy paste. I would highlight the entire file..
Only about 200+ were copied.. or the buffer was only 200. Seemed to be a limitation in the browser.- Vivaldi does this (reproduced bug)
- Edge does this too. (reproduced bug)
- Google Chrome works as expected (no bug)
My guess is that the Chromium code does this too. Ironically Chrome works as expected and pastes the full amount.
I have never seen this bug in Linux which used to be my main driver until 2-3 weeks ago.
-
@bksubhuti said in copy paste bug:
I'm not signed in with Chrome and that is why it works.
Yes, good insight. Now test the same view in Chrome being signed in, and see if you get the same issue.
I tried making a fork of the project, but I still don't get the same "Code" view you are on. So maybe it's some branch-related view.
This is how the "Edit file" view looks for me:
EDIT: You are using this:
https://docs.github.com/en/repositories/working-with-files/managing-files/navigating-files-with-the-new-code-view
Something you should've remembered signing up for? -
@bksubhuti Hi - there is no such limit in Vivaldi. Nor in Edge. And Chrome is not magic. This is something you're doing wrong or something on your install(s) causing this.
I just tried copying a 6000 line text file from Github into Notepad++ using Vivaldi 5.6 Stable, no issue at all.
Please try the troubleshooting steps, including testing in a clean profile and disabling adblocking/extensions:
https://help.vivaldi.com/desktop/troubleshoot/troubleshooting-issues/Please also always post your OS and Vivaldi version when posting about issues.
-
I'm using vivaldi 5.6 stable and windows 11
5.6.2867.62 (Stable channel) (64-bit)I have no plugins besides the default plugins shipped with vivaldi. The tools/extensions menu gives me an empty screen. I guess that means no extensions.
I copied this file here
https://github.com/rydmike/tipitaka-pali-reader/blob/e952869cba11bed41d40f2e1113e60301032b3c8/lib/ui/widgets/colored_text.dartI just tested.. I get 233 lines
when pasting into vsc
Original has 415 linesMaybe it could be some type of content?
-
@bksubhuti I get 415 lines when copying that code into Notepad++. Using both the "Copy raw" button on the page and just selecting all the text. Tested in both 5.7 Snapshot and a clean profile of 5.6 Stable.
Something is very wrong on your system or you're doing something wrong when copying.
Check
vivaldi://flags
if you have set any experimental flags.I really have no other advice, you will have to figure this out.
-
@bksubhuti "Copy raw content" copies 415 line into clipboard with 5.6.2867.62 .
-
@Pathduck are you clicking a button to invoke a copy or are you highlighting and copying.
I'm highlighting.. by ctrl +a and then ctrl+v
-
@bksubhuti I said that this does not happen in Google chrome. in this sw package.. ctrl+a does too much so i manually selected with mouse highlight.
Please try in vivaldi by manually highlighting. My bug report is not about pressing the copy raw button. I can also get 415 lines as you did if I click the copy raw button.
I sent the link. That is where I copied. Let me know if you can reproduce. -
@bksubhuti I selected the code with mouse on page and got 415.
-
@bksubhuti Obviously you can't use Ctrl+A on the web page directly, that will copy the entire content of the web page ...
You will have to use the "Copy raw" button or open the raw format file.
https://raw.githubusercontent.com/rydmike/tipitaka-pali-reader/e952869cba11bed41d40f2e1113e60301032b3c8/lib/ui/widgets/colored_text.dartThis is exactly the same in all browsers.
-
@DoctorG copy raw button does give me 415 lines. but i'm manually selecting.
-
@bksubhuti I told you how to reproduce.
Please ctrl + a
or manually select.If you click on the code window, it only selects the content in the code widget with vivaldi. (chrome selects everything).
Please try again. I can reproduce your successful raw-button-copy
-
@bksubhuti I select code in the code highlighter part of page (the one with with linenumbers) from top to bottom with mouse Shift+Drag, copy with Ctrl+C and get 415 lines.
Ctrl+A does not work for me, it select the whole text on teh page, not only the code.
-
please try ctrl a
maybe we can narrow this down.I also manually selected with my mouse and still got 200+ lines.
I am a programmer too.
I can reproduce this in Edge but google chrome works fine. -
@bksubhuti said in copy paste bug:
If you click on the code window, it only selects the content in the code widget with vivaldi. (chrome selects everything).
No, using Ctrl+A will select the entire web page including the text headers and titles.
Here is a video:
https://ttm.sh/S_S.mp4Here is a video of using Ctrl+A:
https://ttm.sh/S_W.mp4Here is a video of opening the raw file and doing Ctrl+A (which is the correct way of doing this if you don't use the "Copy raw" button)
https://ttm.sh/S_B.mp4Please make a video of what you are doing.
-
@Pathduck here is a video with voice commy it will disappear soon, so you can download it for your records if you are a dev
https://tmpfiles.org/dl/889216/2023-02-0117-34-59.mp4 -
@bksubhuti You are on some special "Code" view there, please post a direct link to a page where this can be reproduced. Or post exact, step-by-step instructions how to get to this page and reproduce.
I am not that familiar with Github and you should not expect everyone else is.
Where do I get this "Code" view? -
Here is a video of Google Chrome
https://tmpfiles.org/dl/889226/2023-02-0117-43-23.mp4I created a private browser.
opened this link.. it should be neutral to anything i have set.and then I get the same result as you.
I'm not sure what the setting is on github. I'm a baby myself with github.But.. I hope this can be figured out.
We are getting closer to narrowing it down.Perhaps the devs understand what is going on.
The other thing would be to report to github.. this is reproducible with ms edge. (both edge and github are ms products) -
@bksubhuti I have no idea what you have done on your system or what Github settings you have changed. There is no setting in Vivaldi that controls how this works.
And in your videos you are showing different "views" - in the Chrome video you're showing the standard GH page. In the Vivaldi video you're showing some special "Code" view that I don't get.
If you can create a reproducible example web page where this also happens, it would help. Otherwise, like I said - an exact, step-by-step instruction how to get to this "Code" view and reproduce this issue.
-
@Pathduck Yes.. it must be related to github.
I'm not signed in with Chrome and that is why it works.So the Code View is the culprit.
I think this is a github issue.
I don't think this is vivaldi's fault anymore.I will try to report it to github.
It took me for a spin when this issue happened and I was pasting some code from a contributor into my code. to test before accepting.I think we can close the issue.
-
@bksubhuti said in copy paste bug:
I'm not signed in with Chrome and that is why it works.
Yes, good insight. Now test the same view in Chrome being signed in, and see if you get the same issue.
I tried making a fork of the project, but I still don't get the same "Code" view you are on. So maybe it's some branch-related view.
This is how the "Edit file" view looks for me:
EDIT: You are using this:
https://docs.github.com/en/repositories/working-with-files/managing-files/navigating-files-with-the-new-code-view
Something you should've remembered signing up for?