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

Telescope git_worktrees error (Expected lua number parse_line) #97

Open
perseoGI opened this issue Sep 7, 2022 · 7 comments · May be fixed by #106
Open

Telescope git_worktrees error (Expected lua number parse_line) #97

perseoGI opened this issue Sep 7, 2022 · 7 comments · May be fixed by #106

Comments

@perseoGI
Copy link

perseoGI commented Sep 7, 2022

Hi Prime, love your work!
Huge fan from Spain :3

I'm trying to use the Telescope git_worktrees functionality but I'm getting this error:
image

FYI git-worktree-nvim.log is empty.

I'm trying to figure out if is something wrong with my telescope config but the create_git_worktree extension works perfectly.

Any tip?
Thanks in advance.

Pd. Im using NvChad so pasting my config could be confusing. Just want to know if this error is known by you or if not, will talk with NvChad community.

@jay-babu
Copy link

I am also getting same exact error. I use astronvim

@jay-babu
Copy link

image

Screenshot for reference

@aaronhallaert
Copy link

A hotfix I use at the moment:
Note: It seems to work but I have not really looked into the issue, seems like telescope.state#get_status (used in calc_result_length) always outputs an empty table, so maybe this a telescope issue and not an issue of this plugin?

-> Comment out the following lines

                -- if key == 'path' then
                --     local new_path = utils.transform_path(opts, entry[key])
                --     local path_len = strings.strdisplaywidth(new_path or "")
                --     widths[key] = math.max(val, path_len)
                -- else
                    widths[key] = math.max(val, strings.strdisplaywidth(entry[key] or ""))
                -- end

@perseoGI
Copy link
Author

Thank you @aaronhallaert, this temp fix is now working!
@ThePrimeagen take a look into it

@cytommi
Copy link

cytommi commented Oct 12, 2022

@ThePrimeagen would appreciate you taking a look at this!

br1anchen added a commit to br1anchen/git-worktree.nvim that referenced this issue Oct 18, 2022
@mawkler
Copy link

mawkler commented Nov 9, 2022

@ThePrimeagen Here's a second reminder to take a look at this 🙂

@brandoncc
Copy link
Contributor

I put up a fix PR #106

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

Successfully merging a pull request may close this issue.

6 participants