fichtefoll / sublimelinter-contrib-sublime-syntax Goto Github PK
View Code? Open in Web Editor NEWSublimeLinter plugin for running syntax tests in Sublime Text
License: MIT License
SublimeLinter plugin for running syntax tests in Sublime Text
License: MIT License
SublimeLinter: linter.py:931 sublimesyntax: checking lint mode 'background' vs lint reason 'on_user_request'
SublimeLinter: #412 linter.py:948 sublimesyntax: linting 'syntax_test_c.c'
SublimeLinter: sublime-syntax: created temporary file at /usr/local/home/me/.config/sublime-text-3/Packages/.temp-subsyn-lint/syntax_test_jct7ou
SublimeLinter: sublime-syntax: "syntax_test_c.c" assertions: 1
SublimeLinter: #412 linter.py:1027 sublimesyntax: output:
Packages/.temp-subsyn-lint/syntax_test_jct7ou: unable to read file
SublimeLinter: #412 linter.py:1063 sublimesyntax: No match for line: 'Packages/.temp-subsyn-lint/syntax_test_jct7ou: unable to read file'
SublimeLinter: sublime_linter.py:449 Linting 'syntax_test_c.c' took 0.01s
SublimeLinter v4.9.4
SublimeLinter-contrib-sublime-syntax v1.1.0
Sublime Text v3192
On Windows 10 with ST v3109 I get a Unicode Encode Error
when linting the CSS syntax test from sublimehq/Packages
Seems the tempfile's contents aren't being written as UTF8
Stack trace:
Traceback (most recent call last):
File "C:\Sublime Syntax Test\Data\Packages\SublimeLinter\lint\queue.py", line 65, in loop
self.lint(view_id, timestamp)
File "C:\Sublime Syntax Test\Data\Packages\SublimeLinter\lint\queue.py", line 111, in lint
self.callback(view_id, timestamp)
File "C:\Sublime Syntax Test\Data\Packages\SublimeLinter\sublimelinter.py", line 119, in lint
Linter.lint_view(view, filename, code, hit_time, callback)
File "C:\Sublime Syntax Test\Data\Packages\SublimeLinter\lint\linter.py", line 929, in lint_view
linter.lint(hit_time)
File "C:\Sublime Syntax Test\Data\Packages\SublimeLinter\lint\linter.py", line 1397, in lint
output = self.run(cmd, self.code)
File "linter in C:\Sublime Syntax Test\Data\Installed Packages\SublimeLinter-contrib-sublime-syntax.sublime-package", line 66, in run
File "./python3.3/contextlib.py", line 48, in __enter__
File "linter in C:\Sublime Syntax Test\Data\Installed Packages\SublimeLinter-contrib-sublime-syntax.sublime-package", line 137, in _temporary_resource_file
File "./python3.3/encodings/cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f600' in position 22375: character maps to <undefined>
On Windows 10 with ST v3109 when the linter encounters the CSS import
at-rule, the import at-rule meta scope becomes the scope all following assertions are tested against.
Take the following example:
@import; /* meta.at-rule.import.css */
html {} /* correctly scoped as entity.name.tag.css */
/* ^^^^ entity.name.tag.css */
The resulting output is:
[entity.name.tag.css] does not match scope [source.css meta.at-rule.import.css]
[entity.name.tag.css] does not match scope [source.css meta.at-rule.import.css]
[entity.name.tag.css] does not match scope [source.css meta.at-rule.import.css]
[entity.name.tag.css] does not match scope [source.css meta.at-rule.import.css]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.