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
File types not associated when using file_extensions on Windows #185
Comments
Note: this does not appear to establish file type association (conda/menuinst#185)
Hm, can you try with a leading period for the extensions? See example. "It works on CI", but CI runs as administrator by default, so we might need to adjust something. "Open With" has not been added per se, as it requires some extra registry keys. |
@mrclary did you have a chance to take a look at the workaround? |
@jaimergp, sorry, I have not yet had a chance to look at it. |
The short of itI suspect that an error occurs on install after the first item in the file extension list is handled resulting in no other extensions being handled, but the shortcut is produced. On uninstall, an error results due to the missing expected AssocFiles. The long of itSo I tried using
This version of Spyder does not have file extensions listed in the
However, I get the following errors after modifying spyder-menu.json
And attempting to uninstall:
If I only have one extension in the list, the install produces the same error, although the AssocFile is produced. The uninstall does not produce an error. So, I suspect that the error occurs on install after the first extension in the list is handled resulting in no other extensions being handled, but the shortcut is produced nonetheless. Then, on uninstall, the error is a result of the missing expected AssocFiles. |
Looks like the problem is at: menuinst/menuinst/platforms/win_utils/registry.py Lines 73 to 76 in db52885
So maybe it works if you remove the |
Note: this does not appear to establish file type association (conda/menuinst#185)
Note: this does not appear to establish file type association (conda/menuinst#185)
Note: this does not appear to establish file type association (conda/menuinst#185)
Checklist
What happened?
@jaimergp, I get several errors when using
file_extensions
. Theconstructor
-based installer successfully installs the environment and shortcuts, however file types don't seem to be associated with Spyder, i.e. Spyder is not an available application to "open with" for expected file types.Additionally, attempting to uninstall or install with
menuinst
results in the following errors.Attempt to uninstall shortcut
Attempt to install shortcut
I get the same errors whether I run the installer as administrator or not, except the traceback file paths are
C:\ProgramData\spyder-6...
instead. The first error appears to result because thespyder-6.AssocFilec
registry key was not created as expected. I'm puzzled why the second error occurs even when run from a cmd window with administrator privileges: why wasn't aPermissionError
raised whenmenuinst
was run from the installer?.Conda Info
Conda Config
Conda list
Additional Context
spyder-menu.json
The text was updated successfully, but these errors were encountered: