terminalstudio / pty Goto Github PK
View Code? Open in Web Editor NEWPty for Dart and Flutter.
Home Page: https://pub.dev/packages/pty
License: MIT License
Pty for Dart and Flutter.
Home Page: https://pub.dev/packages/pty
License: MIT License
Thanks for your support of my package!
I've added the named pipe and other APIs that you're using that were missing from win32. If you bump up to this version, you should be able to retire your Win32Additional
class.
https://pub.dev/packages/win32/versions/2.0.2
Let me know if there's anything else that I can add to help you out!
Cool library! It seems to me to be more useful to provide the read side as a stream. When using with terminal library the readToTerminal is somewhat problematic, and multiple terminals are not swell multiplexed for some reason. I even ran the Lite terminal on linux and multiple terminals don't work correctly. The second blocks while the first one works. I suspect it is from using the executor, but I am not sure.
version: ^0.2.2-pre
part of error:
../../../.pub-cache/hosted/pub.flutter-io.cn/win32-2.1.3/lib/src/com/UserDataPaths.dart:107:32:
Error: 'IntPtr' isn't a type.
final retValuePtr = calloc<IntPtr>();
^^^^^^
../../../.pub-cache/hosted/pub.flutter-io.cn/win32-2.1.3/lib/src/com/UserDataPaths.dart:110:26:
Error: 'NativeFunction' isn't a type.
final hr = Pointer<NativeFunction<_get_CameraRoll_Native>>.fromAddress(
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.flutter-io.cn/win32-2.1.3/lib/src/com/UserDataPaths.dart:110:18:
Error: Method not found: 'Pointer.fromAddress'.
final hr = Pointer<NativeFunction<_get_CameraRoll_Native>>.fromAddress(
^^^^^^^^^^^
../../../.pub-cache/hosted/pub.flutter-io.cn/win32-2.1.3/lib/src/com/UserDataPaths.dart:123:32:
Error: 'IntPtr' isn't a type.
final retValuePtr = calloc<IntPtr>();
^^^^^^
When the child process run unix.execve(executable.toNativeUtf8(), argv, env) ,the child process will crash,return 11.
And It's OK in Release mode.
Add stacktrace:
===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=1, si_addr=0x10fd8551b
version=2.13.1 (stable) (Fri May 21 12:45:36 2021 +0200) on "macos_x64"
pid=75053, thread=5891, isolate_group=main(0x7ff31b01b800), isolate=main(0x7ff31b020200)
isolate_instructions=10d934580, vm_instructions=10d934580
pc 0x000000010fd8551b fp 0x00007000034b65d0 Unknown symbol
pc 0x0000000114eafb27 fp 0x00007000034b6618 Unknown symbol
pc 0x0000000114ea1911 fp 0x00007000034b6718 Unknown symbol
pc 0x0000000114ea01b9 fp 0x00007000034b67c0 Unknown symbol
pc 0x0000000114e9eef6 fp 0x00007000034b6850 Unknown symbol
pc 0x0000000114e9e2ee fp 0x00007000034b6888 Unknown symbol
pc 0x0000000114e9df49 fp 0x00007000034b68b0 Unknown symbol
pc 0x0000000114e9de7b fp 0x00007000034b6908 Unknown symbol
pc 0x0000000114e9ce8d fp 0x00007000034b6938 Unknown symbol
pc 0x0000000114e9cc1e fp 0x00007000034b6998 Unknown symbol
pc 0x0000000114e9c5f8 fp 0x00007000034b69d0 Unknown symbol
pc 0x000000010fd825af fp 0x00007000034b6a48 Unknown symbol
pc 0x000000010dae4052 fp 0x00007000034b6ae0 dart::DartEntry::InvokeCode(dart::Code const&, dart::Array const&, dart::Array const&, dart::Thread*)+0x112
pc 0x000000010dae3e55 fp 0x00007000034b6b50 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x155
pc 0x000000010dae69ef fp 0x00007000034b6bb0 dart::DartLibraryCalls::HandleMessage(dart::Object const&, dart::Instance const&)+0x1df
pc 0x000000010db0da23 fp 0x00007000034b6db0 dart::IsolateMessageHandler::HandleMessage(std::__1::unique_ptr<dart::Message, std::__1::default_deletedart::Message >)+0x4f3
pc 0x000000010db3f1a4 fp 0x00007000034b6e30 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)+0x144
pc 0x000000010db3f7c9 fp 0x00007000034b6e90 dart::MessageHandler::TaskCallback()+0x1e9
pc 0x000000010dc74ce8 fp 0x00007000034b6f20 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x158
pc 0x000000010dc74faf fp 0x00007000034b6f50 dart::ThreadPool::Worker::Main(unsigned long)+0x6f
pc 0x000000010dbd7605 fp 0x00007000034b6fb0 dart::ThreadStart(void*)+0xb5
pc 0x00007fff6b4fe109 fp 0x00007000034b6fd0 _pthread_start+0x94
pc 0x00007fff6b4f9b8b fp 0x00007000034b6ff0 thread_start+0xf
-- End of DumpStackTrace
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.