Help command fails on Windows

Bug #333618 reported by blackdaemon
2
Affects Status Importance Assigned to Milestone
Enso Project
Fix Committed
Undecided
blackdaemon

Bug Description

 Reported by ebjono, Mar 21, 2008

When I use the Help command on Windows, Enso crashes with the following
stack trace:

   File "C:\Documents and Settings\Jono\My
Documents\enso-open-source\win32\enso_
win32\input\InputManager.py", line 69, in run
    def run(*args): return _InputManager.InputManager_run(*args)
  File "C:\Documents and Settings\Jono\My
Documents\enso-open-source\core\enso\e
vents.py", line 283, in onKeypress
    func( eventType, keyCode )
  File "C:\Documents and Settings\Jono\My
Documents\enso-open-source\core\enso\q
uasimode\__init__.py", line 197, in onKeyEvent
    self.__quasimodeEnd()
  File "C:\Documents and Settings\Jono\My
Documents\enso-open-source\core\enso\q
uasimode\__init__.py", line 337, in __quasimodeEnd
    self.__executeCommand( activeCommand, cmdName )
  File "C:\Documents and Settings\Jono\My
Documents\enso-open-source\core\enso\q
uasimode\__init__.py", line 360, in __executeCommand
    cmd.run()
  File "C:\Documents and Settings\Jono\My
Documents\enso-open-source\core\enso\c
ontrib\help.py", line 122, in run
    self.__htmlHelp.view()
  File "C:\Documents and Settings\Jono\My
Documents\enso-open-source\core\enso\c
ontrib\help.py", line 97, in view
    webbrowser.open( fileUrl )
  File "C:\Python24\lib\webbrowser.py", line 43, in open
    get().open(url, new, autoraise)
  File "C:\Python24\lib\webbrowser.py", line 250, in open
    os.startfile(url)
WindowsError: [Errno 3] The system cannot find the path specified:
'file://///C|
/docume%7E1/jono/locals%7E1/temp/ensoHelpowrsjz.html'
INFO [Fri Mar 21 12:24:43 2008 src\InputManager\AsyncEventThread.cxx
L249]: a
sync event thread: quit signal received.
INFO [Fri Mar 21 12:24:43 2008 src\InputManager\AsyncEventThread.cxx
L303]: C
losed invisible window.

Revision history for this message
blackdaemon (blackdaemon) wrote :

Comment 2 by varmaa, Mar 24, 2008

This shouldn't be hard to fix, I'll take care of it.

Revision history for this message
blackdaemon (blackdaemon) wrote :

For some strange reason, webbrowser.open() opens the URL correctly, but after this it throws exception "File not found", crashing Enso.
try/catch around webbrowser.open() solves that.

I am not sure whether this behaviour is only on my box due to atypical browsers setup (not using FF, but K-Meleon instead) ?

Revision history for this message
Drarok (webmaster-drarok) wrote :

I run FF at work, same crash.

Revision history for this message
blackdaemon (blackdaemon) wrote :
Changed in enso:
assignee: nobody → blackdaemon (blackdaemon)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.