mutian / Sublime-CSS-Format

CSS Formatting for Sublime Text
http://mutian.github.io/Sublime-CSS-Format/
MIT License
98 stars 27 forks source link

New version = new problems #20

Closed LOQUILLO closed 9 years ago

LOQUILLO commented 10 years ago

This new versión isn't working 'Expanded', with the old versión all was OK. This is the console log: DPI scale: 1 startup, version: 3065 windows x64 channel: stable executable: /C/Program Files/Sublime Text 3/sublime_text.exe working dir: /C/Program Files/Sublime Text 3 packages path: /C/Users/TEST/AppData/Roaming/Sublime Text 3/Packages state path: /C/Users/TEST/AppData/Roaming/Sublime Text 3/Local hardware concurrency: 2 zip path: /C/Program Files/Sublime Text 3/Packages zip path: /C/Users/TEST/AppData/Roaming/Sublime Text 3/Installed Packages found 67 files for base name Default.sublime-keymap found 6 files for base name Default.sublime-mousemap found 68 files for base name Main.sublime-menu top level value must be an array loading bindings loading pointer bindings found 1 files for base name Lyte2.sublime-theme Unable to decode Packages/Theme - Lyte2/assets/spinner/spinner1.png Unable to decode Packages/Theme - Lyte2/assets/spinner/spinner2.png Unable to decode Packages/Theme - Lyte2/assets/spinner/spinner3.png Unable to decode Packages/Theme - Lyte2/assets/spinner/spinner4.png Unable to decode Packages/Theme - Lyte2/assets/spinner/spinner5.png Unable to decode Packages/Theme - Lyte2/assets/spinner/spinner6.png Unable to decode Packages/Theme - Lyte2/assets/spinner/spinner7.png Unable to decode Packages/Theme - Lyte2/assets/spinner/spinner8.png Unable to decode Packages/Theme - Lyte2/icons/panel/reverse.png theme loaded app ready startup cache, total files: 541 cache hits: 541 pre session restore time: 1.13819 using gamma: 2 (err: 43.7493) startup time: 1.18519 first paint time: 1.18519 launching: /C/Program Files/Sublime Text 3/plugin_host.exe reloading plugin Default.block reloading plugin Default.comment reloading plugin Default.copy_path reloading plugin Default.delete_word reloading plugin Default.detect_indentation reloading plugin Default.duplicate_line reloading plugin Default.echo reloading plugin Default.exec reloading plugin Default.fold reloading plugin Default.font reloading plugin Default.goto_line reloading plugin Default.history_list reloading plugin Default.indentation reloading plugin Default.kill_ring reloading plugin Default.mark reloading plugin Default.new_templates reloading plugin Default.open_file_settings reloading plugin Default.open_in_browser reloading plugin Default.pane reloading plugin Default.paragraph reloading plugin Default.paste_from_history reloading plugin Default.save_on_focus_lost reloading plugin Default.scroll reloading plugin Default.set_unsaved_view_name reloading plugin Default.side_bar reloading plugin Default.sort reloading plugin Default.swap_line reloading plugin Default.switch_file reloading plugin Default.symbol reloading plugin Default.transform reloading plugin Default.transpose reloading plugin Default.trim_trailing_white_space reloading plugin CSS.css_completions reloading plugin Diff.diff reloading plugin HTML.encode_html_entities reloading plugin HTML.html_completions reloading plugin AngularJS.AngularJS-sublime-package reloading plugin AngularJS.jscompletions reloading plugin AngularJS.message reloading plugin AngularJS.sublime_commands reloading plugin AngularJS.viewlocation reloading plugin ApplySyntax.ApplySyntax reloading plugin ApplySyntax.is_rails_file reloading plugin Bower.Bower Traceback (most recent call last): File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\Bower\bower.py", line 9, in from .bower.commands.install_dependencies import InstallDependenciesCommand ImportError: No module named 'Bower.bower.bower.commands.install_dependencies'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\Bower\Bower.py", line 7, in from .bower.commands.discover import DiscoverPackageCommand File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module exec(compile(source, source_path, 'exec'), mod.dict) File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\Bower\bower.py", line 14, in from bower.commands.discover import DiscoverPackageCommand ImportError: No module named 'bower'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin m = importlib.import_module(modulename) File "./importlib/init.py", line 90, in import_module File "", line 1584, in _gcd_import File "", line 1565, in _find_and_load File "", line 1532, in _find_and_load_unlocked File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module exec(compile(source, source_path, 'exec'), mod.dict) File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\Bower\Bower.py", line 14, in from bower.commands.discover import DiscoverPackageCommand ImportError: No module named 'bower' reloading plugin BracketHighlighter.bh_core reloading plugin BracketHighlighter.bh_logging reloading plugin BracketHighlighter.bh_plugin reloading plugin BracketHighlighter.bh_regions reloading plugin BracketHighlighter.bh_remove reloading plugin BracketHighlighter.bh_rules reloading plugin BracketHighlighter.bh_search reloading plugin BracketHighlighter.bh_swapping reloading plugin BracketHighlighter.bh_wrapping reloading plugin BracketHighlighter.ure reloading plugin Can I Use.useIt reloading plugin Character Table.Character Table reloading plugin Clickable URLs.clickable_urls reloading plugin Color Highlighter.ColorHighlighter reloading plugin Color Highlighter.colors reloading plugin ColorPicker.sublimecp reloading plugin Composer.composer some modules could not be inported (it is ok if using ST3 reloading plugin Composer.composer_st3 reloading plugin CSS Color Converter.colorconvert reloading plugin CSS Extended Completions.cache reloading plugin CSS Extended Completions.commands reloading plugin CSS Extended Completions.completions reloading plugin CSS Extended Completions.css_style_completions reloading plugin CSS Extended Completions.extended_css_completions reloading plugin CSS Extended Completions.location reloading plugin CSS Extended Completions.project reloading plugin CSS Extended Completions.settings reloading plugin CSS Extended Completions.style_parser reloading plugin CSS Format.css_format reloading plugin CSS Primer.cssprimer reloading plugin CSS Unminifier.CssUnminifier reloading plugin CSS3.css3_completions reloading plugin cssDOC.CssDoc reloading plugin CSSFontFamily.CSSFontFamily reloading plugin CSSLint.CSSLint reloading plugin CSSLint.version_file_checker reloading plugin CTags.ctags reloading plugin CTags.ctagsplugin reloading plugin CTags.test_ctags reloading plugin CTags.test_ctagsplugin reloading plugin Dictionaries.Dictionaries reloading plugin DictionaryAutoComplete.DictionaryAutoComplete reloading plugin Directory Settings.DirectorySettings reloading plugin DNS Lookups.dns reloading plugin Emmet.emmet-plugin reloading plugin EncodingHelper.EncodingHelper reloading plugin FileHeader.FileHeader reloading plugin Find Non ASCII Characters.find_non_ascii reloading plugin FindKeyConflicts.find_key_conflicts reloading plugin Function Name Display.FunctionNameStatus reloading plugin GenerateUUID.generate_uuid reloading plugin Google Spell Check.google-spell-check reloading plugin Goto-CSS-Declaration.goto_css_declaration reloading plugin Hex to HSL Color Converter.Hex-to-HSL-color reloading plugin Hex to HSL Color Converter.RGB-to-HSL-color reloading plugin HTMLBeautify.HTMLBeautify reloading plugin HttpStatusCode.HttpStatusCode reloading plugin Indent XML.indentxml reloading plugin InsertDate.format_date reloading plugin InsertDate.insert_date reloading plugin jQueryDocs.jQueryDocs reloading plugin Keymaps.Keymaps reloading plugin LESS.less_completions reloading plugin LinkOpener.LinkOpener reloading plugin List LESS Variables.lessvariables reloading plugin List stylesheet variables.stylevariables reloading plugin LiveStyle.livestyle reloading plugin LoremIpsum.LoremIpsum reloading plugin Minifier.Minify reloading plugin Nodejs.init reloading plugin Nodejs.Nodejs reloading plugin Non Text Files.NonTextFiles reloading plugin npm.cli reloading plugin npm.command reloading plugin npm.install reloading plugin npm.link reloading plugin npm.list reloading plugin npm.search reloading plugin npm.update reloading plugin Open URL.example reloading plugin Open URL.open_url reloading plugin Package Control.Package Control reloading plugin PackageResourceViewer.package_resource_viewer reloading plugin PackageResourceViewer.package_resources reloading plugin PerlTidy.PerlTidyCommand reloading plugin PerlTidy.PerlTidyErrorOutputCommand reloading plugin PersistentRegexHighlight.PersistentRegexHighlight reloading plugin Phpcs.phpcs reloading plugin SassBeautify.SassBeautify reloading plugin SCSS.scss_completions reloading plugin SideBarEnhancements.Edit reloading plugin SideBarEnhancements.SideBar reloading plugin SideBarEnhancements.SideBarDefaultDisable reloading plugin SideBarEnhancements.StatusBarFileSize reloading plugin SideBarEnhancements.StatusBarModifiedTime reloading plugin Status Bar Time.StatusBarTime reloading plugin StringEncode.string_encode reloading plugin SublimeTmpl.sublime-tmpl reloading plugin SublimeWebColors.colorpicker reloading plugin SublimeWebColors.webcolors reloading plugin Tag.Edit reloading plugin Tag.Tag reloading plugin Tag.tag_close_tag reloading plugin Tag.tag_close_tag_on_slash reloading plugin Tag.tag_indent reloading plugin Tag.tag_insert_as_tag reloading plugin Tag.tag_lint reloading plugin Tag.tag_remove reloading plugin Tag.tag_remove_attributes reloading plugin TernJS.tern reloading plugin Theme - Aprosopo.set_theme reloading plugin Toggle Css Format.ToggleCssFormat reloading plugin Trimmer.Trimmer reloading plugin Unicode Character Highlighter.sublime_unicode_nbsp reloading plugin UnicodeMath.mathsymbols reloading plugin UnicodeMath.unicodecomplete reloading plugin View In Browser.ViewInBrowserCommand reloading plugin WebFont.WebFont reloading plugin Zeal.zeal reloading plugin Autoprefixer.Autoprefixer reloading plugin Autoprefixer.node_bridge reloading plugin Cheat Sheets.cheat-sheets reloading plugin CodeFormatter.CodeFormatter CodeFormatter: formatting python files on ST3 not supported. reloading plugin ConvertToUTF8.ConvertToUTF8 reloading plugin CSS3.rgb_to_hex reloading plugin CSS3.validator Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin m = importlib.import_module(modulename) File "./importlib/init.py", line 90, in import_module File "", line 1584, in _gcd_import File "", line 1565, in _find_and_load File "", line 1532, in _find_and_load_unlocked File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module exec(compile(source, source_path, 'exec'), mod.dict) UnboundLocalError: local variable 'source' referenced before assignment reloading plugin CSScomb.CSScomb reloading plugin CSSTidy.csstidy reloading plugin Grunt.main reloading plugin Gulp.base_command reloading plugin Gulp.gulp reloading plugin Gulp.progress_notifier reloading plugin HTML-CSS-JS Prettify.HTMLPrettify reloading plugin Minify.Minify Sublime Platform: windows Sublime Version: 3065 PLUGIN_DIR: C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\Minify RUN_CMD_IN_SHELL: True HAS_ASYNC_TIMEOUT: True reloading plugin Nettuts+ Fetch2.Fetch reloading plugin Sound.Sound reloading plugin STProjectMaker.configuration reloading plugin STProjectMaker.filetask reloading plugin STProjectMaker.projectmaker reloading plugin StringUtilities.stringutilities reloading plugin Stylus.Stylus reloading plugin SublimeCodeIntel.SublimeCodeIntel reloading plugin Theme - Aprosopo1.set_theme reloading plugin User.CSSFontFamily plugins loaded InsertDate settings changed CSSLint is a .sublime-package; Verifying required files. CodeFormatter: Plugin Initialized --------- <sublime.Settings object at 0x00000000049B0F60> ---------- False True True C:\PHP\composer.phar composer.json ['-n', '-v'] ['-n', '-v'] ['-n', '-v'] ['-n', '-v'] ['-n', '-v'] ['-n', '-v'] Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 157, in on_api_ready m.plugin_loaded() File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\Character Table\Character Table.py", line 193, in plugin_loaded create_mnemonic_keymap(user_dir) File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\Character Table\Character Table.py", line 188, in create_mnemonic_keymap os.rename(fn+'.tmp', fn) FileExistsError: [WinError 183] No se puede crear un archivo que ya existe: 'C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\User\Character Table\Default\Default.sublime-keymap' TernJS: No need to update PyV8 Syncing project empty Starting TernJS server for empty with 1 libs and 0 files C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\Text.tmpl C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\Text.tmpl C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\Text.tmpl Emmet: No need to update PyV8 loaded 21124 snippets Package Control: Installing 2 missing packages C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\CSS.tmpl C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\CSS.tmpl C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\CSS.tmpl Package Control: The package "Hex-to-RGBA" is not available on this platform. Package Control: The package "Hex to RGB Converter" is not available on this platform. Package Control: Skipping automatic upgrade, last run at 2014-10-09 00:07:52, next run at 2014-10-09 01:07:52 or after found 1 files for base name Lyte2.sublime-theme theme loaded Init webFont _download_font_info C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\Text.tmpl C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\Text.tmpl C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\Text.tmpl reloading Packages/User/Fetch.sublime-settings C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\CSS.tmpl C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\CSS.tmpl C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header C:/Users/TEST/AppData/Roaming/Sublime Text 3/Packages/User/template/header\CSS.tmpl Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublimeplugin.py", line 543, in run return self.run(edit, *args) File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\CSS Format\css_format.py", line 26, in run self.format_selection(edit, action, indentation) File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\CSS Format\css_format.py", line 40, in format_selection code = format_code(code, action, indentation) File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\CSS Format\libs\cssformatter.py", line 63, in format_code code = indent_code(code, indentation) File "C:\Users\TEST\AppData\Roaming\Sublime Text 3\Packages\CSS Format\libs\cssformatter.py", line 167, in indent_code lines[i] = indentation * thisLevel + lines[i] TypeError: unsupported operand type(s) for : 'NoneType' and 'int'

LOQUILLO commented 10 years ago

I had fixed this problem using the old versión.

mutian commented 10 years ago

So sorry! This is a bug in ST3, I have fixed it, please wait the new update.

Thank you!

LOQUILLO commented 10 years ago

hi @mutian added my new PR, it fix the right name for .sublime-settings.