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

Saving a new Sass file defaults to ".haml" as the extension #99

Open
svivian opened this issue Nov 5, 2016 · 6 comments
Open

Saving a new Sass file defaults to ".haml" as the extension #99

svivian opened this issue Nov 5, 2016 · 6 comments

Comments

@svivian
Copy link

svivian commented Nov 5, 2016

To reproduce:

  1. Start a new file, write some Sass/CSS.
  2. Select Sass as the current syntax (or alternatively, copy-paste some Sass from another file, it will set that automatically).
  3. Save the file.

When the save dialog comes up, the suggested filename defaults to untitled.haml. It should be untitled.scss.

This is on a MacBook Pro, OSX 10.10.5. Sublime Text 3, Build 3126 (stable channel).

I've followed the README but I think this is a slightly different issue. ST interprets the files as Sass just fine and colours them so, it's just when saving a new file it defaults to a .haml extension. As noted in #41 in ST3 there are no separate packages available, they're built into ST. The only tmLanguage files on my entire system are the binary files in the Cache folder like ~/Library/Application Support/Sublime Text 3/Cache/Rails/Ruby Haml.tmLanguage.cache

@hey-stefan
Copy link

Hi @svivian – have you been able to solve this? Tried everything, still can't in 2017. :)

@svivian
Copy link
Author

svivian commented Jun 19, 2017

@Stefan-T nope, still have the same problem to this day. I also have a similar issue with Laravel Blade templates, it gives .blade as the extension when it should be .blade.php

Not sure if it's the plugin itself or if there is a deeper issue with Sublime.

@hey-stefan
Copy link

@svivian what's worse is, I must rename the file after it's saved, because if i remove ".haml" from the dialog box, it reappears in the filename itself... So frustrating.

@svivian
Copy link
Author

svivian commented Jun 19, 2017

What platform are you on? On Mac I get a popup asking if I'm sure I want to save the file with that extension, but it does save it with the correct ext. From recollection it worked fine on Linux last time I used it.

@dsasko
Copy link

dsasko commented Jun 29, 2017

Try installing the SCSS package.
Before saving the new file make sure the syntax in sublime is set to SCSS.

This solved the issue for me.

OSX - 10.11.6
ST3 - build 3126

@svivian
Copy link
Author

svivian commented Jul 8, 2017

@dsasko OK, but that's a different package. It doesn't solve the issues with this one.

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

No branches or pull requests

3 participants