You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
language server should be able to fufill requests even without textdocument/didOpen Notifications #15
It can be considered as a bug. The hover reply is not sent back because the server fails to load the document content. The document content is only loaded when upon didOpen, didChange and didSave.
In my case, each of my research projects often contain 500+ R scripts, 70k+ lines of code, which is almost surely a disaster if all files are loaded on startup.
For me, a way to provide language service that makes more sense is to provide LS to a file and referenced files (#20). And completion should be independently provided for eah file for its content (#58). Or otherwise, as the project grows, the burden of LSP gets heavier; or as I open more and more files, LSP provides more and more info mixed with every file I opened.
Okay, at present it sounds like keeping the current system (automatically loading files only if the root folder is a package) is better than loading all files within the workspace.
#751 has merged and now indexes closed R files throughout projects, including workspace-symbol summaries and full parsing of package R files and static source() dependencies.
This only partially addresses the request: arbitrary hover and other document requests do not universally load an unrelated closed script on demand before didOpen. Shallow workspace indexing is not a substitute for that behavior, so this stays open.
Activity
randy3k commentedon Apr 26, 2018
It can be considered as a bug. The hover reply is not sent back because the server fails to load the document content. The document content is only loaded when upon
didOpen,didChangeanddidSave.andycraig commentedon Oct 3, 2019
Can we add a feature to automatically load all R files in the workspace on initialisation (and on workspace change)?
I think the throttling already implemented in
process_sync_inwould avoid overwhelming the computer even in workspaces with many R files.I am happy to work on this.
randy3k commentedon Oct 3, 2019
When you say all R files, what are those R files? We are already loading the R files if the root folder is a R package.
andycraig commentedon Oct 3, 2019
The case where the root folder (and possibly subfolders) contain R files, but the root directory not itself a package.
For example, in this structure I would like all of
a.R,b.Randc.Rto be loaded on startup:renkun-ken commentedon Oct 4, 2019
In my case, each of my research projects often contain 500+ R scripts, 70k+ lines of code, which is almost surely a disaster if all files are loaded on startup.
For me, a way to provide language service that makes more sense is to provide LS to a file and referenced files (#20). And completion should be independently provided for eah file for its content (#58). Or otherwise, as the project grows, the burden of LSP gets heavier; or as I open more and more files, LSP provides more and more info mixed with every file I opened.
andycraig commentedon Oct 4, 2019
Okay, at present it sounds like keeping the current system (automatically loading files only if the root folder is a package) is better than loading all files within the workspace.
renkun-ken commentedon Oct 6, 2026
#751 has merged and now indexes closed R files throughout projects, including workspace-symbol summaries and full parsing of package R files and static
source()dependencies.This only partially addresses the request: arbitrary hover and other document requests do not universally load an unrelated closed script on demand before
didOpen. Shallow workspace indexing is not a substitute for that behavior, so this stays open.