emacs-ess / ESS

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

Improper parsing of command when using `M-/` for completion. #1164

Closed bryce-carson closed 2 years ago

bryce-carson commented 3 years ago

As per the title, this is the parsing issue I encounter occasionally when I use ess expansions:

> filenamesAndParameters$outputIndFitnessFilename
outputIndFitnessFilename
Error: object 'outputIndFitnessFilename' not found
lionel- commented 3 years ago

I don't see these symbols in the ESS code base so I'm guessing they come from a script you've opened?

Can you post a full reprex please?

bryce-carson commented 3 years ago

Yes, they're objects and columns within an R script I'm working on.

It's an issue that occurs during interactive use, sporadically, so a reprex as I know it wouldn't be helpful, but I can post steps.

Occasionally, only the expanded part of the name is sent to the comint, apple in this case, which will produce an object not found error unless something with the same name actually exists.

vspinu commented 3 years ago

This is strange. I never experienced this and cannot reproduce. What is M-/ is bound to for you?

bryce-carson commented 2 years ago

It appears that M-/ is bound to hippie-expand. I can't reproduce the problem now either, so I'm closing this issue.