Giter Club home page Giter Club logo

Comments (7)

cohama avatar cohama commented on July 27, 2024

再現しました。とりあえずエラーを吐く方向で対処しようと思います。

from agit.vim.

cohama avatar cohama commented on July 27, 2024

#11 により修正されました。(エラーを吐きます)
確認してみてください

from agit.vim.

itchyny avatar itchyny commented on July 27, 2024

少し調べてみました。

  1. 現在開いているファイルがgitで管理されているとき
    • Agit → Agitを開く (OK)
    • AgitFile → 現在のファイルをAgitFileで開く (OK)
  2. gitで管理されていないファイル(ファイルは存在していて管理されていない)を開いた後
    • Agit → Agitを開く (OK)
    • AgitFile → AgitFileが開かれて、バッファーは空 (NG: エラーで落ちて欲しい)
  3. gitで管理されているディレクトリーで enew した後
    • Agit → 「File not found: 」とだけでる (NG: Agitを開いて欲しい)
    • AgitFile → 「File not found: 」とだけでる (OK)

NGと書いたケースで違和感があります。

from agit.vim.

cohama avatar cohama commented on July 27, 2024

おお!調査ありがとうございます。確かにその通りになりました。
修正します

from agit.vim.

wonderful-panda avatar wonderful-panda commented on July 27, 2024

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.

cohama avatar cohama commented on July 27, 2024

gitで管理されているディレクトリーで enew した後
AgitFile → 「File not found: 」とだけでる (OK)

ひとまずこちらの方だけ対応してみました。

from agit.vim.

itchyny avatar itchyny commented on July 27, 2024

調べてみますと、次のケースでエラーが出るようです。

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.