SublimeLinter / SublimeLinter

The code linting framework for Sublime Text
https://www.sublimelinter.com/
MIT License
2.01k stars 269 forks source link

Linter does not show hover popups or phantoms #1116

Closed nvtkaszpir closed 6 years ago

nvtkaszpir commented 6 years ago

sublime-text 3.0 build 3143 sublimelinter 4.0.2 ubuntu 16.04

After doing upgrade from SL 3 to SL 4 I've noticed that it indeed shows the dots on the gutter and highlights lint errors/warning in the code. What is missing is popup box on mouse over.

I've tested true/false settings show_hover_line_report and show_hover_region_report, but still no go. What I have found is that this popu shows hen triggered with key binds, I've enabled default ctrl+k, l. So it works but is not automatically triggered.

SublimeLinter config

{
  "debug": true,
  "delay": 0.25,
  "gutter_theme": "Default",
  "lint_mode": "background",
  "linters": {
    "annotations": {
      "disable": false,
      "args": [],
      "errors": [
        "FIXME"
      ],
      "excludes": [],
      "warnings": [
        "TODO",
        "README"
      ]
    },
    "ansiblelint": {
      "disable": false,
      "args": [],
    },
    "flake8": {
      "disable": false,
      "args": [],
      "builtins": "",
      "excludes": [],
      "executable": "",
      "ignore": "",
      "jobs": "1",
      "max-complexity": -1,
      "max-line-length": 200,
      "select": "",
      "show-code": false
    },
    "pylint": {
      "disable": false,
      "args": [],
      "disable": "",
      "enable": "",
      "excludes": [],
      "paths": [],
      "rcfile": "",
      "show-codes": false
    },
    "rubocop": {
      "disable": false,
      "args": [
        "--config",
        "/home/kaszpir/.config/sublime-text-3/Packages/User/rubocop.yml"
      ],
      "excludes": []
    }
  },
  "no_column_highlights_line": false,
  "paths": {
    "linux": [ "~/bin", "~/local/bin", "~/.local/bin"],
    "osx": [],
    "windows": []
  },
  "shell_timeout": 60,
  "show_marks_in_minimap": false,
  "syntax_map": {
    "coffeescript (gulpfile)": "coffeescript",
    "html (django)": "html",
    "html (rails)": "html",
    "html 5": "html",
    "javascript (eslint)": "javascript",
    "javascript (gruntfile)": "javascript",
    "javascript (gulpfile)": "javascript",
    "javascript (postcss)": "javascript",
    "javascript (puglint)": "javascript",
    "javascript (stylelint)": "javascript",
    "javascript (webpack)": "javascript",
    "json (babel)": "json",
    "json (bower)": "json",
    "json (composer)": "json",
    "json (eslint)": "json",
    "json (npm)": "json",
    "json (postcss)": "json",
    "json (puglint)": "json",
    "json (settings)": "json",
    "json (stylelint)": "json",
    "json (sublime)": "json",
    "json (tern js)": "json",
    "php": "html",
    "python django": "python",
    "xml (config)": "xml",
    "xml (svg)": "xml",
    "yaml (circleci)": "yaml",
    "yaml (docker)": "yaml",
    "yaml (eslint)": "yaml",
    "yaml (lock)": "yaml",
    "yaml (procfile)": "yaml",
    "yaml (stylelint)": "yaml",
    "yaml (yarn)": "yaml"
  },
  "highlights.demote_while_editing": "none",
  "styles":
  [
    {
      "icon": "warning",
      "mark_style": "outline",
      "priority": 1,
      "scope": "region.yellowish markup.changed.sublime_linter markup.warning.sublime_linter",
      "types": ["warning"]
    },
    {
      "icon": "error",
      "mark_style": "outline",
      "priority": 1,
      "scope": "region.redish markup.deleted.sublime_linter markup.error.sublime_linter",
      "types": ["error"]
    }
  ],
  "show_hover_line_report": true,
  "show_hover_region_report": true,
}

Debug mode does not show any noticeable errors or warnings in that matter.

braver commented 6 years ago

There are two popups:

  1. Hover over a highlight in the code. This one should always work. If not, we have some debugging to do.

    screen shot 2018-03-06 at 09 49 37
  2. Hover over an icon in the gutter. Apparently that only works for the line your cursor is on, which is a bug (#1115).

screen shot 2018-03-06 at 09 51 10

So, hopefully, number 1 also works for you and 2 also doesn't. 😅

nvtkaszpir commented 6 years ago

Unfortunately none of them works.

braver commented 6 years ago

That's super weird.

nvtkaszpir commented 6 years ago

I think it's the issue with sublimetext or plugins installed. Also right now showing window with all errors on the bottom is much more convenient for me and is not attacking eyes ;)

Is there somwhere a guide how to debug those popups?

kaste commented 6 years ago

Can you provide an animated gif of your interactions with Sublime?

nvtkaszpir commented 6 years ago
startup, version: 3143 linux x64 channel: stable
executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/kaszpir/.config/sublime-text-3/Packages
state path: /home/kaszpir/.config/sublime-text-3/Local
zip path: /opt/sublime_text/Packages
zip path: /home/kaszpir/.config/sublime-text-3/Installed Packages
ignored_packages: ["ActionScript", "AppleScript", "ClassName", "Color Highlighter", "Erlang", "GhostText", "Haskell", "Highlighter", "Lisp", "LocalVariable", "Makefile", "MarkdownTOC", "Method", "Objective-C", "OCaml", "Open URL", "Pascal", "RestructuredText", "Rust", "SideBarEnhancements", "SublimeLinter-annotations", "SublimeLinter-rst", "Sublimerge Pro", "Terminal", "Terraform", "TodoReview", "Vintage", "YAML Nav"]
Errors parsing theme:
icon_file_type is missing layer0.opacity, setting to 1.0 for backwards compatibility
icon_folder is missing layer0.opacity, setting to 1.0 for backwards compatibility
pre session restore time: 0.212064
startup time: 0.338531
first paint time: 0.352586
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-backrefs
reloading plugin 0_package_control_loader.50-markupsafe
reloading plugin 0_package_control_loader.50-pymdownx
reloading plugin 0_package_control_loader.50-python-markdown
reloading plugin 0_package_control_loader.50-pytz
reloading plugin 0_package_control_loader.50-pyyaml
reloading plugin 0_package_control_loader.50-regex
reloading plugin 0_package_control_loader.51-python-jinja2
reloading plugin 0_package_control_loader.55-jsonschema
reloading plugin 0_package_control_loader.55-mdpopups
reloading plugin A File Icon.A File Icon
reloading plugin ANSIescape.ansi
reloading plugin AdvancedNewFile.AdvancedNewFile
reloading plugin AlignTab.aligner
reloading plugin AlignTab.aligntab
reloading plugin AlignTab.hist
reloading plugin AlignTab.parser
reloading plugin AlignTab.table
reloading plugin AlignTab.wclen
reloading plugin Alignment.Alignment
reloading plugin Ansible Vault.commands
reloading plugin ApplySyntax.ApplySyntax
reloading plugin ApplySyntax.support
reloading plugin AutoDocstring.auto_docstring
reloading plugin AutoDocstring.autodocstring_logging
reloading plugin AutoDocstring.docstring_styles
reloading plugin AutoDocstring.dparse
reloading plugin AutoFileName.autofilename
reloading plugin AutoFileName.getimageinfo
reloading plugin BracketHighlighter.bh_core
reloading plugin BracketHighlighter.bh_logging
reloading plugin BracketHighlighter.bh_plugin
reloading plugin BracketHighlighter.bh_popup
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.support
reloading plugin Browser Refresh.BrowserRefresh
reloading plugin ChangeQuotes.change_quotes
reloading plugin ColorHelper.color_helper
reloading plugin ColorHelper.color_helper_insert
reloading plugin ColorHelper.color_helper_picker
reloading plugin ColorHelper.color_helper_util
reloading plugin ColorHelper.multiconf
reloading plugin ColorHelper.support
reloading plugin Column Sort.ColumnSort
reloading plugin DocBlockr.jsdocs
reloading plugin Emmet.emmet-plugin
reloading plugin ExportHtml.ExportBbcode
reloading plugin ExportHtml.ExportHtml
reloading plugin ExportHtml.HtmlAnnotations
reloading plugin ExportHtml.support
reloading plugin Expression.commands
reloading plugin Expression.expression
reloading plugin Expression.listeners
reloading plugin FindKeyConflicts.find_key_conflicts
reloading plugin FuzzyFilePath.ProjectListener
reloading plugin FuzzyFilePath.QueryCompletionListener
reloading plugin FuzzyFilePath.TestRunner
reloading plugin FuzzyFilePath.ViewListener
reloading plugin FuzzyFilePath.command_goto_file
reloading plugin FuzzyFilePath.command_insert_path
reloading plugin FuzzyFilePath.command_rebuild_cache
reloading plugin FuzzyFilePath.command_replace_region
reloading plugin FuzzyFilePath.command_show_context
reloading plugin FuzzyFilePath.command_show_current_settings
reloading plugin FuzzyFilePath.command_show_info
reloading plugin FuzzyFilePath.completion
reloading plugin FuzzyFilePath.controller
reloading plugin FuzzyFilePath.current_state
reloading plugin FuzzyFilePath.expression
reloading plugin FuzzyFilePath.query
reloading plugin Git.git_commands
reloading plugin GitGutter.plugin
reloading plugin GotoDocumentation.goto_documentation
reloading plugin GotoLineEnhanced.commands
reloading plugin HexViewer.hex_checksum
Hex Viewer: md2 hash is not available!
reloading plugin HexViewer.hex_common
reloading plugin HexViewer.hex_editor
reloading plugin HexViewer.hex_finder
reloading plugin HexViewer.hex_highlighter
reloading plugin HexViewer.hex_inspector
reloading plugin HexViewer.hex_notify
reloading plugin HexViewer.hex_viewer
reloading plugin HexViewer.hex_writer
reloading plugin HexViewer.sum_hashes
reloading plugin HexViewer.support
reloading plugin HexViewer.tiger
reloading plugin HexViewer.whirlpool
reloading plugin Http Requester.http_requester
reloading plugin HyperlinkHelper.link_to_wikipedia_page_for_selection
reloading plugin HyperlinkHelper.lookup_with_google_and_link
reloading plugin HyperlinkHelper.wrap_selection_as_link
reloading plugin Inc-Dec-Value.inc_dec_value
reloading plugin InsertDate.insert_date
reloading plugin JSONLint.JSONLint
reloading plugin JsFormat.js_formatter
reloading plugin LineEndings.LineEndings
reloading plugin Local History.LocalHistory
reloading plugin LogView.logview
reloading plugin LoremGibson.Loremgibson
reloading plugin Makefile Improved.Makefile Improved
reloading plugin Markdown Preview.MarkdownPreview
reloading plugin Markdown Preview.helper
reloading plugin Markdown Preview.markdown_settings
reloading plugin Markdown Preview.markdown_wrapper
reloading plugin MoveTab.move_tab
reloading plugin MultiEditUtils.MultiEditUtils
reloading plugin MultiEditUtils.selection_fields
reloading plugin Network Tech.network_tech
reloading plugin Origami.origami
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin Package Syncing.Package Syncing
reloading plugin PackageDev._logging
reloading plugin PackageDev.main
reloading plugin Pandoc.Pandoc
reloading plugin Pretty JSON.PrettyJson
reloading plugin ProjectManager.json_file
reloading plugin ProjectManager.project_manager
reloading plugin PyRefactor.refactor
reloading plugin Python Output Format.PythonOutputFormat
reloading plugin PythonTraceback.pythontraceback
reloading plugin QuickSearchEnhanced.commands
reloading plugin QuickSearchEnhanced.quick_search
reloading plugin ReadmePlease.ReadmePlease
reloading plugin RegReplace.rr_edit
reloading plugin RegReplace.rr_notify
reloading plugin RegReplace.rr_plugin
reloading plugin RegReplace.rr_replacer
reloading plugin RegReplace.rr_sequencer
reloading plugin RegReplace.rr_upgrade
reloading plugin RegReplace.support
reloading plugin RestructuredText Improved.RestructuredText Improved
reloading plugin ShellCommand.OsShell
reloading plugin ShellCommand.ShellCommand
reloading plugin ShellCommand.SublimeHelper
reloading plugin ShellCommand.VariableSubstitution
reloading plugin SqlBeautifier.sqlbeautifier
reloading plugin Statement.commands
reloading plugin Statement.parser
reloading plugin Statement.statement
reloading plugin Status Bar File Size.StatusBarFileSize
reloading plugin StyleToken.StyleToken
reloading plugin SublimeGerrit.SublimeGerrit
reloading plugin SublimeGit.SublimeGit
reloading plugin SublimeLinter-contrib-ansible-lint.linter
reloading plugin SublimeLinter-contrib-dockerfilelint.linter
reloading plugin SublimeLinter-contrib-nginx-lint.linter
reloading plugin SublimeLinter-contrib-yaml-lint.linter
reloading plugin SublimeLinter-contrib-yamllint.linter
reloading plugin SublimeLinter-csslint.linter
reloading plugin SublimeLinter-flake8.linter
reloading plugin SublimeLinter-html-tidy.linter
reloading plugin SublimeLinter-json.linter
reloading plugin SublimeLinter-php.linter
reloading plugin SublimeLinter-phplint.linter
reloading plugin SublimeLinter-pylint.linter
reloading plugin SublimeLinter-pyyaml.linter
reloading plugin SublimeLinter-rubocop.linter
reloading plugin SublimeLinter-shellcheck.linter
reloading plugin SublimeLinter-xmllint.linter
reloading plugin SublimeLinter.__init__
reloading plugin SublimeLinter.busy_indicator_view
reloading plugin SublimeLinter.commands
reloading plugin SublimeLinter.goto_commands
reloading plugin SublimeLinter.highlight_view
reloading plugin SublimeLinter.log_handler
reloading plugin SublimeLinter.message_view
reloading plugin SublimeLinter.panel_view
reloading plugin SublimeLinter.status_bar_view
reloading plugin SublimeLinter.sublime_linter
reloading plugin SublimeLinter.tooltips_view
reloading plugin Sublimerge 3.Sublimerge
reloading plugin Sync View Scroll.syncscroll
reloading plugin SyncedSideBar.SyncedSideBar
reloading plugin SyncedSidebarBg.SyncedSidebarBg
reloading plugin TrailingSpaces.trailing_spaces
reloading plugin URLEncode.urlencode
reloading plugin Vagrant.Vagrant
reloading plugin View In Browser.ViewInBrowserCommand
reloading plugin WordHighlight.word_highlight
reloading plugin Zen Tabs.TabsWorker
reloading plugin Zen Tabs.ZenTabs
reloading plugin Zen Tabs.ZenTabsTest
reloading plugin requirementstxt.requirements
reloading plugin sublime-text-2-buildview.commands
reloading plugin sublime-text-2-buildview.pipe_views
reloading plugin sublime-text-2-buildview.settings
reloading plugin ColorPicker.sublimecp
reloading plugin Docker Based Build Systems.DockerBuild
reloading plugin Docker Based Build Systems.DockerClojureBuild
reloading plugin Docker Based Build Systems.DockerJavaBuild
reloading plugin Docker Based Build Systems.dockerutils
reloading plugin EncodingHelper.EncodingHelper
reloading plugin Figlet Big ASCII Text.figlet
reloading plugin LaTeXTools.01_reload_submodules
reloading plugin LaTeXTools.02_temp_file_cleanup
reloading plugin LaTeXTools.03_reset_phantoms
reloading plugin LaTeXTools.biblatex_crossref_completions
reloading plugin LaTeXTools.biblatex_field_name_completions
reloading plugin LaTeXTools.biblatex_name_completions
reloading plugin LaTeXTools.biblatex_snippet_completions
reloading plugin LaTeXTools.biblatex_syntax_listener
reloading plugin LaTeXTools.change_environment
reloading plugin LaTeXTools.create_mousemap
reloading plugin LaTeXTools.delete_temp_files
reloading plugin LaTeXTools.detect_spellcheck
reloading plugin LaTeXTools.getRegion
reloading plugin LaTeXTools.getTeXRoot
reloading plugin LaTeXTools.jumpToPDF
reloading plugin LaTeXTools.jumpto_anywhere
reloading plugin LaTeXTools.jumpto_tex_file
reloading plugin LaTeXTools.kpsewhich
reloading plugin LaTeXTools.latexCommand
reloading plugin LaTeXTools.latexDocumentationViewer
reloading plugin LaTeXTools.latexEnvCloser
reloading plugin LaTeXTools.latexEnvironment
reloading plugin LaTeXTools.latex_cite_completions
reloading plugin LaTeXTools.latex_cwl_completions
reloading plugin LaTeXTools.latex_directive_completions
reloading plugin LaTeXTools.latex_env_completions
reloading plugin LaTeXTools.latex_fill_all
reloading plugin LaTeXTools.latex_glossary_completions
reloading plugin LaTeXTools.latex_input_completions
reloading plugin LaTeXTools.latex_installed_packages
reloading plugin LaTeXTools.latex_own_command_completions
reloading plugin LaTeXTools.latex_ref_completions
reloading plugin LaTeXTools.latextools_cache_listener
reloading plugin LaTeXTools.latextools_default_settings
reloading plugin LaTeXTools.latextools_plugin
reloading plugin LaTeXTools.latextools_sublime_version_listener
reloading plugin LaTeXTools.makePDF
reloading plugin LaTeXTools.migrate
reloading plugin LaTeXTools.open_detexify
reloading plugin LaTeXTools.parseTeXlog
reloading plugin LaTeXTools.search_commands
reloading plugin LaTeXTools.system_check
reloading plugin LaTeXTools.texMacro
reloading plugin LaTeXTools.texSections
reloading plugin LaTeXTools.texSyntaxListener
reloading plugin LaTeXTools.texcount
reloading plugin LaTeXTools.toc_quickpanel
reloading plugin LaTeXTools.toggle_auto
reloading plugin LaTeXTools.toggle_focus
reloading plugin LaTeXTools.toggle_fwdsync
reloading plugin LaTeXTools.toggle_show
reloading plugin LaTeXTools.toggle_view_on_build
reloading plugin Pretty JSON.PrettyJsonListeners
reloading plugin Pretty YAML.PrettyYaml
reloading plugin Random Everything.__init__
reloading plugin Random Everything.random
reloading plugin SublimeCodeIntel.SublimeCodeIntel
reloading plugin SublimeCodeIntel.ordereddict
reloading plugin SublimeLinter-contrib-doc8.linter
reloading plugin SublimeLinter-puppet.linter
reloading plugin SublimeLinter-puppet-lint.linter
reloading plugin Xdebug Client.main
reloading plugin User.deepgit
plugins loaded
SublimeGerrit: Loaded _ssl module: libssl.so.1.0.0
Limit: 20
Full path: False
Highlight: True
SublimeLinter: log_handler.py:71: Logging installed; log level INFO
[2018-03-07 20:59:04,154 - INFO     - SublimeLinter] Logging installed; log level INFO
SublimeLinter: sublime_linter.py:62: debug mode: on
[2018-03-07 20:59:04,168 - INFO     - SublimeLinter.sublime_linter] debug mode: on
SublimeLinter: sublime_linter.py:63: version: 4.0.5
[2018-03-07 20:59:04,169 - INFO     - SublimeLinter.sublime_linter] version: 4.0.5
syncScroll starting
user_preferences_file: /home/kaszpir/.config/sublime-text-3/Packages/User/Preferences.sublime-settings
s: {
    "added_words":
    [

        "playbooks"
    ],
    "always_show_minimap_viewport": true,
    "bold_folder_labels": false,
    "color_scheme": "Packages/User/Color Highlighter/themes/Dracula (SL).tmTheme",
    "dictionary": "Packages/Language - English/en_GB.dic",
    "draw_indent_guides": true,
    "ensure_newline_at_eof_on_save": true,
    "fade_fold_buttons": false,
    "font_size": 11,
    "highlight_line": false,
    "highlight_modified_tabs": true,
    "ignored_packages":
    [
        "ActionScript",
        "AppleScript",
        "ClassName",
        "Color Highlighter",
        "Erlang",
        "GhostText",
        "Haskell",
        "Highlighter",
        "Lisp",
        "LocalVariable",
        "Makefile",
        "MarkdownTOC",
        "Method",
        "Objective-C",
        "OCaml",
        "Open URL",
        "Pascal",
        "RestructuredText",
        "Rust",
        "SideBarEnhancements",
        "SublimeLinter-annotations",
        "SublimeLinter-rst",
        "Sublimerge Pro",
        "Terminal",
        "Terraform",
        "TodoReview",
        "Vintage",
        "YAML Nav"
    ],
    "index_exclude_patterns":
    [
        "*.log"
    ],
    "rulers":
    [
        79,
        100
    ],
    "show_encoding": true,
    "theme": "Adaptive.sublime-theme"
}

user_preferences_file: /home/kaszpir/.config/sublime-text-3/Packages/User/Preferences.sublime-settings
s: {
    "added_words":
    [

        "playbooks"
    ],
    "always_show_minimap_viewport": true,
    "bold_folder_labels": false,
    "color_scheme": "Packages/User/Color Highlighter/themes/Dracula (SL).tmTheme",
    "dictionary": "Packages/Language - English/en_GB.dic",
    "draw_indent_guides": true,
    "ensure_newline_at_eof_on_save": true,
    "fade_fold_buttons": false,
    "font_size": 11,
    "highlight_line": false,
    "highlight_modified_tabs": true,
    "ignored_packages":
    [
        "ActionScript",
        "AppleScript",
        "ClassName",
        "Color Highlighter",
        "Erlang",
        "GhostText",
        "Haskell",
        "Highlighter",
        "Lisp",
        "LocalVariable",
        "Makefile",
        "MarkdownTOC",
        "Method",
        "Objective-C",
        "OCaml",
        "Open URL",
        "Pascal",
        "RestructuredText",
        "Rust",
        "SideBarEnhancements",
        "SublimeLinter-annotations",
        "SublimeLinter-rst",
        "Sublimerge Pro",
        "Terminal",
        "Terraform",
        "TodoReview",
        "Vintage",
        "YAML Nav"
    ],
    "index_exclude_patterns":
    [
        "*.log"
    ],
    "rulers":
    [
        79,
        100
    ],
    "show_encoding": true,
    "theme": "Adaptive.sublime-theme"
}

Loaded LaTeXTools plugins ['pdf_builder'] from path /home/kaszpir/.config/sublime-text-3/Packages/LaTeXTools/builders/pdfBuilder.py
Loaded LaTeXTools plugins ['script_builder', 'traditional_builder', 'basic_builder', 'simple_builder'] from path /home/kaszpir/.config/sublime-text-3/Packages/LaTeXTools/builders
Loaded LaTeXTools plugins ['base_viewer'] from path /home/kaszpir/.config/sublime-text-3/Packages/LaTeXTools/viewers/base_viewer.py
Loaded LaTeXTools plugins ['zathura_viewer', 'sumatra_viewer', 'command_viewer', 'evince_viewer', 'skim_viewer', 'okular_viewer', 'preview_viewer'] from path /home/kaszpir/.config/sublime-text-3/Packages/LaTeXTools/viewers
Loading LaTeXTools plugins...
FuzzyFilePath cached 1 files in /home/kaszpir/src/clean_registry
Emmet: No need to update PyV8
reloading settings Packages/User/Package Syncing.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
reloading settings Packages/User/SublimeGerrit.cleanup-info.sublime-settings
Loaded LaTeXTools plugins ['traditional_bibliography', 'new_bibliography'] from path /home/kaszpir/.config/sublime-text-3/Packages/LaTeXTools/bibliography_plugins
Loaded LaTeXTools plugins [] from path /home/kaszpir/.config/sublime-text-3/Packages/LaTeXTools/builders/pdfBuilder.py
Loaded LaTeXTools plugins [] from path /home/kaszpir/.config/sublime-text-3/Packages/LaTeXTools/builders
Loaded LaTeXTools plugins [] from path /home/kaszpir/.config/sublime-text-3/Packages/LaTeXTools/viewers/base_viewer.py
Loaded LaTeXTools plugins [] from path /home/kaszpir/.config/sublime-text-3/Packages/LaTeXTools/viewers
SublimeLinter: sublime_linter.py:256: detected syntax: python
[2018-03-07 20:59:04,732 - INFO     - SublimeLinter.sublime_linter] detected syntax: python
SublimeLinter: #1 linter.py:782: 'pylint' is linting 'clean_registry.py'
[2018-03-07 20:59:04,748 - INFO     - SublimeLinter.lint.linter] 'pylint' is linting 'clean_registry.py'
SublimeLinter: #1 python_linter.py:48: pylint: wanted python is 'None'
[2018-03-07 20:59:04,753 - INFO     - SublimeLinter.lint.base_linter.python_linter] pylint: wanted python is 'None'
SublimeLinter: #2 linter.py:782: 'flake8' is linting 'clean_registry.py'
[2018-03-07 20:59:04,755 - INFO     - SublimeLinter.lint.linter] 'flake8' is linting 'clean_registry.py'
SublimeLinter: #2 python_linter.py:48: flake8: wanted python is 'None'
[2018-03-07 20:59:04,756 - INFO     - SublimeLinter.lint.base_linter.python_linter] flake8: wanted python is 'None'
SublimeLinter: #1 python_linter.py:99: pylint: trying to use globally installed pylint
[2018-03-07 20:59:04,761 - INFO     - SublimeLinter.lint.base_linter.python_linter] pylint: trying to use globally installed pylintSublimeLinter: #2 python_linter.py:99: flake8: trying to use globally installed flake8

[2018-03-07 20:59:04,762 - INFO     - SublimeLinter.lint.base_linter.python_linter] flake8: trying to use globally installed flake8
SublimeLinter: #1 util.py:103: PATH:
    /home/kaszpir/bin
    /home/kaszpir/local/bin
    /home/kaszpir/.local/bin
    /home/kaszpir/bin
    /usr/local/sbin
    /usr/local/bin
    /usr/sbin
    /usr/bin
    /sbin
    /bin
    /usr/games
    /usr/local/games
    /snap/bin
    /home/kaszpir/.rvm/bin
[2018-03-07 20:59:04,765 - INFO     - SublimeLinter.lint.util] PATH:
    /home/kaszpir/bin
    /home/kaszpir/local/bin
    /home/kaszpir/.local/bin
    /home/kaszpir/bin
    /usr/local/sbin
    /usr/local/bin
    /usr/sbin
    /usr/bin
    /sbin
    /bin
    /usr/games
    /usr/local/games
    /snap/bin
    /home/kaszpir/.rvm/bin
SublimeLinter: #2 linter.py:1170: flake8: cmd: ['/home/kaszpir/.local/bin/flake8', '--format', 'default', '-']
[2018-03-07 20:59:04,767 - INFO     - SublimeLinter.lint.linter] flake8: cmd: ['/home/kaszpir/.local/bin/flake8', '--format', 'default', '-']
SublimeLinter: #2 linter.py:1188: flake8: clean_registry.py ['/home/kaszpir/.local/bin/flake8', '--format', 'default', '-']
[2018-03-07 20:59:04,772 - INFO     - SublimeLinter.lint.linter] flake8: clean_registry.py ['/home/kaszpir/.local/bin/flake8', '--format', 'default', '-']SublimeLinter: #1 linter.py:1170: pylint: cmd: ['/home/kaszpir/.local/bin/pylint', "--msg-template='{line}:{column}:{msg_id}: {msg} ({symbol})'", '--module-rgx=.*', '--reports=n', '--persistent=n']

[2018-03-07 20:59:04,772 - INFO     - SublimeLinter.lint.linter] pylint: cmd: ['/home/kaszpir/.local/bin/pylint', "--msg-template='{line}:{column}:{msg_id}: {msg} ({symbol})'", '--module-rgx=.*', '--reports=n', '--persistent=n']
SublimeLinter: #2 linter.py:1191: flake8: cwd: /home/kaszpir/src/clean_registry
[2018-03-07 20:59:04,772 - INFO     - SublimeLinter.lint.linter] flake8: cwd: /home/kaszpir/src/clean_registry
SublimeLinter: #1 linter.py:1188: pylint: clean_registry.py ['/home/kaszpir/.local/bin/pylint', "--msg-template='{line}:{column}:{msg_id}: {msg} ({symbol})'", '--module-rgx=.*', '--reports=n', '--persistent=n', '/home/kaszpir/src/clean_registry/clean_registry.py']
[2018-03-07 20:59:04,781 - INFO     - SublimeLinter.lint.linter] pylint: clean_registry.py ['/home/kaszpir/.local/bin/pylint', "--msg-template='{line}:{column}:{msg_id}: {msg} ({symbol})'", '--module-rgx=.*', '--reports=n', '--persistent=n', '/home/kaszpir/src/clean_registry/clean_registry.py']
SublimeLinter: #1 linter.py:1191: pylint: cwd: /home/kaszpir/src/clean_registry
[2018-03-07 20:59:04,781 - INFO     - SublimeLinter.lint.linter] pylint: cwd: /home/kaszpir/src/clean_registry
SublimeLinter: #2 linter.py:809: flake8 output:
    stdin:3:80: E501 line too long (100 > 79 characters)
    stdin:5:80: E501 line too long (98 > 79 characters)
    stdin:8:80: E501 line too long (82 > 79 characters)
    stdin:11:80: E501 line too long (106 > 79 characters)
    stdin:26:80: E501 line too long (92 > 79 characters)
    stdin:61:80: E501 line too long (82 > 79 characters)
    stdin:63:80: E501 line too long (89 > 79 characters)
    stdin:90:80: E501 line too long (85 > 79 characters)
    stdin:123:80: E501 line too long (120 > 79 characters)
    stdin:127:80: E501 line too long (111 > 79 characters)
    stdin:128:80: E501 line too long (105 > 79 characters)
    stdin:129:80: E501 line too long (89 > 79 characters)
    stdin:130:80: E501 line too long (111 > 79 characters)
    stdin:131:80: E501 line too long (100 > 79 characters)
    stdin:133:80: E501 line too long (99 > 79 characters)
    stdin:134:80: E501 line too long (80 > 79 characters)
    stdin:136:80: E501 line too long (102 > 79 characters)
    stdin:137:12: E127 continuation line over-indented for visual indent
    stdin:137:80: E501 line too long (102 > 79 characters)
    stdin:169:80: E501 line too long (87 > 79 characters)
    stdin:188:80: E501 line too long (109 > 79 characters)
    stdin:206:80: E501 line too long (89 > 79 characters)
    stdin:207:80: E501 line too long (106 > 79 characters)
    stdin:231:80: E501 line too long (106 > 79 characters)
    stdin:244:80: E501 line too long (104 > 79 characters)
    stdin:246:80: E501 line too long (99 > 79 characters)
    stdin:254:80: E501 line too long (109 > 79 characters)
    stdin:259:80: E501 line too long (101 > 79 characters)
    stdin:260:80: E501 line too long (118 > 79 characters)
    stdin:302:80: E501 line too long (83 > 79 characters)
[2018-03-07 20:59:05,137 - INFO     - SublimeLinter.lint.linter] flake8 output:
    stdin:3:80: E501 line too long (100 > 79 characters)
    stdin:5:80: E501 line too long (98 > 79 characters)
    stdin:8:80: E501 line too long (82 > 79 characters)
    stdin:11:80: E501 line too long (106 > 79 characters)
    stdin:26:80: E501 line too long (92 > 79 characters)
    stdin:61:80: E501 line too long (82 > 79 characters)
    stdin:63:80: E501 line too long (89 > 79 characters)
    stdin:90:80: E501 line too long (85 > 79 characters)
    stdin:123:80: E501 line too long (120 > 79 characters)
    stdin:127:80: E501 line too long (111 > 79 characters)
    stdin:128:80: E501 line too long (105 > 79 characters)
    stdin:129:80: E501 line too long (89 > 79 characters)
    stdin:130:80: E501 line too long (111 > 79 characters)
    stdin:131:80: E501 line too long (100 > 79 characters)
    stdin:133:80: E501 line too long (99 > 79 characters)
    stdin:134:80: E501 line too long (80 > 79 characters)
    stdin:136:80: E501 line too long (102 > 79 characters)
    stdin:137:12: E127 continuation line over-indented for visual indent
    stdin:137:80: E501 line too long (102 > 79 characters)
    stdin:169:80: E501 line too long (87 > 79 characters)
    stdin:188:80: E501 line too long (109 > 79 characters)
    stdin:206:80: E501 line too long (89 > 79 characters)
    stdin:207:80: E501 line too long (106 > 79 characters)
    stdin:231:80: E501 line too long (106 > 79 characters)
    stdin:244:80: E501 line too long (104 > 79 characters)
    stdin:246:80: E501 line too long (99 > 79 characters)
    stdin:254:80: E501 line too long (109 > 79 characters)
    stdin:259:80: E501 line too long (101 > 79 characters)
    stdin:260:80: E501 line too long (118 > 79 characters)
    stdin:302:80: E501 line too long (83 > 79 characters)
[2018-03-07 20:59:05,207 - WARNING  - process] Could not import subprocess32 module, falling back to subprocess module
Package Syncing: Start Complete Sync
Package Syncing: Already running
Package Syncing: Updated /home/kaszpir/.sublime-sync/Preferences.sublime-settings
Package Syncing: Updated /home/kaszpir/.sublime-sync/SublimeGerrit.cleanup-info.sublime-settings
Package Syncing: Updated /home/kaszpir/.sublime-sync/Sublimerge.tmTheme
Package Syncing: Updated /home/kaszpir/.sublime-sync/SublimergeSummaryPanel.tmTheme
Package Syncing: End Complete Sync
Package Control: Skipping automatic upgrade, last run at 2018-03-07 20:48:58, next run at 2018-03-07 21:48:58 or after
nvtkaszpir commented 6 years ago

No gif, but video! https://b.hlds.pl/debug/sublimelinter.record.2018.03.07_Mar.02.mp4

kaste commented 6 years ago

Can you try

class TooltipController(sublime_plugin.EventListener):
    def on_hover(self, view, point, hover_zone):
        print(view.is_popup_visible())
        print(hover_zone == sublime.HOVER_GUTTER)
        print(hover_zone == sublime.HOVER_TEXT)
kaste commented 6 years ago

May I ask you have

user_preferences_file: /home/kaszpir/.config/sublime-text-3/Packages/User/Preferences.sublime-settings
s: {
    "added_words":
....

in your startup log. Do you know where that is coming from? I don't want it and I just don't know how to get rid of it.

nvtkaszpir commented 6 years ago

added_words is a section of added words to dictionary as 'valid' words when using spell check, builtin in sublime text. I truncated the list to just few entries.

About that class code you give, where should I paste it? In the console directy? (kinda painful because it is single line edit ;) )

kaste commented 6 years ago

I meant I hate that it logs my settings every time 😄 I know my settings and they don't change that often.

Oh, in Packages/User create a whatever_name.py file. paste, save, watch the console logs.

nvtkaszpir commented 6 years ago

altered the code a bit, spamspamspam.py:


import logging
import sublime_plugin

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

class TooltipController(sublime_plugin.EventListener):
    def __init__(self):
        logger.info('############# Initialized sublimelinter_debug.py')

    def on_hover(self, view, point, hover_zone):
        logger.info('############# popup: {}'.format(view.is_popup_visible()))
        logger.info('############# hover_type: {}'.format(hover_zone))
nvtkaszpir commented 6 years ago

https://bagno.hlds.pl/debug/sublimelinter.spamspamspam.record.2018.03.07_Mar.13.mp4 video with actions and the code above.

kaste commented 6 years ago

So, basically it tells us a popup is visible but it isn't. That escalated quickly.

Well, how about uninstalling SublimeLinter and then manually git clone master 👍 You can find the TooltipController in tooltips_view.py. Remove spamspamspam.py bc it's anyway not needed anymore.

You will see in that file, we early exit (don't show the tooltip) if is_popup_visible() is True.

FichteFoll commented 6 years ago

@kaste I've had that settings spam before, too. I eventually removed the package responsible for it, but don't remember which one it was or whether I created an issue for it.

What's also curious is that @nvtkaszpir seems to have a second log handler, probably at the root logger, which causes all of SL's log messages to be printed twice. It has most likely been added by a different plugin being a bad citizen.

nvtkaszpir commented 6 years ago

I've cloned master and altered tooltips_view.py to add loggiging. When calling open_tooltip() I can see that there is a check:

    logger.info("is_popup_visible: {}". format(active_view.is_popup_visible()))

    # Leave any existing popup open without replacing it
    # don't let the popup flicker / fight with other packages
    if active_view.is_popup_visible():
        return

(derp), will investigate further.

kaste commented 6 years ago

And while we're there, you can check if we return early or if you actually reach line 80. Maybe sublime.HIDE_ON_MOUSE_MOVE_AWAY?

nvtkaszpir commented 6 years ago

Actually I reach active_view.show_popup which is called, returns None but... is not showing popup at all....

nvtkaszpir commented 6 years ago

Found the culprit :D Apparently package Network Tech is doing something nasty with popups. Disabling this plugin immediately restores inline and gutter popups.