Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WARNING] ngdart on web/pdfjs/3.11.174/web/debugger.css: Errors parsing CSS #66

Open
insinfo opened this issue Oct 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@insinfo
Copy link

insinfo commented Oct 3, 2023

Which ng* package(s) are the source of the bug?

ngdart

Which operating system(s) does this bug appear on?

Windows

Which browser(s) does this bug appear on?

Chrome 117.0.5938.132 64 bits

Is this a regression?

No

Description

I am accepting these warnings when I run webdev build or "dart run build_runner build" I copied the lib pdfjs 3.11.174 in the web folder to be able to use it in my project and I saw that it is parsing CSS files, is there a way to ignore these warnings so that the angular don't parse them

Please provide the steps to reproduce the bug

Create a simple project with ngcli and unzip the pdfjs lib in the web folder

Please provide the exception or error you saw

PS C:\MyDartProjects\dart_bug_demo> dart run build_runner build
Building package executable...
Built build_runner:build_runner.
[INFO] Generating build script completed, took 462ms
[INFO] Precompiling build script... completed, took 8.4s
[INFO] Building new asset graph completed, took 1.7s
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[WARNING] ngdart on web/pdfjs/3.11.174/web/debugger.css:
Errors parsing CSS:
error on line 21, column 18: expected ), but found ,
   ╷
21 │ #PDFBug :is(input, button, select) {
   │                  ^
   ╵
error on line 21, column 34: expected {, but found )
   ╷
21 │ #PDFBug :is(input, button, select) {
   │                                  ^
   ╵
error on line 21, column 36: expected }, but found {
   ╷
21 │ #PDFBug :is(input, button, select) {
   │                                    ^
   ╵
error on line 22, column 20: expected {, but found ;
   ╷
22 │   font: message-box;
   │                    ^
   ╵
error on line 72, column 30: expected ), but found ,
   ╷
72 │ #PDFBug table.showText :is(tr, td) {
   │                              ^
   ╵
error on line 72, column 34: expected {, but found )
   ╷
72 │ #PDFBug table.showText :is(tr, td) {
   │                                  ^
   ╵
error on line 72, column 36: expected }, but found {
   ╷
72 │ #PDFBug table.showText :is(tr, td) {
   │                                    ^
   ╵
error on line 73, column 11: parsing error expected {
   ╷
73 │   border: 1px solid black;
   │           ^
   ╵
error on line 73, column 12: parsing error expected }
   ╷
73 │   border: 1px solid black;
   │            ^^
   ╵
error on line 73, column 26: expected {, but found ;
   ╷
73 │   border: 1px solid black;
   │                          ^
   ╵
[WARNING] ngdart on web/pdfjs/3.11.174/web/viewer.css:
Errors parsing CSS:
error on line 43, column 20: expected ), but found ,
   ╷
43 │ .textLayer :is(span, br) {
   │                    ^
   ╵
error on line 43, column 24: expected {, but found )
   ╷
43 │ .textLayer :is(span, br) {
   │                        ^
   ╵
error on line 43, column 26: expected }, but found {
   ╷
43 │ .textLayer :is(span, br) {
   │                          ^
   ╵
error on line 44, column 21: expected {, but found ;
   ╷
44 │   color: transparent;
   │                     ^
   ╵
error on line 138, column 51: expected ), but found ,
    ╷
138 │   .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
    │                                                   ^
    ╵
error on line 138, column 61: expected {, but found )
    ╷
138 │   .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
    │                                                             ^
    ╵
error on line 138, column 62: expected }, but found :
    ╷
138 │   .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
    │                                                              ^
    ╵
error on line 141, column 32: expected ), but found .
    ╷
141 │     .buttonWidgetAnnotation:is(.checkBox, .radioButton)
    │                                ^
    ╵
error on line 141, column 55: expected {, but found )
    ╷
141 │     .buttonWidgetAnnotation:is(.checkBox, .radioButton)
    │                                                       ^
    ╵
error on line 218, column 22: expected ), but found .
    ╷
218 │ .annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {
    │                      ^
    ╵
error on line 218, column 73: expected {, but found )
    ╷
218 │ .annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {
    │                                                                         ^
    ╵
error on line 227, column 1: expected }, but found .
    ╷
227 │ .annotationLayer
    │ ^
    ╵
error on line 228, column 7: expected ), but found .
    ╷
228 │   :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)
    │       ^
    ╵
error on line 228, column 58: expected {, but found )
    ╷
228 │   :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)
    │                                                          ^
    ╵
error on line 252, column 1: expected }, but found .
    ╷
252 │ .annotationLayer .textWidgetAnnotation :is(input, textarea),
    │ ^
    ╵
error on line 252, column 49: expected ), but found ,
    ╷
252 │ .annotationLayer .textWidgetAnnotation :is(input, textarea),
    │                                                 ^
    ╵
error on line 252, column 59: expected {, but found )
    ╷
252 │ .annotationLayer .textWidgetAnnotation :is(input, textarea),
    │                                                           ^
    ╵
error on line 252, column 60: expected }, but found ,
    ╷
252 │ .annotationLayer .textWidgetAnnotation :is(input, textarea),
    │                                                            ^
    ╵
error on line 254, column 45: expected ), but found .
    ╷
254 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
    │                                             ^
    ╵
error on line 254, column 68: expected {, but found )
    ╷
254 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
    │                                                                    ^
    ╵
error on line 265, column 1: expected }, but found .
    ╷
265 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
    │ ^
    ╵
error on line 265, column 49: expected ), but found ,
    ╷
265 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
    │                                                 ^
    ╵
error on line 265, column 59: expected {, but found )
    ╷
265 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
    │                                                           ^
    ╵
error on line 265, column 60: expected }, but found :
    ╷
265 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
    │                                                            ^
    ╵
error on line 268, column 30: expected ), but found .
    ╷
268 │   .buttonWidgetAnnotation:is(.checkBox, .radioButton)
    │                              ^
    ╵
error on line 268, column 53: expected {, but found )
    ╷
268 │   .buttonWidgetAnnotation:is(.checkBox, .radioButton)
    │                                                     ^
    ╵
error on line 285, column 1: expected }, but found .
    ╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
    │ ^
    ╵
error on line 285, column 49: expected ), but found ,
    ╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
    │                                                 ^
    ╵
error on line 285, column 59: expected {, but found )
    ╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
    │                                                           ^
    ╵
error on line 285, column 60: expected }, but found [
    ╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
    │                                                            ^
    ╵
error on line 285, column 69: expected {, but found ]
    ╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
    │                                                                     ^
    ╵
error on line 285, column 70: expected }, but found ,
    ╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
    │                                                                      ^
    ╵
error on line 288, column 30: expected ), but found .
    ╷
288 │   .buttonWidgetAnnotation:is(.checkBox, .radioButton)
    │                              ^
    ╵
error on line 288, column 53: expected {, but found )
    ╷
288 │   .buttonWidgetAnnotation:is(.checkBox, .radioButton)
    │                                                     ^
    ╵
error on line 295, column 1: expected }, but found .
    ╷
295 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
    │ ^
    ╵
error on line 295, column 49: expected ), but found ,
    ╷
295 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
    │                                                 ^
    ╵
error on line 295, column 59: expected {, but found )
    ╷
295 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
    │                                                           ^
    ╵
error on line 295, column 60: expected }, but found :
    ╷
295 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
    │                                                            ^
    ╵
error on line 298, column 30: expected ), but found .
    ╷
298 │   .buttonWidgetAnnotation:is(.checkBox, .radioButton)
    │                              ^
    ╵
error on line 298, column 53: expected {, but found )
    ╷
298 │   .buttonWidgetAnnotation:is(.checkBox, .radioButton)
    │                                                     ^
    ╵
error on line 302, column 1: expected }, but found .
    ╷
302 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
    │ ^
    ╵
error on line 302, column 49: expected ), but found ,
    ╷
302 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
    │                                                 ^
    ╵
error on line 302, column 59: expected {, but found )
    ╷
302 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
    │                                                           ^
    ╵
error on line 308, column 1: expected }, but found .
    ╷
308 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
    │ ^
    ╵
error on line 308, column 49: expected ), but found ,
    ╷
308 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
    │                                                 ^
    ╵
error on line 308, column 59: expected {, but found )
    ╷
308 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
    │                                                           ^
    ╵
error on line 316, column 1: expected }, but found .
    ╷
316 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {
    │ ^
    ╵
error on line 316, column 45: expected ), but found .
    ╷
316 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {
    │                                             ^
    ╵
error on line 316, column 68: expected {, but found )
    ╷
316 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {
    │                                                                    ^
    ╵
error on line 380, column 1: expected }, but found .
    ╷
380 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
    │ ^
    ╵
error on line 380, column 45: expected ), but found .
    ╷
380 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
    │                                             ^
    ╵
error on line 380, column 68: expected {, but found )
    ╷
380 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
    │                                                                    ^
    ╵
error on line 494, column 2: parsing error expected }
    ╷
494 │ @media screen and (forced-colors: active) {
    │  ^^^^^
    ╵
error on line 494, column 19: expected {, but found (
    ╷
494 │ @media screen and (forced-colors: active) {
    │                   ^
    ╵
error on line 494, column 41: expected }, but found )
    ╷
494 │ @media screen and (forced-colors: active) {
    │                                         ^
    ╵
error on line 494, column 43: expected } after ruleset for @media
    ╷
494 │ @media screen and (forced-colors: active) {
    │                                           ^
    ╵
error on line 494, column 43: premature end of file unknown CSS
    ╷
494 │ @media screen and (forced-colors: active) {
    │                                           ^
    ╵
[INFO] Generating SDK summary completed, took 4.3s
[INFO] Running build completed, took 32.9s
[INFO] Caching finalized dependency graph completed, took 367ms
[INFO] Succeeded after 33.3s with 2545 outputs (7290 actions)
PS C:\MyDartProjects\dart_bug_demo> 


### Please provide the dependency environment you discovered this bug in (run `dart pub deps -s compact`)

```true
PS C:\MyDartProjects\dart_bug_demo> dart pub deps -s compact   
Dart SDK 2.18.7
dart_bug_demo 0.0.0

dependencies:
- ngdart 7.1.1 [built_collection built_value collection intl js logging meta stack_trace stream_transform ngast ngcompiler build build_config code_builder csslib path quiver source_gen source_span]

dev dependencies:
- build_runner 2.3.3 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- build_web_compilers 3.2.6 [analyzer archive bazel_worker build build_config build_modules collection glob js logging path pool scratch_space source_maps source_span stack_trace]

transitive dependencies:
- _fe_analyzer_shared 47.0.0 [meta]
- analyzer 4.7.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- archive 3.4.2 [crypto path pointycastle]
- args 2.4.1
- async 2.11.0 [collection meta]
- bazel_worker 1.0.2 [async protobuf]
- boolean_selector 2.1.1 [source_span string_scanner]
- build 2.3.1 [analyzer async convert crypto glob logging meta path]
- build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 3.1.1 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_modules 4.0.6 [analyzer async bazel_worker build build_config collection crypto glob graphs json_annotation logging path scratch_space stream_transform]
- build_resolvers 2.0.10 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.7 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
- build_test 2.1.7 [async build build_config build_resolvers crypto glob html logging matcher package_config path stream_transform test test_core watcher]
- built_collection 5.1.1
- built_value 8.6.3 [built_collection collection fixnum meta]
- charcode 1.3.1
- checked_yaml 2.0.2 [json_annotation source_span yaml]
- clock 1.1.1
- code_builder 4.4.0 [built_collection built_value collection matcher meta]
- collection 1.18.0
- convert 3.1.1 [typed_data]
- coverage 1.6.3 [args logging package_config path source_maps stack_trace vm_service]
- crypto 3.0.2 [typed_data]
- csslib 0.17.2 [source_span]
- dart_style 2.2.4 [analyzer args path pub_semver source_span]
- file 6.1.4 [meta path]
- fixnum 1.0.1
- frontend_server_client 3.2.0 [async path]
- glob 2.1.1 [async collection file path string_scanner]
- graphs 2.3.1 [collection]
- html 0.15.3 [csslib source_span]
- http_multi_server 3.2.1 [async]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- intl 0.17.0 [clock path]
- io 1.0.4 [meta path string_scanner]
- js 0.6.5 [meta]
- json_annotation 4.8.0 [meta]
- logging 1.1.1
- matcher 0.12.16 [async meta stack_trace term_glyph test_api]
- meta 1.10.0
- mime 1.0.4
- ngast 2.1.4 [charcode collection meta source_span string_scanner]
- ngcompiler 2.1.3 [ngdart ngast analyzer args build build_test code_builder collection csslib dart_style logging meta package_config path source_gen source_span stack_trace]
- node_preamble 2.0.2
- package_config 2.1.0 [path]
- path 1.8.3
- pointycastle 3.7.3 [collection convert js]
- pool 1.5.1 [async stack_trace]
- protobuf 2.1.0 [fixnum collection meta]
- pub_semver 2.1.4 [collection meta]
- pubspec_parse 1.2.3 [checked_yaml collection json_annotation pub_semver yaml]
- quiver 3.2.1 [matcher]
- scratch_space 1.0.1 [build crypto path pool]
- shelf 1.4.1 [async collection http_parser path stack_trace stream_channel]
- shelf_packages_handler 3.0.2 [path shelf shelf_static]
- shelf_static 1.1.2 [convert http_parser mime path shelf]
- shelf_web_socket 1.0.4 [shelf stream_channel web_socket_channel]
- source_gen 1.2.6 [analyzer async build dart_style glob meta path source_span yaml]
- source_map_stack_trace 2.1.1 [path source_maps stack_trace]
- source_maps 0.10.12 [source_span]
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.11.1 [path]
- stream_channel 2.1.1 [async]
- stream_transform 2.1.0
- string_scanner 1.2.0 [source_span]
- term_glyph 1.2.1
- test 1.24.3 [analyzer async boolean_selector collection coverage http_multi_server io js node_preamble package_config path pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel typed_data web_socket_channel webkit_inspection_protocol yaml test_api test_core matcher]
- test_api 0.6.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- test_core 0.5.3 [analyzer async args boolean_selector collection coverage frontend_server_client glob io meta package_config path pool source_map_stack_trace source_maps source_span stack_trace stream_channel vm_service yaml test_api]
- timing 1.0.1 [json_annotation]
- typed_data 1.3.2 [collection]
- vm_service 11.2.0
- watcher 1.0.2 [async path]
- web_socket_channel 2.4.0 [async crypto stream_channel]
- webkit_inspection_protocol 1.2.0 [logging]
- yaml 3.1.1 [collection source_span string_scanner]

Anything else?

No response

@insinfo insinfo added the bug Something isn't working label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant