-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error: next3.4 could not get parsed #56
Comments
This issue affects me as well. I am using tmux next-3.3. |
One possible fix, that works for me (and possibly for everyone else) is to change local log = require("tmux.log")
local function get_order(char)
if char == nil or char == "" then
return 0
end
return string.byte(char) - string.byte("a") + 1
end
local M = {}
function M.from(value)
if value == nil then
log.error("nil could not get parsed!")
return {}
end
value = value:sub(value:find("%d"),value:find("$"))
if value:match("^%d+%.%d+[a-z]?$") == nil then
log.error(value .. " could not get parsed!")
return {}
end
local index_dot = value:find("%.")
local index_patch = value:find("[a-z]")
local minor
if index_patch == nil then
minor = tonumber(value:sub(index_dot + 1))
else
minor = tonumber(value:sub(index_dot + 1, index_patch - 1))
end
local patch = 0
if index_patch ~= nil then
patch = get_order(value:sub(index_patch))
end
return {
major = tonumber(value:sub(1, index_dot - 1)),
minor = minor,
patch = patch,
}
end
return M Note the additional |
Heho, currently on small vacation with the family. I'll soon get home and look into the issue and the pr asap. Kind regards |
Thank you Alexander, no hurry on my end. Please enjoy your vacation with your family! |
Heho, can you please try the fix? Kind regards |
@twidxuga
all specs added for the next- release :D |
Perfect, thank you! |
Cool, ty for using my work! means much to me! |
Actually, I was just testing this. It doesn't work with:
Because the '-' is not in the Suggest just removing the
Thanks again! |
ok, i hope we got it now :D |
Just tested and confirmed it works. Cheers, much appreciated! |
Nice, thanks for the support |
It's working for me too, thank you! 🎉 |
Starting in the latest commit (cb1f401), I get the following error on startup:
next3.4
is my tmux version:I'm using
tmux-git
from the AUR.Using the previous commit (6e9597a) works without issue.
The text was updated successfully, but these errors were encountered: