Coder Social home page Coder Social logo

Comments (3)

randy3k avatar randy3k commented on August 21, 2024

I got a different error than yours

~ $ M-x eshell
~ $ rtichoke
Traceback (most recent call last):
  File "/Users/Randy/miniconda3/bin/rtichoke", line 11, in <module>
    load_entry_point('rtichoke==0.1.2', 'console_scripts', 'rtichoke')()
  File "/Users/Randy/miniconda3/lib/python3.5/site-packages/rtichoke/__init__.p\
y", line 105, in main
    RtichokeApplication(r_home).run(options)
  File "/Users/Randy/miniconda3/lib/python3.5/site-packages/rtichoke/rtichokeap\
p.py", line 157, in run
    mp = create_modal_prompt(options, history_file=".rtichoke_history", inputho\
ok=self.get_inputhook())
  File "/Users/Randy/miniconda3/lib/python3.5/site-packages/rtichoke/modalpromp\
t.py", line 328, in create_modal_prompt
    inputhook=inputhook
  File "/Users/Randy/miniconda3/lib/python3.5/site-packages/rtichoke/modalpromp\
t.py", line 90, in __init__
    self.input = input or CustomVt100Input(sys.stdin)
  File "/Users/Randy/miniconda3/lib/python3.5/site-packages/rtichoke/deps/promp\
t_toolkit/input/vt100.py", line 26, in __init__
    assert stdin.isatty()
AssertionError

It seems that emacs shell is not run on a tty? (I am not an emacs user, not sure about it)

Anyway, your error is because the terminal width cannot be determined and 0 is returned. e7a6d89 should have fixed it. Try installing the development version and see if it fixes your issue.

from radian.

dickoa avatar dickoa commented on August 21, 2024

Thanks a lot, it fixed the error, the only problem I have right now is that the R prompt disappeared (see screenshot). It's usable and thanks again for the quick fix.

rtichoke_eshell

from radian.

randy3k avatar randy3k commented on August 21, 2024

It seems emacs shell doesn't support colored prompt? Try changing the prompt settings at
https://github.com/randy3k/rtichoke#settings

from radian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.