Applescript `document` method not recognized
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- vim
- 領域
- desktop
研究方向
未確定來源檔案或測試。首先使用所示的 AppleScript 重現故障,並檢查 MacVim 的 AppleScript 字典和文件處理;當 get path of document 1 在沒有無效索引錯誤的情況下傳回前景文件的路徑時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Steps to reproduce
- Create an Applescript that opens MacVim and calls
document 1. Eg:
tell application MacVim
activate
set my_path to get path of document 1
end tell
- Execute script with
osascript script_name. - Find the error:
Can’t get document 1. Invalid index. (-1719)
See more details here.
Expected behaviour
get path of document 1 should return the file path of the first document being currently displayed. I believe it's also called the 'front document'.
Version of Vim and architecture
9.0.65 (173)
Environment
Operating System: Bug Sur version 11.6.8 (20G730)
Terminal: Using MacVim GUI, not a terminal. It's version shows the Vim version 9.0.65 (173). It also says c2007 Bjorn Winckler.
Value of $TERM: xterm-256color
How MacVim was installed
brew install macvim
Logs and stack traces
Don't find any log or other error besides what's displayed. Maybe I don't know how to turn on verbose logging?
Vim configuration where issue is reproducable
No response
Issue has been tested with given configuration
- by running MacVim.app from GUI macOS interface
- by running vim/gvim/etc installed by MacVim
- by running other versions of vim (e.g. /usr/bin/vim)
Issue has been tested with no configuration
- by running
mvim --clean(orgvim, supplied by MacVim distribution) - by running
vim --clean(in terminal, supplied by MacVim distribution) - by running
vim --clean(in terminal, other suppliers, e.g. /usr/bin/vim)
Other conditions
- The both Homebrew packages "vim" and "macvim" are installed
- 主要語言
- Vim Script
- 星號
- 7.9k
- 分支
- 691
- 平均合併
- 20 分鐘
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
macvim-dev/macvim 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
macvim-dev/macvim#1697 · 6 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1658 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1657 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1655 ·
-
難度 2/5 半天 新手友好度 72/100
macvim-dev/macvim#1653 ·
查看 macvim-dev/macvim 的全部 Issue
相似的 Issue
-
Local host row takes the name of an exe.dev VM when /etc/hosts aliases that VM to a loopback address未關閉
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 79/100
joncampbell123/dosbox-x#6664 ·
維護者通常 1 天內回覆
-
app bug
難度 2/5 1-3 小時 新手友好度 76/100
-
The Outdated Version prompt shows the release tag as unescaped HTML可能已有人在做 @on8st 今天認領。 未關閉bug good first issue GUI maintainer-review priority: low
難度 2/5 1-3 小時 新手友好度 76/100
aethersdr/AetherSDR#6405 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆