Open HRyii opened 7 years ago
This error was fixed – thanks: jayspirits
i still have the same error, how did you fix it?
@antoniochacon, read my comment in the pull request: https://github.com/jacogr/atom-git-control/pull/247
.atom\packages\git-control\lib\git-control-view.coffee line 76 @setWorkspaceTitle(git.getRepository().path.split('/').reverse()[1])
@setWorkspaceTitle(git.getRepository()) or @setWorkspaceTitle('')
From the pull request: by ts-de:
thanks @jayspirits for those who don't know how to fix until the new version is released: move to C:\Users[username].atom\packages\git-control\lib\git-control-view.coffee and change line 76 to: @setWorkspaceTitle(git.getRepository().repo.workingDirectory.split('/').reverse()[1])
Works!
It seems the same problem exists when I press PROJECT. I get:
Uncaught TypeError: Path must be a string. Received undefined
path.js:7
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.resolve (path.js:186:7)
at fn (file:///C:/Users/pashute/.atom/packages/git-control/lib/dialogs/project-dialog.coffee:33:44)
at ProjectDialog.module.exports.ProjectDialog.activate (file:///C:/Users/pashute/.atom/packages/git-control/lib/dialogs/project-dialog.coffee:28:5)
at GitControlView.module.exports.GitControlView.projectMenuClick (file:///C:/Users/pashute/.atom/packages/git-control/lib/git-control-view.coffee:147:20)
at MenuView.module.exports.MenuView.click (file:///C:/Users/pashute/.atom/packages/git-control/lib/views/menu-view.coffee:50:7)
at MenuItem.click (file:///C:/Users/pashute/.atom/packages/git-control/lib/views/menu-view.coffee:39:17)
at HTMLDivElement.<anonymous> (C:\Users\pashute\.atom\packages\git-control\node_modules\space-pen\lib\space-pen.js:231:38)
at HTMLDivElement.dispatch (C:\Users\pashute\.atom\packages\git-control\node_modules\jquery\dist\jquery.js:4435:9)
at HTMLDivElement.elemData.handle (C:\Users\pashute\.atom\packages\git-control\node_modules\jquery\dist\jquery.js:4121:28)
thanks @ts-de , it works
Still a problem
ypeError: Cannot read property 'split' of undefined at GitControlView.module.exports.GitControlView.initialize (file:///C:/Users/Dejan/.atom/packages/git-control/lib/git-control-view.coffee:76:50) at GitControlView.View [as constructor] (C:\Users\Dejan\.atom\packages\git-plus\node_modules\space-pen\lib\space-pen.js:184:25) at new GitControlView (file:///C:/Users/Dejan/.atom/packages/git-control/lib/git-control-view.coffee:36:7) at Object.toggleView (file:///C:/Users/Dejan/.atom/packages/git-control/lib/git-control.coffee:31:18) at HTMLElement.<anonymous> (file:///C:/Users/Dejan/.atom/packages/git-control/lib/git-control.coffee:18:57) at CommandRegistry.handleCommandEvent (C:\Users\Dejan\AppData\Local\atom\app-1.22.1\resources\app\src\command-registry.js:381:36) at CommandRegistry.dispatch (C:\Users\Dejan\AppData\Local\atom\app-1.22.1\resources\app\src\command-registry.js:266:23) at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (C:\Users\Dejan\AppData\Local\atom\app-1.22.1\resources\app\src\atom-environment.js:1382:34) at EventEmitter.outerCallback (C:\Users\Dejan\AppData\Local\atom\app-1.22.1\resources\app\src\application-delegate.js:335:31) at emitThree (events.js:116:13) at EventEmitter.emit (events.js:194:7)
have this error too right after upate to 1.22.0
[Enter steps to reproduce:]
Atom: 1.22.1 x64 Electron: 1.6.15 OS: linux 4.13.13-1-ck Thrown From: git-control package 0.9.0
Uncaught TypeError: Cannot read property 'split' of undefined
At /home/ace/.atom/packages/git-control/lib/git-control-view.coffee:76
TypeError: Cannot read property 'split' of undefined
at GitControlView.module.exports.GitControlView.initialize (/packages/git-control/lib/git-control-view.coffee:76:50)
at /packages/terminal-plus/node_modules/space-pen/lib/space-pen.js:184:25)
at /packages/git-control/lib/git-control-view.coffee:36:7)
at Object.toggleView (/packages/git-control/lib/git-control.coffee:31:18)
at /packages/git-control/lib/git-control.coffee:18:57)
at CommandRegistry.handleCommandEvent (/usr/lib/atom/src/command-registry.js:381:30)
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/lib/atom/node_modules/atom-keymap/lib/keymap-manager.js:617:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/lib/atom/node_modules/atom-keymap/lib/keymap-manager.js:408:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/usr/lib/atom/src/window-event-handler.js:100:36)
at HTMLDocument.<anonymous> (/usr/lib/atom/src/window-event-handler.js:3:59)
-1:24 tree-view:show (atom-workspace.workspace.scrollbars-visible-always)
-1:22.1.0 git-control:toggle (div.panels-item)
-1:16.6.0 core:cancel (div.panels-item)
-1:11.7.0 intentions:highlight (input.hidden-input)
-1:11.4.0 git-control:toggle (input.hidden-input)
atom-autocomplete-php 0.25.6
atom-ide-ui 0.5.4
atom-languageclient 1.0.7
busy-signal 1.4.3
chary-tree-view 0.2.13
duplicate-line-or-selection 0.9.0
file-icons 2.1.13
flow-ide 1.9.0
git-control 0.9.0
git-diff-details 1.4.0
git-log 0.4.1
git-plus 7.10.0
git-split-diff-hyperclick 0.3.12
git-time-machine 1.5.9
goto-definition 1.3.4
hyperclick 0.0.0
ide-json 0.1.0
ide-php 0.6.10
ide-typescript 0.7.0
intentions 1.1.5
js-hyperclick 1.12.2
linter 2.2.0
linter-ui-default 1.6.10
menu-editor 0.2.0
php-debug 0.2.5
php-hyperclick 1.2.1
php-twig 4.0.0
project-manager 3.3.5
split-diff 1.5.1
teletype 0.1.4
termination 0.6.1
tree-view-git-status 1.4.0
zentabs 0.8.9
Hello,
Same error :
Atom: 1.22.1 x64 Electron: 1.6.15 OS: Windows 10 Thrown From: git-control package 0.9.0
Uncaught TypeError: Cannot read property 'split' of undefined
At C:\Users\jipem\.atom\packages\git-control\lib\git-control-view.coffee:76
TypeError: Cannot read property 'split' of undefined
at GitControlView.module.exports.GitControlView.initialize (/packages/git-control/lib/git-control-view.coffee:76:50)
at /packages/Remote-FTP/node_modules/space-pen/lib/space-pen.js:184:25)
at /packages/git-control/lib/git-control-view.coffee:36:7)
at Object.toggleView (/packages/git-control/lib/git-control.coffee:31:18)
at /packages/git-control/lib/git-control.coffee:18:57)
at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.22.1/resources/app/src/command-registry.js:381:36)
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.22.1/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:621:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.22.1/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:412:28)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.22.1/resources/app/src/window-event-handler.js:100:42)
at HTMLDocument.<anonymous> (~/AppData/Local/atom/app-1.22.1/resources/app/src/window-event-handler.js:3:65)
-5:18.1.0 git-control:toggle (atom-pane.pane.active)
-4:48.1.0 window:toggle-dev-tools (ul.list-inline.tab-bar.inset-panel)
-0:48.4.0 git-control:toggle (div.package-detail.panels-item)
atom-beautify 0.30.6
git-control 0.9.0
project-viewer 1.2.5
Remote-FTP 1.3.1
Hi Devteam.
When fix bug?
[Enter steps to reproduce:]
Atom: 1.21.1 ia32 Electron: 1.6.15 OS: Unknown Windows version Thrown From: git-control package 0.9.0
Stack Trace
Uncaught TypeError: Cannot read property 'split' of undefined
Commands
Non-Core Packages