Comments (7)
再現しました。とりあえずエラーを吐く方向で対処しようと思います。
from agit.vim.
#11 により修正されました。(エラーを吐きます)
確認してみてください
from agit.vim.
少し調べてみました。
- 現在開いているファイルがgitで管理されているとき
- Agit → Agitを開く (OK)
- AgitFile → 現在のファイルをAgitFileで開く (OK)
- gitで管理されていないファイル(ファイルは存在していて管理されていない)を開いた後
- Agit → Agitを開く (OK)
- AgitFile → AgitFileが開かれて、バッファーは空 (NG: エラーで落ちて欲しい)
- gitで管理されているディレクトリーで enew した後
- Agit → 「File not found: 」とだけでる (NG: Agitを開いて欲しい)
- AgitFile → 「File not found: 」とだけでる (OK)
NGと書いたケースで違和感があります。
from agit.vim.
おお!調査ありがとうございます。確かにその通りになりました。
修正します
from agit.vim.
enewした後
- Agit --dir=path/to/repository → 「File not found:」(NG: 指定したリポジトリを開いて欲しい)
- AgitFile --file=path/to/versioned/file → 「Not a git repository.」(NG: 指定したファイルを開いて欲しい)
というのもありました。(AgitFileの方は #19 と同じ話です)
from agit.vim.
gitで管理されているディレクトリーで enew した後
AgitFile → 「File not found: 」とだけでる (OK)
ひとまずこちらの方だけ対応してみました。
from agit.vim.
調べてみますと、次のケースでエラーが出るようです。
2 gitで管理されていないファイル(ファイルは存在していて管理されていない)を開いた後
- AgitFile → エラーが発生したあと、AgitFileが開かれるが何も表示されない。
Error detected while processing function agit#launch..agit#bufwin#agit_tabnew..63..183..57..agit#aligner#align:
line 1:
E684: list index out of range: 0
E116: Invalid arguments for function len(a:table[0]) " sampling head's column number
E15: Invalid expression: len(a:table[0]) " sampling head's column number
from agit.vim.
Related Issues (20)
- カレントディレクトリのパスにスペースが含まれる場合、開始できない。 HOT 1
- set filetype after defining buffer-local mappings HOT 2
- Don't detect current directory by `expand('%:p:h)` HOT 2
- let g:agit_enable_auto_refresh = 1 の時、一度一番上の行のdiff/statが表示されてからカーソル行のdiff/statになる HOT 1
- git.log: head_indexが正しく取得できていない HOT 2
- diffが長い時、agitDiffRemoveなどが適用されない HOT 1
- g:agit_skip_empty_line のタグ重複 HOT 3
- vim-fugitiveを入れた状態でseparate-git-dirなリポジトリの未コミット差分が見えない HOT 4
- gittree can contain characters `-` and `.`, which are not highlighted correctly HOT 1
- :AgitDiff not working when file path is very long HOT 2
- Remap locally without autocommands
- Changing b:git_dir to use custom --git-dir name before running :Agit
- cat-file のコマンドを変更できるオプションが欲しい HOT 4
- Git 2.11 abbreviated-hash length is variable
- AgitDiff is broken since 1056d84 (with fugitive) HOT 3
- agit.vim の AgitDiff コマンドについて HOT 1
- There is not a command named AgitGit, AgitDiff HOT 1
- agt file can not get the correct path after run tabnew and lcd
- `vimproc#get_command_name: File "cd" is not found` occured on some linux envs HOT 2
- --dir=xxx option not work when xxx contains spaces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agit.vim.