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

File extension warning when saving a new file #575

Closed
jamshark70 opened this issue Oct 5, 2012 · 4 comments
Closed

File extension warning when saving a new file #575

jamshark70 opened this issue Oct 5, 2012 · 4 comments
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. env: SCIDE

Comments

@jamshark70
Copy link
Contributor

After pulling today:

  1. Create a new file. It's named "Untitled" by default.
  2. Type some code into it.
  3. Ctrl-S and save as "test.scd"
  4. IDE tells you the file extension has changed, and you should close and reopen the file to refresh the editor.

The warning should occur only if the file previously existed on disk before the IDE got its hands on it.

@jleben
Copy link
Member

jleben commented Oct 5, 2012

The warning should occur only if the file previously existed on disk before the IDE got its hands on it.

Well, it might be that you're saving in plain text format, which is different than format assumed by default - i.e. sc code format. In that case you do need to re-open the file, to drop syntax highlighting and such.

This warning is simply being generic, to never warn too little, at the cost of sometimes warning too much.

@jamshark70
Copy link
Contributor Author

Note step 3, in which I did give a file extension scd.

I retested and confirmed that the file type chosen in the save dialog's type menu is scd, matching the extension, putting this in the category of warning too much :-)

@jleben
Copy link
Member

jleben commented Oct 5, 2012

I retested and confirmed that the file type chosen in the save dialog's type menu is scd, matching the extension, putting this in the category of warning too much

Yes, that's what I meant - I agree it warns once too much here. I should have said "You could have been saving..." instead of "it might be that you're saving...".

timblechmann added a commit that referenced this issue Oct 5, 2012
…r scd

fixing #575

Signed-off-by: Tim Blechmann <tim@klingt.org>
@timblechmann
Copy link
Contributor

fixed. we should not warn when saving unnamed files as .sc and .scd files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. env: SCIDE
Projects
None yet
Development

No branches or pull requests

3 participants