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

Calling not existing method or attribute is ignored by interpreter without error #28

Closed
dvojtise opened this issue Jun 13, 2019 · 4 comments · Fixed by #137
Closed

Calling not existing method or attribute is ignored by interpreter without error #28

dvojtise opened this issue Jun 13, 2019 · 4 comments · Fixed by #137
Assignees

Comments

@dvojtise
Copy link
Contributor

in a simple ALE program (called as a GEMOC language)

if I have some incorrect instructions such as

self.whatever.foo();
self.foo();

(neither whatever, nor foo() exist)

The interpreter continues without any error/warning !?

@fcoulon
Copy link
Collaborator

fcoulon commented Jun 17, 2019

Yes it's a bug. We should print error messages about calls to missing methods during the execution.

@dvojtise
Copy link
Contributor Author

dvojtise commented Jul 2, 2019

should be fixed by eclipse/gemoc-studio-execution-ale@730648c

@fcoulon
Copy link
Collaborator

fcoulon commented Jul 3, 2019

Can I close the issue ?

@dvojtise
Copy link
Contributor Author

dvojtise commented Jul 3, 2019

This is better but several cases are not handled:

add the wrong statement in the @initmethod (the message is only "An error occured during evaluation of a query")

add the wrong statement in the @mainmethod (no message at all)

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

Successfully merging a pull request may close this issue.

3 participants