neovim

Personal neovim configuration files
git clone git://gtms.dev/neovim
Log | Files | Refs

test.lua (7215B)


      1 local data = {}
      2 
      3 data = {
      4   {
      5     -- {{{ 1
      6     data = [[
      7 [SEVERE] ngdart on example/app_component.dart:
      8 An error occurred compiling third_party/dart/ng_table/example/app_component.dart:
      9 Errors in asset:ng_table/example/app_component.html while compiling component AppComponent:
     10 line 3, column 9 of asset:ng_table/example/app_component.html: Unterminated mustache
     11     12 3 │     <th>{{test}</th>
     13   │         ^^
     14     15 line 3, column 5 of asset:ng_table/example/app_component.html: Cannot find matching close element to this
     16     17 3 │     <th>{{test}</th>
     18   │     ^^^^
     19     20 [SEVERE] ngdart on example/app_component.dart:
     21 ]],
     22     -- }}}
     23     efm = [[%EErrors in asset:%.%#,%Zline %l\, column %c of asset:%f: %m]],
     24   },
     25   {
     26     -- {{{ 2
     27     data = [[
     28 [INFO] Running build...
     29 [SEVERE] build_web_compilers:ddc on example/app_component.ddc.module:
     30 Error compiling dartdevc module:ng_table|example/app_component.sound.ddc.js
     31 
     32 example/app_component.template.dart:50:62: Error: The getter 'test' isn't defined for the class 'AppComponent'.
     33  - 'AppComponent' is from 'example/app_component.dart'.
     34 Try correcting the name to the name of an existing getter, or defining a getter or field named 'test'.
     35     this._textBinding_3.updateText(import9.interpolate0(_ctx.test)) /* REF:asset:ng_table/example/app_component.html:26:34 */;
     36                                                              ^^^^
     37 
     38 [WARNING] build_web_compilers:entrypoint on example/main.dart:
     39 Unable to read ng_table|example/app_component.sound.ddc.js, check your console or the `.dart_tool/build/generated/ng_table/example/app_component.sound.ddc.js.errors` log file.
     40 [SEVERE] build_web_compilers:entrypoint on example/main.dart:
     41 ]],
     42     -- }}}
     43     efm = '%f:%l:%c: %t%*[^:]: %m.',
     44   },
     45   {
     46     data = [[
     47 [INFO] Updating asset graph...
     48 [INFO] Updating asset graph completed, took 1ms
     49 
     50 [INFO] Running build...
     51 [SEVERE] ngdart on example/app_component.dart:
     52 An error occurred compiling third_party/dart/ng_table/example/app_component.dart:
     53 One or more fatal errors occured during compilation:
     54 line 3, column 9 of asset:ng_table/example/app_component.html: Can't bind to 'mdTableFilter' since it isn't a known native property or known directive. Please fix typo or add to directives list.
     55     56 3 │     <th [mdTableFilter]="name">
     57   │         ^^^^^^^^^^^^^^^^^^^^^^
     58     59 [SEVERE] ngdart on example/app_component.dart:
     60 
     61 type 'Null' is not a subtype of type 'FutureOr<String>'
     62 [INFO] Running build completed, took 78ms
     63 
     64 [INFO] Caching finalized dependency graph...
     65 [INFO] Caching finalized dependency graph completed, took 210ms
     66 
     67 [SEVERE] build_web_compilers:entrypoint on example/main.dart (cached):
     68 Unable to find modules for some sources, this is usually the result of either a
     69 bad import, a missing dependency in a package (or possibly a dev_dependency
     70 needs to move to a real dependency), or a build failure (if importing a
     71 generated file).
     72 
     73 Please check the following imports:
     74 
     75 `import 'app_component.template.dart';` from ng_table|example/main.dart at 2:1
     76     ]],
     77     efm = [[%EOne or more fatal errors occured during compilation:,%Zline %l\, column %c of asset:%f: %m,%-G%.%#]],
     78   },
     79 
     80   {
     81     data = [[
     82 StdOut:
     83 Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
     84 org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.template.dart@51351+1:
     85 Error: The getter 'A' isn't defined for the class 'PacsForwardExternalFacilityListElement'.
     86  - 'PacsForwardExternalFacilityListElement' is from 'package:dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.dart' ('org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/
     87 pacs_forward_external_facility_list_element.dart').
     88 org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.template.dart@51810+10:
     89 Error: The getter 'connection' isn't defined for the class 'PacsForwardExternalFacilityListElement'.
     90  - 'PacsForwardExternalFacilityListElement' is from 'package:dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.dart' ('org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/
     91 pacs_forward_external_facility_list_element.dart').
     92 org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.template.dart@51997+1:
     93 Error: The getter 'B' isn't defined for the class 'PacsForwardExternalFacilityListElement'.
     94  - 'PacsForwardExternalFacilityListElement' is from 'package:dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.dart' ('org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/
     95 pacs_forward_external_facility_list_element.dart').
     96 org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.template.dart@52456+10:
     97 Error: The getter 'connection' isn't defined for the class 'PacsForwardExternalFacilityListElement'.
     98  - 'PacsForwardExternalFacilityListElement' is from 'package:dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.dart' ('org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/
     99 pacs_forward_external_facility_list_element.dart').
    100 org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.template.dart@52643+1:
    101 Error: The getter 'C' isn't defined for the class 'PacsForwardExternalFacilityListElement'.
    102  - 'PacsForwardExternalFacilityListElement' is from 'package:dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.dart' ('org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/
    103 pacs_forward_external_facility_list_element.dart').
    104 org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.template.dart@53102+10:
    105 Error: The getter 'connection' isn't defined for the class 'PacsForwardExternalFacilityListElement'.
    106  - 'PacsForwardExternalFacilityListElement' is from 'package:dpgw_ui/src/commons/tools/forward/pacs_forward/pacs_forward_external_facility_list_element.dart' ('org-dartlang-app:///packages/dpgw_ui/src/commons/tools/forward/pacs_forward/
    107 pacs_forward_external_facility_list_element.dart').
    108 Error: Compilation failed.
    109 ]],
    110     efm = [[%EError: %m,%Z - %.%# is from '%f' %.%#]],
    111   },
    112 }
    113 
    114 local ACTIVE = 4
    115 local err = data[ACTIVE].data
    116 -- local efm = data[ACTIVE].efm
    117 local efm = table.concat({
    118   [[%EErrors in %.%#,%Zline %l\, column %c of %f %m]],
    119   [[%f:%l:%c: %t%*[^:]: %m.]],
    120   [[%EOne or more fatal errors occured during compilation:,%Zline %l\, column %c of %f %m]],
    121   [[%EError: %m,%Z - %.%# is from %f %.%#]],
    122   [[%-G%.%#]],
    123 }, ',')
    124 
    125 vim.fn.setqflist({}, 'r')
    126 local lines = {}
    127 for line in string.gmatch(err, '([^\n]+)') do
    128   table.insert(lines, line)
    129 end
    130 vim.fn.setqflist({}, 'r', { lines = lines, efm = efm })
    131 
    132 -- Only valid items
    133 -- for _, item in ipairs(list.items) do
    134 --   if item.valid == 1 then
    135 --     vim.fn.setqflist({item}, 'a')
    136 --   end
    137 -- end