Package: eric
Version: 5.4.3-1
Severity: important

Dear Maintainer,
If I open any python 2 file in eric, the ide reports a crash. (It does not
close however)
I can reproduce by:
* Opening a .py2 file, that gets detected as python2
* Opening a .py or .py3 file, then select Python 2 language via the bottom bar.

In the former situation, eric does not open the file, while in the latter the
file remains open, and sintax highlighting works, but there is no sintax error
checking and each time I save the file the crash arises showing the report bug
window.
I am attaching a sample file and the crash log.



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages eric depends on:
ii  bicyclerepair        0.9-6.1
ii  python-chardet       2.2.1-2
ii  python3-pygments     1.6+dfsg-1
ii  python3-pyqt4        4.11+dfsg-1+b1
ii  python3-pyqt4.qsci   2.8.1-4+b1
ii  python3-pyqt4.qtsql  4.11+dfsg-1+b1

Versions of packages eric recommends:
ii  eric-api-files  5.4.3-1

Versions of packages eric suggests:
pn  pyqt4-dev-tools           <none>
pn  pyqt5-doc                 <none>
ii  python [python-profiler]  2.7.6-2
pn  python-doc                <none>
pn  python-kde4-doc           <none>
pn  python-qt4-doc            <none>
ii  qt4-designer              4:4.8.6+dfsg-1
ii  qt4-dev-tools             4:4.8.6+dfsg-1
pn  qt4-doc-html              <none>
pn  qt5-doc                   <none>
ii  ruby                      1:2.1.0.1

-- no debconf information
print "Hello world!"
--------------------------------------------------------------------------------
2014-06-16, 12:02:40
--------------------------------------------------------------------------------
<class 'ValueError'>: 
invalid literal for int() with base 10: '    introspection, easier 
configuration, command completion, access to the'
--------------------------------------------------------------------------------
  File "/usr/share/eric/modules/QScintilla/Editor.py", line 1256, in 
__languageMenuTriggered
    self.__autoSyntaxCheck()
  File "/usr/share/eric/modules/QScintilla/Editor.py", line 5035, in 
__autoSyntaxCheck
    int(warning[1]), True, warning[2])

--------------------------------------------------------------------------------
Version Numbers:
  Python 3.4.1rc1
  Qt 4.8.6
  PyQt4 4.11
  sip 4.16
  QScintilla 2.8.1
  WebKit 534.34
  eric5 5.4.3 (rev 5c1daa6a9f61)

Platform: linux
3.4.1rc1 (default, May  5 2014, 14:28:34) 
[GCC 4.8.2]
--------------------------------------------------------------------------------
Plugins Version Numbers:
  PluginAbout 5.4.0
  PluginCodeStyleChecker 5.4.0
  PluginEricapi 5.4.0
  PluginEricdoc 5.4.0
  PluginSyntaxChecker 5.4.0
  PluginTabnanny 5.4.0
  PluginVcsMercurial 5.4.0
  PluginVcsPySvn 5.4.0
  PluginVcsSubversion 5.4.0
  PluginVmListspace 5.4.0
  PluginVmTabview 5.4.0
  PluginWizardE5MessageBox 5.4.0
  PluginWizardPyRegExp 5.4.0
  PluginWizardQColorDialog 5.4.0
  PluginWizardQFileDialog 5.4.0
  PluginWizardQFontDialog 5.4.0
  PluginWizardQInputDialog 5.4.0
  PluginWizardQMessageBox 5.4.0
  PluginWizardQRegExp 5.4.0
  PluginWizardQRegularExpression 5.4.0
--------------------------------------------------------------------------------
Distribution Info:
  /etc/os-release
  PRETTY_NAME="Debian GNU/Linux jessie/sid"
  NAME="Debian GNU/Linux"
  ID=debian
  ANSI_COLOR="1;31"
  HOME_URL="http://www.debian.org/";
  SUPPORT_URL="http://www.debian.org/support/";
  BUG_REPORT_URL="http://bugs.debian.org/";

Reply via email to