Applescript `document` method not recognized
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- vim
- Domínio
- desktop
Direção de pesquisa
Nenhum arquivo-fonte ou teste foi identificado. Comece reproduzindo a falha com o AppleScript mostrado e inspecione o dicionário AppleScript do MacVim e o tratamento de documentos; considera-se concluído quando get path of document 1 retorna o caminho do documento em primeiro plano sem o erro de índice inválido.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Vim Script
- Estrelas
- 7.9k
- Forks
- 691
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de macvim-dev/macvim
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
macvim-dev/macvim#1697 · 5 comentários ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
macvim-dev/macvim#1658 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
macvim-dev/macvim#1657 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
macvim-dev/macvim#1655 ·
-
Dificuldade 2/5 Meio dia Facilidade para iniciantes 72/100
macvim-dev/macvim#1653 ·
Todas as issues de macvim-dev/macvim
Issues semelhantes
-
Startup alerts tell the user to click Save and Apply, but the settings button is labelled Save Abertabug good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
alexgorbatchev/simple-ptt#11 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
bug good first issue multicut serialization
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
accepted bug via-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
seagle0128/doom-modeline#835 ·