[英]How can I get tab-completion to work in gdb's Python-interactive (pi) shell?
[英]tab-completion not work in emacs shell running ipdb (but in normal bash shell it works)
我一直在嘗試各種stackoverflow討論中的很多提示和技巧,但是我無法解決這個問題,請幫助:
我有這個python腳本:
a = [44, 22]
import ipdb
ipdb.set_trace()
當我運行它時,我按預期得到ipdb提示符,當我輸入“a.TAB”時,一些自動完成功能會建議所有這樣的函數:
ipdb> a.
a.append a.count a.extend a.index a.insert a.pop a.remove a.reverse a.sort
當我做同樣的事情,但然后從emacs shell中,選項卡完成不起作用。 我指的是TAB和M-TAB。 在這種情況下,Emacs告訴我“不匹配”。 順便說一下:當我編輯python文件時,M-TAB 確實完成了。 這件事對我來說有點麻煩(這是一個很小的輕描淡寫)。
我已經安裝了許多建議的軟件包:
auto-complete 1.5.0 installed Auto Completion for GNU Emacs
company 0.8.11 installed Modular text completion framework
concurrent 0.3.2 installed Concurrent utility functions for emacs lisp
ctable 0.1.2 installed Table component for Emacs Lisp
deferred 0.3.2 installed Simple asynchronous functions for emacs lisp
elpy 1.7.0 installed Emacs Python Development Environment
epc 0.1.1 installed A RPC stack for the Emacs Lisp
find-file-in-pr... 3.3 installed Find files in a project quickly.
highlight-inden... 0.5.0 installed Function for highlighting indentation
jedi 0.1.2 installed Python auto-completion for Emacs
popup 0.5.2 installed Visual Popup User Interface
python-environment 0.0.1 installed virtualenv API for Emacs Lisp
pyvenv 1.6 installed Python virtual environment interface
yasnippet 0.9.0.1 installed Yet another snippet extension for Emacs.
順便說一下:選項Mx RET jedi:install-server在此設置中不可用。
我的環境:
ubuntu 14.04 LTS
emacs 24.3.1
我也嘗試(並且也沒有工作)使用安裝了軟件包的不穩定的melpa源代碼( http://melpa.milkbox.net/packages ):
auto-complete 20150218.819 installed Auto Completion for GNU Emacs
company 20150224.... installed Modular text completion framework
concurrent 20150205.616 installed Concurrent utility functions for emacs lisp
ctable 20140304.... installed Table component for Emacs Lisp
deferred 20150205.616 installed Simple asynchronous functions for emacs lisp
elpy 20150206.... installed Emacs Python Development Environment
epc 20140609.... installed A RPC stack for the Emacs Lisp
find-file-in-pr... 20141214.... installed Find files in a project quickly.
highlight-inden... 20150122.44 installed Minor modes for highlighting indentation
jedi 20150217.... installed Python auto-completion for Emacs
popup 20150116.... installed Visual Popup User Interface
python-environment 20140321.... installed virtualenv API for Emacs Lisp
pyvenv 20150218.... installed Python virtual environment interface
yasnippet 20150212.240 installed Yet another snippet extension for Emacs.
順便說一句:選項Mx RET jedi:安裝服務器IS在此設置中可用。
有任何想法嗎 ... ?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.