Menu

2.4.2 is out

2004-04-13
2004-04-15
  • Daniel Pozmanter

    This fixes a nasty bug in 2.4.1.

     
    • liyinghui

      liyinghui - 2004-04-14

      What a hard work!

       
    • Chris Wilson

      Chris Wilson - 2004-04-14

      The version I just pulled down from the main downloads page locks when I try to load a file (or view a DrScript) which is presumably the nasty bug you're referring to.

      The CVS version I pulled down a couple of day ago works fine, so I can only assume there's a problem with one or more files in the v2.4.2 zip.

      Can you re-generate the zip file and update the download link.

      Chris Wilson
      Cleator Wilson Limited

       
    • Daniel Pozmanter

      damn.

      does the cvs version work now?

      When you try to load a file, what are your prefs (encoding)?
      Are they set to Custom "<None>"
      or Default or what?

      I need some more info, and I will try to fix this, then release 2.4.3

       
    • Chris Wilson

      Chris Wilson - 2004-04-15

      Yup. You were right. My preferences were set to "Custom" and "<None>". Changing the encoding to "Default" solved the problem using the v2.4.2 zip.

      Should the default for encoding not be "Default" to avoid this problem when using a preferences file from a previous version?

       
    • Daniel Pozmanter

      No, the problem is DrPython, not the preference.

      Thanks, I will look into this.

      Does this happen when you open one file, or multiple files?  I noticed this a few days ago with multiple files (I am still looking at that).

      Could you send me a copy of a file that generates this error?

      Thanks.

      (PS what os are you, what version of wxPython?)

       
    • Chris Wilson

      Chris Wilson - 2004-04-15

      It's a problem when opening any file, even the included DrScripts. The interface remains responsive (I can open more files which have the same problem) I just don't see any source in the window, and I get an hourglass cursor when I move over the toolbar at the top.

      As I mentioned, changing the encoding to "Default" solves the problem.

      I suspect the problem is more likely to be due to my combination of preferences, so I'll mail you a copy of the preferences file rather than any code.

      BTW, on this particular machine I'm running XP Home, wxPython 2.5.1.5 and Python 2.3.2.

       
    • Daniel Pozmanter

      Hmmmm.  Try this with DrPython 2.4.3, see if that helps.

      wxPython 2.5.1.x seems to not be fully implemented (I am not sure why it was released so early).

      Try wxPython 2.4.2.  Does that work properly?

       
    • liyinghui

      liyinghui - 2004-04-15

      When you running drpython and it running with error, you can enter the command line, and run drpython in command line. Then you may see what happened when there was an error.

      c:\python23\python drpython.py

       
    • Chris Wilson

      Chris Wilson - 2004-04-15

      Downloaded and installed v2.4.3 and set the encoding back to "Custom" and it works fine.

      The traceback for the problem in v2.4.2 (don't know why I didn't think to do this myself, thanks limodou) was as follows:

      Traceback (most recent call last):
        File "C:\drpython-2.4.2\drpython.py", line 2145, in OnOpenRecentFile
          self.OpenFile(False)
        File "C:\drpython-2.4.2\drpython.py", line 2957, in OpenFile
          self.SetEncodedText(self.txtDocument, oof)
        File "C:\drpython-2.4.2\drpython.py", line 3185, in SetEncodedText
          if (self.locale == 3) and (self.prefs.customencoding == "<None>"):
      AttributeError: 'DrFrame' object has no attribute 'locale'

      But thankfully it's now fixed anyway.

       
    • Daniel Pozmanter

      That is curious.  It got fixed by accident (I was moving self.locale to self.txtDocument.locale).

      Cool beans.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.