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

[INSTALL BUG]Failed to precompile fvm #242

Closed
snailflying opened this issue Mar 12, 2021 · 3 comments · Fixed by #244
Closed

[INSTALL BUG]Failed to precompile fvm #242

snailflying opened this issue Mar 12, 2021 · 3 comments · Fixed by #244
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@snailflying
Copy link

Describe the bug
When I want to install the "FVM" by "dart pub global activate fvm". I found the bug:

`.pub-cache/hosted/pub.flutter-io.cn/dart_console-0.6.2/lib/src/ffi/win/termlib-win.dart:28:25: Error: The getter 'addressOf' isn't defined for the class 'CONSOLE_SCREEN_BUFFER_INFO'.

  • 'CONSOLE_SCREEN_BUFFER_INFO' is from 'package:win32/src/structs.dart' ('.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
    ffi.free(bufferInfo.addressOf);`

Desktop (please complete the following information):

  • OS: [Mac OS]
  • FVM Version [1.3.7]
  • Dart Version [ 2.13.0-125.0.dev (dev)]
@snailflying snailflying added the bug Something isn't working label Mar 12, 2021
@radvansky-tomas radvansky-tomas mentioned this issue Mar 12, 2021
@Albert221
Copy link

I have similar issue

✓ dart --version
Dart SDK version: 2.13.0-114.0.dev (dev) (Unknown timestamp) on "linux_x64"
Failed to precompile fvm:main:
../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/win/termlib-win.dart:28:25: Error: The getter 'addressOf' isn't defined for the class 'CONSOLE_SCREEN_BUFFER_INFO'.
 - 'CONSOLE_SCREEN_BUFFER_INFO' is from 'package:win32/src/structs.dart' ('../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
    ffi.free(bufferInfo.addressOf);
                        ^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/win/termlib-win.dart:38:25: Error: The getter 'addressOf' isn't defined for the class 'CONSOLE_SCREEN_BUFFER_INFO'.
 - 'CONSOLE_SCREEN_BUFFER_INFO' is from 'package:win32/src/structs.dart' ('../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
    ffi.free(bufferInfo.addressOf);
                        ^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/win/termlib-win.dart:70:32: Error: The getter 'addressOf' isn't defined for the class 'CONSOLE_CURSOR_INFO'.
 - 'CONSOLE_CURSOR_INFO' is from 'package:win32/src/structs.dart' ('../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
    ffi.free(consoleCursorInfo.addressOf);
                               ^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/win/termlib-win.dart:78:32: Error: The getter 'addressOf' isn't defined for the class 'CONSOLE_CURSOR_INFO'.
 - 'CONSOLE_CURSOR_INFO' is from 'package:win32/src/structs.dart' ('../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
    ffi.free(consoleCursorInfo.addressOf);
                               ^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/unix/termlib-unix.dart:40:24: Error: The getter 'addressOf' isn't defined for the class 'WinSize'.
 - 'WinSize' is from 'package:dart_console/src/ffi/unix/ioctl.dart' ('../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/unix/ioctl.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      ffi.free(winSize.addressOf);
                       ^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/unix/termlib-unix.dart:56:24: Error: The getter 'addressOf' isn't defined for the class 'WinSize'.
 - 'WinSize' is from 'package:dart_console/src/ffi/unix/ioctl.dart' ('../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/unix/ioctl.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      ffi.free(winSize.addressOf);
                       ^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/unix/termlib-unix.dart:97:51: Error: The getter 'addressOf' isn't defined for the class 'TermIOS'.
 - 'TermIOS' is from 'package:dart_console/src/ffi/unix/termios.dart' ('../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/unix/termios.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
    tcsetattr(STDIN_FILENO, TCSAFLUSH, newTermIOS.addressOf);
                                                  ^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/unix/termlib-unix.dart:99:25: Error: The getter 'addressOf' isn't defined for the class 'TermIOS'.
 - 'TermIOS' is from 'package:dart_console/src/ffi/unix/termios.dart' ('../../.pub-cache/hosted/pub.dartlang.org/dart_console-0.6.2/lib/src/ffi/unix/termios.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
    ffi.free(newTermIOS.addressOf);
                        ^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:63:33: Error: The getter 'addressOf' isn't defined for the class 'Utf8'.
 - 'Utf8' is from 'package:ffi/src/utf8.dart' ('../../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
  String toString() => fromUtf8(addressOf);
                                ^^^^^^^^^
../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1067:7: Error: The getter 'addressOf' isn't defined for the class 'LOGFONT'.
 - 'LOGFONT' is from 'package:win32/src/structs.dart' ('../../.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      addressOf.cast<Uint8>().elementAt(28).cast<Utf16>();
      ^^^^^^^^^

@eEQK
Copy link

eEQK commented Mar 19, 2021

I can't use FVM with latest flutter beta as well.

The problem is that FVM depends on cli_dialog package that depends on dart_console that depends on old versions of both win32 and ffi which cause the problems.

@nukotsuka
Copy link

I had same issue with latest flutter on beta channel. But I can use FVM on stable channel.

$ flutter --version
Flutter 2.0.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4d7946a68d (32 hours ago) • 2021-03-18 17:24:33 -0700
Engine • revision 3459eb2436
Tools • Dart 2.12.2

$ fvm version
1.3.7

@leoafarias leoafarias added the help wanted Extra attention is needed label Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants