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

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

Closed
passsy opened this issue Apr 5, 2024 · 2 comments
Closed

Comments

@passsy
Copy link

passsy commented Apr 5, 2024

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
Copy link
Author

passsy commented Apr 5, 2024

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
Copy link
Author

passsy commented Apr 5, 2024

Moved to onepub-dev/dcli#242

@passsy passsy closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant