Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Accessing/suggesting completion and doc for functions 'called' via namespace and the namespace access operators (double/triple colon)

Aperta
#730 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
r

Direzione di ricerca

Inizia riproducendo il completamento e la ricerca della documentazione per purrr::wal e purrr:::wal in languageserver senza una dichiarazione library. Leggi innanzitutto il comportamento esistente del completamento LSP e della documentazione per i pacchetti collegati, quindi traccia come viene rappresentato l’accesso ai namespace. Il lavoro è completato quando le funzioni con namespace possono essere suggerite e la relativa documentazione può essere consultata nei casi descritti, con test che coprano questo comportamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi,

TL;DR

When packages are declared to be attached via library, languageserver suggests their functions as completions and gives access to their documentation. However, when a function is accessed via namespace + access operator (e.g. typing purrr::wal for purrr::walk) without a library declaration, it does not work.
Is there something I miss, or do you think you could implement such functionality?

Extended description

I mainly use R via Emacs (ess-r-mode, from the pkg Emacs Speaks Statistics, and r-ts-mode, from ESR pkg). ESS, in the same vein I think as RStudio, provides a completion system that allows to have e.g. purrr::walk suggested when typing purrr::wal, and gives access to its documentation. The drawback is that this completion system requires to have an associated R process running.

On the other hand, r-ts-mode leverages tree-sitter and, coupled with e.g. Eglot (Emacs-native LSP client), provides a pretty interesting IDE solution. However, the LSP features it gives access to is determined by languageserver, and since typing e.g. purrr::wal does not suggest purrr::walk , I guess the functionality is missing from languageserver itself.

While it is possible that there is something I am missing in my current Eglot + languageserver config, I am rather confident that the 'issue' comes from languageserver. Do you think implementing the previously described functionality would be feasible?

Finally, many thanks for your work with languageserver.

Edit: languageserver 0.3.18 and R 4.6.0

Lingua principale
R
Stelle
675
Fork
118
Merge medio
1g 11h
PR unite (30g)
11

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di REditorSupport/languageserver

Tutte le issue di REditorSupport/languageserver

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.