Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Is it possible to use rope without creating a project?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  16 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
magcius  
View profile  
 More options Apr 26 2010, 4:39 am
From: magcius <jstpie...@mecheye.net>
Date: Mon, 26 Apr 2010 01:39:37 -0700 (PDT)
Local: Mon, Apr 26 2010 4:39 am
Subject: Is it possible to use rope without creating a project?
Sometimes I like to edit single scripts or test files in my home
folder. And creating a project in there will cause rope/emacs to
freeze when I open it. The files in my home folder aren't really
related, so I'm wondering if it's possible to use rope in a "single-
script" mode that doesn't try to use a project. I'd just like rope for
completing the stdlib and things in the same file stuff.

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Gholami Rudi  
View profile  
 More options Apr 26 2010, 7:13 am
From: Ali Gholami Rudi <aligr...@gmail.com>
Date: Mon, 26 Apr 2010 15:43:46 +0430
Local: Mon, Apr 26 2010 7:13 am
Subject: Re: Is it possible to use rope without creating a project?
Hi,

magcius <jstpie...@mecheye.net> wrote:
> Sometimes I like to edit single scripts or test files in my home
> folder. And creating a project in there will cause rope/emacs to
> freeze when I open it. The files in my home folder aren't really
> related, so I'm wondering if it's possible to use rope in a "single-
> script" mode that doesn't try to use a project. I'd just like rope for
> completing the stdlib and things in the same file stuff.

You can call rope-open-project on an empty temporary folder.  After
that, rope commands should not show the open project prompt again.
I'm not sure if that can be called non-interactively; does putting
(rope-open-project "/tmp/") inside .emacs work?

Anyway, AFAIR refactorings won't work for out-of-project modules.

        Ali

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jasper St. Pierre  
View profile  
 More options Apr 26 2010, 9:50 am
From: "Jasper St. Pierre" <jstpie...@mecheye.net>
Date: Mon, 26 Apr 2010 09:50:45 -0400
Local: Mon, Apr 26 2010 9:50 am
Subject: Re: Is it possible to use rope without creating a project?

I rarely use refactorings. Anyway, I use rope-guess-project, so if I have
/tmp/ opened and I open
/home/myproject/package/two/three.py, will it be smart enough to look to see
that
/home/myproject/.ropeproject/ exists and open that?

On Mon, Apr 26, 2010 at 7:13 AM, Ali Gholami Rudi <aligr...@gmail.com>wrote:

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Gholami Rudi  
View profile  
 More options Apr 26 2010, 10:01 am
From: Ali Gholami Rudi <aligr...@gmail.com>
Date: Mon, 26 Apr 2010 18:31:49 +0430
Local: Mon, Apr 26 2010 10:01 am
Subject: Re: Is it possible to use rope without creating a project?
Hi,

"Jasper St. Pierre" <jstpie...@mecheye.net> wrote:

> I rarely use refactorings. Anyway, I use rope-guess-project, so if I have
> /tmp/ opened and I open
> /home/myproject/package/two/three.py, will it be smart enough to look to see that
> /home/myproject/.ropeproject/ exists and open that?

No, you have to close the project first (or open the second one
which closes the first automatically).  That's not always bad;
sometimes you just want to have a look at a module outside current
project, maybe via goto definition, and go back.

But if you really want that behavior, that doesn't seem hard.
See _check_project() in ropemode/interface.py.  Maybe this works:

[not meant for the mainline!]

--- a/ropemode/ropemode/interface.py    2009-12-28 02:33:29.000000000 +0330
+++ b/ropemode/ropemode/interface.py    2010-04-26 18:38:44.906912280 +0430
@@ -419,7 +419,10 @@
             else:
                 self.open_project()
         else:
-            self.project.validate(self.project.root)
+            if self.env.get('guess_project') and self._guess_project():
+                self.open_project(self._guess_project())
+            else:
+                self.project.validate(self.project.root)

     def _guess_project(self):
         cwd = self.env.filename()

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Gholami Rudi  
View profile  
 More options Apr 26 2010, 12:55 pm
From: Ali Gholami Rudi <aligr...@gmail.com>
Date: Mon, 26 Apr 2010 21:25:15 +0430
Local: Mon, Apr 26 2010 12:55 pm
Subject: Re: Is it possible to use rope without creating a project?
Hi,

"Jasper St. Pierre" <jstpie...@mecheye.net> wrote:

> Oh, that reminds me of another bug/feature. If I open a file with
> goto-definition, the buffer is readonly. Even if the
> file is already open in a buffer, and I goto-definition, it turns the buffer
> readonly I don't like that.

See _goto_location() in ropemode/interface.py; it opens the
file in readonly mode when the file is outside current project;
resource.project is an instance of NoProject for files outside
current project.  This fixes the bug, but out-of-project files
are no longer opened readonly, is this behavior change OK?
Otherwise one can change the find_file() in ropemacs not to
toggle a file readonly if it is already open.

--- a/ropemode/ropemode/interface.py    2009-12-28 02:33:29.000000000 +0330
+++ b/ropemode/ropemode/interface.py    2010-04-26 21:31:52.941057942 +0430
@@ -385,8 +385,7 @@

     def _goto_location(self, resource, lineno):
         if resource:
-            self.env.find_file(str(resource.real_path),
-                               resource.project != self.project)
+            self.env.find_file(str(resource.real_path))
         if lineno:
             self.env.goto_line(lineno)

        Ali

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Gholami Rudi  
View profile   Translate to Translated (View Original)
 More options Apr 26 2010, 2:40 pm
From: Ali Gholami Rudi <aligr...@gmail.com>
Date: Mon, 26 Apr 2010 23:10:20 +0430
Local: Mon, Apr 26 2010 2:40 pm
Subject: Re: Is it possible to use rope without creating a project?
Hi,

"Jasper St. Pierre" <jstpie...@mecheye.net> wrote:

> > See _goto_location() in ropemode/interface.py; it opens the
> > file in readonly mode when the file is outside current project;
> > resource.project is an instance of NoProject for files outside
> > current project.  This fixes the bug, but out-of-project files
> > are no longer opened readonly, is this behavior change OK?
> > Otherwise one can change the find_file() in ropemacs not to
> > toggle a file readonly if it is already open.

> I don't understand this readonly stuff. I don't think it's ever useful.

angri, what do you think?

Thanks,
Ali

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
general  
View profile  
 More options Apr 26 2010, 3:02 pm
From: general <gene...@angri.ru>
Date: Mon, 26 Apr 2010 23:02:28 +0400
Local: Mon, Apr 26 2010 3:02 pm
Subject: Re: Is it possible to use rope without creating a project?
Hi,

2010/4/26 Ali Gholami Rudi <aligr...@gmail.com>:

I don't see a big problem with the fact that after "go to definition"
you get to read-only buffer. I usually do ":set modifieable" if i need
to modify it and thats all.

Maybe the more useable feature would be to open definition found in
new buffer. But, again, I don't see a problem here.

--
angri

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Gholami Rudi  
View profile  
 More options Apr 26 2010, 3:18 pm
From: Ali Gholami Rudi <aligr...@gmail.com>
Date: Mon, 26 Apr 2010 23:48:09 +0430
Local: Mon, Apr 26 2010 3:18 pm
Subject: Re: Is it possible to use rope without creating a project?
Hi,

general <gene...@angri.ru> wrote:
> I don't see a big problem with the fact that after "go to definition"
> you get to read-only buffer. I usually do ":set modifieable" if i need
> to modify it and thats all.

> Maybe the more useable feature would be to open definition found in
> new buffer. But, again, I don't see a problem here.

Then what about this patch?  (I'm not sure if ropevim_goto_def_newwin
is the best possible name for it though; rename it if you can think of
a better one :-) ).

Thanks,
Ali

--- a/ropemode/ropemode/interface.py    2009-12-28 02:33:29.000000000 +0330
+++ b/ropemode/ropemode/interface.py    2010-04-26 23:47:57.620044444 +0430
@@ -385,8 +385,8 @@

     def _goto_location(self, resource, lineno):
         if resource:
-            self.env.find_file(str(resource.real_path),
-                               resource.project != self.project)
+            self.env.find_file(resource.real_path,
+                               other=self.env.get('goto_def_newwin'))
         if lineno:
             self.env.goto_line(lineno)

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jasper St. Pierre  
View profile  
 More options Apr 26 2010, 3:42 pm
From: "Jasper St. Pierre" <jstpie...@mecheye.net>
Date: Mon, 26 Apr 2010 15:42:43 -0400
Local: Mon, Apr 26 2010 3:42 pm
Subject: Re: Is it possible to use rope without creating a project?

Well, angri, it's not that useful for us using emacs because
there's no way to make it modifyable again except open it.

On Mon, Apr 26, 2010 at 3:18 PM, Ali Gholami Rudi <aligr...@gmail.com>wrote:

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Gholami Rudi  
View profile  
 More options Apr 27 2010, 12:03 am
From: Ali Gholami Rudi <aligr...@gmail.com>
Date: Tue, 27 Apr 2010 08:33:38 +0430
Local: Tues, Apr 27 2010 12:03 am
Subject: Re: Is it possible to use rope without creating a project?
Hi,

"Jasper St. Pierre" <jstpie...@mecheye.net> wrote:

> Well, angri, it's not that useful for us using emacs because
> there's no way to make it modifyable again except open it.

C-c C-q should work, AFAIR.

        Ali

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Darren Hoo  
View profile  
 More options Apr 27 2010, 5:47 am
From: Darren Hoo <darren....@gmail.com>
Date: Tue, 27 Apr 2010 17:47:54 +0800
Local: Tues, Apr 27 2010 5:47 am
Subject: Re: Is it possible to use rope without creating a project?
On Tue, Apr 27, 2010 at 12:03 PM, Ali Gholami Rudi <aligr...@gmail.com> wrote:
> Hi,

> "Jasper St. Pierre" <jstpie...@mecheye.net> wrote:
>> Well, angri, it's not that useful for us using emacs because
>> there's no way to make it modifyable again except open it.

> C-c C-q should work, AFAIR.

you mean C-x C-q?

I found this bothers me a lot when the file opend does not
belong to the current  project.I think it would be better to first
check the file whether it is opened or not, if it is already open,
then just switch to  that buffer without change the  modifyable
status, if it is not opened yet then open it readonly.

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
general  
View profile  
 More options Apr 27 2010, 8:29 am
From: general <gene...@angri.ru>
Date: Tue, 27 Apr 2010 16:29:19 +0400
Local: Tues, Apr 27 2010 8:29 am
Subject: Re: Is it possible to use rope without creating a project?
Hi,

2010/4/27 Darren Hoo <darren....@gmail.com>:

I'm agree, that would be great.

--
angri

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Gholami Rudi  
View profile  
 More options Apr 27 2010, 10:02 am
From: Ali Gholami Rudi <aligr...@gmail.com>
Date: Tue, 27 Apr 2010 18:32:44 +0430
Local: Tues, Apr 27 2010 10:02 am
Subject: Re: Is it possible to use rope without creating a project?
Hi,

general <gene...@angri.ru> wrote:
> > I found this bothers me a lot when the file opend does not
> > belong to the current project.I think it would be better to first
> > check the file whether it is opened or not, if it is already open,
> > then just switch to that buffer without change the modifyable
> > status, if it is not opened yet then open it readonly.

> I'm agree, that would be great.

The patch in my last mail should do it; it doesn't open files
in readonly mode anymore and based on goto_def_newwin config
(ropevim_goto_def_newwin in ropevim and ropemacs-goto-def-newwin
in ropemacs) opens the definition in a new window.  But I haven't
tested it.  If you don't see any problems with it, would you take
it?

Thanks,
Ali

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
general  
View profile  
 More options Apr 27 2010, 11:58 am
From: general <gene...@angri.ru>
Date: Tue, 27 Apr 2010 19:58:47 +0400
Local: Tues, Apr 27 2010 11:58 am
Subject: Re: Is it possible to use rope without creating a project?
Hi,

2010/4/27 Ali Gholami Rudi <aligr...@gmail.com>:

I've tested the patch and it works like a charm! :)

I've commited it as two distinct changes: first for opening file in
new buffer and second for disabling nomodifieable buffers. And I've
commited a notice in ropevim/README.txt about new ropevim_envvar.

Thanks!

--
angri

--
Subscription settings: http://groups.google.com/group/rope-dev/subscribe?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Raghunandan Rao  
View profile  
 More options Sep 15 2012, 11:37 am
From: Raghunandan Rao <r.raghunan...@gmail.com>
Date: Sat, 15 Sep 2012 08:37:50 -0700 (PDT)
Local: Sat, Sep 15 2012 11:37 am
Subject: Re: Is it possible to use rope without creating a project?

Hi
I have tried to set ropeemacs-goto-def-newwin. This doesn't seem to be
working. What am I doing wrong?

(setq-default ropeemacs-goto-def-newwin t)
(setq ropeemacs-goto-def-newwin t)
(set 'ropeemacs-goto-def-newwin t)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Raghunandan Rao  
View profile  
 More options Sep 15 2012, 11:50 am
From: Raghunandan Rao <r.raghunan...@gmail.com>
Date: Sat, 15 Sep 2012 08:50:50 -0700 (PDT)
Local: Sat, Sep 15 2012 11:50 am
Subject: Re: Is it possible to use rope without creating a project?

Oops! It was a typo. I had 2 e's in my ropeemacs. It works just fine!

-Thanks

Raghu


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »