Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:13
    patpit93 commented #2014
  • 10:19
    RollyPeres commented #1130
  • Sep 20 17:30
    patpit93 edited #2014
  • Sep 20 17:28
    patpit93 commented #2014
  • Sep 20 17:11
    patpit93 opened #2014
  • Sep 20 14:31
    DanTup closed #2013
  • Sep 20 14:31
    DanTup labeled #2013
  • Sep 20 14:31
    DanTup commented #2013
  • Sep 20 13:32
    knopp edited #2013
  • Sep 20 13:15
    knopp opened #2013
  • Sep 20 11:14
    tabitham227 starred Dart-Code/Dart-Code
  • Sep 20 07:00
    DanTup milestoned #2012
  • Sep 20 07:00
    DanTup labeled #2012
  • Sep 19 22:38
    gskinner commented #2012
  • Sep 19 22:29
    gskinner opened #2012
  • Sep 19 19:56
    SrBrahma opened #2011
  • Sep 19 16:49

    DanTup on gh-actions-test

    Use LOGS_NAME and CODE_VERSION Simplify test_all Shard bots better and 5 more (compare)

  • Sep 19 16:48

    DanTup on master

    Fix failure notification (compare)

  • Sep 19 14:18

    DanTup on gh-actions-test

    Use LOGS_NAME and CODE_VERSION Simplify test_all Shard bots better and 5 more (compare)

  • Sep 19 14:15

    DanTup on enable-code-coverage-gh-actions

    (compare)

Danny Tuppeny
@DanTup
But if you're not going to use the types, couldn't you just remove them from ClassB?
What's the value in having type args on ClassB if you want them to always be dynamic?
Basketball ICO
@BasketballICO_twitter

I have others classes that extends ClassB(ClassBBase in the second solution) And any of this can be Assigned in the list get method of ClassC, the classC only need to call the method magic of ClassA of magicClass of any class that extends ClassB (ClassBbase).

the types are needed when you use any class that extends ClassB (ClassBBase)

Danny Tuppeny
@DanTup
Ok, I see. I don't think there's anything we can change in the VS Code here, since the code-gen is done in the SDK. You could try opening an issue there, but I think for most people having the types present is likely better than not
Basketball ICO
@BasketballICO_twitter
thanks, your time really helped 😀
Danny Tuppeny
@DanTup
No worries, sorry I didn't have a better answer! :)
Matias Meno
@enyo
My dart analyzer crashes constantly when I use --enable-completion-model
"The Dart Analyzer has terminated."
I can restart it but it crashes again immediately
The logs say "Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed" repeatedly
Is this a known issue, or am I doing something wrong?
Danny Tuppeny
@DanTup
Can you check further up the log, there's usually an error printed (before the stream error, which happens as a result of the process quitting)
or send the full log/paste into a gist
are you on a new enough version of the SDK for --enable-completion-model to work?
Matias Meno
@enyo
I'm on 2.5
2.5.0
Danny Tuppeny
@DanTup
On this page (https://github.com/dart-lang/sdk/wiki/Previewing-Dart-code-completions-powered-by-machine-learning) it says the dev channel is recommended, so I'm not sure if it's available in stable yet
Matias Meno
@enyo
Ah ok..
Because it was announced with the 2.5.0 release that's why I assumed it was available
Here it specifically says that the stable 2.5.0 release should include it https://medium.com/dartlang/announcing-dart-2-5-super-charged-development-328822024970
Danny Tuppeny
@DanTup
If you remove that switch, does the analyzer work? The log doesn't contain all the info I expected :(
You could try enabling the analysis server log in your settings (https://dartcode.org/docs/logging/#analyzer) and that might include the error
Matias Meno
@enyo
Yes
Without it, it works fine
Oh well.. I guess I'll just wait a bit :)
Danny Tuppeny
@DanTup
ok, try setting the analyzer log file and then send me that. If there's nothing there, I'll do some more digging
the post does suggest it works in the stable version (though might not be as good)

Definitely seems like the flag was in 2.5.0 dart-lang/sdk@8d1dc8c

How are you passing the arg, btw?

I guess dart.analyzerAdditionalArgs copied from the wiki?
Matias Meno
@enyo
image.png
Doesn't look like the log file includes anything interesting
Danny Tuppeny
@DanTup
[3:46:13 PM] [Analyzer] [Info] Process terminated! null, SIGKILL
Seems like something caused the process to terminate
It was responded to requests fine initially:
[3:46:13 PM] [Analyzer] [Info] <== {"id":"11","result":{}}
[3:46:13 PM] [Analyzer] [Info] <== {"event":"completion.availableSuggestions","params":{"changedLibraries":[],"removedLibraries":[]}}
[3:46:13 PM] [Analyzer] [Info] <== {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
[3:46:13 PM] [Analyzer] [Info] Process terminated! null, SIGKILL
Matias Meno
@enyo
Yeah...
Ok. I'll set it again
Close VSCode delete the file and open it again
Danny Tuppeny
@DanTup
Seems likely a bug in the server - I would suggest trying a dev or nightly build to see if it repros
Matias Meno
@enyo
Yup.. the same
[3:50:54 PM] [Analyzer] [Info] Process terminated! null, SIGKILL
It simply gets killed
Danny Tuppeny
@DanTup
Try Dev or nightly and if it still repros, I'll do some testing here
Matias Meno
@enyo
2.6.0-dev.1.0 seems to work!
Danny Tuppeny
@DanTup
Cool, I guess there's probably a bug that was fixed - I'm not sure what it was though
Ghost
@ghost~5d85042bd73408ce4fcb987c
Hello :) When i try to debug a Aqueduct project - by right-clicking the bin/main.dart file - then set a breakpoint in a controller and try to evaluate a value, i get a "113 Expression compilation error". Hover also does not work.
It works in intelliJ (Android Studio)
Danny Tuppeny
@DanTup
@patpit93 that error is coming from the VM when trying to evaluate the value. It's strange it only happens in VS Code - could you open an issue on GitHub and include a log? Run your debug session, hit the breakpoint, then run the "Dart: Capture Logs" command, and untick everything except Debugger, then while it's capturing, try evaluating a few values, then click Cancel to stop logging, and include that log. Thanks!
Ghost
@ghost~5d85042bd73408ce4fcb987c
Sure :)