-
Notifications
You must be signed in to change notification settings - Fork 70
Uncaught TypeError: Cannot read property 'split' of undefined #259
Comments
same error here. |
me too |
mark for me |
same here |
Identical error thrown here on Mac High Sierra |
This error shows up unless I open a file fresh without any other files opened, |
me too |
Same on Ubuntu 16.04. |
I have thought my code has bugs before see this issue |
I can confirm that above fix by @wellmotta works for me on:
|
same here [Enter steps to reproduce:]
Atom: 1.24.1 x64 Stack TraceUncaught TypeError: Cannot read property 'split' of undefined
Commands
Non-Core Packages
|
@wellmotta's fix works for me as well -- please note you have to exit Atom and relaunch for the changes to take effect. Disabling and enabling the package isn't enough. |
@wellmotta's fix is also works for me on: MacOS 10.13 |
@MarcelMue @jacogr will @wellmotta's fix be implemented in the near-future? |
@wellmotta's fix also worked for me as well. MacOS 10.13.4 |
@wellmotta's fix is also works for me on: MacOS 10.13 |
@wellmotta’s fix WFM on Ubuntu 18.04 LTS @seanidzenga ISTM that @wellmotta should issue a pull request. |
@wellmotta's fix works for me as well. thank you. |
Windows 10 1803 |
it doesn't matter |
I'm also having this problem but I got @wellmotta's fix to work. With so many people having this problem and such a simple fix, why hasn't it been fixed? |
I'm having the same problem, also not sure why but I sometimes get keychain wanting my password but I ignore it. Can someone explain how I can get @wellmotta 's fix to work? I see lines of code but don't know where to put them. Thanks. |
@lacostenycoder go to ~/.atom/packages/git-control/lib and open git-control-view.coffee. Scroll down to line 76, remove what's already there, and paste this: Make sure the indenting is the same as everywhere else, otherwise you'll get an error. But once done, hit save, close Atom, then re-open it and you should be good. The code should end up looking like this: |
@QuentinMcCarthy Thanks a lot! I see a bunch of PRs open for what look like similar solutions https://github.com/jacogr/atom-git-control/pulls @jacogr, @MarcelMue is this repo still being maintained? Can we help? |
+1 @wellmotta's fix |
Not that it makes a world of difference but personally, I consider runtime monkey patching safer than 3rd party source code modification so I have this guy in my init.coffee -> atom.commands.onWillDispatch ({ type }) ->
switch type
{ ... } # other commands
when 'git-control:toggle'
git = atom.project.getRepositories()[0]
Object.defineProperty(git, 'path', {
get: -> git.repo.workingDirectory
} |
@wellmotta's fix is also works for me on: Ubuntu 14 Thank you |
Good point. However, until and unless this repo gets resurrected... but if it does, the 3rd party manipulation would get lost, right? |
Likely. The problem I had in mind is that you may end up relying (aka building) on incompatible local changes making it very difficult to upgrade to a newer version. Not a common scenario for a top level editor package so I'm probably doomsaying though ;) |
Surprised believe this hasn't been patched yet. Wonder if @MarcelMue and @jacogr would mind adding another active maintainer |
Still exist |
I actually think this repository might be dead. The last push was in May 2017. Either they're slow developers working locally only, or they're simply not maintaining this anymore. |
i get |
Try pasting it exactly as written -- whitespace and all. |
solution @wellmotta 's work |
[Enter steps to reproduce:]
Atom: 1.24.1 x64
Electron: 1.6.16
OS: Microsoft Windows 7 Professional
Thrown From: git-control package 0.9.0
Stack Trace
Uncaught TypeError: Cannot read property 'split' of undefined
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: