Leonardo Giordani | 5 Jan 2012 15:17
Picon
Gravatar

Suggestion for search and replace

Sometimes when replacing with regular expressions (especially with
groups) I'm not totally sure that my substitution will be correct.

With the current search and replace there is no easy way to know if it
went good since when hitting the replace button the selection jumps
immediately to the next match.
Even stopping the replace means that you have to search backwards the
last substitution, which is not simple if it went bad.

Could it be possible to preview the line as it will be after the substitution?
I mean something like copying the line in a temporary buffer, perform
the substitution on it and show above the current line, with a colored
background.

Thank you,

Leo
Detlev Offenbach | 5 Jan 2012 15:37
Picon
Favicon

Re: Suggestion for search and replace

Hello,

that sounds like a good idea. I'll have to look into it. Currently the search and replace in the editor is
provided by the QScintilla editor widget. I have to check, if I can persuade it to do something similar to
your suggestion.

Regards,
Detlev

Am 05.01.2012 um 15:17 schrieb Leonardo Giordani:

> Sometimes when replacing with regular expressions (especially with
> groups) I'm not totally sure that my substitution will be correct.
> 
> With the current search and replace there is no easy way to know if it
> went good since when hitting the replace button the selection jumps
> immediately to the next match.
> Even stopping the replace means that you have to search backwards the
> last substitution, which is not simple if it went bad.
> 
> Could it be possible to preview the line as it will be after the substitution?
> I mean something like copying the line in a temporary buffer, perform
> the substitution on it and show above the current line, with a colored
> background.
> 
> Thank you,
> 
> Leo
> _______________________________________________
> Eric mailing list
(Continue reading)

Al Dunstan | 5 Jan 2012 15:48
Favicon

Re: Suggestion for search and replace

On Thursday, January 05, 2012, Leonardo Giordani wrote:
> Sometimes when replacing with regular expressions (especially with
> groups) I'm not totally sure that my substitution will be correct.
> 
> With the current search and replace there is no easy way to know if it
> went good since when hitting the replace button the selection jumps
> immediately to the next match.
> Even stopping the replace means that you have to search backwards the
> last substitution, which is not simple if it went bad.
> 
> Could it be possible to preview the line as it will be after the
> substitution? I mean something like copying the line in a temporary
> buffer, perform the substitution on it and show above the current line,
> with a colored background.
> 
> Thank you,
> 
> Leo
> _______________________________________________
> Eric mailing list
> Eric@...
> http://www.riverbankcomputing.com/mailman/listinfo/eric

Eclipse uses separate "Replace", "Replace/Find" and "Find" buttons.  If you 
think it's going to do what you want just keep hitting "Replace/Find" but if 
you're not sure hit "Replace" and inspect the changes, then hit "Find" to 
advance to the next or hit "Quit" and undo the damage.

That might be easier than messing around with previews...

(Continue reading)

Mitch Davis | 6 Jan 2012 07:12

My UI's now in Czech!

Hello there,

I'm a happy Eric user (eric 4.4.14 r4014 under Fedora 16).  Today I
rebooted my PC, and the user interface now comes up in the Czech
language!  Here's a picture, showing my locale settings, as well as
the Czech result:

  http://imagebin.org/192052

Normally my locale is en_AU.UTF-8 (and eric has worked fine with
that), but now even setting LANG=C doesn't help.

I've also tried removing ~/.eric4, with no luck - eric still comes up in Czech.

(I have no idea why it should be Czech - the only language I use on
this computer besides English is Chinese)

Any ideas on how to de-Czech my eric?

Thanks,

Mitch.
Detlev Offenbach | 6 Jan 2012 12:16
Picon
Favicon

Re: My UI's now in Czech!

Hi,

you probably switched the interface to use the Czech language inside the eric configuration dialog. You
could change this back using the dialog again (in case you understand enough Czech to do so). If that is not
the  case, you may open the eric4.ini file in a text editor. That file should be in ~/.config/Eric4. In the
[UI] section set the entry for Language to None (i.e. Language=None). This procedure should be done,
while eric4 is closed.

Regards,
Detlev

Am 06.01.2012 um 07:12 schrieb Mitch Davis:

> Hello there,
> 
> I'm a happy Eric user (eric 4.4.14 r4014 under Fedora 16).  Today I
> rebooted my PC, and the user interface now comes up in the Czech
> language!  Here's a picture, showing my locale settings, as well as
> the Czech result:
> 
>  http://imagebin.org/192052
> 
> Normally my locale is en_AU.UTF-8 (and eric has worked fine with
> that), but now even setting LANG=C doesn't help.
> 
> I've also tried removing ~/.eric4, with no luck - eric still comes up in Czech.
> 
> (I have no idea why it should be Czech - the only language I use on
> this computer besides English is Chinese)
> 
(Continue reading)

Detlev Offenbach | 6 Jan 2012 13:26
Picon
Favicon

Re: Suggestion for search and replace

Hi,

that function will be included in eric 4.5 and eric 5.2. Meanwhile you may get it from the source code repository.

Regards,
Detlev

Am 05.01.2012 um 15:48 schrieb Al Dunstan:

> On Thursday, January 05, 2012, Leonardo Giordani wrote:
>> Sometimes when replacing with regular expressions (especially with
>> groups) I'm not totally sure that my substitution will be correct.
>> 
>> With the current search and replace there is no easy way to know if it
>> went good since when hitting the replace button the selection jumps
>> immediately to the next match.
>> Even stopping the replace means that you have to search backwards the
>> last substitution, which is not simple if it went bad.
>> 
>> Could it be possible to preview the line as it will be after the
>> substitution? I mean something like copying the line in a temporary
>> buffer, perform the substitution on it and show above the current line,
>> with a colored background.
>> 
>> Thank you,
>> 
>> Leo
>> _______________________________________________
>> Eric mailing list
>> Eric@...
(Continue reading)

Mitch Davis | 6 Jan 2012 14:39

Re: My UI's now in Czech!

Hi Detlev,

Thanks for your speedy reply!

On Fri, Jan 6, 2012 at 10:16 PM, Detlev Offenbach
<detlev@...> wrote:
>
> you probably switched the interface to use the Czech language inside the eric configuration dialog.

Curious.  I found the option (after switching back to English), and I
don't remember seeing it before.  I think I would have remembered, as
it has Chinese too.  Anyway.

> ~/.config/Eric4. In the [UI] section set the entry for Language to None

Thanks, that fixed it!

Mitch.
Patrick Moran | 9 Jan 2012 03:22

Long pause during save and restart.

I’m having a strange and annoying problem when using Eric4 (4.5-snapshot-20110501 (r4007) with PyQt 4.7.4.

 

After making a change in the code window there is a consistent 15 to 20 second delay before the program responds. This is running in Windows7 (64 bit).

My typical workflow is the following:

Debug the project (SHIFT-F5) , run the code. When I reach a problem, put a breakpoint before that line of code. Hit F4 to restart. When I hit the breakpoint I use the “shell” window to experiment with the data structures, methods and so forth. I then make the necessary changes in the code window then CNTRL-S and F4 to rerun the code. This last step takes 15 to 20 seconds and is almost unbearable.

 

I’ve used the same workflow with the same application code on a Windows 7 32 bit machine (same version of Eric4 and Qt) and it doesn’t show this problem. I’ve tried to change the tooltip delay time and various other tunable parameters in the Settings options but nothing makes a difference.

 

Is there a known problem with Eric4 on Windows7 – 64bit architecture?

 

Thanks in advance for any hints, tips or suggestions,

 

PJM

 

_______________________________________________
Eric mailing list
Eric@...
http://www.riverbankcomputing.com/mailman/listinfo/eric
Detlev Offenbach | 9 Jan 2012 19:07
Picon
Favicon

Re: Long pause during save and restart.

Am Sonntag, 8. Januar 2012, 21:22:18 schrieb Patrick Moran:
> I'm having a strange and annoying problem when using Eric4
> (4.5-snapshot-20110501 (r4007) with PyQt 4.7.4.
> 
> 
> 
> After making a change in the code window there is a consistent 15 to 20
> second delay before the program responds. This is running in Windows7 (64
> bit).
> 
> My typical workflow is the following:
> 
> Debug the project (SHIFT-F5) , run the code. When I reach a problem, put a
> breakpoint before that line of code. Hit F4 to restart. When I hit the
> breakpoint I use the "shell" window to experiment with the data structures,
> methods and so forth. I then make the necessary changes in the code window
> then CNTRL-S and F4 to rerun the code. This last step takes 15 to 20 seconds
> and is almost unbearable.
> 
> 
> 
> I've used the same workflow with the same application code on a Windows 7 32
> bit machine (same version of Eric4 and Qt) and it doesn't show this
> problem. I've tried to change the tooltip delay time and various other
> tunable parameters in the Settings options but nothing makes a difference.
> 
> 
> 
> Is there a known problem with Eric4 on Windows7 - 64bit architecture?

I am using it on this platform as well and haven't seen such a behavior. Could 
you update to the latest code from the source code repository and check, if 
the issue persists? Are you using the same Python interpreter and PyQt for the 
64bit environment as for the 32bit environment?

> 
> 
> 
> Thanks in advance for any hints, tips or suggestions,
> 
> 
> 
> PJM
--

-- 
Detlev Offenbach
detlev@...
Patrick Moran | 10 Jan 2012 06:09

Re: Long pause during save and restart.

Detlev,

I will try the latest code.

One other thing I should mention is that I use "pure 64 bit packages"
everywhere in the python installation. I'm use Python2.6 and have installed
all packages that are built for the 64 bit architecture based on the
installers at http://www.lfd.uci.edu/~gohlke/pythonlibs/ 
I've noticed that one of the pythonw.exe processes (I'm assuming the IDE
thread) is pegging 25% of my 4 core processor (Intel Core-I5) with this
installation configuration. I assume that means that one core is running
maxed-out.  There is a second python.exe process that seems to disappear and
reappear when I restart the debugger (restart script menu item). 

Thanks again.

Pat
-----Original Message-----
From: Detlev Offenbach [mailto:detlev@...] 
Sent: Monday, January 09, 2012 1:07 PM
To: eric@...
Cc: Patrick Moran
Subject: Re: [Eric] Long pause during save and restart.

Am Sonntag, 8. Januar 2012, 21:22:18 schrieb Patrick Moran:
> I'm having a strange and annoying problem when using Eric4
> (4.5-snapshot-20110501 (r4007) with PyQt 4.7.4.
> 
> 
> 
> After making a change in the code window there is a consistent 15 to 
> 20 second delay before the program responds. This is running in 
> Windows7 (64 bit).
> 
> My typical workflow is the following:
> 
> Debug the project (SHIFT-F5) , run the code. When I reach a problem, 
> put a breakpoint before that line of code. Hit F4 to restart. When I 
> hit the breakpoint I use the "shell" window to experiment with the 
> data structures, methods and so forth. I then make the necessary 
> changes in the code window then CNTRL-S and F4 to rerun the code. This 
> last step takes 15 to 20 seconds and is almost unbearable.
> 
> 
> 
> I've used the same workflow with the same application code on a 
> Windows 7 32 bit machine (same version of Eric4 and Qt) and it doesn't 
> show this problem. I've tried to change the tooltip delay time and 
> various other tunable parameters in the Settings options but nothing makes
a difference.
> 
> 
> 
> Is there a known problem with Eric4 on Windows7 - 64bit architecture?

I am using it on this platform as well and haven't seen such a behavior.
Could you update to the latest code from the source code repository and
check, if the issue persists? Are you using the same Python interpreter and
PyQt for the 64bit environment as for the 32bit environment?

> 
> 
> 
> Thanks in advance for any hints, tips or suggestions,
> 
> 
> 
> PJM
--

-- 
Detlev Offenbach
detlev@...

Gmane