You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flutter entry scripts in lib/web are incorrectly considered Dart-web #2690
Because that version of Flutter includes a full version of Dart, I have no separate Dart SDK installed.
For some reason, the webdev package wants to run the pub command from the cached Dart SDK which fails. Upon further inspection, this could be a problem with that package but it occurs because this plugin wanted to install webdev and I'm now stuck.
@sma It looks like you're trying to fun a Flutter project using the Dart-web mechanism (using a "web/" path as the "program" in launch.json).
Can you clarify what type of project you're trying to run? For a Flutter app, your code generally lives inside the lib folder, not the web folder. Using "web" in "program" will force the Dart-web debugger that won't work with Fluter projects.
I don't think so. Is there a "magical" detecting going on that prevents me from using .../lib/web/minimarkdown.dart as a file name? I simply picked the folder name web for that subfolder because it contains dart code specific for the web version of my app. I would have expected that any name would work. Is there a similar problem if I'd have picked test?
I renamed the path to .../lib/bew/minimarkdown.dart (just to pick a different folder name) and now it works!
Is there a "magical" detecting going on that prevents me from using .../lib/web/minimarkdown.dart as a file name?
Oh, sorry - I didn't notice this was inside lib. I guess our detection of Dart web apps is a bit aggressive and should only consider web from the project root. I'll take a look, thanks!
changed the title [-]After plugin wanted to update/install webdev package, launching apps fails.[/-][+]Flutter entry scripts in lib/web are incorrectly considered Dart-web[/+]on Aug 4, 2020
Activity
DanTup commentedon Aug 1, 2020
Can you capture a log when reproducing this and attach it here?
Thanks!
sma commentedon Aug 1, 2020
Here you go.
BTW, I'm clicking on "Run" label inside the source file. My project is configured for iOS, Android, web, and macOS.
DanTup commentedon Aug 3, 2020
@sma It looks like you're trying to fun a Flutter project using the Dart-web mechanism (using a
"web/"path as the"program"inlaunch.json).Can you clarify what type of project you're trying to run? For a Flutter app, your code generally lives inside the
libfolder, not thewebfolder. Using"web"in"program"will force the Dart-web debugger that won't work with Fluter projects.sma commentedon Aug 4, 2020
I don't think so. Is there a "magical" detecting going on that prevents me from using
.../lib/web/minimarkdown.dartas a file name? I simply picked the folder namewebfor that subfolder because it contains dart code specific for the web version of my app. I would have expected that any name would work. Is there a similar problem if I'd have pickedtest?I renamed the path to
.../lib/bew/minimarkdown.dart(just to pick a different folder name) and now it works!DanTup commentedon Aug 4, 2020
Oh, sorry - I didn't notice this was inside
lib. I guess our detection of Dart web apps is a bit aggressive and should only considerwebfrom the project root. I'll take a look, thanks![-]After plugin wanted to update/install webdev package, launching apps fails.[/-][+]Flutter entry scripts in lib/web are incorrectly considered Dart-web[/+]Fixes Flutter app from being incorrectly set as a Web debug target