Revision history [back]
Autocomplete with metaclasses in debug probe
I generally write code while stopped on a breakpoint, so that Wing is able to inspect the runtime state of my code to provide autocomplete. However, I've noticed that if I'm using a custom metaclass, Wing's autocomplete seems to have difficulty. For example:
class Meta(type):
pass
class A(metaclass=Meta):
a_long_name = 1
class B(A):
another_long_name = 2
breakpoint()
In the above, while stopped at the breakpoint I get autocomplete for B.another_long_name, but not B.a_long_name when I type them in the debug probe. If I make A a regular class, autocomplete works for both names. Interestingly, both names autocomplete when I type them in the editor window, regardless of the metaclass.Why is this? Is there something I can add to my metaclass to facilitate Wing's autocomplete?
I'm using the Wing 7 alpha, but I believe I've seen the same behaviour in Wing 6.
Autocomplete with metaclasses in debug probe
I generally write code while stopped on a breakpoint, so that Wing is able to inspect the runtime state of my code to provide autocomplete. However, I've noticed that if I'm using a custom metaclass, Wing's autocomplete seems to have difficulty. For example:
class Meta(type):
pass
class A(metaclass=Meta):
a_long_name = 1
class B(A):
another_long_name = 2
breakpoint()
In the above, while stopped at the breakpoint I get autocomplete for B.another_long_name, but not B.a_long_name when I type them in the debug probe. If I make A a regular class, autocomplete works for both names. Interestingly, both names autocomplete when I type them in the editor window, regardless of the metaclass.Why is this? Is there something I can add to my metaclass to facilitate Wing's autocomplete?
I'm using the Wing 7 alpha, but I believe I've seen the same behaviour in Wing 6.
Autocomplete with metaclasses in debug probe
I generally write code while stopped on a breakpoint, so that Wing is able to inspect the runtime state of my code to provide autocomplete. However, I've noticed that if I'm using a custom metaclass, Wing's autocomplete seems to have difficulty. For example:
class Meta(type):
pass
class A(metaclass=Meta):
a_long_name = 1
class B(A):
another_long_name = 2
breakpoint()
In the above, while stopped at the breakpoint I get autocomplete for B.another_long_name, but not B.a_long_name when I type them in the debug probe. If I make A a regular class, autocomplete works for both names. Interestingly, both names autocomplete when I type them in the editor window, regardless of the metaclass.Why is this? Is there something I can add to my metaclass to facilitate Wing's autocomplete?
I'm using the Wing 7 alpha, but I believe I've seen the same behaviour in Wing 6.
Autocomplete with metaclasses in debug probe
I generally write code while stopped on a breakpoint, so that Wing is able to inspect the runtime state of my code to provide autocomplete. However, I've noticed that if I'm using a custom metaclass, Wing's autocomplete seems to have difficulty. For example:
class Meta(type):
pass
class A(metaclass=Meta):
a_long_name = 1
class B(A):
another_long_name = 2
breakpoint()
In the above, while stopped at the breakpoint I get autocomplete for B.another_long_name, but not B.a_long_name when I type them in the debug probe. If I make A a regular class, autocomplete works for both names. Interestingly, both names autocomplete when I type them in the editor window, regardless of the metaclass.Why is this? Is there something I can add to my metaclass to facilitate Wing's autocomplete?
I'm using the Wing 7 alpha, but I believe I've seen the same behaviour in Wing 6.
Autocomplete with metaclasses in debug probe
I generally write code while stopped on a breakpoint, so that Wing is able to inspect the runtime state of my code to provide autocomplete. However, I've noticed that if I'm using a custom metaclass, Wing's autocomplete seems to have difficulty. For example:
class Meta(type):
pass
class A(metaclass=Meta):
a_long_name = 1
class B(A):
another_long_name = 2
breakpoint()
In the above, while stopped at the breakpoint I get autocomplete for B.another_long_name, but not B.a_long_name when I type them in the debug probe. If I make A a regular class, autocomplete works for both names. Interestingly, both names autocomplete when I type them in the editor window, regardless of the metaclass.Why is this? Is there something I can add to my metaclass to facilitate Wing's autocomplete?
I'm using the Wing 7 alpha, but I believe I've seen the same behaviour in Wing 6.
Autocomplete with metaclasses in debug probe
I generally write code while stopped on a breakpoint, so that Wing is able to inspect the runtime state of my code to provide autocomplete. However, I've noticed that if I'm using a custom metaclass, Wing's autocomplete seems to have difficulty. For example:
example:
class Meta(type):
pass
pass class A(metaclass=Meta):
a_long_name = 1
1 class B(A):
another_long_name = 2
breakpoint()
2 breakpoint()
â
In the above, while stopped at the breakpoint I get autocomplete for B.another_long_name, but not B.a_long_name when I type them in the debug probe. If I make A a regular class, autocomplete works for both names. Interestingly, both names autocomplete when I type them in the editor window, regardless of the metaclass.Why is this? Is there something I can add to my metaclass to facilitate Wing's autocomplete?
I'm autocomplete?I'm using the Wing 7 alpha, but I believe I've seen the same behaviour in Wing 6.