-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Variables cannot be used when defining arguments. #37
Comments
Hmm.. I ran a couple of quick tests and it looks like the variables are stored in an I'll have to play around with it a bit. Thanks for the bug! |
Probably a bit of a naive question as I don't quite understand how the whole thing works internally but wouldn't there a way to plug the Gooey logic (get the different options and their types, display a beautiful GUI out of it) only in the |
The tricky part is getting all of the info before the client program actually runs. It's not as simple -- at least how I'm reasoning about it (which could be wrong) -- as getting reference to and reading what's in the I've been playing around with a few ways of getting around this limitation -- Specifically, ones that don't involve parsing the AST a million times looking for In my small scale testing, it's been pretty successful. But I'm not sure how robust a strategy it is to partially run a source file in this manner. I suspect it would be brittle with other people's code. Or it could work way better than what's there now. Who knows! At any rate, a fix to your issue (using one of the above strategies) will be pushed soon. |
I guess I have missed something but a simple solution seems to be to launch the GUI as part of the I wrote a very simple way to do so if you are interested : https://gist.github.com/SylvainDe/9fc6502b778267e86c64 . The point is that the decorator would change the behavior of the |
Man, do I feel like a dope! Yeah, that makes way more sense than what I was doing. I think I got wrapped up in my ways a bit, there. Gooey came about from something I was working on called Your suggestion is definitely the correct route to take.
|
I'm glad you like the suggestion. However, I'm not quite sure you will
|
Alright, this should be fixed now. I got hung up where you expected: figuring out how to restart. I ended up modifying things so that rather than doing all of the Not the most elegant of solutions, but it seems to work. |
The situation is hard to describe but basically,
works just fine but if you replace 'bar' with bar in the line flagged with '######', you get
The text was updated successfully, but these errors were encountered: