-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder 6.0.0rc2 Windows Standalone installer seems to be making changes to the Windows Registry breaking the cmd.exe association with .cmd and .bat files #22389
Comments
Hi @JulioCantarero thank you for the feedback and giving it a try to the Spyder 6 rc2 release! What do you think @ccordoba12 @mrclary ? |
This should be fixed by conda-forge/spyder-feedstock#183. |
@JulioCantarero, I am unable to reproduce your issue. The registry items you list are created, as expected, but they do not result in the behavior you describe. I am still able to double-click |
Hi. Another check in case you want to do it. I actually noticed the problem because I have a start-up CMD script, and it stopped running any more. Instead, when I logged into Windows, I got a "Run with" prompt to select the application, where Spyder was shown, but not "cmd.exe". I noticed the second symptom of not running at double-click later, but it was easier to explain. In any case, thank you for testing it. Maybe it is not a general problem, I cannot say, I am not an expert in Windows registry. |
@JulioCantarero, thanks for the additional information. I will try to setup a startup script to see if anything happens for me. One thing you may also try to do is search for all occurrences of "spyder" in your registry and remove them. Perhaps something got messed up by installing/uninstalling rc1 and a residual entry is giving the problem. |
@mrclary, I just repeated uninstall rc2 + registry review + install rc2. I searched the Windows registry for entries containing spyder, and I deleted a few things, but I don't think any of them had any meaning, they seem mostly log info. For the record, I deleted:
Anyhow, I ended up having the same problem:
This time, I only had to remove the following Windows registry entries to fix the problem:
Other entries I mentioned in the issue description were probably caused my interactions with the "Run with" pop-up window. When I log in, I get this pop-up window instead of the .cmd startup script running. When I double-click a .cmd file, I get the same "Run with" pop-up And I cannot even associate with Windows/System32/cmd.exe manually, because Windows does not allow me to: I guess this does not clarify the source of the problem. |
Thanks @JulioCantarero. We have decided to remove @JulioCantarero, can you test if Spyder is the default application for other file extensions as well, e.g. |
@mrclary I checked the list of default applications associated with file types in the Windows Settings menu, and Spyder 6 appears as the default application for these extensions: When I click on a file with most of these extensions (e.g. |
That's interesting because both |
@mrclary can you post this to the menuinst repo so I can take a look? Otherwise this will get lost in the oceans of notifications 😬 Thanks! 🙏 |
I just installed 6.0.0rc2 in Windows 11 Home and I am seeing the same issue, so it is not an isolated problem. I hardly know Windows so I can't debug by myself, but I am happy to try out things. |
@jitseniesen, this should be fixed in Spyder 6.0 final because we only left Python extensions associated to Spyder. |
@JulioCantarero @jaimergp, I've opened this issue in the menuinst repo: conda/menuinst#251. We can take further discussion there but I'll close this issue after conda/menuinst#251 is resolved. |
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Windows .cmd and .bat files cannot be executed by double-clicking them anymore, because Spyder 6 wrongly claims the association with these 2 types of files.
What steps reproduce the problem?
What is the expected output? What do you see instead?
In Windows, I do not expect Spyder to be associated with files .cmd and .bat.
Paste Traceback/Error Below (if applicable)
Versions
Dependencies
N/A
The text was updated successfully, but these errors were encountered: