Site-www: Broken link (404 not found) in tutorial for linked Dartpad code

Created on 17 Feb 2020  路  9Comments  路  Source: dart-lang/site-www

Found here, in the "Intro to Dart for Java Developers"

Last link from this paragraph at the top of the page:

Dart supports all of these features. In Dart, even functions are objects and have a type, Function. This means that functions can be assigned to variables or passed as arguments to other functions. You can also call an instance of a Dart class as if it were a function, as in this example.

The link returns a 404: Not found.

DartPad codelabs

All 9 comments

Strangely, the gist behind this DartPad exists: https://gist.github.com/Sfshaza/405379bacf30335f3aed. I'll look into this.

Thanks for the heads up, @SkepticalBit!

@johnpryan do you know why the links http://dartpad.dartlang.org/405379bacf30335f3aed & http://dartpad.dev/405379bacf30335f3aed don't work? The first one used to, and the link http://gist.github.com/405379bacf30335f3aed does work. Is it because DartPad has gotten pickier about requiring the file to be named main.dart?

EDIT: Might the reason be the low number of digits in the URL (20 vs. 32)? I forked the gist, and now it works: http://dartpad.dev/3723fcf3915ca935d13393b8a9f86fd5

/cc @RedBrogdon @domesticmouse

I think this is an issue with the router DartPad uses. If you don't want to fork the gists, you can change the URL to https://dartpad.dev/?id=405379bacf30335f3aed.

I'd rather DartPad could handle the route, since I suspect this affects more than just one link. Is that a possibility?

I think this is something we can fix in DartPad. Created https://github.com/dart-lang/dart-pad/issues/1489 to track

This is an easy fix. It was broken when we migrated to python3.

https://github.com/dart-lang/dart-pad/pull/1490

Yay, thank you! Could you tell us when you expect the fix to go out?

@kwalrath this is deployed now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tehsphinx picture tehsphinx  路  3Comments

sarahec picture sarahec  路  3Comments

sigurdm picture sigurdm  路  4Comments

rahul-bavaliya picture rahul-bavaliya  路  3Comments

jamesderlin picture jamesderlin  路  3Comments