Natalie Weizenbaum
cf42fbbb34
Wait a tick in a failing test even if polling is disabled
...
As far as I can tell, the root cause of this failure is just the
Node.js watcher failing to emit an event entirely, so there's not much
more we can do to work around it.
2021-01-08 17:23:50 -08:00
Natalie Weizenbaum
bae2968757
Deprecate incorrect HSL units
...
Partially addresses #1174
2020-12-29 13:26:54 -08:00
Natalie Weizenbaum
bf623752fb
Avoid always downcasing file paths on Windows ( #1172 )
...
Closes #1169
2020-12-23 18:07:20 -08:00
Sam Rawlins
5aeef4ce81
Remove unused dart:async imports ( #1160 )
2020-12-09 14:20:51 -08:00
Jennifer Thakar
7d6dae02a4
Always use absolute URLs in stdout source maps ( #1021 )
...
Fixes #1020 .
2020-06-04 17:03:06 -07:00
georgpukk
4d78316cb7
Fix a check that prevents compiling .css files to themselves ( #968 )
...
Co-Authored-By: Natalie Weizenbaum <nweiz@google.com>
2020-03-11 14:48:00 -07:00
Natalie Weizenbaum
f8c74d1315
Add a regression test for #550
2020-02-24 19:03:23 -08:00
Natalie Weizenbaum
27c32d0582
Fix an error test
2020-01-14 16:54:23 -08:00
Awjin Ahn
3d1dab3563
Print call-site for @errors in mixins and functions ( #878 )
...
For any @errors encountered in mixins or functions, use the call-site
(instead of the @error rule) as the span printed in the error message.
Closes #474
See sass/sass-spec#1494
2019-11-13 17:56:35 -08:00
Natalie Weizenbaum
44059573bb
Watch files through @forward rules ( #871 )
...
Closes #870
2019-11-04 13:32:27 -08:00
Natalie Weizenbaum
3392db0074
Don't compile .css files in directories to themselves ( #862 )
...
This also adds support for compiling .css files in directories *at
all*, which had previously only worked in --watch mode.
Closes #853
2019-10-29 23:48:21 +00:00
Natalie Weizenbaum
586a0eb703
Code review change
2019-10-01 15:05:11 -07:00
Natalie Weizenbaum
93a3a6f9f3
Merge branch 'master' into feature.use
2019-09-24 17:20:39 +01:00
Natalie Weizenbaum
aea990d4fc
Properly watch .css files for changes ( #814 )
...
Closes #806
2019-09-03 16:42:21 -07:00
Natalie Weizenbaum
8dea51d410
Change variable syntax to namespace.$name ( #803 )
...
See sass/sass#2731
2019-08-29 15:31:03 -07:00
Natalie Weizenbaum
5349042994
Allow @use in the REPL ( #784 )
2019-07-30 00:51:54 +01:00
Natalie Weizenbaum
7b3a2adc12
Properly indicate the error location in the REPL
...
Previously, errors in variable assignment lines would be reported
incorrectly.
2019-07-17 15:45:00 -07:00
Natalie Weizenbaum
ac38653776
Enable strict raw types
2019-05-31 16:01:49 +01:00
Natalie Weizenbaum
db87ed2f0e
Use the new Dart 2.3.0 literal syntax ( #684 )
2019-05-17 18:02:12 -07:00
Natalie Weizenbaum
34c068a189
Generate a CSS file describing an error when one occurs ( #659 )
...
Closes #657
2019-05-02 18:14:25 -07:00
Natalie Weizenbaum
495c6f3163
Only claim "package:" URLs are unsupported on Node ( #637 )
...
Closes #630
2019-04-04 12:17:36 -07:00
Natalie Weizenbaum
b102dc496a
Allow individual directories to be passed on the command-line ( #581 )
...
Closes #543
2019-02-01 14:59:58 -08:00
Natalie Weizenbaum
e8ac314f56
Support dart-lang/source_span#25 ( #566 )
...
This adds a --no-unicode option to disable Unicode span rendering,
decouples repl highlighting from SourceSpan.highlight, and updates
tests to work with the new error highlighting.
It also tightly scopes source spans for statements with children.
Previously, source spans for these nodes extended all the way through
any whitespace that followed the node. This led to messy-looking
multiline span highlights with dart-lang/source_span#25 .
Now, StylesheetParser.children doesn't consume trailing whitespace.
Instead, we add a helper method StylesheetParser._withChildren that
parses children, creates the appropriate span, and then consumes the
trailing whitespace.
2019-01-28 20:42:32 -05:00
Natalie Weizenbaum
7a75b7b786
Don't canonicalize file case in source maps ( #541 )
...
Closes #540
2019-01-04 14:17:18 -05:00
Natalie Weizenbaum
23968148d0
Properly use ImportResult.sourceMapUrl for source map URLs
...
This also uses data: URLs to refer to stylesheets from stdin in source
maps.
2018-12-20 16:22:43 -08:00
Natalie Weizenbaum
487e5025ff
Reformat with Dart-2-only features
2018-11-15 15:16:24 -08:00
Natalie Weizenbaum
1a5eb2a2e3
Fix embedding source maps with non-ASCII characters ( #471 )
...
Closes #457
2018-09-11 12:13:43 -07:00
Natalie Weizenbaum
8bffd52729
Don't hang after a syntax error in --watch ( #435 )
...
Closes #401
2018-08-03 15:38:16 -07:00
Natalie Weizenbaum
96c46a242e
Add a --stop-on-error flag ( #391 )
...
Closes #264
2018-06-29 18:12:36 -07:00
Michael R Fairhurst
cd275705cd
Fix places awaiting void, for dart 2 ( #393 )
2018-06-29 13:20:26 -07:00
Natalie Weizenbaum
425305725b
Add a --poll option ( #390 )
...
Partially addresses #264 .
2018-06-28 18:20:28 -07:00
Natalie Weizenbaum
39eeeb51ef
Add a missing _ignoreErrors() call in StylesheetGraph ( #377 )
...
We weren't ignoring errors when reloading a file, which meant that
syntax errors would get surfaced in the wrong place and cause a crash.
Closes #359
2018-06-26 20:10:46 -07:00
Natalie Weizenbaum
6693a82f3b
Use the latest test_descriptor features to clean up tests ( #366 )
2018-06-19 17:50:49 -07:00
Natalie Weizenbaum
fdbccc8625
Ensure that source map comment URLs are relative to the CSS file ( #365 )
...
Closes #364
2018-06-19 17:50:37 -07:00
Natalie Weizenbaum
b949f9fe72
Use Dart 2 constants
2018-06-15 13:59:28 -07:00
Natalie Weizenbaum
6ad67a6f28
Remove the workaround for dart-lang/sdk#30098
...
This un-reverts pull request #320 from sass/remove-path-workaround,
which was reverted by commit 0fb5d25ee2
.
2018-06-14 16:15:27 -07:00
Natalie Weizenbaum
f074152f61
Add a tick in a test that's failing on Windows
2018-06-13 16:42:10 -07:00
Natalie Weizenbaum
0519163ae3
Use the standard tick helper rather than a custom sleep
2018-06-13 16:41:29 -07:00
Natalie Weizenbaum
5efa7bf48a
Normalize path separators in watch test expectations
2018-06-13 16:41:29 -07:00
Natalie Weizenbaum
6bbb961675
Add a --watch command
...
Partially addresses #264
2018-06-09 14:13:36 -04:00
Natalie Weizenbaum
3362273c29
Disallow --update and --watch with --interactive
2018-06-09 14:09:20 -04:00
Natalie Weizenbaum
0a21fb7063
Make sure --update surfaces failures properly
2018-06-08 20:28:38 -04:00
Natalie Weizenbaum
b9e1585cf6
Add a helper function for update tests ( #348 )
2018-06-07 09:54:18 -04:00
Natalie Weizenbaum
c26903e30e
Don't consider drive separators to be path-separating colons ( #342 )
...
Closes #340
2018-05-31 20:38:45 -04:00
Natalie Weizenbaum
0fb5d25ee2
Revert "Merge pull request #320 from sass/remove-path-workaround"
...
This reverts commit 08bfb46f16
, reversing
changes made to ad73a91f84
.
2018-05-31 14:37:21 -04:00
Natalie Weizenbaum
8435be5f4b
Style tweaks
2018-05-30 18:59:49 -04:00
Natalie Weizenbaum
1d7b0aa5ad
Merge branch 'master' into jathak-interactive
2018-05-30 18:41:15 -04:00
Natalie Weizenbaum
0c637b2e6a
Split CLI tests into multiple suites ( #337 )
2018-05-30 18:35:35 -04:00