REditorSupport / REditorSupport/languageserver
Reload package if updated
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 675
- Forks
- 118
- Avg merge
- 1d 37m
- Merged PRs (30d)
- 11
Description
If a package languageserver has loaded is updated or reinstalled, existing R sessions that have already loaded the package may result in the following error:
[Error - 4:38:20 PM] Request textDocument/hover failed.
Message: Error: lazy-load database '/home/ken/R/x86_64-pc-linux-gnu-library/3.6/pkg/help/pkg.rdb' is corrupt
Call: fetch(key)
Stack trace:
1: fetch(key)
2: fun(environment())
3: lazyLoadDBexec(filebase, fun)
4: fetch_rd_db(rd_db, basename(file))
5: get_help_file(file)
6: repr_help_files_with_topic_generic(obj, Rd2txt)
7: repr_text.help_files_with_topic(hfile)
8: repr::repr_text(hfile)
9: workspace$get_help(token_result$token, token_result$package)
10: hover_reply(id, uri, self$workspace, document, point)
11: self$deliver(hover_reply(id, uri, self$workspace, document, point))
12: dispatch(self, id, params)
Code: -32603
I'm wondering if there's any possibility to reload the package to refresh the information?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the hover_reply and workspace$get_help calls shown in the stack trace, and trace how loaded packages are accessed during hover requests. Reproduce the failure after updating or reinstalling a package in an existing R session; done means package information can be refreshed without the lazy-load database error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100