bcomnes / sublime-standard-format

:sparkles: Runs standard --fix against the javascript in your ST3 window on save or manually.
https://packagecontrol.io/packages/StandardFormat
MIT License
60 stars 21 forks source link

Got error when installing #55

Closed crimx closed 4 years ago

crimx commented 7 years ago

Hi, I got error when installing

reloading plugin StandardFormat.standard-format
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 120, in reload_plugin
    m.plugin_loaded()
  File "standard-format in C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Installed Packages\StandardFormat.sublime-package", line 52, in plugin_loaded
  File "standard-format in C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Installed Packages\StandardFormat.sublime-package", line 19, in set_path
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'

And got this when I try to format

StandardFormat: error formatting selection(s)

Any idea what went wrong?

bcomnes commented 7 years ago

I think it was a bug in the last release. I just realized 6.0.1 which should address the issue. I need to test it out on windows a bit more, but I believe it fixes the above issue. When Package Controls passes that out, let me know how it goes.

crimx commented 7 years ago

@bcomnes New errors while installing the new release.

Traceback (most recent call last):
  File "./subprocess.py", line 1112, in _execute_child
FileNotFoundError: [WinError 2] 

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 162, in on_api_ready
    m.plugin_loaded()
  File "standard-format in C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Installed Packages\StandardFormat.sublime-package", line 100, in plugin_loaded
  File "standard-format in C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Installed Packages\StandardFormat.sublime-package", line 21, in calculate_user_path
  File "./subprocess.py", line 576, in check_output
  File "./subprocess.py", line 824, in __init__
  File "./subprocess.py", line 1118, in _execute_child
FileNotFoundError: [WinError 2]
crimx commented 7 years ago

@evollu New errors while installing

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 120, in reload_plugin
    m.plugin_loaded()
  File "standard-format in C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Installed Packages\StandardFormat.sublime-package", line 115, in plugin_loaded
  File "standard-format in C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Installed Packages\StandardFormat.sublime-package", line 74, in generate_search_path
TypeError: 'NoneType' object is not iterable

And this shows when formatting

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 574, in run_
    return self.run(edit)
  File "standard-format in C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Installed Packages\StandardFormat.sublime-package", line 217, in run
  File "./ntpath.py", line 316, in dirname
  File "./ntpath.py", line 280, in split
  File "./ntpath.py", line 208, in splitdrive
TypeError: object of type 'NoneType' has no len()
bcomnes commented 7 years ago

Uh Oh. I'll get a fix out this morning. Thanks for the heads up.

bcomnes commented 7 years ago

@crimx can you post your user settings?

crimx commented 7 years ago

@bcomnes Sure

{
    "format_on_save": false
}
{
    "binary_file_patterns":
    [
        "node_modules/*"
    ],
    "caret_extra_bottom": 0,
    "caret_extra_top": 0,
    "caret_extra_width": 0,
    "color_scheme": "Packages/User/Color Highlighter/themes/Seti_monokai.tmTheme",
    "default_line_ending": "unix",
    "draw_white_space": "all",
    "folder_exclude_patterns":
    [
        ".git"
    ],
    "font_size": 12,
    "highlight_line": true,
    "ignored_packages":
    [
        "AdvancedNewFile",
        "Vintage"
    ],
    "overlay_scroll_bars": "enabled",
    "show_encoding": true,
    "show_line_endings": true,
    "tab_size": 2,
    "theme": "Seti.sublime-theme",
    "translate_tabs_to_spaces": true,
    "update_check": false
}
bcomnes commented 7 years ago

Hrrm everything looks kosher. I'll try to mess around on a windows machine to see if I can reproduce.

shtse8 commented 6 years ago

I have the same issue, any update on this ?

bcomnes commented 4 years ago

Closing, stale. Might be fixed. Please reopen a new issue if you run into this.