Sublime text 3 white boxes around the lines

enter image description here

Note: I just started programming in Python using Sublime Text 3. I'm not sure why I get white dots / labels on each line, see the image below. I would like to know the following.

  1. Is it because of an error?
  2. Is it because of the package or team?
  3. I tried CTRL + Space, CTRL + G and CTRL + K and I still get white marks, will I be bothered?
+17
source share
7 answers

You may have installed the Anaconda package. If so, you need to go to Settings → Package Settings → Anaconda → Settings-User. Then paste the following code and save. These boxes should disappear.

{
    "anaconda_linting": false,
}
+70
source

SublimeLinter. , , (Python), . , , Preferences → Package Control → Package Control: Disable Package, sublimelinter Enter.

, , PEP8 -compliant . :

listone = [1, 2, 3]
listtwo = [1, 2, 3]
matrix_one = [listone, listtwo]
matrix_one = [row[0] for row in matrix_one] # are you sure you really want
                                            # to overwrite your original matrix?

print matrix_one # you had matrix_ones in your original code

Python 3, . Python , Python 3, python.org. 3 - , 2 - . 2, , , 3 ( ), 3, 2 .

+4

, anacoda .

,

Preferences → Package Settings → choose package(Anacoda) → Settings-User

, . , @James Xingjian Zhang.

, . Anaconda package

{
    "anaconda_linting": false,
}
+1

: PreferencesPackage SettingsSublimeLinterSettings

none stylesmark_style

0

, , , , . , , . : - , linter "" 1, 2 3. 6: Python , . 6: Python 3.

'listone = [1, 2, 3]'
'listtwo = [1, 2, 3]'
'matrix_one = [listone, listtwo]'
'matrix_one = [row[0] for row in matrix_one]'

'print(matrix_one)'
0

, anaconda.

{
    "anaconda_linting": false,
}
0
source

For Anaconda, consider saving error notifications, but simplify them by eye. Change from Sublime Text> Settings> Package Settings> Anaconda> Settings - Default

"anaconda_linter_mark_style": "no"

Here are the options:

/*
    If 'outline' (default), anaconda will outline error lines.
    If 'fill', anaconda will fill the lines.
    If 'solid_underline', anaconda will draw a solid underline below regions.
    If 'stippled_underline', anaconda will draw a stippled underline below regions.
    If 'squiggly_underline', anaconda will draw a squiggly underline below regions.
    If 'none', anaconda will not draw anything on error lines.
*/
0
source

Source: https://habr.com/ru/post/1665767/


All Articles