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

Error when opening a file using the file browser pane #3519

Closed
mdcutone opened this issue Feb 3, 2021 · 2 comments
Closed

Error when opening a file using the file browser pane #3519

mdcutone opened this issue Feb 3, 2021 · 2 comments
Labels
💻 app/ui PsychoPy app changes (often wxPython issues) 🐞 bug Issue describes a bug (crash or error) or undefined behavior.

Comments

@mdcutone
Copy link
Member

mdcutone commented Feb 3, 2021

Coder's file browser pane raise an error when opening a non-text file. Error is harmless but annoying.

@mdcutone mdcutone added 💻 app/ui PsychoPy app changes (often wxPython issues) 🐞 bug Issue describes a bug (crash or error) or undefined behavior. pre-release labels Feb 3, 2021
@mdcutone
Copy link
Member Author

mdcutone commented Feb 3, 2021

The raised error looks like this:

Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\coder\fileBrowser.py", line 571, in OnItemActivated
    self.coder.fileOpen(None, self.selectedItem.abspath)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\coder\coder.py", line 2369, in fileOpen
    self.setFileModified(False)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\coder\coder.py", line 2765, in setFileModified
    self.currentDoc.UNSAVED = isModified
AttributeError: 'NoneType' object has no attribute 'UNSAVED'

It only happens when there is no editor open.

@peircej
Copy link
Member

peircej commented Feb 4, 2021

Fixed in fe5e7a4

@peircej peircej closed this as completed Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 app/ui PsychoPy app changes (often wxPython issues) 🐞 bug Issue describes a bug (crash or error) or undefined behavior.
Projects
None yet
Development

No branches or pull requests

2 participants