Questions tagged [rope]

Rope is a python refactoring library that is useful for renaming or restructuring python classes / methods / variables / constants. Not to be confused with the [tag:ropes] data structure.

Rope is a python refactoring library that is useful for renaming or restructuring python classes / methods / variables / constants. Not to be confused with the data structure.

61 questions
1
vote
0 answers

vim code completion and PyDoc problems

Unfortunately, I am not able to get os.path.join as code completion only os.path. The other problem is that pydoc is not open automatically in a new window above the source code. How is it possible to fix that problem? I did :RopeOpenProject and my…
user977828
  • 7,259
  • 16
  • 66
  • 117
1
vote
1 answer

rope-auto-import did not work

virtualenv env pip install -e git+https://github.com/pinard/Pymacs.git@v0.24-beta2#egg=Pymacs-dev pip install -e hg+https://bitbucket.org/agr/rope#egg=rope-dev pip install -e hg+https://bitbucket.org/agr/ropemacs#egg=ropemacs-trunk pip install -e…
luthur
  • 403
  • 4
  • 13
1
vote
0 answers

Emacs to autocomplete all imported module functions

I have been using rope, ropemacs and pymacs for my autocompletion. It does pretty well, but I noticed that there is some limitation to the amount of completion it aids in. It only seems to complete the classes for the modules imported not all of the…
Randolph
  • 951
  • 2
  • 11
  • 24
1
vote
1 answer

Remove *args and **kwargs from method signatures using rope

I'm using eric4 and its rope plug-in to refactor some code. I have many method whose signatures use the *args and **kwargs syntax. I'd like to change these signatures an remove this parameters. I've tried using the Refactoring>Refactoring>Change…
Bakuriu
  • 98,325
  • 22
  • 197
  • 231
1
vote
1 answer

Rope and Yasnippet in Emacs

I setup python support for emacs using rope and yasnippet by following the tutorial given at http://www.enigmacurry.com/2009/01/21/autocompleteel-python-code-completion-in-emacs/#disqus_thread. I declared a string variable a_str="Hello". Now when i…
Kris
  • 1,403
  • 3
  • 17
  • 26
0
votes
2 answers

How can I insert new modules in PYTHONPATH?

I'm installing http://bitbucket.org/agr/ropemacs for my emacs. In README.txt it say: Note that rope and ropemacs should be in your PYTHONPATH for this to work. I check my sys.path python, but there is't any ropemacs there! but I have installed…
Milad Khajavi
  • 2,769
  • 9
  • 41
  • 66
0
votes
2 answers

How to start ropemacs-mode automatically?

When I open a python file I have to manually start ropemacs-mode to get the key bindings each time. I tried adding something like this to automatically start ropemacs: (add-hook 'python-mode-hook (lambda () …
2daaa
  • 2,788
  • 7
  • 33
  • 44
0
votes
1 answer

Refactor: "Extract Method" error and unexpected outcome

I'm experiencing weird refactoring behavior. With this line of code: variable = 1 + 2 + 3 When I try to extract a variable, by highlighting "1 + 2", then right click -> choose "extract variable" option, i get this outcome: newvariable74 = 1 + 2 a =…
alon sirota
  • 57
  • 1
  • 7
0
votes
1 answer

Can you pipe ropemacs suggestions to another command?

is there a way of getting the completions suggestions from ropemacs' rope-code-assist (bound to "M-/" in ropemode) to use in another command? What I'm trying to do is something like this: (defun rope-completions-in-ido () (interactive) …
Felipe
  • 3,003
  • 2
  • 26
  • 44
0
votes
2 answers

Python + rope: setting ignored resource patterns?

The rope documentation says that: Each project has a set of ignored resource patterns But nowhere does it mention how to configure that list. How do I configure the list of ignored resources for my project?
David Wolever
  • 148,955
  • 89
  • 346
  • 502
0
votes
1 answer

Bind rope-auto-import to a keyboard shortcut in emacs

The way I know to auto-import using rope is to move my cursor to the name I want to import and do M-x rope-auto-import. I'd like to bind rope-auto-import to a keyboard shortcut to make this faster.
dinosaur
  • 3,164
  • 4
  • 28
  • 40
0
votes
1 answer

Installing ropemacs using el-get-install

I am trying to set up Emacs for debugging Python scripts, as described in this blog. I am using Emacs version 24.3 on Ubuntu 14.04. When running el-get-install ropemacs from Emacs as suggested in this answer, I get error: abort: HTTP Error 503:…
Håkon Hægland
  • 39,012
  • 21
  • 81
  • 174
0
votes
1 answer

Errors when opening VIM (pathogen,rope,python)

After a system upgrade to: Distributor ID: Ubuntu Description: Ubuntu 12.04.2 LTS Release: 12.04 Codename: precise Each time I open vim I get these errors, any hint? If needed I can provide .vimrc file. Thanks in advance! "new.py"…
AJN
  • 1,196
  • 2
  • 19
  • 47
0
votes
1 answer

ST2- Adding custom directory for Auto Completion (SublimeRope)

http://sublimerope.readthedocs.org/en/latest/cache_mechanisms.html I want to add a custom directory from where I want auto completion. The Old Way mentioned on the above page does that job with prefs.add('python_path', '/home/abc/custom/') , but the…
user1265125
  • 2,608
  • 8
  • 42
  • 65
0
votes
1 answer

Jumping to Python library sources with epy/emacs

I am using epy/ropemacs for my python project. "C-c g" (rope-goto-definition) works fine if the target is my source file. But it doesnt jump to third party source files. What I want to be able to do is jump to relevant third party source files.…
Raghu
  • 2,004
  • 1
  • 16
  • 18