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

Default file extension should be .py instead of empty #3436

Closed
ilayn opened this issue Sep 20, 2016 · 11 comments
Closed

Default file extension should be .py instead of empty #3436

ilayn opened this issue Sep 20, 2016 · 11 comments

Comments

@ilayn
Copy link

ilayn commented Sep 20, 2016

The default file type is empty in the save dialogs

What steps will reproduce the problem?

  1. Open any document and use save as dialog
  2. if there exists any remove the extension
  3. Click save

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

The expected outcome (I think) the file should be save with a defauly .py extension instead of no-extension state.

Please provide any additional information below

You can see from the screenshot possible extension recommendation windows is also empty

zzzz

Versions and main components

  • Spyder Version: 3.0.0b7
  • Python Version: 3.6
  • Operating system: Win10

Dependencies

jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.5.1 (OK)
nbconvert >=4.0 : 4.2.0 (OK)
numpy >=1.7 : 1.11.1 (OK)
pandas >=0.13.1 : 0.18.1 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.6.0 : 1.3.0 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.6.4 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.9.4-1 (OK)
sphinx >=0.6.6 : 1.4.6 (OK)
sympy >=0.7.3 : None (NOK)

@ccordoba12
Copy link
Member

Well, we extended the Editor in Spyder 3.0 so that it can handle any type of file (instead of just Python). That's why we think it's better not to offer any default extension when saving files.

@ilayn
Copy link
Author

ilayn commented Sep 20, 2016

That makes sense indeed but then there is no need for the "Save as type" dialog I think.

@goanpeca
Copy link
Member

That makes sense indeed but then there is no need for the "Save as type" dialog I think.

Could you explain

@ilayn
Copy link
Author

ilayn commented Sep 20, 2016

In the screenshot above, there is an empty save as type pulldown menu with no options. If I understand @ccordoba12 correctly, we would have an empty choice by default. However, assume that I do have a choice and it wouldn't hurt if I can just select from a list for pyc, rst, py files.

This wouldn't change any defaults but still can accomodate for quick access to file types

@ilayn
Copy link
Author

ilayn commented Sep 20, 2016

My main issue (well, first world problems :) ) is that save dialog opens and the untitled0.py is selected then I type something and hit enter without the file extension. Then of course from code completion to syntax coloring everything turns off.

So I manually find the file add the extension to the file and then reopen it in spyder. I was wondering if this can be a bit easier on the punisment of user stupidity like myself.

@goanpeca
Copy link
Member

I think we can enable the save as combobox then :-), definitely an enhancement

@ilayn
Copy link
Author

ilayn commented Sep 21, 2016

My inner laziness thanks you 😄

@goanpeca
Copy link
Member

goanpeca commented Oct 5, 2016

This is one issue you can start to work on @malliwi88.

@malliwi88
Copy link
Contributor

Hello

I have This Pull request for solve this Issue ;) @ilayn, @goanpeca

@goanpeca
Copy link
Member

@malliwi88 I have made my initial comments on the PR

malliwi88 added a commit that referenced this issue Oct 20, 2016
SOLVED Issue #3436: Default file extension should be .py
goanpeca added a commit that referenced this issue Oct 22, 2016
@ccordoba12 ccordoba12 added this to the v3.0.2 milestone Oct 23, 2016
ccordoba12 added a commit that referenced this issue Oct 23, 2016
@ilayn
Copy link
Author

ilayn commented Oct 30, 2016

A late thank you to all involved!!

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

No branches or pull requests

4 participants