pydev 0.6 completion bug under Linux

2004-09-25
2013-03-15
  • Travis Caldwell

    Travis Caldwell - 2004-09-25

    The pydev 0.6 completion fails under linux.

    The problem appears to be the use of a 'C:' path for a log file.

    The folowing patch fixed the problem for me. YMMV

    ---
    *** org.python.pydev_0.6.0/PySrc/pycompletionserver.py  2004-09-24 12:47:50.000000000 -0700
    --- org.python.pydev_0.6.0/PySrc/pycompletionserver.py  2004-09-24 23:24:38.000000000 -0700
    ***************
    *** 205,214 ****
      if __name__ == '__main__':
          #let's log this!!
          import os
    !     f = 'c:/temp/pydev.log'
          i=0
          while os.path.exists(f):
    !         f = 'c:/temp/pydev%s.log' % i
              i+=1
              
          out = open(f, 'w')
    --- 205,218 ----
      if __name__ == '__main__':
          #let's log this!!
          import os
    !     if os.name == 'posix' :
    !         tmpPrefix = "/tmp"
    !     else :
    !         tmpPrefix = "C:/temp"
    !     f = tmpPrefix + os.sep + 'pydev.log'
          i=0
          while os.path.exists(f):
    !         f = tmpPrefix + os.sep + 'pydev%s.log' % i
              i+=1
              
          out = open(f, 'w')

     
    • Richard Stevens

      Richard Stevens - 2004-09-26

      There also is a problem if c:\TEMP is not available if you use Windows. Maybe the temp-dir should be configurable in the options dialogue.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks