GithubHelp home page GithubHelp logo

Comments (7)

lukasmonk avatar lukasmonk commented on May 22, 2024

I use prints to do fast debug.

PyCharm show all of the prints when working.
SciteRu is my fast editor and also show prints.

from lucaschess.

tico-tico avatar tico-tico commented on May 22, 2024

Yes, but the average user can't say "I get the traceback if I click this or if I click that" since the bug.log is populated only after the program is closed. Now it impossible to say which action exactly leads to traceback. Anyway, it's up to you of course.

from lucaschess.

lukasmonk avatar lukasmonk commented on May 22, 2024

Till now, average user only think in bug.log, when I say him, please send me file bug.log in the root instalation of the program to fix the bug. :)

I have added Log class to util.py, and this call in init.py.

from lucaschess.

tico-tico avatar tico-tico commented on May 22, 2024

Something unrelated:

I just played with bug.log opened in Notepad++ in the monitoring mode and get this

Traceback (most recent call last):
  File "Code\QT\TabElementos.pyo", line 220, in mouseReleaseEvent
    
  File "Code\QT\Tablero.pyo", line 1284, in intentaMover
    
  File ".\Code\GestorEntMaq.py", line 793, in mueveHumano
    submenu.opcion("user", "%s (%s)" % (_("Select my move"), rmUser.abrTextoBase()),
AttributeError: 'NoneType' object has no attribute 'abrTextoBase'

after pawn promotion to queen. So immediate saving to bug.log is quite useful.))

from lucaschess.

tico-tico avatar tico-tico commented on May 22, 2024

...and after Reinit make move, show tutor:

TUTORR!1Traceback (most recent call last):
  File "Code\QT\TabElementos.pyo", line 220, in mouseReleaseEvent
    
  File "Code\QT\Tablero.pyo", line 1284, in intentaMover
    
  File ".\Code\GestorEntMaq.py", line 819, in mueveHumano
    if tutor.elegir(self.ayudas > 0, liApPosibles=liApPosibles):
  File "Code\Tutor.pyo", line 67, in elegir
    
  File "Code\Tutor.pyo", line 160, in hazListaRM
    
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'unicode'

from lucaschess.

lukasmonk avatar lukasmonk commented on May 22, 2024

I have changed promotion to be always lowercase.

from lucaschess.

tico-tico avatar tico-tico commented on May 22, 2024

A can't see the exceptions any more so I guess the issues are fixed. Thanks!

from lucaschess.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.