Skip to content
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

Vim 7.4 shows errors on launch #24

Open
Spikatrix opened this issue Jun 20, 2020 · 3 comments
Open

Vim 7.4 shows errors on launch #24

Spikatrix opened this issue Jun 20, 2020 · 3 comments

Comments

@Spikatrix
Copy link

Launching Vim 7.4 gives me the following errors:

Error detected while processing function DiscordAsyncWrapper:
line    9:
E117: Unknown function: timer_info
E15: Invalid expression: timer_info(s:timer)
line   10:
E121: Undefined variable: info
E116: Invalid arguments for function len(info) == 1 && info[0]["paused"] == 0
E15: Invalid expression: len(info) == 1 && info[0]["paused"] == 0
Press ENTER or type command to continue

But the Discord RPC seems to be working even though I get those errors at launch. Worth mentioning that I get no such errors on Vim 8.2

@LunarWatcher
Copy link

LunarWatcher commented Jun 20, 2020

The async features were introduced in Vim 8. Didn't count on Vim 7 still being used in the wild

... except it wasn't, because has("timers") has to be true for that to happen.

@Spikatrix
Copy link
Author

Vim 7.4 was the preinstalled vim that came with my Linux (Granted, I installed Linux about 1.5 years ago).

has("timers") does return true for both Vim 7.4 and 8.2

@LunarWatcher
Copy link

I know. My best guess is that parts of the timer API got implemented later, but I have no idea how to detect that. The documentation isn't very useful either (it just says the functions exist, but not when they were implemented :facepaw:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants