jed-users mailing list

[2008 Date Index] [2008 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Trouble with pymode.sl (view_mode not loaded)


Thank Gunter for pointing out that there's a new pymode.sl out that I
might try out. I dropped in the latest pymode.sl (2.1.6) from
jedmodes.
It had some requirements I didn't have so I dropped them in to
hopefully not missing one (could be a chain of new version
dependencies).
My jed is 0.99.18U from ubuntu 8.10

Now editing .py is is broken:
peterbe@trillian:~ $ jed -batch dummy.py
loading /usr/share/jed/lib/site.slc
loading /usr/share/jed/lib/os.sl
loading /usr/share/jed/lib/menus.slc
loading /usr/share/jed/lib/defaults.sl
loading /etc/jed.d/05jed-common.sl
loading /home/peterbe/.jedrc
loading /usr/share/jed/lib/emacs.slc
loading /usr/share/jed/lib/ntags/autoload.sl
evaluating: /usr/share/jed/lib/ntags/autoload/walk.sl
loading /usr/share/jed/lib/ntags/autoload/walk.sl
evaluating: /usr/share/jed/lib/ntags/autoload/ntags.sl
loading /usr/share/jed/lib/ntags/autoload/ntags.sl
evaluating: /usr/share/jed/lib/ntags/autoload/wordsrch.sl
loading /usr/share/jed/lib/ntags/autoload/wordsrch.sl
evaluating: /usr/share/jed/lib/ntags/autoload/cfun.sl
loading /usr/share/jed/lib/ntags/autoload/cfun.sl
loading /usr/share/jed/lib/sl_utils.sl
loading /usr/share/jed/lib/colors/black3.slc
loading /usr/share/jed/lib/recent.sl
Reading dummy.py
loading /usr/share/jed/lib/pymode.sl
loading /usr/share/jed/lib/comments.slc
loading /usr/share/jed/lib/keydefs.slc
view_mode is undefined
/usr/share/jed/lib/pymode.sl:1266:<top-level>:Undefined Name
***string***:1:<top-level>:Undefined Name
Traceback: called from eval: python_mode
Traceback: eval
/usr/share/jed/lib/site.sl:1878:mode_hook:Undefined Name
  Local variables for mode_hook:
        String_Type ext = "py"
        Integer_Type n = 33
        String_Type mode = "python_mode"
Error encountered while executing mode_hook
Traceback: find_file
/usr/share/jed/lib/site.sl:3190:command_line_hook:Undefined Name
  Local variables for command_line_hook:
        Integer_Type n = 0
        Integer_Type i = 3
        String_Type file = "dummy.py"
        Integer_Type depth = 0
        Undefined_Type next_file = Undefined_Type
        String_Type tmp = "mmy.py"
        String_Type init_file = "/home/peterbe/.jedrc"
        Undefined_Type next_file_arg = Undefined_Type
Error encountered while executing command_line_hook


So I modified pymode.sl and added
  require("view");
to the list of requirements and then it worked.
How could this have worked?
Was it a bug in pymode.sl or was I supposed to have something else
installed that loads view_mode?

Peter

-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2008 date index] [2008 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]