profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/talisk/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

talisk/CPUSchedulingSimulation-C 5

模拟CPU进程调度,C实现

talisk/12306 0

12306智能刷票,订票

talisk/33-js-concepts 0

:scroll: 每个 JavaScript 工程师都应懂的33个概念 @leonardomso

talisk/8cc 0

A Small C Compiler

talisk/AlfredWorkflow.com 0

A public Collection of Alfred Workflows.

talisk/algorithms 0

Minimal examples of data structures and algorithms in Python

talisk/AnnotationKit 0

The annotation implementation using Objective-C

talisk/api.liruqi.info 0

https://api.liruqi.info

talisk/atswift-2017-resources 0

Resource files for atswift conference 2017, including pdf, source projects or playgrounds. 2017 中国 Swift 开发者大会源文件,包括 pdf 和源工程文件 http://atswift.io

fork talisk/flutter_ume

UME is an in-app debug kits platform for Flutter. Produced by Flutter Infra team of ByteDance

fork in 12 hours

startedbytedance/flutter_ume

started time in 4 days

startedanuraghazra/github-readme-stats

started time in 6 days

push eventtalisk/curl

zhaorui.dev

commit sha 9250c0443abde17579050d20edcf9b37955a1f03

feat: fix warning

view details

push time in 6 days

push eventtalisk/curl

zhaorui.dev

commit sha 09aa6387b2a9301ac597aebbf79033f30c3b27c3

feat: support null-safety

view details

push time in 6 days

fork talisk/curl

fork in 6 days

issue commentbytedance/flutter_ume

你好,请问一下ume有计划支持Null safety吗

@vadxq 你好,nullsafety 版本正在开发中,近期完成开发、测试后就会发布,感谢关注

vadxq

comment created time in 11 days

startedbytedance/flutter_ume

started time in 13 days

fork talisk/mermaid

Generation of diagram and flowchart from text in a similar manner as markdown

http://mermaid-js.github.io/mermaid/

fork in a month

startedbitsdojo/bitsdojo_window

started time in a month

startedGroovinChip/macos_ui

started time in a month

startedvnmakarov/mir

started time in a month

startedYinHangCode/homebridge-mi-aqara

started time in a month

startedbruno-garcia/badges.bar

started time in a month

startedapple/HomeKitADK

started time in a month

startedha0y/xiaomi_miot_raw

started time in a month

issue commentflutter/flutter

Tests launched with `flutter drive` cannot connect to their own VM Service.

Sorry it's --enable-vmservice

@dnfield

All right. I see... Now it looks hidden by default. Can you consider displaying this parameter?

dnfield

comment created time in 2 months

issue commentflutter/flutter

Tests launched with `flutter drive` cannot connect to their own VM Service.

Coverage enables the VM service.

You can also just use the --enable-vm-service flag

Could not find an option named "enable-vm-service".

--enable-vm-service is a dart flag, right? So how can I use it in flutter test?

dnfield

comment created time in 2 months

issue commentflutter/flutter

Tests launched with `flutter drive` cannot connect to their own VM Service.

Here's an interesting discovery. When I run flutter test --coverage test, the test case will work fine.

dnfield

comment created time in 2 months

issue commentflutter/flutter

Tests launched with `flutter drive` cannot connect to their own VM Service.

@dnfield When I run flutter test, Service.getInfo will return a error url.

ServiceProtocolInfo info = await Service.getInfo();
String url = info.serverUri.toString();
Uri uri = Uri.parse(url);
Uri socketUri = convertToWebSocketUrl(serviceProtocolUrl: uri);
_service = await vmServiceConnectUri(socketUri.toString());

Here's the detail error log

  Expected: <Instance of 'Exception'>
    Actual: ArgumentError:<Invalid argument(s): No host specified in URI http://:0/null/ws>
     Which: is not an instance of 'Exception'
  
  package:test_api                                         expect
  package:flutter_test/src/widget_tester.dart 441:3        expect
  test/service/vm_service/service_wrapper_test.dart 63:29  main.<fn>.<fn>.<fn>
  dart:async                                               _completeOnAsyncError
  package:ume/service/vm_service/service_wrapper.dart      ServiceWrapper.getInstances
  ===== asynchronous gap ===========================
  dart:async                                               Future.whenComplete
  test/service/vm_service/service_wrapper_test.dart 63:10  main.<fn>.<fn>
  test/service/vm_service/service_wrapper_test.dart 59:32  main.<fn>.<fn>
  
  This test failed after it had already completed. Make sure to use [expectAsync]
  or the [completes] matcher when testing async code.
  package:test_api                                         expect
  package:flutter_test/src/widget_tester.dart 441:3        expect
  test/service/vm_service/service_wrapper_test.dart 63:29  main.<fn>.<fn>.<fn>
  dart:async                                               _completeOnAsyncError
  package:ume/service/vm_service/service_wrapper.dart      ServiceWrapper.getInstances
  ===== asynchronous gap ===========================
  dart:async                                               Future.whenComplete
  test/service/vm_service/service_wrapper_test.dart 63:10  main.<fn>.<fn>
  test/service/vm_service/service_wrapper_test.dart 59:32  main.<fn>.<fn>

The url will be http://:0/null/ws.

And I tried --disable-dds on Flutter 2.2.1/2.0.1. It keeps having errors.

dnfield

comment created time in 2 months

startedmicrosoft/flutter-dualscreen

started time in 2 months

startedcoodict/javascript-in-one-pic

started time in 2 months

issue commentflutter/flutter

Cannot connect to vm service on real device when the Flutter update to 2.x

I believe this is related to dart-lang/sdk#46256 FYI @bkonyi

Almost certainly. The workaround here is to pass --no-dds when launching the application. @talisk is there any particular reason why you're trying to connect to the VM service from the application itself?

Is passing --no-dds a normally and stable way to resolve the problem? Before the PR #80900 , the param named --disable-dds? And I tried --disable-dds on Flutter 2.2.1 stable, it was able to connect the vm service.

Yes, --no-dds should be stable and --disable-dds is valid for older versions without the --no-dds flag.

I'm interested in your use case for accessing the VM service on device. Would it be possible to share the project you're working on so I can get a better idea of how you're using the service? We've recently had discussions about connecting to a VM service running in the same application while DDS (the Dart Development Service) is already connected as the VM service refuses direct connections when DDS is connected and it's currently not possible to connect to DDS from an application since we'd need some extra port forwarding. Getting some insights into how users are utilizing the VM service would be extremely useful for these discussions.

Why does Flutter 2.x(I tried Flutter 2.0.1, 2.2.1) will reproduce the issue, but Flutter 1.22 won't? What breaking change was introduced in Flutter 2.x

talisk

comment created time in 2 months

issue commentflutter/flutter

Cannot connect to vm service on real device when the Flutter update to 2.x

I believe this is related to dart-lang/sdk#46256 FYI @bkonyi

Almost certainly. The workaround here is to pass --no-dds when launching the application. @talisk is there any particular reason why you're trying to connect to the VM service from the application itself?

Is passing --no-dds a normally and stable way to resolve the problem? Before the PR #80900 , the param named --disable-dds? And I tried --disable-dds on Flutter 2.2.1 stable, it was able to connect the vm service.

Yes, --no-dds should be stable and --disable-dds is valid for older versions without the --no-dds flag.

I'm interested in your use case for accessing the VM service on device. Would it be possible to share the project you're working on so I can get a better idea of how you're using the service? We've recently had discussions about connecting to a VM service running in the same application while DDS (the Dart Development Service) is already connected as the VM service refuses direct connections when DDS is connected and it's currently not possible to connect to DDS from an application since we'd need some extra port forwarding. Getting some insights into how users are utilizing the VM service would be extremely useful for these discussions.

My tool is a Flutter package which build an in-app debug platform. It wraps vm_service, and exposes some interfaces with certain restrictions. Any Flutter app could use the in-app tools for debugging. User could develop their custom in-app debug kits and Integrate into the in-app debug platform.

With the tool, user could inspect their widgets, debug memory issues, check performance panel in their host app, rather than connecting to a DevTools.

talisk

comment created time in 2 months

issue commentflutter/flutter

Cannot connect to vm service on real device when the Flutter update to 2.x

I believe this is related to dart-lang/sdk#46256 FYI @bkonyi

Almost certainly. The workaround here is to pass --no-dds when launching the application.

@talisk is there any particular reason why you're trying to connect to the VM service from the application itself?

Is passing --no-dds a normally and stable way to resolve the problem?

Before the PR https://github.com/flutter/flutter/pull/80900 , the param named --disable-dds? And I tried --disable-dds on Flutter 2.2.1 stable, it was able to connect the vm service.

talisk

comment created time in 2 months

issue commentflutter/flutter

Cannot connect to vm service on real device when the Flutter update to 2.x

is there any particular reason why you're trying to connect to the VM service from the application itself?

I developed a tool for in-app debugging, similar to DevTools but only run in-app, and I will contribute it to the community soon.

This tool works well until it becomes unavailable in Flutter 2.x because of this issue.

talisk

comment created time in 2 months

issue openedWaytoon/flutter_memory_leak_check

Why does it need the port forwarding?

I am not sure if it is because vm service cannot be connected on Flutter 2.x?

created time in 2 months

startedWaytoon/flutter_memory_leak_check

started time in 2 months

issue commentflutter/flutter

Cannot connect to vm service on real device when the Flutter update to 2.x

Hi @talisk If you create a new project, does it still reproduce the issue? See #83978

Yes, it will reproduce. The Demo which was I newly created by Flutter 2.2.1.

talisk

comment created time in 2 months

issue commentflutter/flutter

Cannot connect to vm service on real device when the Flutter update to 2.x

This is the core code:

ServiceProtocolInfo info = await Service.getInfo();
String url = info.serverUri.toString();
Uri uri = Uri.parse(url);
Uri socketUri = convertToWebSocketUrl(serviceProtocolUrl: uri);
final isolateId = Service.getIsolateID(Isolate.current);
final service = await vmServiceConnectUri(socketUri.toString());
talisk

comment created time in 2 months