Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:03
    aoisensi closed #3076
  • 00:03
    aoisensi commented #3076
  • Jan 19 23:51
    annagrin labeled #3082
  • Jan 19 23:51
    annagrin opened #3082
  • Jan 19 22:29
    DanTup closed #2982
  • Jan 19 22:29
    DanTup commented #2982
  • Jan 19 21:33
    DanTup labeled #2980
  • Jan 19 21:33
    DanTup labeled #2980
  • Jan 19 21:33
    DanTup unlabeled #2980
  • Jan 19 21:33
    DanTup milestoned #2980
  • Jan 19 21:33
    DanTup commented #2980
  • Jan 19 21:33
    DanTup reopened #2980
  • Jan 19 21:18
    DanTup closed #3045
  • Jan 19 21:18

    DanTup on master

    Add "Enable (platform)" options… (compare)

  • Jan 19 21:11
    xsrvmy commented #2980
  • Jan 19 21:11
    xsrvmy commented #2980
  • Jan 19 17:26
    DanTup commented #3076
  • Jan 19 17:24
    DanTup commented #3076
  • Jan 19 17:16
    willhitman starred Dart-Code/Dart-Code
  • Jan 19 16:03
    DanTup closed #1900
Danny Tuppeny
@DanTup

Sorry for the delay - Gitter notifications don't work very reliably for me, so I mostly use Discord (https://discord.gg/xSTPEqm) and sometimes forget to check here .

@ammarqusailah if you're still seeing this, please file a bug in GitHub with as much detail on the behaviour you're seeing as possible

@amatkivskiy this isn't currently possible, but hopefully once LSP supports semantic highlighting the colouring will be improved and you should be able to customise more of it

Jonathan Rezende
@jodinathan
vs code is just not working correctly anymore
it is not analyzing the dart code, so no auto complete, command click to go to definnition etc
Jonathan Rezende
@jodinathan
now even thought the code is being analyzed, it is just taking ages to identify the changes and also the memory comsuption is rising up to the sky
Captura de Tela 2020-06-26 às 15.01.40.png
when I terminate the code renderer it says "extension host terminated unexpectedly"
Carmenjara
@Carmenjara
Hi all. I hope someone can help me with the following problem.
First of all, I'm working on Visual Studio Code with Flutter on Linux, but when I run the app on my real device the following alert appears "Cannot launch without an active device". It is worth mentioning that I am using Vysor to access my device.
Thanks for your help!
Randal L. Schwartz
@RandalSchwartz
Does it show up in "Flutter devices"
Carmenjara
@Carmenjara
Neither. I activated to my mobile the USB Debugging and execute "flutter doctor" and it still doesn't appear.
Danny Tuppeny
@DanTup

@jodinathan sorry for the delay - Gitter's notifications are not very reliable for me (Discord's are better though). Are you still having this issue?

@Carmenjara are you using the Linux machine directly, or is it something remote (like using SSH/Docker/etc.)? Does it show up if you run adb devices? (you can get the path to ADB by running flutter config --machine to find the Android SDK path, then adding /platform-tools/adb to the end)

Carmenjara
@Carmenjara
Hello @DanTup . I'm using the Linux machine directly. Now it recognizes my real phone, the problem is that the application does not launch on the phone. I don't know if you can help me, I really appreciate your time.
daramanand
@daramanand
Set the 'program' value in your launch config (eg 'bin/main.dart') then launch again
Jonathan Rezende
@jodinathan
@DanTup yes. Unfortunately I had to switch from VSCode as it was impossible to use it.
Carmenjara
@Carmenjara
Hi @daramanand .The settings are fine, however, I cannot launch the application on my smartphone.
Carmenjara
@Carmenjara
With "flutter run" it launches the following:
#0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
#1      RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:336:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:703:11)
<asynchronous suspension>
#3      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:620:33)
<asynchronous suspension>
#4      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart)
#5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#6      _rootRun (dart:async/zone.dart:1184:13)
#7      _CustomZone.run (dart:async/zone.dart:1077:19)
#8      _runZoned (dart:async/zone.dart:1619:10)
#9      runZoned (dart:async/zone.dart:1539:10)
#10     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#11     FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:610:20)
#12     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#13     FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart:339:21)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command_runner.dart)
#15     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#16     _rootRun (dart:async/zone.dart:1184:13)
#17     _CustomZone.run (dart:async/zone.dart:1077:19)
#18     _runZoned (dart:async/zone.dart:1619:10)
#19     runZoned (dart:async/zone.dart:1539:10)
#20     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#21     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:288:19)
#22     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#23     new Future.sync (dart:async/future.dart:224:31)
#24     CommandRunner.run (package:args/command_runner.dart:112:14)
#25     FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:231:18)
#26     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:63:22)
#27     _rootRun (dart:async/zone.dart:1184:13)
#28     _CustomZone.run (dart:async/zone.dart:1077:19)
#29     _runZoned (dart:async/zone.dart:1619:10)
#30     runZonedGuarded (dart:async/zone.dart:1608:12)
#31     runZoned (dart:async/zone.dart:1536:12)
#32     run.<anonymous closure> (package:flutter_tools/runner.dart:61:18)
<asynchronous suspension>
#33     run.<anonymous closure> (package:flutter_tools/runner.dart)
#34     runInContext.runnerWrapper (package:flutter_tools/src/context_runner.dart:64:18)
<asynchronous suspension>
#35     runInContext.runnerWrapper (package:flutter_tools/src/context_runner.dart)
#36     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:29)
#37     _rootRun (dart:async/zone.dart:1184:13)
#38     _CustomZone.run (dart:async/zone.dart:1077:19)
#39     _runZoned (dart:async/zone.dart:1619:10)
#40     runZoned (dart:async/zone.dart:1539:10)
#41     AppContext.run (package:flutter_tools/src/base/context.dart:149:18)
#42     runInContext (package:flutter_tools/src/context_runner.dart:67:24)
#43     run (package:flutter_tools/runner.dart:48:10)
#44     main (package:flutter_tools/executable.dart:69:9)
#45     main (file:///b/s/w/ir/k/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3)
#46     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#47     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
Danny Tuppeny
@DanTup
@Carmenjara @jodinathan could you file issues at https://github.com/Dart-Code/Dart-Code with an exact description of what you're trying, and exactly what you're seeing?
@Carmenjara for the big error when running flutter run, please try "flutter run -v" which should log more info
Carmenjara
@Carmenjara
Thanks for the help @DanTup!
Hello everyone, can someone help me. I need to create a search bar, in flutter with Dart and MySQL, that extracts a single result based on the input text, without having to extract the entire list of objects previously.
Günter Zöchbauer
@zoechi
Is there a way in VSCode to restart DartAnalyzer?
Simon Binder
@simolus3
@zoechi You can open the Command Palette and select Dart: Restart Analysis Server
Günter Zöchbauer
@zoechi
@simolus3 thanks :)
Philippe Fanaro
@psygo
Hello all, does Dart Code on VS Code support visualizing code coverage?
Matias Meno
@enyo
When I try to run tests in a project with non-nullable, it doesn't work because there is no non-nullable flag apparently. I have enabled the experiment in analysis_options.yaml. Is there a way to get this to work in vscode?
Randal L. Schwartz
@RandalSchwartz
I’m confused about how to properly scope what portion of my explorer is being handed to dartanalyzer.
For example, if I open VSC on the top of my dart repo everything works ok, but if I open VSC initially on my “Flutter” directory (one level up) to review and compare a few projects, they’re all considered part of the same dart repo, and it confuses the analyzer.
What’s the proper way to feed the proper paths to the analyzer as you’re changing scopes of interest?
Randal L. Schwartz
@RandalSchwartz
@DanTup ?
Oh, I think he’s europe time.
Danny Tuppeny
@DanTup

Sorry, notifications don't work here so I mostly use Discord now - I often forget about here.

@zoechi @simolus3 FWIW, the Dart: Restart Analysis Server command will be removed soon, but there's a Dart: Reanalyze Project that should fix the issues that people usually want to restart for. If you have an issue that restarting fixes but that does not, please file a bug! (actually, if you need to use either command then file a bug - neither should be required and I'd love to find the cases they are).

@enyo could you file a bug with a repro? I suspect a flag is required to be passed somewhere, though I'm not sure where.

@RandalSchwartz we basically give your workspace folders straight ton the analyzer as they are. If you open C:\Foo then that's what we give the analyzer. If you're in a multi-root workspace, we'll give it each root.

Opening a folder further up shouldn't confuse the analyzer, as it should walk down the tree and identify the projects from their pubspecs. However, we'll only walk down so many levels (in Dart-Code) when trying to identify if your project is Dart or Flutter, so if you have a deeply-nested Flutter project, we might end up loading in "Dart mode". You can tell if this has happened from the status bar saying "Dart (version number)" instead of "Flutter (version number)". Is that what you're seeing? If not, I would file an issue.

(also, there's a dart.excludeFolders or similar if you have folders that should be excluded, for example invalid code, folders with cycling symlinks, etc.)

Günter Zöchbauer
@zoechi
@DanTup thanks for the update
Randal L. Schwartz
@RandalSchwartz
Hmm. Now it seems to be working as I expect, not mixing diffeent code repos together.
Toni Birka
@birkoni5
Hello all, i have a problem with Intelli Sense in VS Code. It's too slow, and I don't know how to fix it. On the link below you can see how slow it is:
https://www.dropbox.com/s/97s453hw5y0w5h4/slow_intelli_sense.mp4?dl=0
Does anybody have an idea how to fix it?
Danny Tuppeny
@DanTup

@birkoni5 can you try enabling the "Preview LSP" option in the VS Code/Dart settings and see if that makes any difference?

(FWIW, notifications in Gitter don't work very well, so it's better to ask in Discord (linked at the top) or raise GitHub issues for faster responses - I remember to check here much less often 😬)

Toni Birka
@birkoni5
@DanTup It makes a huge difference. Thank you :D
Okay, I will ask in Discord next time or raise an issue.
Randal L. Schwartz
@RandalSchwartz
Oooh, I just enabled that now too.
jagdishsinh jadeja
@jagdishjadeja
@DanTup
image.png
extension not giving suggestion for like 10th time in a day
Augusto Cezar
@flybix
Hello, Devs

Which command in DART, which you use to input user data, through an input.?

Well, I want to get this data through a form and save it in my Database.

Randal L. Schwartz
@RandalSchwartz
@flybix This is a channel about the visual studio for code extension for dart and flutter. Not a general dart channel.
Matias Meno
@enyo
By default, when hovering a class like this: Scaffold(...) I get the documentation of the constructor of Scaffold. What is the easies way to see the docblock of the class itself?
I know I can Cmd-click on Scaffold and it gets me to there, but then it switches my context, and also I don't have any formatting from markdown
Randal L. Schwartz
@RandalSchwartz
I go to the web. :)
Alex
@shkvoretz
Dart analyser in VS Code appears to be extremely slow with the new LSP feature turned on. Anyone experiencing similar issue or is it just me?
Augusto Cezar
@flybix
Hello, Devs. I would like to know how I can use Routes, and separate my html Template from Backend programming. Without using AngularDart or Aqueduct. because I am making a Dart Web Site, using pure Dart for this. The example I say, as if it were an include or requeired used in PHP or Vujes ... Is there a package in Dart also for Routes and Templates.?
Randal L. Schwartz
@RandalSchwartz
@flybix this channel is for the dart and flutter plugins for vscode and the java editors.
bsr203
@bsr203
How to add flavor argument to test runs with code lens. I added "dart.flutterTestAdditionalArgs": ["--flavor", "dev"], but didn't work
Danny Tuppeny
@DanTup
Sorry for the lack of responses - I'm no longer monitoring this chat and use Discord for Dart-Code support instead. Please use the Discord link in at the top of this room if you're having any issues with the VS Code extensions!