Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dark red messages in Sublime

I'm getting these weird dark red messages in Sublime Text after installing Sierra iOS and updating Sublime to Build 3126.

Sublime Text inline errors screenshot

I tried to delete the pieces of code and retype them by hand, but they keep reappearing every time I hit 'Save'. Does anyone know what they are and how to get rid of them, please?

like image 787
Maria Blair Avatar asked Sep 26 '16 23:09

Maria Blair


People also ask

What is color scheme in Sublime Text?

A color scheme assigns colors and font styles to scopes , which are assigned to the text by the syntax. The rest of the look of the user interface is controlled by the theme. The theme controls such elements as buttons select lists, the sidebar and tabs. Sublime Text color schemes are implemented using .sublime-color-scheme files, containing JSON.

What is Sublime Text and how does it work?

From editing code to writing prose, Sublime Text is a jack-of-all-trades text editing app that can be enhanced through various plugins. The Sublime Text editor is free to use with no caveats or restrictions.

How many themes are available on Sublime Text?

Good color schemes make it easy for quick code identification and reduce eyestrain. Here is a rundown of the top 16 themes available on Sublime Text you need to download and install for the next bootup. But first, let’s go over the steps of installing themes in Sublime Text.

How to install rainglow color scheme in Sublime Text?

Now to install Rainglow color scheme package to Sublime Text using Package Control package manager, open your Sublime Text editor and go to Preferences > Package Control as marked in the screenshot below. Now click on Package Control: Install Package as marked in the screenshot below.


1 Answers

Those are inline build errors. It is a new feature in the Beta Build 3124 (Dev Build 3118).

Build errors are now shown inline, at the location the error occurred. This is done via the new Phantoms API, which allows HTML annotations to be added to the text buffer by plugins.

enter image description here

Inline build errors can be disabled via the show_errors_inline setting.

— Sublime Text Blog

Inline build errors can be disabled via the show_errors_inline setting.

User

Menu > Preferences > Settings (Preferences.sublime-settings - User)

{
    "show_errors_inline": false
}

Per-Project

Menu > Project > Edit Project

{
    "settings": {
        "show_errors_inline": false
    }
}

How to Dismiss Inline Build Errors via Key Binding

Create a custom key binding.

Menu > Preferences > Key Bindings

{
    "keys": ["ctrl+l"],
    "command": "exec",
    "args": {
        "hide_phantoms_only": true
    }
}

Or for vim modes:

{
    "keys": ["ctrl+l"],
    "command": "exec",
    "args": {
        "hide_phantoms_only": true
    },
    "context": [
        { "key": "setting.command_mode" }
    ]
}

Re: Sublime Text Forum

like image 75
Gerard Roche Avatar answered Oct 17 '22 06:10

Gerard Roche