emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
623 stars 162 forks source link

no completions in debug mode #1235

Open swhalemwo opened 1 year ago

swhalemwo commented 1 year ago

In debug mode, no completions are provided for function-specific objects. For example in the following example, I don't get completion of variables names when, after entering debug mode by evaluating asdf(mtcars), I place the cursor at the end of dfx and type $. Completion candidates are provided for global objects tho; when placing the cursor after mtcars and typing $, mtcars column names are provided.

asdf <- function(dfx) {
    browser()

    dfx
    mtcars

}

asdf(mtcars)

This seems to be the "default" behavior of R as it's the same when evaluating the code above in a separate terminal (outside of Emacs/ESS), but running the code in RStudio will also provide completion candidates for dfx. Thus, is it possible to get them in ESS as well?

lionel- commented 1 year ago

I think this is fixed in the dev version.

rdiaz02 commented 7 months ago

Is the fix merged in the melpa-available version? I just tried with ess-20240410.1836 and it is not fixed.

mmaechler commented 7 months ago

the melpa version is current .. so, it seems we only hoped it was fixed