emacs-ess / ESS

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

Error whie running `ess-remote` #1142

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi,

When open a shell, ssh into a remote server, then start R and run ess-remote, I get the following error output in the iESS buffer. It looks like some libraries are missing or something. I've installed ESS using straight. The installation details are at the end. This makes Emacs unusable as Emacs keeps hanging every few seconds for a long time every time.


R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> options(pager='cat')
> Error: object 'unquote' not found
> Error: unexpected '}' in "    }"
> Error: object '.ess.command' not found
> Error: object 's' not found
> Error: object 'i' not found
> + + + Error: unexpected symbol in:
"        if (sinked
            sink"
> Error: unexpected '}' in "    }"
> Error: object 'wri' not found
> Error: object 'func' not found
> + > Error: unexpected '}' in "    }"
> Error in withVisible(expr) : object 'expr' not found
> Error: unexpected ')' in "    )"
> + + + + + Error: unexpected '}' in:
" 
}"
> Error: object '.ess.' not found
> Error: unexpected '}' in "}"
> + + > + + > > Error: unexpected '}' in "}"
> + Error: object 'classesNs' not found
> + Error: object 'newClasses' not found
> Error: object 'allMethodTables' not found
> Error in as.character(x) : 
  cannot coerce type 'closure' to vector of type 'character'
> Error: object 'methodsN' not found
> + Error: unexpected symbol in:
"    for (i in seq
        table"
> Error: object 'tableE' not found
> + + + + Error: unexpected '}' in:
"              
        }"
> + Error: unexpected 'if' in:
"            inserted <- .ess.ns_insertMethods(ta
            if"
> + Error: unexpected '}' in:
"                newMethods <
        }"
> + Error: unexpected symbol in:
"            .ess.assign(table, tableEnv, envir = f
            newMethods"
> Error: unexpected '}' in "        }"
> Error: unexpected '}' in "    }"
> + + Error: unexpected 'if' in:
"        objectsNs <- c(obj
    if"
> + + Error: unexpected 'if' in:
"
    if"
> + + + Error: unexpected 'if' in:
"                sprin
            if"
> + Error: unexpected 'if' in:
"                sprintf("NS: %s", paste(objec
            if"
> Error: object '.e' not found
> + + + Error: unexpected '}' in:
"                sprintf("%s: %s", env_name, paste(newO
            }"
> + + + Error: unexpected '}' in:
"
    }"
> Error: object 'invis' not found
> Error: unexpected '}' in "}"
> 
Error: unexpected '}' in "}"
> options(STERM='iESS', str.dendrogram.last="'", editor='emacsclient', show.error.locations=TRUE)
> 

Installation details:

Emacs version: GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian
Operating System: Ubuntu 20.04.2 LTS (Focal Fossa)
Evil version: 1.14.0
ESS version: 18.10.3
Evil, ESS installation type: using straight
lionel- commented 3 years ago

This looks like an installation issue that you will have to fix.

ghost commented 3 years ago

OK. I've just switched to using straight as a package manager, I will try to re-install it.

alexey0308 commented 3 years ago

Can the reason be in that straight.el just clones the repository and does not run make command? The distributed package has a different folder structure: it is like when etc folder is located inside the lisp folder, but in the git they are separate directories.

ghost commented 3 years ago

Hmmm. Doesn't seem to be related to straight. I've deleted ESS from both straight repo and build folders. Then installed it using Emacs. So, the ESS version reads: ess-version: 18.10.3snapshot [elpa: 20210412.2046] (loaded from /home/my_username/.emacs.d/elpa/ess-20210412.2046/). But I have the same error. Other packages are loaded by straight, I don't imagine they have anything to do with ESS.

malcook commented 2 years ago

Hi - unsure why this was closed. By my sights this issue remains and is being discussed/worked on in ##1163 Though I'm interested in any workarounds you may have found, @ghost.