ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Linter Inline Errors

by alexkuz ST3 Trending

Shows linting errors inline with Phantom API

Details

  • 0.0.6
  • github.​com
  • github.​com
  • 11 months ago
  • 23 minutes ago
  • 12 months ago

Installs

  • Total 2K
  • Win 1K
  • OS X 462
  • Linux 308
Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30
Windows 8 12 27 3 2 4 2 3 4 2 4 3 4 4 3 4 3 2 3 4 3 4 5 3 2 4 3 2 2 5 3 5 3 4 6 6 8 1 4 5 5 5 5 5 2 3
OS X 0 3 2 0 0 1 1 1 2 1 0 1 1 0 0 2 0 0 1 2 1 2 1 1 1 1 1 1 5 0 1 2 0 0 2 0 0 0 0 0 3 1 0 1 0 0
Linux 1 2 5 1 0 0 1 2 0 1 0 0 0 1 1 1 0 0 0 0 1 1 0 0 0 0 1 1 1 1 1 0 0 0 1 0 0 2 0 0 1 0 1 1 2 2

Readme

Source
raw.​githubusercontent.​com
This is an experimental package and apparently it does not work very well. Don’t expect much of it.

If you still need decent error displaying (I bet you do), consider using SublimeLinter v4

SublimeLinter-inline-errors

Shows linting errors inline with Phantom API

Much experimental. Very beta.

Works like this:

Or this:

Installation

  • Open Package Control: Install Package
  • Find and install SublimeLinter Inline Errors package

Settings

{
  // Show warning hints
  "show_warnings": true,

  // Show error hints
  "show_errors": true,

  // Show summary on top of the view
  "show_summary": true,

  // Hint font size
  "font_size": "0.9rem",

  // If true, shows hint inline, otherwise below the line
  "show_inline_text": true,

  // Hint behaviour when caret is on hinted line
  //
  // "inline" - shows inline hint
  // "below" - shows hint below the line
  // "none" - hides hint
  "hint_on_selected_line": "none",

  // Most left position for the hint in line (unless viewport is narrower than that)
  "min_offset": 100,

  // Max width for the block shown below the line
  "max_block_width": 80,

  // Minimal gap between the text line and the hint
  "min_gap": 5,

  // Theme file for inline hints
  "inline_theme": "Packages/SublimeLinter Inline Errors/themes/inline.html",

  // Theme file for below-the-line hints
  "below_theme": "Packages/SublimeLinter Inline Errors/themes/below.html",

  // Theme file for summary hints
  "summary_inline_theme": "Packages/SublimeLinter Inline Errors/themes/summary-inline.html",

  // Theme file for summary hints
  "summary_below_theme": "Packages/SublimeLinter Inline Errors/themes/summary-below.html",

  // Symbol used as a warning hint prefix
  "warning_symbol": "⚠️",

  // Symbol used as an error hint prefix
  "error_symbol": "⛔",

  // Symbol used in the offset
  "offset_symbol": " ",

  // Offset symbol color (set your background color here to hide the offset symbols)
  "offset_color": "553333",

  // Inline warning text color
  "inline_warning_color": "DDCC66",

  // Inline warning background color
  "inline_warning_background_color": "",

  // Inline error text color
  "inline_error_color": "DD6666",

  // Inline error background color
  "inline_error_background_color": "",

  // Below-the-line warning text color
  "below_warning_color": "FFFFFF",

  // Below-the-line warning background color
  "below_warning_background_color": "BBAA33",

  // Below-the-line error text color
  "below_error_color": "FFFFFF",

  // Below-the-line error background color
  "below_error_background_color": "993333",

  // Summary text color
  "summary_color": "FFFFFF",

  // Summary background color
  "summary_background_color": "993333",

  // Maximum number of words in inline hint
  "inline_max_words": 30,

  // Prints debug messages in console
  "debug": false
}

Known issues

  • By default, inline hint is hidden for a current line, since Phantom window can mess up with your code while you editing it. If you feel lucky, you can always show inline hint by setting hint_on_selected_line: "inline"
  • If you click between code line and the hint, nothing happens (it should put cursor at the end of a line). It's a bit annoying. Unfortunately, there's no way to make phantom transparent for pointer events (so the click would be handled by the editor), making a hidden link there to handle the click manually also doesn't work well.