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

Dart project? #11

Open
JensvandeWiel opened this issue Oct 9, 2023 · 0 comments
Open

Dart project? #11

JensvandeWiel opened this issue Oct 9, 2023 · 0 comments

Comments

@JensvandeWiel
Copy link

I get this:

C:/Users/jens/scoop/apps/dart/3.1.0/bin/dart.exe --enable-asserts C:\Users\jens\MyProjects\flutter-learn\dart-pty-test\bin\dart_pty_test.dart
Unhandled exception:
Invalid argument(s): Failed to load dynamic library 'flutter_pty.dll': error code 126
#0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43)
#1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
#2      _dylib.<anonymous closure> (package:flutter_pty/flutter_pty.dart:20:27)
#3      _dylib (package:flutter_pty/flutter_pty.dart:23:2)
#4      _dylib (package:flutter_pty/flutter_pty.dart)
#5      _bindings (package:flutter_pty/flutter_pty.dart:25:38)
#6      _bindings (package:flutter_pty/flutter_pty.dart)
#7      _init.<anonymous closure> (package:flutter_pty/flutter_pty.dart:28:10)
#8      _init (package:flutter_pty/flutter_pty.dart:29:2)
#9      _init (package:flutter_pty/flutter_pty.dart)
#10     _ensureInitialized (package:flutter_pty/flutter_pty.dart:32:7)
#11     new Pty.start (package:flutter_pty/flutter_pty.dart:57:5)
#12     main (file:///C:/Users/jens/MyProjects/flutter-learn/dart-pty-test/bin/dart_pty_test.dart:8:19)
#13     _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:296:19)
#14     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)

Process finished with exit code 255

with:

import 'dart:convert';

import 'package:flutter_pty/flutter_pty.dart';


void main() {
  final pty = Pty.start('powershell');

  pty.output.listen((event) { 
    print(utf8.decode(event));
  });


  pty.resize(30, 80);

  pty.kill();
}
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