-
Notifications
You must be signed in to change notification settings - Fork 20
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
Uncaught TypeError when opening the pane #4
Comments
I'm sorry! When you have this problem, does the package activate? Does the pane appear on the right? Does it populate with files? Or does it fail before anything happens at all? |
I apologize for the lack of description. So, it appears to only happen with certain projects. When I open the pane with cmd+alt+g, the pane pops open and I can see my branch with the associated file statuses, but the developer tools also opens up and I see the error. I'm still trying to see the difference between projects where I get the error vs when I don't. |
If you could post the stack trace (or a screenshot of it), that would help. Atomatigit pre-loads the diffs for all tracked files and staged changes, but it doesn't have any special logic for moved or deleted files yet. Do those repos happen to have moved or removed files staged? |
Yup, ok. Have you by any chance configured git to use a different diff tool? Gift (the node git library that's throwing the error) tries to parse the diff, but it expects git-difftool's default output. Do you get one error for each untracked/unstaged file? It looks like 12 errors and ~12 files... Any odd characters in the repo path? |
OK, would you run through all the files in the list and hit The other error -- no upstream configured -- is a known issue. As soon as you push, it will go away -- the branch header styles branches with unpushed commits differently than branches with up-to-date remotes, but it gets confused if there is no remote. Expect a patch to fix that this evening or tomorrow. This diff problem, though -- I really have no idea. Thanks for being patient. |
I wonder if this is a problem with my git difftool defaulting to opendiff, is that the right default? |
Do you get that error for every file? I expected you to get it for some (4, hopefully)...
|
It gives me that error for every one of my unstaged files, 4 out of 4. |
Is it possible for you to run git diff on a [not-sensitive] file that fails to diff in atomatigit, and post the result? I'm beginning to think this is not my fault, but a problem in Gift's diff parsing code. I'd like to raise the bug with the owners of the Gift library; but the text of the diff will be the relevant info, and I can't seem to replicate your problem on my end. |
I have one project that works fine. I tested a few others and I think it may have to do with the project having submodules or not. I went into one of my projects and changed one file that was in a submodule of my project and then I get the error on the diff of the submodule pointer. Here common is my submodule that i changed a file in. Since I'm not inside the submodule itself, the diff with only show the difference of commits. Pretty sure this has something to do with it, because it works fine for all projects that don't have git submodules. |
OK. I'll see if the folks who work on Gift have any ideas. |
@diiq Any word? |
Nope. They merged an (unrelated) pull request of mine, but didn't even comment on the issue :( At least they did merge the PR, so I guess I'll take a look tonight and see if I can fix it myself. Sorry about the wait! All my Atomatigit attention has been on the flow for committing (which still sucks). |
OK, so I didn't realize until I looked more closely at your diff that these were all files inside the submodules. It's somewhat unusual, I think, to do extensive editing of your submodules in-place, but I believe you're doing it for the best of reasons. Unfortunately, I'm currently only using a single reference to the project repository; within that architecture, I can't get the diff of a file that's inside a subrepo :( Maybe in the future I'll be able to accommodate editing submodules, but for right now, I don't think it's on the roadmap, because it would mean managing multiple repos simultaneously. I will make some changes to prevent the error from appearing -- but you won't be able to see diffs or stage or commit files inside submodules. What you can do is open the submodule in its own atom window -- because it really is a separate project -- then Atomatigit will react just the way it should, and let you commit files from there. |
I get this error when I open this package in the editor.
/.atom/packages/atomatigit/node_modules/gift/lib/diff.js:77
Uncaught TypeError: Cannot read property '0' of null
module.exports.Diff.parse
This looks really cool, looking forward to using it.
Thanks,
Sean
The text was updated successfully, but these errors were encountered: