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

TypeError: 'encoding' issue #32

Open
brettalton opened this issue Oct 7, 2014 · 2 comments
Open

TypeError: 'encoding' issue #32

brettalton opened this issue Oct 7, 2014 · 2 comments

Comments

@brettalton
Copy link

I was just about to write this issue under https://github.com/bnlucas/SassBuilder/ when I found out this error relates to CSS Extended Completions.

This issue stopped SassBuilder from compiling. I'm on Mac OS X 10.9 with Sublime Text 2, updated Homebrew and everything else I can think of.

Error on compilation:

Writing file /User/brett/www/project1/sass/title.scss with encoding UTF-8
PARSING SAVED VIEW
Traceback (most recent call last):
  File "./sublime_plugin.py", line 190, in on_post_save
  File "./sublime_plugin.py", line 154, in run_timed_function
  File "./sublime_plugin.py", line 189, in <lambda>
  File "./css_style_completions.py", line 62, in on_post_save
  File "./style_parser.py", line 141, in parse_view
TypeError: 'encoding' is an invalid keyword argument for this function

I looked up which file those relate to and once I removed CSS Extended Completions, it started working again.

Working output:

Writing file /User/brett/www/project1/sass/title.scss with encoding UTF-8

My packages:

{
    "auto_upgrade_last_run": null,
    "installed_packages":
    [
        "AdvancedNewFile",
        "Alignment",
        "ApacheConf.tmLanguage",
        "BeautifyRuby",
        "cdnjs",
        "Clipboard History",
        "CoffeeScript",
        "Color Highlighter",
        "Color Scheme - Creamy",
        "CSS Extended Completions",
        "Dayle Rees Color Schemes",
        "EncodingHelper",
        "Handlebars",
        "HTML Boilerplate",
        "HTML Snippets",
        "HTML-CSS-JS Prettify",
        "HTML5",
        "HTMLBeautify",
        "JavaScript Snippets",
        "Laravel 4 Snippets",
        "Laravel Generator",
        "LESS",
        "Nettuts+ Fetch",
        "Package Control",
        "RenameTab",
        "Sass",
        "SASS Build",
        "SassBeautify",
        "SassBuilder",
        "SchemeCycler",
        "SCSS",
        "SFTP",
        "StringEncode",
        "sublime-text-handlebars",
        "sublimelint",
        "SublimeLinter",
        "SublimeOnSaveBuild",
        "Syntax Highlighting for Sass",
        "Theme - Brogrammer",
        "Theme - Centurion",
        "Theme - Centurion Blue",
        "Theme - Farzher",
        "Theme - Minimal",
        "Theme - Soda",
        "Theme - Spacegray",
        "TrailingSpaces",
        "Whitespace"
    ],
    "repositories":
    [
        "https://github.com/nrw/sublime-text-handlebars.git"
    ]
}
@subhaze
Copy link
Owner

subhaze commented Oct 18, 2014

Thanks for the details.

@subhaze
Copy link
Owner

subhaze commented Oct 18, 2014

@brettalton I've just pushed up a new release that reworks how I'm having to hack around some issues with ST not symbolizing minified files; basically if there are too many columns ST wont provide a symbol list so I have to add some new lines into a buffered file.

It fixed some reproducible ecoding errors on my end so I hope this update resolves this issue.

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

2 participants