Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions in global scope break the Environment viewer #664

Open
ben91082 opened this issue Jul 31, 2018 · 0 comments
Open

Functions in global scope break the Environment viewer #664

ben91082 opened this issue Jul 31, 2018 · 0 comments

Comments

@ben91082
Copy link

Using Rodeo v2.5.2 on Windows

The environment works fine intially. E.g.

>>> a = 1
... b = '2'
... c = [1,2,3]
... d = {'a' : 1}
... class junk():
...     pass
>>> 

And everything shows as expected.

image

If I now define a function:

>>> def fn():
...     pass

I get the following output including an error in the developer console

image

From this point onwards, as long as the function remains in the global scope, the Environment never updates and I keep getting the same error every time I enter anything into the console.

>>> x=10
>>> y=20
>>> z=30

image

But if I remove the function, the error goes away and the environment pane updates again

>>> del fn

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant