-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:VimtexInfo fails in iVim (iPadOS) #2647
Comments
Interesting. This is the part that is failing: vimtex/autoload/vimtex/info.vim Lines 188 to 192 in 64f0c25
So, essentially, the commands |
iPadOS and iOS are quite limiting, with each app in its own sandbox, so there is no full shell and only a limited number of commands available in iVim;
I don’t see anything there that can retrieve this info, though some of it could be scraped from |
I could do something like this: if executable('sw_vers')
let l:name = vimtex#jobs#cached('sw_vers -productName')[0]
let l:version = vimtex#jobs#cached('sw_vers -productVersion')[0]
let l:build = vimtex#jobs#cached('sw_vers -buildVersion')[0]
return l:name . ' ' . l:version . ' (' . l:build . ')'
else
" fallback
return 'MacOS/iPadOS'
endif Do you have a better suggestion for the fallback-text? |
That would certainly work around the problem. As for fallback text, it really depends on what debug info you want to get. Perhaps you’d want something like:
(Note that I’ve written “i[Pad]OS”: iVim works on iOS — on iPhones — as well as on iPadOS.) |
Yes. I want to get as much info on the current OS as possible.
Thanks! I'll go with this for now. |
What's the output of |
Please check that the last update fixes things for you. |
Note that if you’re into this part of the code, presumably you’re on i[Pad]OS, and presumably in the iVim app. So it might be more reliable to scrape from |
Running System info:
OS: MacOS/i[Pad]OS
Vim version: VIM 8.1 (1-2110)
Has clientserver: false
VimTeX project:
name:
base:
root: .
tex:
main parser: fallback current file
document class:
compiler: latexmk
engine: -pdf
options:
-verbose
-file-line-error
-synctex=1
-interaction=nonstopmode
callback: 1
continuous: 1
executable: latexmk
viewer: General
qf method: LaTeX logfile In short, it looks like it’s working. Thanks! |
Great, glad to see it. I think this should suffice; if I need more info from people I'll just ask. |
Description
With iVim on iPadOS (which does not have access to a LaTeX installation), running
:VimtexInfo
on a blank.tex
document results in the following error:Steps to reproduce
:set ft=tex
:VimtexInfo
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
No
VimtexInfo
See above for error message.
The text was updated successfully, but these errors were encountered: