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.

Deprecated command and broken link

See original GitHub issue

Hello there,

When trying to follow the example for this CloudFlare workers package, I cannot proceed past the wrangler generate step because CloudFlare saw fit to deprecate completely remove this feature.

Now, instead of working, it fails with an error message:

⚠️  DEPRECATION:
`wrangler generate` has been deprecated, please refer to https://github.com/cloudflare/wrangler2/blob/main/docs/deprecations.md#generate for alternatives

If you think this is a bug then please create an issue at https://github.com/cloudflare/wrangler2/issues/new.

This is not entirely true as the definition of the word deprecate[^1] when used in a software context implies that “… [a feature] be usable but regarded as obsolete and best avoided…” (emphasis mine). Since the feature cannot be used at all, it would better be described as retired or deleted.

Normally, I realize this would just be a deeply frustrating experience for the developer, and not actually considered a bug, per se. But the link doesn’t work, and instead yields a 404 on Github.

Since wrangler2 was, until this month, marked as unstable, maybe it would be best to keep this link alive. In fact, it looks like the entire docs directory was removed from the source (maybe it existed at one time?), so there is no easy way to go find the file even if you look for it manually:

trying to follow your deprecation retirement and forced migration guide Screen Shot 2022-05-21 at 7 36 14 PM

[^1]: deprecate: verb, “(chiefly of a software feature) be usable but regarded as obsolete and best avoided, typically due to having been superseded.” Oxford Dictionary via Google.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
petebacondarwincommented, May 24, 2022

Thanks for reporting this and providing the detailed information and suggestions. We agree that we should do a better job for people who are used to using wrangler generate to kick off their Workers. Partly this is improved documentation:

  • the broken link should now be fixed But also we should have a well lit path of what to do to create new Workers. Our proposed plan:
  • Work with the create-cloudflare project to lean on that for creating new Worker projects from Github repositories, since this is closest to what Wrangler 1’s generate command does. We will update Wrangler 2 to delegate to that project when you run wrangler generate.
  • Further we need to work with the documentation teams, our own teams that create templates, and 3rd party template providers to ensure that they provide valid templates for Wrangler 2 (and Wrangler 1 if backward compatibility is important for them).

Adding this issue to our project plan back log so that we can prioritise this work alongside other issues.

0reactions
caasscommented, Sep 12, 2022

@polybuildr would you mind opening an issue in the cloudflare-docs repo? As we’ve addressed everything in @petebacondarwin’s comment, i’m going to close this issue out

Read more comments on GitHub >

github_iconTop Results From Across the Web

docs: broken link to watch-project; homepage recommends ...
Two documentation issues I've noticed: The link from cmd/watch.html to ... Homepage recommends deprecated command: https://facebook.github.io/watchman/
Read more >
Repair git broken link from commit to commit - Stack Overflow
The "broken link" complaint really just means that git fsck was unable to retrieve the given hash ID as a valid object of...
Read more >
Fix deprecated services [#3165809] | Drupal.org
The Service "user.private_tempstore" is deprecated for Drupal 9.x and must be replaced with the new Service "tempstore.private". Steps to ...
Read more >
Doctor - Dendron
This does note create new notes. Command: Dendron: Doctor; Option: findBrokenLinks. This simply lists all broken links in the scope.
Read more >
Deprecations by version - GitLab Docs
To be notified of upcoming breaking changes, add this URL to your RSS feed reader: ... The gitlab-runner exec command is deprecated. End...
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