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

Documentation not working with R 4.1.1 #468

Closed
renkun-ken opened this issue Aug 12, 2021 · 1 comment · Fixed by #469
Closed

Documentation not working with R 4.1.1 #468

renkun-ken opened this issue Aug 12, 2021 · 1 comment · Fixed by #469

Comments

@renkun-ken
Copy link
Member

renkun-ken commented Aug 12, 2021

Looks like an upstream issue of repr:

[2021-08-12 13:16:43.195] internal error: Error: argument must be coercible to non-negative integer
Call: seq_len(head.end.idx)
Stack trace:
1: repr_help_files_with_topic_generic(obj, Rd2HTML)
2: repr_html.help_files_with_topic(hfile)
3: repr::repr_html(hfile)
4: workspace$get_help(token_result$token, token_result$package)
5: hover_reply(id, uri, self$workspace, document, point)
6: self$deliver(hover_reply(id, uri, self$workspace, document, point))
7: dispatch(self, id, params)

[2021-08-12 13:16:43.199] deliver:  ["Response", "Response", "Message", "R6"]

[Error - 1:16:43 PM] Request textDocument/hover failed.
  Message: Error: argument must be coercible to non-negative integer
Call: seq_len(head.end.idx)
Stack trace:
1: repr_help_files_with_topic_generic(obj, Rd2HTML)
2: repr_html.help_files_with_topic(hfile)
3: repr::repr_html(hfile)
4: workspace$get_help(token_result$token, token_result$package)
5: hover_reply(id, uri, self$workspace, document, point)
6: self$deliver(hover_reply(id, uri, self$workspace, document, point))
7: dispatch(self, id, params)
@renkun-ken
Copy link
Member Author

I think we should use an internal get-help function instead of relying on repr since it is quite simple.

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.

1 participant