ropemacs icon indicating copy to clipboard operation
ropemacs copied to clipboard

Ropemacs has problems with Windows project paths if case is not exactly as on disk

Open Vultaire opened this issue 8 years ago • 1 comments

I've been wrestling with an issue where ropemacs seems to work intermittently on Windows. That is, it technically loads, but when I try to preview a change for e.g. a rename, the preview operation has no actual content, e.g.:

Renaming <foo> to <bar>:

Today I traced it, and it does not seem to be intermittent, but rather depends on how my project directory is opened up.

For the sake of the example, my test project is located at c:/Users/pdgoins/code/ropetest/ (exact case).

If I use the GUI menu and select Rope -> Refactor -> Rename, then select my project folder, everything works fine.

If I instead use "C-c r r" or "M-x rope-rename", and if I allow there to be a tilde in my path (e.g. ~/code/ropetest/), I'll run into this problem. I'll also run into this problem if I use c:/users/pdgoins/code/ropetest/ (missing the capital U on Users).

Ropemacs is only working if I open the project using the exact casing of the path: c:/Users/pdgoins/code/ropetest/.

Vultaire avatar Jan 26 '17 23:01 Vultaire

By the way, here are my installed packages from "pip list":

Pymacs (0.23) (with patch applied from ropemacs docs folder) rope (0.10.3) ropemacs (0.8) ropemode (0.4)

Emacs version is 25.1.1. OS is Windows 7.

Vultaire avatar Jan 26 '17 23:01 Vultaire