{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/8455","repository_url":"https://api.github.com/repos/spyder-ide/spyder","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/8455/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/8455/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/8455/events","html_url":"https://github.com/spyder-ide/spyder/issues/8455","id":392198741,"node_id":"MDU6SXNzdWUzOTIxOTg3NDE=","number":8455,"title":"Project Explorer is sometimes not set correctly when switching projects","user":{"login":"jnsebgosselin","id":10170372,"node_id":"MDQ6VXNlcjEwMTcwMzcy","avatar_url":"https://avatars1.githubusercontent.com/u/10170372?v=4","gravatar_id":"","url":"https://api.github.com/users/jnsebgosselin","html_url":"https://github.com/jnsebgosselin","followers_url":"https://api.github.com/users/jnsebgosselin/followers","following_url":"https://api.github.com/users/jnsebgosselin/following{/other_user}","gists_url":"https://api.github.com/users/jnsebgosselin/gists{/gist_id}","starred_url":"https://api.github.com/users/jnsebgosselin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnsebgosselin/subscriptions","organizations_url":"https://api.github.com/users/jnsebgosselin/orgs","repos_url":"https://api.github.com/users/jnsebgosselin/repos","events_url":"https://api.github.com/users/jnsebgosselin/events{/privacy}","received_events_url":"https://api.github.com/users/jnsebgosselin/received_events","type":"User","site_admin":false},"labels":[{"id":177787288,"node_id":"MDU6TGFiZWwxNzc3ODcyODg=","url":"https://api.github.com/repos/spyder-ide/spyder/labels/component:Projects","name":"component:Projects","color":"d4c5f9","default":false},{"id":522853563,"node_id":"MDU6TGFiZWw1MjI4NTM1NjM=","url":"https://api.github.com/repos/spyder-ide/spyder/labels/severity:4-Low","name":"severity:4-Low","color":"dddddd","default":false},{"id":177778989,"node_id":"MDU6TGFiZWwxNzc3Nzg5ODk=","url":"https://api.github.com/repos/spyder-ide/spyder/labels/type:Bug","name":"type:Bug","color":"d73a4a","default":false}],"state":"open","locked":false,"assignee":{"login":"jnsebgosselin","id":10170372,"node_id":"MDQ6VXNlcjEwMTcwMzcy","avatar_url":"https://avatars1.githubusercontent.com/u/10170372?v=4","gravatar_id":"","url":"https://api.github.com/users/jnsebgosselin","html_url":"https://github.com/jnsebgosselin","followers_url":"https://api.github.com/users/jnsebgosselin/followers","following_url":"https://api.github.com/users/jnsebgosselin/following{/other_user}","gists_url":"https://api.github.com/users/jnsebgosselin/gists{/gist_id}","starred_url":"https://api.github.com/users/jnsebgosselin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnsebgosselin/subscriptions","organizations_url":"https://api.github.com/users/jnsebgosselin/orgs","repos_url":"https://api.github.com/users/jnsebgosselin/repos","events_url":"https://api.github.com/users/jnsebgosselin/events{/privacy}","received_events_url":"https://api.github.com/users/jnsebgosselin/received_events","type":"User","site_admin":false},"assignees":[{"login":"jnsebgosselin","id":10170372,"node_id":"MDQ6VXNlcjEwMTcwMzcy","avatar_url":"https://avatars1.githubusercontent.com/u/10170372?v=4","gravatar_id":"","url":"https://api.github.com/users/jnsebgosselin","html_url":"https://github.com/jnsebgosselin","followers_url":"https://api.github.com/users/jnsebgosselin/followers","following_url":"https://api.github.com/users/jnsebgosselin/following{/other_user}","gists_url":"https://api.github.com/users/jnsebgosselin/gists{/gist_id}","starred_url":"https://api.github.com/users/jnsebgosselin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnsebgosselin/subscriptions","organizations_url":"https://api.github.com/users/jnsebgosselin/orgs","repos_url":"https://api.github.com/users/jnsebgosselin/repos","events_url":"https://api.github.com/users/jnsebgosselin/events{/privacy}","received_events_url":"https://api.github.com/users/jnsebgosselin/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/44","html_url":"https://github.com/spyder-ide/spyder/milestone/44","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/44/labels","id":2322046,"node_id":"MDk6TWlsZXN0b25lMjMyMjA0Ng==","number":44,"title":"v4.0beta2","description":"","creator":{"login":"ccordoba12","id":365293,"node_id":"MDQ6VXNlcjM2NTI5Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/365293?v=4","gravatar_id":"","url":"https://api.github.com/users/ccordoba12","html_url":"https://github.com/ccordoba12","followers_url":"https://api.github.com/users/ccordoba12/followers","following_url":"https://api.github.com/users/ccordoba12/following{/other_user}","gists_url":"https://api.github.com/users/ccordoba12/gists{/gist_id}","starred_url":"https://api.github.com/users/ccordoba12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccordoba12/subscriptions","organizations_url":"https://api.github.com/users/ccordoba12/orgs","repos_url":"https://api.github.com/users/ccordoba12/repos","events_url":"https://api.github.com/users/ccordoba12/events{/privacy}","received_events_url":"https://api.github.com/users/ccordoba12/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":175,"state":"open","created_at":"2017-02-14T15:29:33Z","updated_at":"2018-12-18T15:08:32Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-12-18T15:08:32Z","updated_at":"2018-12-18T15:18:54Z","closed_at":null,"author_association":"MEMBER","body":"<!--- **PLEASE READ:** When submitting here, please ensure you've completed the following checklist and checked the boxes to confirm. Issue reports without it may be closed. Thanks! --->\r\n\r\n### Issue Report Checklist\r\n\r\n* [x] Searched the [issues page](https://github.com/spyder-ide/spyder/issues?q=is%3Aissue) for similar reports\r\n\r\n## Problem Description\r\n\r\nThis bug is easier to reproduce and understand with two different drive with different letters, but it is also possible to reproduce it with only one drive. In fact this problem will occur when the root path of the project we are switching to is not contained in the root path of the project we are switching from.\r\n\r\nSo lets say that you create one project at `C:/Users/User/cdisk_project/project` and another one on a usb stick at `E:/usb_projects/project`, then switching from one project to the other cause the project explorer to set its root path incorrectly.\r\n\r\n### What steps reproduce the problem?\r\n\r\n1. Create a project on a given Drive\r\n2. Create another project on another Drive (with a different name)\r\n3.  Switch from one project to the other\r\n\r\n### What is the expected output? What do you see instead?\r\n\r\nI have already explained this above, but here is a screenshot.\r\n\r\n![image](https://user-images.githubusercontent.com/10170372/50162362-2b900500-02ac-11e9-8e26-747446c07974.png)\r\n\r\n### Paste Traceback/Error Below (if applicable)\r\n<!--- Copy from error dialog or View > Panes > Internal Console --->\r\n\r\nThere is no traceback\r\n\r\n## Versions\r\n<!--- You can get this information from Help > About Spyder...\r\nor (if Spyder won't launch) the \"conda list\" command\r\nfrom the Anaconda Prompt/Terminal/command line. --->\r\n\r\n* Spyder version: Spyder 4.0.0.dev0 https://github.com/spyder-ide/spyder/commit/8be3fd8d042425005cfeeeef3e8e21d63149731d\r\n* Python version: Python 3.6.6 64-bit\r\n* Qt version: Qt 5.9.4\r\n* PyQt version: PyQt5 5.9.2\r\n* Operating System name/version: Windows 10 \r\n\r\n### Dependencies\r\n<!--- Please go to the menu entry Help > Dependencies,\r\npress the Copy to clipboard button and paste below --->\r\n\r\n```pygments >=2.0    :  2.2.0 (OK)\r\nqdarkstyle >=2.6.4:  2.6.4 (OK)\r\nsphinx >=0.6.6    :  1.8.1 (OK)\r\npyls >=0.19.0     :  0.19.0 (OK)\r\nnbconvert >=4.0   :  5.3.1 (OK)\r\npandas >=0.13.1   :  0.23.4 (OK)\r\nnumpy >=1.7       :  1.15.4 (OK)\r\nsympy >=0.7.3     :  None (NOK)\r\ncython >=0.21     :  None (NOK)\r\nqtconsole >=4.2.0 :  4.5.0.dev0 (OK)\r\nIPython >=4.0     :  7.0.1 (OK)\r\nmatplotlib >=2.0.0:  3.0.1 (OK)\r\npylint >=0.25     :  2.1.1 (OK)\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/448255946","html_url":"https://github.com/spyder-ide/spyder/issues/8455#issuecomment-448255946","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/8455","id":448255946,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODI1NTk0Ng==","user":{"login":"jnsebgosselin","id":10170372,"node_id":"MDQ6VXNlcjEwMTcwMzcy","avatar_url":"https://avatars1.githubusercontent.com/u/10170372?v=4","gravatar_id":"","url":"https://api.github.com/users/jnsebgosselin","html_url":"https://github.com/jnsebgosselin","followers_url":"https://api.github.com/users/jnsebgosselin/followers","following_url":"https://api.github.com/users/jnsebgosselin/following{/other_user}","gists_url":"https://api.github.com/users/jnsebgosselin/gists{/gist_id}","starred_url":"https://api.github.com/users/jnsebgosselin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnsebgosselin/subscriptions","organizations_url":"https://api.github.com/users/jnsebgosselin/orgs","repos_url":"https://api.github.com/users/jnsebgosselin/repos","events_url":"https://api.github.com/users/jnsebgosselin/events{/privacy}","received_events_url":"https://api.github.com/users/jnsebgosselin/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T15:18:54Z","updated_at":"2018-12-18T15:18:54Z","author_association":"MEMBER","body":"This bug was hard to track down, but easy to solve. So I'm going to submit a PR to fix this soon."}}
{"actor":{"display_login":"jnsebgosselin"}}