Re: [Eric] Eric4 segfault

2009-06-27 Thread Detlev Offenbach
On Samstag, 27. Juni 2009, Henrik Pauli wrote:
 Hi all,

 I have a weird problem and I don't know how to begin debugging it.

 I have these versions of the related apps and libs installed:

 $ dpkg -l eric4 pyqt4 sip qt4 python qscintilla2 qscintilla2-python
 Desired=Unknown/Install/Remove/Purge/Hold

 | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-p
 |end / Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
 | uppercase=bad)
 |
 ||/ Name Version   Description

 +++--=-
 ii  eric44.3.4-1.2
 Python/Ruby integrált fejlesztői környezet (IDE) ii  pyqt4   
 4.5.1-1.50Qt4 kiegészítések Pythonhoz ii  python  
 2.6.2-2.50Python programnyelv
 ii  qscintilla2  2.4-1.2   A Scintilla2 C++ editor Qt4 portja
 ii  qscintilla2-python   2.4-1.2   A Scintilla2 C++ editor pyqt4 portja
 ii  qt4  4.5.1-1.2 Qt grafikus függvénytár
 ii  sip  4.8.1-1.50Fejlesztőeszköz, amellyel C/C++
 kódot tehetünk elérhetővé Pythonból

 And currently, both the build process of eric4 (which is setup.py install,
 give or take a few more things), and running it, results in a Segmentation
 fault.

If you are installing eric4 by doing a setup.py install you are not using a 
supported package. Please download eric4 from the web site, untar the file 
into a directory of your choice and run python install.py inside that 
directory.

The segfault comes from one of the libraries and not directly from eric4. You 
could run the steps eric4's installation routine performs manually in a 
Python shell. 


 I have no idea what's going on.  Can anyone help me, at least how to debug
 this?

 ___
 Eric mailing list
 Eric@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/eric


Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de

___
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric


[Eric] ANN: New eric 4.4 snapshot released

2009-06-27 Thread Detlev Offenbach
Hi,

I'd like to inform all of you about the immediate availability of a new eric 
4.4 snapshot. It fixes a few bugs and adds these new features.

- added support for opensearch search engines to the help viewer
- added a few zoom related actions to the help viewer
- added config option for printing backgrounds to the help viewer

It is available via 
http://sourceforge.net/project/showfiles.php?group_id=119070package_id=300692.

Regards
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Eric4 segfault

2009-06-27 Thread Guðjón Guðjónsson
Hi
It seems like you are using Ubuntu, is that correct?
Anyway, please try to remove the python-kde4 package since it makes eric
segfault in Debian, see:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534178

If that doesn't work please send the output of:
python -v /usr/share/eric/modules/eric4.py eric_segfault.txt

there is a possibility that qscintilla hasn't been recompiled on your
system.

On Sat, Jun 27, 2009 at 9:30 AM, Detlev Offenbach
det...@die-offenbachs.dewrote:

 On Samstag, 27. Juni 2009, Henrik Pauli wrote:
  Hi all,
 
  I have a weird problem and I don't know how to begin debugging it.
 
  I have these versions of the related apps and libs installed:
 
  $ dpkg -l eric4 pyqt4 sip qt4 python qscintilla2 qscintilla2-python
  Desired=Unknown/Install/Remove/Purge/Hold
 
  |
 Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-p
  |end / Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
  | uppercase=bad)
  |
  ||/ Name Version   Description
 
 
 +++--=-
  ii  eric44.3.4-1.2
  Python/Ruby integrált fejlesztői környezet (IDE) ii  pyqt4
  4.5.1-1.50Qt4 kiegészítések Pythonhoz ii  python
  2.6.2-2.50Python programnyelv
  ii  qscintilla2  2.4-1.2   A Scintilla2 C++ editor Qt4 portja
  ii  qscintilla2-python   2.4-1.2   A Scintilla2 C++ editor pyqt4
 portja
  ii  qt4  4.5.1-1.2 Qt grafikus függvénytár
  ii  sip  4.8.1-1.50Fejlesztőeszköz, amellyel C/C++
  kódot tehetünk elérhetővé Pythonból
 
  And currently, both the build process of eric4 (which is setup.py
 install,
  give or take a few more things), and running it, results in a
 Segmentation
  fault.

 If you are installing eric4 by doing a setup.py install you are not using
 a
 supported package. Please download eric4 from the web site, untar the file
 into a directory of your choice and run python install.py inside that
 directory.

 The segfault comes from one of the libraries and not directly from eric4.
 You
 could run the steps eric4's installation routine performs manually in a
 Python shell.

 
  I have no idea what's going on.  Can anyone help me, at least how to
 debug
  this?
 
  ___
  Eric mailing list
  Eric@riverbankcomputing.com
  http://www.riverbankcomputing.com/mailman/listinfo/eric


 Regards,
 Detlev
 --
 Detlev Offenbach
 det...@die-offenbachs.de

 ___
 Eric mailing list
 Eric@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/eric

___
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Eric4 segfault

2009-06-27 Thread Henrik Pauli
On Saturday 27 June 2009 15:44:17 Guðjón Guðjónsson wrote:
 Hi
 It seems like you are using Ubuntu, is that correct?
 Anyway, please try to remove the python-kde4 package since it makes eric
 segfault in Debian, see:
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534178

nope :)  this is UHU-Linux -- we use dpkg as our package management system, 
but we're entirely unrelated to any of the Debianese distributions.  I guess 
python-kde4 is part of kdebindings, right?


 If that doesn't work please send the output of:
 python -v /usr/share/eric/modules/eric4.py eric_segfault.txt

 there is a possibility that qscintilla hasn't been recompiled on your
 system.

That might have been it, actually.  I saw the minor build number increase 
today, so somebody must have rebuilt it while I was asleep.  It does work now, 
and kdebindings is in place (although an ancient version, 4.2.67).


___
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric


[Eric] Indentation and shell/terminal font size

2009-06-27 Thread Henrik Pauli
Now that this thing works in my distro, here's what I found odd:

I set indentation to tabsize=4 indentsize=4 usetabs.  Yet, tabs are 2 
characters wide.  I do use a monospaced font so it shouldn't be a confusion 
with variable width...  I remember this issue from back in the days when I 
wrote ljKlient.

Shell and terminal fonts look huge, apparently 10pt or so, regardless of me 
setting it to 8pt (laptop screen estate is very scarce, afterall :))

Also, I have some ANSI colour escape sequences in my PS1, which show up in the 
terminal as ESC[32;01m etc. instead of colours, or getting stripped.  Not sure 
if this is a known issue.
___
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Eric4 segfault

2009-06-27 Thread Henrik Pauli
(resending it back to the list, I pressed the wrong reply button)

On Saturday 27 June 2009 09:30:26 you wrote:
 If you are installing eric4 by doing a setup.py install you are not using
 a supported package. Please download eric4 from the web site, untar the
 file into a directory of your choice and run python install.py inside
 that directory.

Sorry, I remembered wrong and didn't check, this is what our install phase 
does:

mkdir -p $UB_INSTALLDIR/usr/lib/qt4/qsci/api/ruby

python install.py \
-i $UB_INSTALLDIR \
-d /usr/lib/python2.6/site-packages \
-b /usr/bin

And that's all...

 The segfault comes from one of the libraries and not directly from eric4.
 You could run the steps eric4's installation routine performs manually in a
 Python shell.

Yeah, I guessed this... I just don't know what library it might be, and I'd 
love to have this fixed :/

Great.  Now I tried the build and it built.  And I installed the rebuilt Eric, 
and it runs.  Agh!  If I knew which of the components was allergic to 
something for a moment there!


___
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Indentation and shell/terminal font size

2009-06-27 Thread Detlev Offenbach
On Samstag, 27. Juni 2009, Henrik Pauli wrote:
 Now that this thing works in my distro, here's what I found odd:

 I set indentation to tabsize=4 indentsize=4 usetabs.  Yet, tabs are 2
 characters wide.  I do use a monospaced font so it shouldn't be a confusion
 with variable width...  I remember this issue from back in the days when I
 wrote ljKlient.

The shell and the terminal are using the QScintilla highlighter setup like the 
editor. Did you configure these.


 Shell and terminal fonts look huge, apparently 10pt or so, regardless of me
 setting it to 8pt (laptop screen estate is very scarce, afterall :))

What and where did you set to 8pt (might be the same issue as above)


 Also, I have some ANSI colour escape sequences in my PS1, which show up in
 the terminal as ESC[32;01m etc. instead of colours, or getting stripped. 
 Not sure if this is a known issue.

The eric4 terminal is not a full terminal emulation. That means, ANSI escape 
sequences are not supported. However, patches are welcome.

 ___
 Eric mailing list
 Eric@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/eric


Regards,
Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Indentation and shell/terminal font size

2009-06-27 Thread Detlev Offenbach
On Samstag, 27. Juni 2009, Henrik Pauli wrote:
 On Saturday 27 June 2009 17:11:11 you wrote:
  On Samstag, 27. Juni 2009, Henrik Pauli wrote:
   Now that this thing works in my distro, here's what I found odd:
  
   I set indentation to tabsize=4 indentsize=4 usetabs.  Yet, tabs are 2
   characters wide.  I do use a monospaced font so it shouldn't be a
   confusion with variable width...  I remember this issue from back in
   the days when I wrote ljKlient.
 
  The shell and the terminal are using the QScintilla highlighter setup
  like the editor. Did you configure these.

 Sorry, the tabsize issue was in the editor, I forgot to emphasise that.  I
 don't care about tab size in the shell or the terminal.

Did you configure the highlighters? (Editor-Highlighters-Styles, Python,...)


   Shell and terminal fonts look huge, apparently 10pt or so, regardless
   of me setting it to 8pt (laptop screen estate is very scarce, afterall
   :))
 
  What and where did you set to 8pt (might be the same issue as above)

 Settings/Editor/Style, Monospaced font, Use monospaced font as default

That has an effect in the editor only. Shall this be extended to the shell and 
terminal?


   Also, I have some ANSI colour escape sequences in my PS1, which show up
   in the terminal as ESC[32;01m etc. instead of colours, or getting
   stripped. Not sure if this is a known issue.
 
  The eric4 terminal is not a full terminal emulation. That means, ANSI
  escape sequences are not supported. However, patches are welcome.

 Stripping them might be a good idea:
 s/\e\[[\d;]*[\w]//g;

 unless I'm mistaken :)  (this is how I'd do it in Perl, not sure what I'd
 do in Python exactly, it's been a while)

I'll look into that.

Detlev
-- 
Detlev Offenbach
det...@die-offenbachs.de
___
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric


Re: [Eric] Indentation and shell/terminal font size

2009-06-27 Thread Henrik Pauli
On Saturday 27 June 2009 18:32:05 Detlev Offenbach wrote:
 On Samstag, 27. Juni 2009, Henrik Pauli wrote:
  On Saturday 27 June 2009 17:11:11 you wrote:
   On Samstag, 27. Juni 2009, Henrik Pauli wrote:
Now that this thing works in my distro, here's what I found odd:
   
I set indentation to tabsize=4 indentsize=4 usetabs.  Yet, tabs are 2
characters wide.  I do use a monospaced font so it shouldn't be a
confusion with variable width...  I remember this issue from back in
the days when I wrote ljKlient.
  
   The shell and the terminal are using the QScintilla highlighter setup
   like the editor. Did you configure these.
 
  Sorry, the tabsize issue was in the editor, I forgot to emphasise that. 
  I don't care about tab size in the shell or the terminal.

 Did you configure the highlighters? (Editor-Highlighters-Styles,
 Python,...)

They're left on default but they only affect colours and font type/size, not 
tab properties.  'Use monospaced font by default' overrides all fonts into 
monospace (apparently), and so those shouldn't matter, I think


Shell and terminal fonts look huge, apparently 10pt or so, regardless
of me setting it to 8pt (laptop screen estate is very scarce,
afterall
   
:))
  
   What and where did you set to 8pt (might be the same issue as above)
 
  Settings/Editor/Style, Monospaced font, Use monospaced font as default

 That has an effect in the editor only. Shall this be extended to the shell
 and terminal?

I guess it would be a good idea to make it possible to set fonts for those, in 
one way or another :)


Also, I have some ANSI colour escape sequences in my PS1, which show
up in the terminal as ESC[32;01m etc. instead of colours, or getting
stripped. Not sure if this is a known issue.
  
   The eric4 terminal is not a full terminal emulation. That means, ANSI
   escape sequences are not supported. However, patches are welcome.
 
  Stripping them might be a good idea:
  s/\e\[[\d;]*[\w]//g;
 
  unless I'm mistaken :)  (this is how I'd do it in Perl, not sure what I'd
  do in Python exactly, it's been a while)

 I'll look into that.

 Detlev
___
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric