question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error creating project with sample content

See original GitHub issue

Steps to Reproduce

  • Run a ‘New Flutter Project’ wizard in AS.
  • Select ‘generate sample content’ with ‘RaisedButton’

Expected: a new project is created. Actual: an error in the log

Error creating project
Download failed.
URL: https://master-docs-flutter-io.firebaseapp.com/snippets/material.RaisedButton.dart
Error: 404 Not Found

Version info

[√] Flutter (Channel beta, v1.1.8, on Microsoft Windows [Version 10.0.17134.619], locale en-US) • Flutter version 1.1.8 at … • Framework revision 985ccb6d14 (7 weeks ago), 2019-01-08 13:45:55 -0800 • Engine revision 7112b72cc2 • Dart version 2.1.1 (build 2.1.1-dev.0.1 ec86471ccc)

[√] Android Studio (version 3.3) • Android Studio at D:\code\tools\JetBrains Toolbox\apps\AndroidStudio\ch-0\182.5264788 • Flutter plugin version 33.3.1 • Dart plugin version 182.5215 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Mar 2, 2019

The master version of that file has numbers suffixed into the IDs:

https://master-docs.flutter.io/snippets/index.json

So the issue here is that the IDEs don’t know which host flutter create is going to use (I think we both just assumed the stable host is fine, and there wouldn’t be breaking changes). The logic Flutter uses is checking which channel it’s on, though it feels a bit clunky for the editor to start checking that.

Maybe we could make a flutter create --list so that IDEs can get the same JSON that matches what flutter create supports? It can just fetch the JSON and spit it out, but use the same internal logic for checking the hostname to avoid it leaking out?

0reactions
pqcommented, Mar 5, 2019

This issue was moved to flutter/flutter#28896

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create new project using template created with the ...
I can successfully create the project template and import it into VS using the Export Wizard. When I then try to use the...
Read more >
ArcGIS Pro - Create Project Template - Esri Community
I am trying to create a project template with all my usual connections, folders, toolboxes etc. It analyses without a problem, but when...
Read more >
Getting "STG_E_FILENOTFOUND" when creating project ...
I struck this trying to use a project template that I had created in VS2019, to create a project in VS2022. I got...
Read more >
Failed to resolve project template: Failed to decompress
In my tests when the total length of the path to the root of the new project was <= 76 then the project...
Read more >
Create project templates - Visual Studio - Microsoft Learn
Otherwise, compilation errors can occur in projects that are created from the template. For more information about valid identifier ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found