jakesankey / git-history

View previous versions of any file known to git.
https://atom.io/packages/git-history
MIT License
28 stars 10 forks source link

Unexpected Token #35

Open asafalg opened 8 years ago

asafalg commented 8 years ago

[Enter steps to reproduce below:]

Atom Version: 1.7.3 System: Ubuntu 14.04.4 Thrown From: git-history package, v3.2.0

Stack Trace

Uncaught SyntaxError: Unexpected token

At file:///usr/share/atom/resources/app.asar/static/index.html#%7B%22initialPaths%22%3A%5B%22%2Fhome%2Fasaf%2FTPWebsite%2Fwebsite%22%2C%22%2Fhome%2Fasaf%2Ftrulyprotect%22%5D%2C%22locationsToOpen%22%3A%5B%7B%22pathToOpen%22%3A%22%2Fhome%2Fasaf%2FTPWebsite%2Fwebsite%22%2C%22initialLine%22%3Anull%2C%22initialColumn%22%3Anull%2C%22forceAddToWindow%22%3Afalse%7D%2C%7B%22pathToOpen%22%3A%22%2Fhome%2Fasaf%2Ftrulyprotect%22%2C%22initialLine%22%3Anull%2C%22initialColumn%22%3Anull%2C%22forceAddToWindow%22%3Afalse%7D%5D%2C%22windowInitializationScript%22%3A%22%2Fusr%2Fshare%2Fatom%2Fresources%2Fapp.asar%2Fsrc%2Finitialize-application-window.js%22%2C%22resourcePath%22%3A%22%2Fusr%2Fshare%2Fatom%2Fresources%2Fapp.asar%22%2C%22devMode%22%3Afalse%2C%22safeMode%22%3Afalse%2C%22profileStartup%22%3Afalse%2C%22clearWindowState%22%3Afalse%2C%22env%22%3A%7B%22GNOME_KEYRING_PID%22%3A%22%22%2C%22USER%22%3A%22asaf%22%2C%22_system_version%22%3A%2214.04%22%2C%22LANGUAGE%22%3A%22en_US%22%2C%22LC_TIME%22%3A%22en_US.UTF-8%22%2C%22XDG_SEAT%22%3A%22seat0%22%2C%22TEXTDOMAIN%22%3A%22im-config%22%2C%22COMPIZ_CONFIG_PROFILE%22%3A%22ubuntu%22%2C%22SESSION%22%3A%22ubuntu%22%2C%22SHLVL%22%3A%220%22%2C%22HOME%22%3A%22%2Fhome%2Fasaf%22%2C%22QT4_IM_MODULE%22%3A%22xim%22%2C%22DESKTOP_SESSION%22%3A%22ubuntu%22%2C%22GTK_MODULES%22%3A%22overlay-scrollbar%3Aunity-gtk-module%22%2C%22XDG_SEAT_PATH%22%3A%22%2Forg%2Ffreedesktop%2FDisplayManager%2FSeat0%22%2C%22LC_MONETARY%22%3A%22en_US.UTF-8%22%2C%22INSTANCE%22%3A%22%22%2C%22DBUS_SESSION_BUS_ADDRESS%22%3A%22unix%3Aabstract%3D%2Ftmp%2Fdbus-acQK89jsDZ%22%2C%22GNOME_KEYRING_CONTROL%22%3A%22%2Frun%2Fuser%2F1000%2Fkeyring-3m4o3F%22%2C%22QT_QPA_PLATFORMTHEME%22%3A%22appmenu-qt5%22%2C%22MANDATORY_PATH%22%3A%22%2Fusr%2Fshare%2Fgconf%2Fubuntu.mandatory.path%22%2C%22IM_CONFIG_PHASE%22%3A%221%22%2C%22SESSIONTYPE%22%3A%22gnome-session%22%2C%22LOGNAME%22%3A%22asaf%22%2C%22GTK_IM_MODULE%22%3A%22ibus%22%2C%22rvm_bin_path%22%3A%22%2Fhome%2Fasaf%2F.rvm%2Fbin%22%2C%22IRBRC%22%3A%22%2Fhome%2Fasaf%2F.rvm%2Frubies%2Fruby-2.2.1%2F.irbrc%22%2C%22DEFAULTS_PATH%22%3A%22%2Fusr%2Fshare%2Fgconf%2Fubuntu.default.path%22%2C%22RUBY_VERSION%22%3A%22ruby-2.2.1%22%2C%22XDG_SESSION_ID%22%3A%22c1%22%2C%22GNOME_DESKTOP_SESSION_ID%22%3A%22this-is-deprecated%22%2C%22PATH%22%3A%22%2Fhome%2Fasaf%2F.rvm%2Fgems%2Fruby-2.2.1%2Fbin%3A%2Fhome%2Fasaf%2F.rvm%2Fgems%2Fruby-2.2.1%40global%2Fbin%3A%2Fhome%2Fasaf%2F.rvm%2Frubies%2Fruby-2.2.1%2Fbin%3A%2Fhome%2Fasaf%2Fbin%3A%2Fhome%2Fasaf%2Fdevel%2Ftoolchains%2Fgcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux%2Fbin%3A%2Fhome%2Fasaf%2Fbin%3A%2Fusr%2Flocal%2Fsbin%3A%2Fusr%2Flocal%2Fbin%3A%2Fusr%2Fsbin%3A%2Fusr%2Fbin%3A%2Fsbin%3A%2Fbin%3A%2Fusr%2Fgames%3A%2Fusr%2Flocal%2Fgames%3A%2Fhome%2Fasaf%2F.rvm%2Fbin%22%2C%22GDM_LANG%22%3A%22en_US%22%2C%22PAPERSIZE%22%3A%22letter%22%2C%22SELINUX_INIT%22%3A%22YES%22%2C%22LC_ADDRESS%22%3A%22en_US.UTF-8%22%2C%22XDG_SESSION_PATH%22%3A%22%2Forg%2Ffreedesktop%2FDisplayManager%2FSession0%22%2C%22XDG_RUNTIME_DIR%22%3A%22%2Frun%2Fuser%2F1000%22%2C%22MY_RUBY_HOME%22%3A%22%2Fhome%2Fasaf%2F.rvm%2Frubies%2Fruby-2.2.1%22%2C%22DISPLAY%22%3A%22%3A0%22%2C%22LC_TELEPHONE%22%3A%22en_US.UTF-8%22%2C%22LANG%22%3A%22en_US.UTF-8%22%2C%22XDG_CURRENT_DESKTOP%22%3A%22Unity%22%2C%22XMODIFIERS%22%3A%22%40im%3Dibus%22%2C%22XAUTHORITY%22%3A%22%2Fhome%2Fasaf%2F.Xauthority%22%2C%22XDG_GREETER_DATA_DIR%22%3A%22%2Fvar%2Flib%2Flightdm-data%2Fasaf%22%2C%22SSH_AUTH_SOCK%22%3A%22%2Frun%2Fuser%2F1000%2Fkeyring-3m4o3F%2Fssh%22%2C%22SHELL%22%3A%22%2Fbin%2Fbash%22%2C%22LC_NAME%22%3A%22en_US.UTF-8%22%2C%22rvm_prefix%22%3A%22%2Fhome%2Fasaf%22%2C%22GDMSESSION%22%3A%22ubuntu%22%2C%22GEM_HOME%22%3A%22%2Fhome%2Fasaf%2F.rvm%2Fgems%2Fruby-2.2.1%22%2C%22_system_type%22%3A%22Linux%22%2C%22LC_MEASUREMENT%22%3A%22en_US.UTF-8%22%2C%22LC_IDENTIFICATION%22%3A%22en_US.UTF-8%22%2C%22rvm_version%22%3A%221.26.11%20(latest)%22%2C%22TEXTDOMAINDIR%22%3A%22%2Fusr%2Fshare%2Flocale%2F%22%2C%22GPG_AGENT_INFO%22%3A%22%2Frun%2Fuser%2F1000%2Fkeyring-3m4o3F%2Fgpg%3A0%3A1%22%2C%22UPSTART_SESSION%22%3A%22unix%3Aabstract%3D%2Fcom%2Fubuntu%2Fupstart-session%2F1000%2F1915%22%2C%22XDG_VTNR%22%3A%227%22%2C%22QT_IM_MODULE%22%3A%22ibus%22%2C%22_system_arch%22%3A%22x86_64%22%2C%22PWD%22%3A%22%2Fhome%2Fasaf%22%2C%22GEM_PATH%22%3A%22%2Fhome%2Fasaf%2F.rvm%2Fgems%2Fruby-2.2.1%3A%2Fhome%2Fasaf%2F.rvm%2Fgems%2Fruby-2.2.1%40global%22%2C%22CLUTTER_IM_MODULE%22%3A%22xim%22%2C%22XDG_CONFIG_DIRS%22%3A%22%2Fetc%2Fxdg%2Fxdg-ubuntu%3A%2Fusr%2Fshare%2Fupstart%2Fxdg%3A%2Fetc%2Fxdg%22%2C%22XDG_DATA_DIRS%22%3A%22%2Fusr%2Fshare%2Fubuntu%3A%2Fusr%2Fshare%2Fgnome%3A%2Fusr%2Flocal%2Fshare%2F%3A%2Fusr%2Fshare%2F%22%2C%22LC_NUMERIC%22%3A%22en_US.UTF-8%22%2C%22_system_name%22%3A%22Ubuntu%22%2C%22LC_PAPER%22%3A%22en_US.UTF-8%22%2C%22rvm_path%22%3A%22%2Fhome%2Fasaf%2F.rvm%22%2C%22JOB%22%3A%22dbus%22%2C%22XDG_MENU_PREFIX%22%3A%22gnome-%22%2C%22SESSION_MANAGER%22%3A%22local%2Fasaf-Lenovo-G580%3A%40%2Ftmp%2F.ICE-unix%2F2106%2Cunix%2Fasaf-Lenovo-G580%3A%2Ftmp%2F.ICE-unix%2F2106%22%2C%22GIO_LAUNCHED_DESKTOP_FILE%22%3A%22%2Fusr%2Fshare%2Fapplications%2Fatom.desktop%22%2C%22GIO_LAUNCHED_DESKTOP_FILE_PID%22%3A%2219447%22%2C%22COMPIZ_BIN_PATH%22%3A%22%2Fusr%2Fbin%2F%22%2C%22GOOGLE_API_KEY%22%3A%22AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q%22%2C%22CHROME_DESKTOP%22%3A%22Atom.desktop%22%2C%22ATOM_HOME%22%3A%22%2Fhome%2Fasaf%2F.atom%22%7D%2C%22appVersion%22%3A%221.7.3%22%2C%22atomHome%22%3A%22%2Fhome%2Fasaf%2F.atom%22%2C%22shellLoadTime%22%3A1874%7D:1

SyntaxError: Unexpected token   
    at Object.parse (native)
    at stdout (/home/asaf/.atom/packages/git-history/lib/git-history-view.coffee:46:13)
    at Socket.<anonymous> (/usr/share/atom/resources/app.asar/src/buffered-process.js:87:13)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at Pipe.onread (net.js:523:20)

Commands

  9x -1:12.4.0 core:move-up (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
 46x -1:10.7.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:07.7.0 tree-view:toggle-vcs-ignored-files (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:05.9.0 tree-view:expand-item (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  6x -1:05.2.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:03.1.0 tree-view:toggle-vcs-ignored-files (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -1:02.5.0 tree-view:expand-item (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  8x -1:01.2.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  2x -0:59.6.0 application:open-file (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  2x -0:54.4.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:53.7.0 core:page-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  3x -0:53.2.0 core:page-up (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  3x -0:49.8.0 tree-view:move (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:37.7.0 tree-view:duplicate (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  4x -0:33.3.0 core:page-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  2x -0:24.9.0 git-history:show-file-history (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "autoHideMenuBar": true
  },
  "git-history": {
    "showDiff": false
  }
}

Installed Packages

# User
color-picker, v2.1.1
git-diff-details, v1.3.0
git-history, v3.2.0
git-plus, v5.13.4
merge-conflicts, v1.4.2
split-diff, v0.8.1

# Dev
No dev packages