{"action":"created","issue":{"url":"https://api.github.com/repos/mu-editor/mu/issues/526","repository_url":"https://api.github.com/repos/mu-editor/mu","labels_url":"https://api.github.com/repos/mu-editor/mu/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/mu-editor/mu/issues/526/comments","events_url":"https://api.github.com/repos/mu-editor/mu/issues/526/events","html_url":"https://github.com/mu-editor/mu/issues/526","id":338864715,"node_id":"MDU6SXNzdWUzMzg4NjQ3MTU=","number":526,"title":"Closing panels by switching mode doesn't alter internal \"on/off\" state","user":{"login":"carlosperate","id":4189262,"node_id":"MDQ6VXNlcjQxODkyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/4189262?v=4","gravatar_id":"","url":"https://api.github.com/users/carlosperate","html_url":"https://github.com/carlosperate","followers_url":"https://api.github.com/users/carlosperate/followers","following_url":"https://api.github.com/users/carlosperate/following{/other_user}","gists_url":"https://api.github.com/users/carlosperate/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosperate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosperate/subscriptions","organizations_url":"https://api.github.com/users/carlosperate/orgs","repos_url":"https://api.github.com/users/carlosperate/repos","events_url":"https://api.github.com/users/carlosperate/events{/privacy}","received_events_url":"https://api.github.com/users/carlosperate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-06T09:13:53Z","updated_at":"2018-07-07T13:06:05Z","closed_at":null,"author_association":"MEMBER","body":"Steps to replicate:\r\n\r\n* Open Mu\r\n* Go to Python mode\r\n* Open REPL\r\n* Change mode (for example to micro:bit mode)\r\n    * At this point REPL is closed\r\n* Go back to Python mode\r\n* Click on REPL button\r\n    * Nothing happens as the internal state of Mu thinks the REPL pane is still open and now it tried to close it\r\n* Click on REPL button\r\n    * Now it opens\r\n\r\nI have chosen the steps above to demostrate the issue because it doesn't require any device attached to the computer, but this is more obvious on modes like the micro:bit where you can have the Files pane open, change mode, change back, and at that point it won't let you open the REPL and instead show you an alert with the message: \"REPL and file system cannot work at the same time.\"\r\n\r\nLarge gif incoming:\r\n\r\n![mu-pane-state](https://user-images.githubusercontent.com/4189262/42370610-1fe0aa62-8105-11e8-8ecc-c410c66835bd.gif)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mu-editor/mu/issues/comments/403214452","html_url":"https://github.com/mu-editor/mu/issues/526#issuecomment-403214452","issue_url":"https://api.github.com/repos/mu-editor/mu/issues/526","id":403214452,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzIxNDQ1Mg==","user":{"login":"ntoll","id":37602,"node_id":"MDQ6VXNlcjM3NjAy","avatar_url":"https://avatars0.githubusercontent.com/u/37602?v=4","gravatar_id":"","url":"https://api.github.com/users/ntoll","html_url":"https://github.com/ntoll","followers_url":"https://api.github.com/users/ntoll/followers","following_url":"https://api.github.com/users/ntoll/following{/other_user}","gists_url":"https://api.github.com/users/ntoll/gists{/gist_id}","starred_url":"https://api.github.com/users/ntoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntoll/subscriptions","organizations_url":"https://api.github.com/users/ntoll/orgs","repos_url":"https://api.github.com/users/ntoll/repos","events_url":"https://api.github.com/users/ntoll/events{/privacy}","received_events_url":"https://api.github.com/users/ntoll/received_events","type":"User","site_admin":false},"created_at":"2018-07-07T13:06:05Z","updated_at":"2018-07-07T13:06:05Z","author_association":"MEMBER","body":"Just looked into this, it's because the interface layer is changing without it going through the logic layer (which keeps track of state AND the interface layer). I guess this was missed in some refactoring somewhere. In any case, it should be simple to fix (coming in a moment)."}}
{"actor":{"display_login":"ntoll"}}