CSS-Extended icon indicating copy to clipboard operation
CSS-Extended copied to clipboard

TypeError: 'encoding' issue

Open brettalton opened this issue 11 years ago • 2 comments

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"
    ]
}

brettalton avatar Oct 07 '14 18:10 brettalton

Thanks for the details.

subhaze avatar Oct 18 '14 13:10 subhaze

@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.

subhaze avatar Oct 18 '14 19:10 subhaze