Sublime Forum

Sublime + ArchLinux + Python, no traceback telling what cause error

#1

When I execute python in sublime text and some error happens during interaction with GUI, sublime 3083 on arch wont show me traceback report, where the error happened - what caused it, but if I would just execute in terminal the python script, I would get the traceback right as it happened.

Here is a small Python3 & PyQt5 program showing this behavior, whenever double click happens on the table.

here is picture showing example code fail in sublime and in terminal

  • I tested on ubuntu and mint in virtual machines, there sublime shows error no problem, it does not even terminate the program, just shows error on double click
  • tested on manjaro(arch basicly) and another arch in virtual machine, both fail
  • tested on arch with python2, python2-pyqt5,… fails as well
  • I tested sublime text 2, fails too on arch
  • opensuse works
  • could not get fedora to run pyqt5 so cant tell there

I used this as python3 build sytem

0 Likes

#2

any word from anyone else, to confirm the existence of this?

0 Likes

#3

complete stab in the dark, but maybe you need to redirect stderr to stdout?

0 Likes

#4

Where in sublime or Arch would I do that?
I am guessing somewhere in the build system, I posted the one I used during my testings in the OP post, last sentence… but not sure where would I put some redirection there

0 Likes

#5

no idea if this is possible like this, but try adding , "2>&1" to the end of your cmd parameter in the build system.

0 Likes

#6

tried it, but its not working, the problem is that it does send error outputs to standard output, if I would just had a code where I am adding number to a string it would show me that error. But the moment its GUI programming and error does not happen on the launch time but down the code after some users input… thats where it fails to show those errors, while normal terminal running things shows them just fine

still… thnx for the help

1 Like

#7

ah I see, thanks for the clarification - does Sublime still show the build as running when/before the exception occurs?

0 Likes

#8

PyQt5 is fully at fault here coupled with Arch, as I now tested out when I wanned to provide cleaner simpler example of the error.
tkinter, pyside, pyqt4, all work well… then I run pyqt5 and bam no more traceback

I am guessing I am going to report to them now…
thanks for answering and asking questions that lead to this…

does Sublime still show the build as running when/before the exception occurs?

heres short video how it looks in action, first showing failire in pyqt5, then workin

/edit

tested with atom and script runner package, its doing the same. So issue is Arch/PyQt5
I tested with geany, but it opens terminal on execution so it dodges the issue…

1 Like