baldurh / atom-status-bar-blame Goto Github PK
View Code? Open in Web Editor NEWThis project forked from josa42/atom-blame
Shows git blame in Atom’s status bar
Home Page: https://atom.io/packages/status-bar-blame
License: Other
This project forked from josa42/atom-blame
Shows git blame in Atom’s status bar
Home Page: https://atom.io/packages/status-bar-blame
License: Other
Argument to path.dirname
must be a string
Object.dirname (/Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:9:10)
Object.git (/Users/btito/.atom/packages/atom-status-bar-blame/node_modules/blamer/src/vcs/git.js:22:18)
Blamer.blameByFile (/Users/btito/.atom/packages/atom-status-bar-blame/node_modules/blamer/src/Blamer.js:15:32)
Object.<anonymous> (/Users/btito/.atom/packages/atom-status-bar-blame/lib/utils/blame.js:22:31)
undefined.next (null:null:null)
step (/Users/btito/.atom/packages/atom-status-bar-blame/lib/utils/blame.js:7:273)
[Enter steps to reproduce:]
Fails on startup. Started seeing this after last update (not the one from today 19 april, but the one before that).
Atom: 1.16.0 x64
Electron: 1.3.13
OS: Mac OS X 10.12.4
Thrown From: status-bar-blame package 1.0.3
Failed to activate the status-bar-blame package
At Failed to execute 'registerElement' on 'Document': Registration failed for type 'status-bar-blame'. A type with that name is already registered.
Error: Failed to execute 'registerElement' on 'Document': Registration failed for type 'status-bar-blame'. A type with that name is already registered.
at Error (native)
at /packages/status-bar-blame/lib/blame-status-bar-view.js:158:25)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at /packages/status-bar-blame/lib/init.js:9:27)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at Package.module.exports.Package.requireMainModule (/app.asar/src/package.js:796:27)
at Package.module.exports.Package.activateNow (/app.asar/src/package.js:207:16)
at /app.asar/src/package.js:190:32
at Package.module.exports.Package.measure (/app.asar/src/package.js:96:15)
at /app.asar/src/package.js:183:26
at Package.module.exports.Package.activate (/app.asar/src/package.js:180:34)
at PackageManager.module.exports.PackageManager.activatePackage (/app.asar/src/package-manager.js:550:34)
at /app.asar/src/package-manager.js:531:29
at Config.module.exports.Config.transactAsync (/app.asar/src/config.js:337:18)
at PackageManager.module.exports.PackageManager.activatePackages (/app.asar/src/package-manager.js:526:19)
at PackageManager.module.exports.PackageManager.activate (/app.asar/src/package-manager.js:508:46)
at /app.asar/src/atom-environment.js:826:28
atom-beautify 0.29.22
atom-status-bar-blame 1.0.0
gruvbox-plus-syntax 1.3.1
haskell-grammar 0.4.0
highlight-selected 0.13.1
language-babel 2.57.3
language-graphql 0.8.0
language-ini 1.19.0
language-lua 0.9.11
language-ocaml 1.8.0
language-swift 0.5.0
language-thrift 1.0.2
MagicPython 1.0.9
merge-conflicts 1.4.4
nuclide 0.217.0
nuclide-format-js 0.0.36
set-syntax 0.3.2
sort-lines 0.14.0
status-bar-blame 1.0.3
tool-bar 1.1.0
The screenshot shows time as "9 minutes ago", but the format config allows only for moment string-based formats.
[Enter steps to reproduce:]
Atom: 1.24.0 x64
Electron: 1.6.16
OS: Ubuntu 16.04.3
Thrown From: status-bar-blame package 2.0.2
Uncaught TypeError: Cannot read property 'replace' of null
At /home/user/.atom/packages/status-bar-blame/lib/utils/get-commit-link.js:29
TypeError: Cannot read property 'replace' of null
at getCommitLink (/packages/status-bar-blame/lib/utils/get-commit-link.js:29:29)
at EditorHandler.openCommitInBrowser (/packages/status-bar-blame/lib/editor-handler.js:207:18)
at HTMLElement.onLinkClicked (/packages/status-bar-blame/lib/blame-status-bar-view.js:46:26)
atom-ctags 5.1.2
atom-typescript 12.3.3
autocomplete-bash-builtins 0.3.5
autocomplete-python 1.10.5
busy-signal 1.4.3
git-control 0.9.0
hyperclick 0.1.5
intentions 1.1.5
last-cursor-position 0.9.2
linter 2.2.0
linter-python 3.1.2
linter-ui-default 1.7.1
platformio-ide-terminal 2.8.0
project-manager 3.3.5
status-bar-blame 2.0.2
At some point Atom starts to call the onDidSave
handler VERY often. Sometimes hundreds and even thousands of times. This of course makes Atom unresponsive. I have no idea what triggers this to happen. It’s running fine for a while and then something happens that makes it bomb the the handler. The lazy solution would be to debounce the handler.
When clicking on the status bar entry in a custom git repo (not GitHub or alike) it shows a notification: Unknown url.
. It would be great if it would copy the commit hash instead. This way I could easily inspect the commit via the git-cli.
PS: very useful package, thx you for making it!
Hi,
The company where I work use a self hosted Gitlab installation.
Everything seems to work but I always get "Unknow URL".
It would be nice if there was a configuration I could change to point to our Gitlab domain.
(gitlab.companyname.com)
If it's already possible, the README does not meantion anything about this so it would be nice to add.
Have gotten this message several times when I look at the settings page. My editor has been slow lately so I'm trying to hunt down every possible issue.
Let me know if you need anymore info. I enjoy the package and don't want to disable it if I don't have to.
See here: https://atom.io/docs/api/v1.17.2/Project#instance-getRepositories
Can use git-diff
package as a reference. https://github.com/atom/git-diff
Can better react to repo changes by observing status changes: https://atom.io/docs/api/v1.17.2/GitRepository#instance-onDidChangeStatus
Looks like there is a conflict with "project-manager 3.3.7" package.
How to reproduce:
Atom: 1.38.2 x64
Electron: 2.0.18
OS: Mac OS X 10.14.2
Thrown From: status-bar-blame package 2.0.3
Uncaught Error: Repository has been destroyed
At /Applications/Atom.app/Contents/Resources/app/static/<embedded>:14
Error: Repository has been destroyed
at GitRepository.getRepo (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1159525)
at GitRepository.getConfigValue (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1157599)
at GitRepository.getOriginURL (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1157656)
at EditorHandler.getRemoteUrl (/packages/status-bar-blame/lib/editor-handler.js:237:47)
at EditorHandler.openCommitInBrowser (/packages/status-bar-blame/lib/editor-handler.js:207:22)
at HTMLElement.onLinkClicked (/packages/status-bar-blame/lib/blame-status-bar-view.js:45:26)
-0:10.8.0 core:close (div.panels-item)
-0:06.3.0 project-manager:list-projects (a.)
-0:05.8.0 core:move-down (input.hidden-input)
-0:05.6.0 core:confirm (input.hidden-input)
-0:04.7.0 project-manager:list-projects (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-apex-adapt-dark-ui)
-0:04.1.0 core:confirm (input.hidden-input)
apex-adapt-dark-ui 0.4.2
atom-beautify 0.33.4
atom-isort 2.6.3
atom-minify 0.8.0
atom-over-and-back 0.4.0
autocomplete-python 1.14.1
blame 1.1.0
busy-signal 2.0.1
city-lights-syntax 1.1.8
city-lights-ui 1.5.3
color-picker 2.3.0
django-templates 0.5.0
duotone-dark-sky-syntax 2.1.0
git-time-machine 2.1.0
goto-definition 1.3.4
hydrogen-python 0.0.8
intentions 1.1.5
jumpy 5.0.2
linter 2.3.0
linter-flake8 2.4.0
linter-ui-default 1.7.1
MagicPython 1.1.1
minimap 4.29.9
minimap-git-diff 4.3.1
open-in-browser 0.5.2
pristine-ui 1.1.11
project-manager 3.3.7
python-tools 0.6.9
sort-lines 0.19.0
split-diff 1.6.0
status-bar-blame 2.0.3
styri-syntax 1.0.0
todo-show 2.3.2
Hi,
when using a non https (internal) gitlab server @ work the blame link to gitlab is forced to https..
Please consider a way to make it to fallback to http.
Thanks, Bob
If one for example opens the setting view or closes all editor tabs the status-bar tile with the blame info of the last focused line does not disappears.
I think therefore it has to listen to the pane.onDidChangeActive event.
Arguments to path.basename
must be strings
Object.basename (/Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:31:10)
Object.git (/Users/btito/.atom/packages/atom-status-bar-blame/node_modules/blamer/src/vcs/git.js:21:23)
Blamer.blameByFile (/Users/btito/.atom/packages/atom-status-bar-blame/node_modules/blamer/src/Blamer.js:15:32)
Object.<anonymous> (/Users/btito/.atom/packages/atom-status-bar-blame/lib/utils/blame.js:22:31)
undefined.next (null:null:null)
step (/Users/btito/.atom/packages/atom-status-bar-blame/lib/utils/blame.js:7:273)
After opening (grammar loads & syntax highlighting is shown) the editor freezes. This means scrolling and interacting with the editor is impossible. This state holds on for a few seconds.
This issue reminds me a whole lot of josa42#31.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.