wallabyjs / public

Repository for Wallaby.js questions and issues
http://wallabyjs.com
759 stars 45 forks source link

Wallaby not working in Sublime/VSCode on Mac with calculator sample #1307

Closed IjzerenHein closed 7 years ago

IjzerenHein commented 7 years ago

Issue description or question

Hi, I'm trying to evaluate Wallaby on my Mac using Sublime/VSCode, but having no luck at all. I'm using the latest official version of Sublime 3 (3.0 build 3143). It appears that wallaby doesn't get activated when when selecting a file in the editor. I've included the sublime logs below.

After that, I've installed VSCode and tried getting it working there. I installed the latest VSCode and the Wallaby extension. Same thing, no luck at all, not doing anything.

I have no idea how to proceed from here. Is there anything I can do to debug the problem?

Wallaby.js configuration file

https://github.com/wallabyjs/calculator-sample

Code editor or IDE name and version

Sublime Text v3 build 3143

OS name and version

OSX, Sierra 10.12.6

Sublime V3 logs using calculator-sample

startup, version: 3143 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/hein/Library/Application Support/Sublime Text 3/Packages
state path: /Users/hein/Library/Application Support/Sublime Text 3/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/hein/Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.248106
using gpu buffer for window
startup time: 0.327206
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.convert_syntax
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.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_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 Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-pygments
reloading plugin 0_package_control_loader.50-pyyaml
reloading plugin Better CoffeeScript.CoffeeScript
reloading plugin EditorConfig.EditorConfig
reloading plugin JSONLint.JSONLint
reloading plugin LESS.less_completions
reloading plugin Markdown Preview.helper
reloading plugin Markdown Preview.markdown_settings
reloading plugin Markdown Preview.markdown_wrapper
reloading plugin Markdown Preview.MarkdownPreview
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin SublimeLinter-coffeelint.linter
SublimeLinter: coffeelint linter loaded 
reloading plugin SublimeLinter-contrib-tslint.linter
SublimeLinter: tslint linter loaded 
reloading plugin SublimeLinter-contrib-yaml-lint.linter
SublimeLinter: yamllint linter loaded 
reloading plugin SublimeLinter-csslint.linter
SublimeLinter: csslint linter loaded 
reloading plugin SublimeLinter-json.linter
SublimeLinter: json linter loaded 
reloading plugin ArcticTypescript.ArcticTypescript
reloading plugin Babel.Babel
reloading plugin CodeFormatter.CodeFormatter
CodeFormatter: formatting python files on ST3 not supported.
reloading plugin JsPrettier.JsPrettier
reloading plugin Pretty JSON.PrettyJson
reloading plugin Pretty JSON.PrettyJsonListeners
reloading plugin SublimeLinter.commands
reloading plugin SublimeLinter.sublimelinter
reloading plugin SublimeLinter-contrib-eslint.linter
SublimeLinter: eslint linter loaded 
reloading plugin TypeScript.main
2017-09-17 11:43:04,689: 140736088024000: WARNING: TypeScript plugin initialized.
reloading plugin Wallaby.wallaby
plugins loaded
CodeFormatter: Plugin Initialized
lang_service_enabled: True
Path of tsserver.js: /Users/hein/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsserver.js
Path of tsc.js: /Users/hein/Library/Application Support/Sublime Text 3/Packages/TypeScript/tsserver/tsc.js
Trying to spawn node executable from: /usr/local/bin/node
ref view not found
SublimeLinter: debug mode: on 
SublimeLinter: temp directory: /var/folders/1r/_vj_pf9j2p34sffbwfmsz3l40000gn/T/SublimeLinter3-hein 
environment variables loaded using: /bin/bash -l
reloading settings Packages/User/Wallaby.sublime-settings
Package Control: Skipping automatic upgrade, last run at 2017-09-17 10:51:33, next run at 2017-09-17 11:51:33 or after
SublimeLinter: user shell: /bin/bash 
SublimeLinter: computed PATH using /bin/bash:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Users/hein/Library/Android/sdk/platform-tools
/Users/hein/Library/Android/sdk/platform-tools

SublimeLinter: eslint: calculatorSpec.js ['/usr/local/bin/eslint', '--format', 'compact', '--stdin', '--stdin-filename', '@'] 
SublimeLinter: eslint output:

Oops! Something went wrong! :(

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

    eslint --init

ESLint looked for configuration files in /Users/hein/repos/scratch/calculator-sample/test and its ancestors.

If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint 
SublimeLinter: eslint: wallaby.js ['/usr/local/bin/eslint', '--format', 'compact', '--stdin', '--stdin-filename', '@'] 
SublimeLinter: eslint output:

Oops! Something went wrong! :(

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

    eslint --init

ESLint looked for configuration files in /Users/hein/repos/scratch/calculator-sample and its ancestors.

If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint 
SublimeLinter: eslint: calculatorSpec.js ['/usr/local/bin/eslint', '--format', 'compact', '--stdin', '--stdin-filename', '@'] 
SublimeLinter: eslint output:

Oops! Something went wrong! :(

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

    eslint --init

ESLint looked for configuration files in /Users/hein/repos/scratch/calculator-sample/test and its ancestors.

If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint 
SublimeLinter: eslint: calculatorSpec.js ['/usr/local/bin/eslint', '--format', 'compact', '--stdin', '--stdin-filename', '@'] 
SublimeLinter: eslint output:

Oops! Something went wrong! :(

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

    eslint --init

ESLint looked for configuration files in /Users/hein/repos/scratch/calculator-sample/test and its ancestors.

If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint 
{'max_lines_before_split_lit': 2, 'dict_colon': ': ', 'max_seps_series': 5, 'comment_prefix': '# ', 'max_seps_func_def': 3, 'indent_size': 1, 'parenthesize_tuple_display': True, 'leftjust_comments': False, 'max_seps_dict': 3, 'normalize_doc_strings': False, 'leftjust_doc_strings': False, 'list_sep': ', ', 'keep_blank_lines': True, 'doc_tab_replacement': '....', 'left_margin': '', 'subscript_sep': '=', 'java_style_list_dedent': False, 'assignment': ' = ', 'max_char': 80, 'double_quoted_strings': False, 'boilerplate': '', 'add_blank_line_after_doc_string': True, 'max_seps_func_ref': 5, 'can_split_strings': False, 'blank_line': '', 'add_blank_lines_around_comments': True, 'function_param_assignment': '=', 'syntaxes': 'python', 'wrap_comments': False, 'shebang': '#!/usr/bin/env python', 'wrap_doc_strings': False, 'single_quoted_strings': False, 'function_param_sep': ', ', 'keep_unassigned_constants': False, 'slice_colon': ':', 'indent_with_tabs': True, 'format_on_save': False}
SublimeLinter: eslint: calculatorSpec.js ['/usr/local/bin/eslint', '--format', 'compact', '--stdin', '--stdin-filename', '@'] 
SublimeLinter: eslint output:

Oops! Something went wrong! :(

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

    eslint --init

ESLint looked for configuration files in /Users/hein/repos/scratch/calculator-sample/test and its ancestors.

If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint 
SublimeLinter: eslint: calculatorSpec.js ['/usr/local/bin/eslint', '--format', 'compact', '--stdin', '--stdin-filename', '@'] 
{'max_lines_before_split_lit': 2, 'dict_colon': ': ', 'max_seps_series': 5, 'comment_prefix': '# ', 'max_seps_func_def': 3, 'indent_size': 1, 'parenthesize_tuple_display': True, 'leftjust_comments': False, 'max_seps_dict': 3, 'normalize_doc_strings': False, 'leftjust_doc_strings': False, 'list_sep': ', ', 'keep_blank_lines': True, 'doc_tab_replacement': '....', 'left_margin': '', 'subscript_sep': '=', 'java_style_list_dedent': False, 'assignment': ' = ', 'max_char': 80, 'double_quoted_strings': False, 'boilerplate': '', 'add_blank_line_after_doc_string': True, 'max_seps_func_ref': 5, 'can_split_strings': False, 'blank_line': '', 'add_blank_lines_around_comments': True, 'function_param_assignment': '=', 'syntaxes': 'python', 'wrap_comments': False, 'shebang': '#!/usr/bin/env python', 'wrap_doc_strings': False, 'single_quoted_strings': False, 'function_param_sep': ', ', 'keep_unassigned_constants': False, 'slice_colon': ':', 'indent_with_tabs': True, 'format_on_save': False}
SublimeLinter: eslint: calculatorSpec.js ['/usr/local/bin/eslint', '--format', 'compact', '--stdin', '--stdin-filename', '@'] 
SublimeLinter: eslint output:

Oops! Something went wrong! :(

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

    eslint --init

ESLint looked for configuration files in /Users/hein/repos/scratch/calculator-sample/test and its ancestors.

If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint 
SublimeLinter: eslint output:

Oops! Something went wrong! :(

ESLint couldn't find a configuration file. To set up a configuration file for this project, please run:

    eslint --init

ESLint looked for configuration files in /Users/hein/repos/scratch/calculator-sample/test and its ancestors.

If you think you already have a configuration file or if you need more help, please stop by the ESLint chat room: https://gitter.im/eslint/eslint 
ArtemGovorov commented 7 years ago

It appears that wallaby doesn't get activated when when selecting a file in the editor.

Wallaby doesn't get activated when selecting a file in the editor, it has to be started with the Start command. Please follow the steps described here, and if it doesn't work, please paste the output from the Wallaby Console, as described here.

Or for Sublime Text: follow these steps and paste the output from the Wallaby Console as described here.

ArtemGovorov commented 7 years ago

Juts checked the calculator sample, here is how it is supposed to work:

w

If it doesn't, please check the Wallaby Console output and paste it here as I have described above.

IjzerenHein commented 7 years ago

Omg, you're right, I just had to start it. Just did that, working like a charm now, thanks so much! 👍