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

Editor extraneously reloads files when switching projects #14787

Closed
mrclary opened this issue Feb 19, 2021 · 3 comments · Fixed by #15681
Closed

Editor extraneously reloads files when switching projects #14787

mrclary opened this issue Feb 19, 2021 · 3 comments · Fixed by #15681
Assignees
Labels
Milestone

Comments

@mrclary
Copy link
Contributor

mrclary commented Feb 19, 2021

Problem Description

When switching projects, the Editor seems to close and reopen the documents from the first project, then switches to the new project and loads the documents for the new projects.

What steps reproduce the problem?

  1. Open a project with several files
  2. Switch to another project
  3. Observe the files from first project being closed and reopened, then the new project is loaded with its files.

What is the expected output? What do you see instead?

When switching projects, the first project files should be closed and not reopened.

Versions

  • Spyder version: 4.3.0.dev0 1c4c84e
  • Python version: 3.9.1 64-bit
  • Qt version: 5.9.7
  • PyQt5 version: 5.9.2
  • Operating System: Darwin 19.6.0

Dependencies

Dependencies
# Mandatory:
applaunchservices >=0.1.7       :  0.2.1 (OK)
atomicwrites >=1.2.0            :  1.4.0 (OK)
chardet >=2.0.0                 :  4.0.0 (OK)
cloudpickle >=0.5.0             :  1.6.0 (OK)
diff_match_patch >=20181111     :  20200713 (OK)
intervaltree >=3.0.2            :  3.1.0 (OK)
IPython >=7.6.0                 :  7.20.0 (OK)
jedi =0.17.2                    :  0.17.2 (OK)
jsonschema >=3.2.0              :  3.2.0 (OK)
keyring >=17.0.0                :  22.0.1 (OK)
nbconvert >=4.0                 :  6.0.7 (OK)
numpydoc >=0.6.0                :  1.1.0 (OK)
parso =0.7.0                    :  0.7.0 (OK)
pexpect >=4.4.0                 :  4.8.0 (OK)
pickleshare >=0.4               :  0.7.5 (OK)
psutil >=5.3                    :  5.8.0 (OK)
pygments >=2.0                  :  2.7.4 (OK)
pylint >=1.0                    :  2.6.0 (OK)
pyls >=0.36.2;<1.0.0            :  v4.2.1+130.g1c4c84e72 (OK)
pyls_black >=0.4.6              :  0.4.6 (OK)
pyls_spyder >=0.3.0             :  0.3.0 (OK)
qdarkstyle >=2.8                :  2.8.1 (OK)
qtawesome >=0.5.7               :  1.0.1 (OK)
qtconsole >=5.0.1               :  5.0.2 (OK)
qtpy >=1.5.0                    :  1.9.0 (OK)
rtree >=0.8.3                   :  0.9.4 (OK)
setuptools >=39.0.0             :  52.0.0.post20210125 (OK)
sphinx >=0.6.6                  :  3.4.3 (OK)
spyder_kernels >=1.10.1;<1.11.0 :  1.11.0.dev0 (OK)
textdistance >=4.2.0            :  4.2.0 (OK)
three_merge >=0.1.1             :  0.1.1 (OK)
watchdog >=0.10.3               :  1.0.2 (OK)
zmq >=17                        :  20.0.0 (OK)

# Optional:
cython >=0.21                   :  0.29.21 (OK)
matplotlib >=2.0.0              :  3.3.4 (OK)
numpy >=1.7                     :  1.19.2 (OK)
pandas >=1.1.1                  :  1.2.1 (OK)
scipy >=0.17.0                  :  1.6.0 (OK)
sympy >=0.7.3                   :  1.7.1 (OK)

change projects

@juanis2112
Copy link
Contributor

Thanks for reporting this @mrclary. I can successfully reproduce this bug in 4.3.0.dev0 (also MacOS). I also found another weird behaviour. When I open a project, it not only opens the files of the project but a bunch of files from Spyder's repo. Not sure if it is related.

Screenshot 2021-02-19 at 1 35 05 PM

@dalthviz can you try reproducing this on Windows to see if it also happens there?

@juanis2112 juanis2112 self-assigned this Feb 19, 2021
@dalthviz
Copy link
Member

@juanis2112 I was able to reproduce this on Windows too:

projects

@mrclary
Copy link
Contributor Author

mrclary commented Feb 19, 2021

When I open a project, it not only opens the files of the project but a bunch of files from Spyder's repo. Not sure if it is related.

I noticed this as well, but only when I bootstrap. It does not manifest with the macOS application. This may indicate an issue in bootstrap.py.

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

Successfully merging a pull request may close this issue.

4 participants