Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do I specify for "Rope project root folder: . " with python files and RopeVim plugin?

Tags:

python

vim

macvim

I've installed the plugin RopeVim (using Pathogen) and it seems to be working.

Now when I call :RopeGoToDefinition with my vim cursor (in command mode) on a function I'd like to see the definition of...I get:

Rope project root folder: .

displayed in the status line of my vim (fwiw, I'm using MacVim).

What is the proper folder to specify here?

My project folder structure has a root folder, and various subdirs. I can't even tell if I should be specifying a system filepath or a python-style module.

like image 857
Bodhi Avatar asked Mar 26 '12 06:03

Bodhi


1 Answers

See https://github.com/python-rope/rope/blob/master/docs/overview.rst#ropeproject-folder and the Getting Started section of https://github.com/python-rope/rope/blob/master/README.rst

You can stick it anywhere, but you probably want to use the root directory of your project. Note how the prompt defaults to ., the current directory. If your file is in the root directory, you can just hit Enter to accept that default. Otherwise, try something like ../.. or /path/to/root.

like image 55
darkfeline Avatar answered Nov 04 '22 10:11

darkfeline