onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
245 stars 26 forks source link

The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'. #242

Closed passsy closed 7 months ago

passsy commented 7 months ago

I run into this error.

Downloading Linux x64 Dart SDK 3.1.2...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  8  198M    8 16.0M    0     0  29.2M      0  0:00:06 --:--:--  0:00:06 29.2M
 36  198M   36 72.0M    0     0  46.6M      0  0:00:04  0:00:01  0:00:03 46.6M
 90  198M   90  179M    0     0  71.2M      0  0:00:02  0:00:02 --:--:-- 71.2M
[10](https://github.com/customer/cnct-ui/actions/runs/8566330160/job/23481014239?pr=385#step:6:11)0  198M  100  198M    0     0  75.6M      0  0:00:02  0:00:02 --:--:-- 75.6M
Installing cnct command line application...
/home/runner/work/cnct-ui/cnct-ui/cnct_sidekick/tool/install.sh: 37: [[: not found
/home/runner/work/cnct-ui/cnct-ui/cnct_sidekick/tool/install.sh: 37: Linux: not found
- Getting dependencies
✔ Getting dependencies
- Bundling assets
✔ Bundling assets
- Compiling sidekick cli
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:35:22: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
    final dwMode = (~CONSOLE_MODE.ENABLE_ECHO_INPUT) &
                     ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:36:[11](https://github.com/customer/cnct-ui/actions/runs/8566330160/job/23481014239?pr=385#step:6:12): Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        (~CONSOLE_MODE.ENABLE_PROCESSED_INPUT) &
          ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:37:11: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        (~CONSOLE_MODE.ENABLE_LINE_INPUT) &
          ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:38:11: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        (~CONSOLE_MODE.ENABLE_WINDOW_INPUT);
          ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:44:20: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
    final dwMode = CONSOLE_MODE.ENABLE_ECHO_INPUT &
                   ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:45:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_EXTENDED_FLAGS &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:46:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_INSERT_MODE &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:47:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_LINE_INPUT &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:48:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_MOUSE_INPUT &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:49:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_PROCESSED_INPUT &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:50:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_QUICK_EDIT_MODE &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:51:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_VIRTUAL_TERMINAL_INPUT;
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:111:33: Error: The getter 'STD_HANDLE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'STD_HANDLE'.
    outputHandle = GetStdHandle(STD_HANDLE.STD_OUTPUT_HANDLE);
                                ^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:1[12](https://github.com/customer/cnct-ui/actions/runs/8566330160/job/23481014239?pr=385#step:6:13):32: Error: The getter 'STD_HANDLE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'STD_HANDLE'.
    inputHandle = GetStdHandle(STD_HANDLE.STD_INPUT_HANDLE);
                               ^^^^^^^^^^
Error: AOT compilation failed
Generating AOT kernel dill failed!
Compilation failed. Trying dart pub upgrade (Retry 1)
- Compiling sidekick cli with updated dependencies
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:35:22: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
    final dwMode = (~CONSOLE_MODE.ENABLE_ECHO_INPUT) &
                     ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:36:11: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        (~CONSOLE_MODE.ENABLE_PROCESSED_INPUT) &
          ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:37:11: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        (~CONSOLE_MODE.ENABLE_LINE_INPUT) &
          ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:38:11: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        (~CONSOLE_MODE.ENABLE_WINDOW_INPUT);
          ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:44:[20](https://github.com/customer/cnct-ui/actions/runs/8566330160/job/23481014239?pr=385#step:6:21): Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
    final dwMode = CONSOLE_MODE.ENABLE_ECHO_INPUT &
                   ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:45:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_EXTENDED_FLAGS &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:46:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_INSERT_MODE &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:47:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_LINE_INPUT &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:48:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_MOUSE_INPUT &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:49:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_PROCESSED_INPUT &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:50:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_QUICK_EDIT_MODE &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:51:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_VIRTUAL_TERMINAL_INPUT;
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:111:33: Error: The getter 'STD_HANDLE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'STD_HANDLE'.
    outputHandle = GetStdHandle(STD_HANDLE.STD_OUTPUT_HANDLE);
                                ^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:112:32: Error: The getter 'STD_HANDLE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'STD_HANDLE'.
    inputHandle = GetStdHandle(STD_HANDLE.STD_INPUT_HANDLE);
                               ^^^^^^^^^^
Error: AOT compilation failed
Generating AOT kernel dill failed!
Compilation failed again. Trying dart pub upgrade --major-versions (Retry 2)
- Compiling sidekick cli with major updated dependencies
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:35:[22](https://github.com/customer/cnct-ui/actions/runs/8566330160/job/23481014239?pr=385#step:6:23): Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
    final dwMode = (~CONSOLE_MODE.ENABLE_ECHO_INPUT) &
                     ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:36:11: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        (~CONSOLE_MODE.ENABLE_PROCESSED_INPUT) &
          ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:37:11: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        (~CONSOLE_MODE.ENABLE_LINE_INPUT) &
          ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:38:11: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        (~CONSOLE_MODE.ENABLE_WINDOW_INPUT);
          ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:44:20: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
    final dwMode = CONSOLE_MODE.ENABLE_ECHO_INPUT &
                   ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:45:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_EXTENDED_FLAGS &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:46:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_INSERT_MODE &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:47:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_LINE_INPUT &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:48:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_MOUSE_INPUT &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:49:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_PROCESSED_INPUT &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:50:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_QUICK_EDIT_MODE &
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:51:9: Error: The getter 'CONSOLE_MODE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'CONSOLE_MODE'.
        CONSOLE_MODE.ENABLE_VIRTUAL_TERMINAL_INPUT;
        ^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:111:33: Error: The getter 'STD_HANDLE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'STD_HANDLE'.
    outputHandle = GetStdHandle(STD_HANDLE.STD_OUTPUT_HANDLE);
                                ^^^^^^^^^^
../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart:112:[32](https://github.com/customer/cnct-ui/actions/runs/8566330160/job/23481014239?pr=385#step:6:33): Error: The getter 'STD_HANDLE' isn't defined for the class 'TermLibWindows'.
 - 'TermLibWindows' is from 'package:dart_console2/src/ffi/win/termlib_win.dart' ('../../../../.pub-cache/hosted/pub.dev/dart_console2-3.1.0/lib/src/ffi/win/termlib_win.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'STD_HANDLE'.
    inputHandle = GetStdHandle(STD_HANDLE.STD_INPUT_HANDLE);
                               ^^^^^^^^^^
Error: AOT compilation failed
Generating AOT kernel dill failed!
Compilation with updated and major updated dependencies failed. Restoring pubspec.lock

I'm unsure why dart_console2-3.1.0 is pulled at all. My pubspec.lock file contains

  dart_console2:
    dependency: transitive
    description:
      name: dart_console2
      sha256: "300833ffdd8c465d454cb5007c7f29d28ac8246af5abd922f8c490e1e87c894f"
      url: "https://pub.dev"
    source: hosted
    version: "3.0.0"

I pulled the dependencies on macos (where everything works. Linux seems to be incompatible with "3.0.0" and pulls the latest version.

passsy commented 7 months ago

It also fails on a different project (open source) https://github.com/wiredashio/wiredash-sdk/actions/runs/8569166486/job/23484465892

dart pub deps reveals dart_console2 is coming from dcli 2.2.3

wiresdk_sidekick 0.0.1
├── dcli 2.2.3
│   ├── dart_console2 3.0.0

pubspec.yaml of dcli 2.2.3

name: dcli
version: 2.2.3
environment: 
  sdk: '>=2.19.0 <4.0.0'
dependencies: 
  dart_console2: ^3.0.0-beta.1
passsy commented 7 months ago

I can reproduce it on Dart 3.3.3 on macos.

bsutton commented 7 months ago

So looks like I opened the win32 version range up too far. I will retract the datt_condole release and rerelease.

On Fri, 5 Apr 2024, 11:36 pm Pascal Welsch, @.***> wrote:

I can reproduce it on Dart 3.3.3 on macos.

— Reply to this email directly, view it on GitHub https://github.com/onepub-dev/dcli/issues/242#issuecomment-2039697757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OHTTY6YWT45JJXICCTY32LDVAVCNFSM6AAAAABFZA7JIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZZGY4TONZVG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bsutton commented 7 months ago

I've retracted dart_console 3.1.0 and released 3.1.1 which appears to resolve this.

Feel free to reopen if you are still having issues.

passsy commented 7 months ago

Thanks mate!

jifferon commented 7 months ago

You're the man! Everything works now, thanks, mate!