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
2
votes
0 answers

pymacs-report-error: Python: TypeError: pymacs_load_helper() takes exactly 2 arguments (3 given)

Spent quite some time trying to install and configure Pymacs + ropemacs and friends onto my Mac OS 10.9 / Emacs 24.3 system and I am seeing the following issue when attempting to load any module (including ropemacs): pymacs-report-error: Python:…
El Gringo
  • 21
  • 1
2
votes
5 answers

How can I replace a class with another class from another module in a lot of files without a lot of manual editing?

Basically, I have a lot of Python classes (representing our database schema) that look something like this: from foo import xyz, b, c class bar(object): x = xyz() y = b() z = c() ...and I want to change it to this: from foo import b,…
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
1
vote
0 answers

Ropemacs does not work under windows environment

I am trying to use Emacs as my Python IDE under win32. I referred to several posts on the Internet and I had yasinppet, auto-complete, pymacs, ropemacs installed on my Emacs. It shows that Emacs will load python mode, rope mode, yas mode and…
kunimi
  • 61
  • 1
  • 4
1
vote
0 answers

Creating a Swinging in Unity without rigidBody

Alright so im working with swinging effect in unity FPS character controller where i need to add a swinging part . Im trying to have a swing smooth direction based on the hit point using raycasting and transform.position . For My heirarchy i have a…
1
vote
1 answer

Rename a python class with rope using a python script

Given a folder myproj with a file myclass.py myproj -- __init__.py -- myclass.py where myclass.py contains the following class definition class MyClass: pass I want to rename the class from MyClass to MyClass2 with rope. If I know that the…
MikeSchneeberger
  • 463
  • 5
  • 10
1
vote
1 answer

Is it possible to replace Rope for refactoring of python code in VS Code?

As far as I understand - Rope is not supported now: https://github.com/microsoft/vscode-python/issues/10440. How can I replace it by something else ? I don't see refactor extensions available.
Andrey
  • 5,932
  • 3
  • 17
  • 35
1
vote
1 answer

How do I prevent automatic re-folding of python code after refactoring using vim with python-mode / rope and SimpylFold

I am using vim to create and edit python code. I have python-mode installed which provides (amongst other things) refactoring via rope. I also have SimpylFold installed to provide code folding. Everything's working great apart from one annoying…
Biggsy
  • 1,306
  • 1
  • 12
  • 28
1
vote
1 answer

python-rope/ropevim doesn't work properly

I've already installed these, pip list: rope (0.10.3) ropemode (0.3) ropevim (0.7.0) All the vim plugins I have: Plugin 'gmarik/vundle' Plugin 'scrooloose/nerdtree' Plugin 'jistr/vim-nerdtree-tabs' Plugin 'altercation/vim-colors-solarized' Plugin…
Damon.M
  • 39
  • 1
  • 8
1
vote
0 answers

Rope generate autoimport cache in background

M-x rope-generate-autoimport-cache is necessary if I want to autoimport a freshly defined name (with M-x rope-auto-import), but it takes ~60 seconds for my project and happens in the foreground, so I can't use emacs while it's running. Is there a…
dinosaur
  • 3,164
  • 4
  • 28
  • 40
1
vote
1 answer

yet another pymacs helper did not start within 30 seconds (but with more debug)

I have followed this guide, and consulted these existing stackoverflow questions: Pymacs helper did not start after 30 seconds Windows 8 + Emacs 24.3 + emacs-for-python: Pymacs helper did not start within 30 seconds But unfortunately, these did…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
1
vote
1 answer

Jedi/rope/emacs configuration for python development

I think I'm having the same problem as this user in getting Jedi.el to work, but more trouble with the solution. I've installed EPC Rope ropemacs pymacs python-mode.el-6.1.3 pylint pyflakes I installed these things in a pretty vanilla way, using…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
1
vote
0 answers

Emacs hangs when using rope-goto-definition and rope-show-doc

I have installed ropemacs as part of the emacs-for-python collection of python development packages. When I use the rope-goto-definition and rope-show-doc functions to goto/show library symbols I can more or less consistently get emacs to hang. To…
Robert Kajic
  • 8,689
  • 4
  • 44
  • 43
1
vote
0 answers

How to debug python script started with python27.dll from gVim?

I am using gVim on windows 7. I am trying to investigate why rope (as part of python-mode plugin) shows me a lot of errors when I trying to use auto complete feature. Opening [C:windowssystem32] project ... Error detected while processing function…
jmistx
  • 11
  • 2
1
vote
1 answer

Ropevim error in mac os 10.8.4

I use ropevim perfectly in Ubuntu system, but i got lots of lots error. i use homebrew to install macvim and python and follow the tutorial. http://wizardmode.com/2012/07/mountain-lion-and-homebrew-vim-importerror-no-module-named-site/ I wander know…
newBike
  • 14,385
  • 29
  • 109
  • 192
1
vote
3 answers

Emacs Extension for Python Auto Complete

I'm looking for an extension which will help in Python's auto complete feature in Python. If I type the following code: a = [4,5,6] a.p Then I expect it would give me a suggestion for pop as it is one of the method of Python list. Is this thing…
Sibi
  • 47,472
  • 16
  • 95
  • 163