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

Exceptions as PsychoPy attempts to validate unfinished code #3063

Closed
ghost opened this issue Aug 11, 2020 · 0 comments
Closed

Exceptions as PsychoPy attempts to validate unfinished code #3063

ghost opened this issue Aug 11, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 11, 2020

While typing code into a component's field prefixed with $, PsychoPy will repeatedly throw errors as you type. The error is as follows:

Traceback (most recent call last):
 File "C:\path\to\PsychoPy3\lib\site-packages\psychopy\app\builder\validators.py", line 205, in check
  names = compile(code, '', 'exec').co_names
TypeError: compile() arg 1 must be a string, bytes or AST object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "C:\path\to\PsychoPy3\lib\site-packages\psychopy\app\builder\validators.py", line 58, in Validate
  message, valid = self.check(parent)
 File "C:\path\to\PsychoPy3\lib\site-packages\psychopy\app\builder\validators.py", line 208, in check
  if not code.strip() == '':
AttributeError: 'NoneType' object has no attribute 'strip'

In my experience, it sends the same exception twice in a row, then waits until you start typing again, and will then throw it two times more, and so on.

I'm guessing PsychoPy is intending to show me some feedback on whether or not the code I am typing is valid, but I'm not seeing any feedback, so that could be part of the issue.

This is on the latest release v2020.2.2

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

0 participants