-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Github plugin mangles unstaged changes/diff buffer #40
Comments
Thanks a ton for reporting this issue and contributing! I have a feeling this may have to do with our recent changes to |
I have noticed this but haven't had the bandwidth to dig into it. Glad it's being tracked now. |
@savetheclocktower Did you happen to notice this prior to our recent upgrades to this package? |
If I had to guess, I would say yes, but I don't really remember. |
We do at least run the tests now at
Would love to know whether this is new or not, to know where we should look to solve it. If I can reproduce the reported issue then I can look into it further, but much more explicit and step-by-step "for dummies" steps to reproduce would aid in debugging this issue further and determining which Pulsar versions are affected, which Clearer steps to reproduce would be much appreciated! |
Several things:
Here's what I think is happening:
The good news is that it appears to be safe to skip calling The bad news is that I don't have any experience with this code and so I can't be 100% certain that this change won't break something. But I think it's the sort of thing that some of us should try locally and see if anything blows up. It's annoying that the fix for this doesn't actually involve this repo, and it's also annoying that I can't explain why this started happening in the first place. If anyone else had the bandwidth for this and wanted to dig into it, they might discover an underlying race condition that explains all of this much more elegantly. Or they might not! No way to tell. |
Thank you very much for looking into it. In terms of how long the bug has been around, @DeeDeeG . I think it was present I first started using Pulsar which was maybe 6 months ago? It was hard for me write duplication instructions because in my real projects it happens every time. If I click diff, then view another tab, then go back to view the diff its mangled. However, when I went to create a small example for this bug report I noticed it didn't always happen with the smaller example, which makes me think like @savetheclocktower that it is a race condition. I cloned the add-on and will try to look into it, however I am having some issues running the add-on in development mode due to some build issues / missing imports. I'll try to figure that out, I'm not familiar at all with the project. |
Here's the quick approach:
Then launch your other project with
The problem, though, is that if I'm right, the proposed fix isn't within the add-on at all. And the story for running the whole editor from source files is a bit more complicated. But if I were to make a PR with the proposed change, it would generate a binary that you could use to determine whether it fixes your issue, so we might give that a try. |
As a wild guess, perhaps the Electron update we did from 11 to 12 very early on got us newer Chromium and V8 which might behave a bit differently as to layout timing, async JS timing, behavior of non-visible content, or what-have-you. Or maybe the different version of babel we use to transpile the But this sounds promising, IMO:
EDIT to add: Seems like they were really trying not to do this stuff if "we're not visible": atom/atom@6e6dce2. So it must indeed be an issue of not catching that we're invisible at the exact right moment (have to concur seems like a race condition). |
OK, I'll make that change in time for 1.113. Whether or not it's the root cause, it makes sense in context and probably prevents other bugs as well. |
Thanks in advance for your bug report!
What happened?
The git diff is mangled when toggling between buffers and clicking on the unstaged changes for a file on the right side git bar.
Pulsar version
1.112.1
Which OS does this happen on?
🐧 Debian based (Linux Mint, Ubuntu, etc.)
OS details
Ubuntu 22.04
Which CPU architecture are you running this on?
x86_64/AMD64
What steps are needed to reproduce this?
Additional Information:
You may have to click back and forth a few times, it essentially looks like line numbers and changes are not shifted down correctly. I feel like it is easier to reproduce when the diff is larger (it happens every time). This does not happen on Atom, so it may be a regression from recent changes.
The text was updated successfully, but these errors were encountered: