Sublime Forum

[Bug] SublimeLinter don't work in unsaved buffers in a new windows

#1

(Yes, I understand, my topic for SublimeLinter issue tracker, not for forum, but in SublimeLinter issue tracker little responsible users. Possibly, someone here can fixed my problem. See same topic in a SublimeLinter issue tracker.)

1. Summary

SublimeLinter don’t work in unsaved buffers in a new windows.

2. Expected behavior

Succesful work in unsaved buffers in new window like behavior, if I wrote my text in a new tab — Ctrl+N in Windows.

Sublime Text console output in debug mode:

SublimeLinter: writegood: <unsaved> ['C:\\Users\\SashaChernykh\\AppData\\Roaming\\npm\\write-good.cmd'] 
SublimeLinter: writegood output:
In c:\users\sashac~1\appdata\local\temp\SublimeLinter3-SashaChernykh\untitled.tmp
=============
many really
^^^^
"many" is a weasel word and can weaken meaning on line 3 at column 0
-------------
many really
     ^^^^^^
"really" can weaken meaning on line 3 at column 5 
SublimeLinter: proselint: <unsaved> ['C:\\Python36\\Scripts\\proselint.exe'] 
chr evt: ) (0x29)
SublimeLinter: writegood: <unsaved> ['C:\\Users\\SashaChernykh\\AppData\\Roaming\\npm\\write-good.cmd'] 
SublimeLinter: writegood output:
In c:\users\sashac~1\appdata\local\temp\SublimeLinter3-SashaChernykh\untitled.tmp
=============
many really
^^^^
"many" is a weasel word and can weaken meaning on line 3 at column 0
-------------
many really
     ^^^^^^
"really" can weaken meaning on line 3 at column 5 
SublimeLinter: proselint: <unsaved> ['C:\\Python36\\Scripts\\proselint.exe'] 
SublimeLinter: proselint output:
c:\users\sashac~1\appdata\local\temp\SublimeLinter3-SashaChernykh\untitled.pltmp:5:2: typography.symbols.ellipsis '...' is an approximation, use the ellipsis symbol '…'.
c:\users\sashac~1\appdata\local\temp\SublimeLinter3-SashaChernykh\untitled.pltmp:7:1: sexism.misc Gender bias. Use 'husband and wife' instead of 'man and wife'.
c:\users\sashac~1\appdata\local\temp\SublimeLinter3-SashaChernykh\untitled.pltmp:9:2: typography.symbols.copyright (c) is a goofy alphabetic approximation, use the symbol ©.

3. Actual behavior

Nothing occurs, no output in Sublime Text console in debug mode.

Behavior, if I wrote my text in a new window — Ctrl+Shift+N in Windows.

Actual

Ctrl+Shift+P → SublimeLinter: Lint This View → no effect.

4. Settings

My User/SublimeLinter.sublime-settings file:

{
    "user": {
        "debug": true,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Danish Royalty/Danish Royalty.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "background",
        "linters": {
            "annotations": {
                "@disable": false,
                "args": [],
                "errors": [
                    "FIXME"
                ],
                "excludes": [],
                "warnings": [
                    "NOTE",
                    "README",
                    "TODO",
                    "XXX",
                    "@todo"
                ]
            },
            "csslint": {
                "@disable": false,
                "args": [],
                "errors": "",
                "excludes": [],
                "ignore": [
                    "order-alphabetical",
                    "ids"
                ],
                "warnings": ""
            },
            "htmltidy": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "jshint": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "proselint": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "slimlint": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "sublimesyntax": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "writegood": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "xmllint": {
                "@disable": false,
                "args": [],
                "excludes": []
            }
        },
        "mark_style": "fill",
        "no_column_highlights_line": true,
        "passive_warnings": true,
        "paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "python_paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "rc_search_limit": 3,
        "shell_timeout": 10,
        "show_errors_on_save": false,
        "show_marks_in_minimap": true,
        "syntax_map": {
            "html (django)": "html",
            "html (rails)": "html",
            "html 5": "html",
            "javascript (babel)": "javascript",
            "magicpython": "python",
            "nuget": "xml",
            "php": "html",
            "python django": "python",
            "pythonimproved": "python",
            "xml": "xml"
        },
        "warning_color": "DDB700",
        "wrap_find": false
    }
}

My text in unsaved buffers:

many really

...

man and wife

(c)

5. Steps to reproduce

I reproduce the problem in a version of Sublime Text without plugins and user settings.

I install SublimeLinter; proselint and write-good linters → I restart Sublime Text.

Ctrl+N → I wrote my text in new tab → I get expected behavior.

Ctrl+Shift+N → I wrote my text in new window → I get actual behavior.

6. Environment

Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Sublime Text:
Build 3126
SublimeLinter:
3.7.4

Thanks.

0 Likes