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

Folders will disappear from the Pythonpath manager when they are deleted, but remain in sys.path #19182

Closed
rjyunis opened this issue Aug 26, 2022 · 2 comments · Fixed by #21574

Comments

@rjyunis
Copy link

rjyunis commented Aug 26, 2022

Issue Report Checklist

  • [x ] Searched the issues page for similar reports
  • [x ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • [x ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • [ x] Could not reproduce inside jupyter qtconsole (if console-related)
  • [x ] Tried basic troubleshooting (if a bug/error)
    • [ x] Restarted Spyder
    • [ x] Reset preferences with spyder --reset
    • [x ] Reinstalled the latest version of Anaconda
    • [x ] Tried the other applicable steps from the Troubleshooting Guide
  • [ x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Folders will disappear from the PYTHONPATH manager when they are deleted, but remain in sys.path.

As far as I know, that means there is no way to remove that value from your sys.path until you re-create the directory and remove it from the manager.

What steps reproduce the problem?

  1. Add a folder via PYTHONPATH manager
  2. Delete the folder
  3. Restart Spyder
  4. Confirm it has disappeared from the manager
  5. Confirm it is still present in sys.path
  6. Add the folder back
  7. Restart Spyder
  8. Confirm the folder has returned to the manager

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

I would expect that the folder remains in the manager, but it does not. Maybe also a message saying that a user-defined PYTHONPATH addition no longer exists with a prompt to remove or update it.

Paste Traceback/Error Below (if applicable)

n/a

Versions

  • Spyder version: 5.3.2
  • Python version: 3.8.10
  • Qt version: 5.15.2
  • PyQt version: 5.15.7
  • Operating System name/version: Windows 10

Dependencies

n/a

@ccordoba12
Copy link
Member

ccordoba12 commented Aug 26, 2022

Hey @rjyunis, thanks for reporting. We'll take care of this in our next major version (Spyder 6) because we plan to improve our PYTHONPATH manager significantly in that version.

@ccordoba12 ccordoba12 added this to the v6.0alpha1 milestone Aug 26, 2022
@ccordoba12 ccordoba12 modified the milestones: v6.0alpha1, v6.0alpha3 Jun 8, 2023
@ccordoba12 ccordoba12 modified the milestones: v6.0alphaX, v6.0alpha3 Nov 16, 2023
@ccordoba12 ccordoba12 changed the title Folders will disappear from the PYTHONPATH manager when they are deleted, but remain in sys.path Folders will disappear from the PYTHONPATH manager when they are deleted, but remain in sys.path Dec 1, 2023
@ccordoba12 ccordoba12 changed the title Folders will disappear from the PYTHONPATH manager when they are deleted, but remain in sys.path Folders will disappear from the Pythonpath manager when they are deleted, but remain in sys.path Dec 1, 2023
@ccordoba12 ccordoba12 self-assigned this Dec 1, 2023
@ccordoba12
Copy link
Member

This should be fixed now in our latest version (5.5.0), so please update.

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

Successfully merging a pull request may close this issue.

2 participants