Skip to content

Maybe we should prevent creating a .ropeproject/config.py #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
segevfiner opened this issue Jan 17, 2018 · 6 comments
Closed

Maybe we should prevent creating a .ropeproject/config.py #230

segevfiner opened this issue Jan 17, 2018 · 6 comments

Comments

@segevfiner
Copy link

When you use pyls today, it ends up creating a .ropeproject/config.py in any project that you open with it. This might make sense for users who use rope directly, but less so for someone unfamiliar with it, who just tried to use pyls and ends up with a new untracked file in his VCS.

Maybe something should be done to prevent it's creation by pyls? (If at all possible...)

@exploide
Copy link
Contributor

I also thought of this and according to the documentation it is possible to suppress folder creation: https://github.com/python-rope/rope/blob/master/docs/library.rst#ropeproject-folder

However, I'm not familiar with rope and do not know what exactly is done with this folder and if it is reasonable to disable it or if it would lead to performance problems or whatever.

@segevfiner
Copy link
Author

segevfiner commented Jan 18, 2018 via email

@segevfiner
Copy link
Author

I guess the first two things that can be done are making the Rope Project initialization lazy rather than at the initialization of pyls (I think it's in workspace.py), and adding a configuration value for the location of .ropeproject that can also include some replacement variables like $PROJECT or {PROJECT} etc that can be used to relocate it to a project dependent location outside of the project directory.

I wonder what other projects using Rope do...

@evandrocoan
Copy link
Contributor

I am attempting to create a setting on #253 to disable the folder creation. You guys can test and see if it is working correctly for you.

@mcepl
Copy link

mcepl commented Feb 19, 2018

If you disable creating this folder, please, make it optional. There are some fun things I do with ~/.ropeproject/config.py, which I would miss.

@gatesn
Copy link
Contributor

gatesn commented Mar 25, 2018

I believe this PR means you won't get a rope project if it's not installed: #301

@gatesn gatesn closed this as completed Mar 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants