https://bz.mercurial-scm.org/show_bug.cgi?id=5346

            Bug ID: 5346
           Summary: demandimport: breaks pudb immediate mode (IPython)
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@selenic.com
          Reporter: timel...@gmail.com
                CC: mercurial-de...@selenic.com

My mercurial includes 997e8cf4d0a2 which includes indygreg's last attempt at
handling this. For reference, I'm not using ipython, but pudb is just trying to
load ipython to ask "are you there?" -- it's installed, but not active in my
process until pudb naively starts trying to talk to it.

pudb, immediate window (selecting a stack frame in rebase to try and evaluate
an expression)
>>>state[13533]     
Traceback (most recent call last): 
  File
"/home/timeless/hg/py/lib/python2.7/site-packages/pudb-2016.2-py2.7.egg/pudb/debugger.py",
line  1435, in cmdline_get_namespace
    from pudb.shell import SetPropagatingDict    
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 165, in
_demandimport
    return _hgextimport(_import, name, globals, locals, fromlist, level)
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 53, in
_hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File
"/home/timeless/hg/py/lib/python2.7/site-packages/pudb-2016.2-py2.7.egg/pudb/shell.py",
line 6,  in <module>
    IPython.core     
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 154, in
__getattribute__                
    self._load() 
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 102, in _load   
    mod = _hgextimport(_import, head, globals, locals, None, level) 
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 53, in
_hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/home/timeless/hg/py/lib/python2.7/site-packages/IPython/__init__.py",
line 47, in <module>
    from .core.application import Application    
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 229, in
_demandimport
    level=level) 
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 53, in
_hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File
"/home/timeless/hg/py/lib/python2.7/site-packages/IPython/core/application.py",
line 22, in      <module>
    from traitlets.config.application import Application, catch_config_error
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 254, in
_demandimport
    mod = _hgextimport(_origimport, name, globals, locals)
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 53, in
_hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File
"/home/timeless/hg/py/lib/python2.7/site-packages/traitlets/config/__init__.py",
line 6, in      <module>
    from .application import *
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 165, in
_demandimport
    return _hgextimport(_import, name, globals, locals, fromlist, level)
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 53, in
_hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File
"/home/timeless/hg/py/lib/python2.7/site-packages/traitlets/config/application.py",
line 17, in  <module>
    from decorator import decorator
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 254, in
_demandimport
    mod = _hgextimport(_origimport, name, globals, locals)
  File "/home/timeless/hg/crew/mercurial/demandimport.py", line 53, in
_hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/home/timeless/hg/py/lib/python2.7/site-packages/decorator.py", line
269, in <module>
    class ContextManager(_GeneratorContextManager):
TypeError: Error when calling the metaclass bases
    __init__() takes exactly 5 arguments (4 given)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to