Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 07 2019 18:54
    @timsneath banned @hpoit_gitlab
  • Aug 07 2019 18:54
    @timsneath banned @hpoit
  • Jan 31 2019 22:29

    dart-bot on master

    Add pkg/analysis_server/pubspec… (compare)

  • Jan 31 2019 22:12

    dart-bot on master

    First stab at tests for "Spread… (compare)

  • Jan 31 2019 22:10
    jackokring opened #35830
  • Jan 31 2019 21:14

    dart-bot on master

    [vm, gc] Use work stealing for … (compare)

  • Jan 31 2019 21:05

    dart-bot on master

    [vm] Simplify VirtualMemory::Tr… (compare)

  • Jan 31 2019 20:15
    renatoathaydes opened #35829
  • Jan 31 2019 20:13

    dart-bot on master

    [vm] Maintain view-ness of byte… (compare)

  • Jan 31 2019 19:59

    dart-bot on master

    Add the capability in analysis … (compare)

  • Jan 31 2019 19:35
    jmesserly closed #33685
  • Jan 31 2019 19:19
    srawlins opened #35828
  • Jan 31 2019 18:35

    dart-bot on master

    Add a "summary-deps-output" opt… (compare)

  • Jan 31 2019 18:33

    dart-bot on master

    Extract EnumListParameter value… (compare)

  • Jan 31 2019 18:09

    dart-bot on master

    Fix override_on_non_overriding_… (compare)

  • Jan 31 2019 17:46
    stereotype441 labeled #35827
  • Jan 31 2019 17:46
    stereotype441 labeled #35827
  • Jan 31 2019 17:46
    stereotype441 labeled #35827
  • Jan 31 2019 17:46
    stereotype441 opened #35827
  • Jan 31 2019 17:23
    srawlins edited #35826
Rasmus Schultz
@mindplay-dk
Yeah, then it's probably what I suspected, it probably just doesn't work on Windows... 😐
I wanted to test if that was the case, but pub get doesn't seem to work under Ubuntu on WSL... man, I'm starting to hate Windows.
Rob Halff
@rhalff
I'm not really using windows, but cannot think of a reason why pub get wouldn't work for ubuntu.
Rasmus Schultz
@mindplay-dk
Ubuntu on WSL 1 has had plenty of IO and network issues, I don't know. I don't dare switch to the preview version of Windows required to run WSL 2, but supposedly that's much better.
Plenty of things motivating me daily as a developer to switch to native Linux anyhow, maybe it's time ;-)
Rob Halff
@rhalff
Or just dual boot, I have an second laptop running Windows 10, but never really touch it.
I don't get what people seek in windows, nor osx really. Only reason to own a mac is so you can use xcode.
Or work together with designers which use mac only stuff like Sketch :)
Rasmus Schultz
@mindplay-dk
Yeah, I want to dual boot for sure, I'm just a bit scared of bricking my Windows installation in the process... 😬
Rasmus Schultz
@mindplay-dk
@rhalff oh, you may be right about that package after all, it's flagged as "discontinued" https://pub.dev/packages/vm_service_lib
Rob Halff
@rhalff
@mindplay-dk you can just change it to vm_service in pubspec.yaml, the api hasn't changed it seems.
perhaps that does work on windows, not sure.
I've upgraded the dependencies to:
dependencies:
  vm_service: ^2.1.1
  watcher: ^0.9.7+12
  glob: ^1.2.0
Rasmus Schultz
@mindplay-dk
Tried that, same same.
Renato Athaydes
@renatoathaydes
@mindplay-dk FYI I tried the hello-world server with shelf + the hot_reload lib, on Ubuntu, and I got a different error:
Paths ./bin/server.dart changed!
Reloading the application...
Unhandled exception:
SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 49406
#0      vmServiceConnectUri (package:vm_service_lib/vm_service_lib_io.dart:20:22)
<asynchronous suspension>
#1      HotReloader.reload (package:jaguar_hotreload/src/jaguar_hotreload_base.dart:350:23)
<asynchronous suspension>
#2      new HotReloader.<anonymous closure> (package:jaguar_hotreload/src/jaguar_hotreload_base.dart:124:13)
<asynchronous suspension>
#3      _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#4      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#5      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#6      _SyncBroadcastStreamController._sendData (dart:async/broadcast_stream_controller.dart:375:20)
#7      _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:250:5)
#8      Stream.timeout.onData (dart:async/stream.dart:1568:18)
#9      _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#10     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#11     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#12     _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:132:11)
#13     _WhereStream._handleData (dart:async/stream_pipe.dart:207:12)
#14     _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:164:13)
#15     _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#16     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#17     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#18     _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:132:11)
#19     _MapStream._handleData (dart:async/stream_pipe.dart:232:10)
#20     _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:164:13)
#21     _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#22     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#23     _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#24     _StreamImplEvents.handleNext (dart:async/stream_impl.dart:707:11)
#25     _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:667:7)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#28     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:391:30)
#29     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
#30     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
It probably used the wrong port, as Observatory is on another port (not sure that's the port it should use?):
Observatory listening on http://127.0.0.1:35831/R7b_Oe1tAdM=/
Renato Athaydes
@renatoathaydes
Ah! With the snippet you posted it does work for me as well... at least, when I change the response the server should return and save it, the code seems to reload as expected.
Renato Athaydes
@renatoathaydes
@mindplay-dk if nothing else works, you can do hot reloading via the Observatory directly... check this post I wrote some time ago that shows how you can do that if you don't already know.
willladislaw
@willladislaw
Are you supposed to close the file after reading contents?
error:
/credentials.json' (OS Error: Too many open files, errno = 24) on following file.
  static Future<File> get oauthCredentialsFile async {
    final path = await _localPath;
    return File('$path/credentials.json');
  }
Rob Halff
@rhalff
@willladislaw depends on the method you call after opening the file I think. if you do something like File('/etc/passwd').readAsString().then(..) it will be closed automatically, if you call something like .open() you will have to close it yourself.
Rob Halff
@rhalff
@willladislaw File is just the File object, I doesn't actually open the file yet.
Debugging too many open files can be nasty by the way, as the file which fails doesn't necessarily has to be the cause.
Seems to me that will not cause too many open files.
willladislaw
@willladislaw
ok
Rob Halff
@rhalff
@willladislaw try setting breakpoints maybe, perhaps something being called recursively.
Randal L. Schwartz
@RandalSchwartz
Maybe that code is getting called from a build() method?
Oh, this not Flutter. :)
willladislaw
@willladislaw
tis flutter
Randal L. Schwartz
@RandalSchwartz
ahh, then my build() comment might apply
you should treat build() as if it is being called 60 times per second. It should be fast and idempotent. In practice, there are optimizations.
Rob Halff
@rhalff
@willladislaw is there any specific bloc implementation you are using? Normally the bloc will receive the repository to handle the data and then produces new states which you can handle within your UI code. That way the rendering never has to wait but is only tasked with representing the new state.
willladislaw
@willladislaw
@rhalff I'm using a simple bloc class for streams and sinks
Green Appers, Inc.
@GreenAppers
Hm. So now I want to get dart:io WebSocket running over dartssh SSH tunnel.
Seems like it would be possible to use WebSocket.fromUpgradedSocket().
But that would mean I implement dart Socket interface myself, and that I prepare the socket in correct state. Neither of which is a trivial task. It's not clear if I could use dart http to prepare the socket state (e.g. do HTTP get).
Green Appers, Inc.
@GreenAppers
So if anyone has any advice on either side, please let me know.
Ping
@ping996
does the dynamic type parameters in a function will slow the execution when it compiled to AOT mode?
bpilot
@bpilot
@ping996 Seems like a good thing to A/B test.
Ping
@ping996
thanks
bpilot
@bpilot
Sorry I don't have an answer. I'd be interested to hear what the result is though.
Renato Athaydes
@renatoathaydes
Can't Dart compile to code runnable with node.js?
bpilot
@bpilot
@renatoathaydes Hmm, I have it working
Renato Athaydes
@renatoathaydes
What do you do to run the js spilled out by the compilers?
bpilot
@bpilot
I think I had to write some stub code.
Are you using dart2js?
Renato Athaydes
@renatoathaydes
Tried both dart2js and dartdevc
dartdevc generates something like:
define(['dart_sdk'], function(dart_sdk) {
bpilot
@bpilot

This is what I did to get dart2js code to run in Node.js:
I made a JS file which exports these globals:
global.self = global;
self.module = module;
global.window = global;
global.Blob = function () { };
global.Event = function () { };
global.ImageData = function () { };
global.Node = function () { };
global.Window = function () { };

Then I do below that:
require("./mydartjsfile.js");

Renato Athaydes
@renatoathaydes
This is all??