dart_frog icon indicating copy to clipboard operation
dart_frog copied to clipboard

feat: VSCode/IntelliJ support for DartFrog

Open iamsahilsonawane opened this issue 3 years ago • 6 comments

Description

As mentioned in the roadmap, it includes the support for VSCode/Intellij Plugin. I am adding this issue as I think I'll be happy to contribute to this.

Requirements

From the roadmap points: The extensions will include

  • [x] Create a new project
  • [x] New Routes
  • [x] New Middleware
  • [x] Attach Debugger

Additional Context

I'll be very excited and happy to contribute to this project in any way possible, and this proposal fits me quite well.
Thanks for the great package!

iamsahilsonawane avatar Aug 17 '22 03:08 iamsahilsonawane

Hi @iamsahilsonawane 👋 Thanks for opening an issue!

I would recommend holding off on working on this issue until #260 is done so that the extensions can leverage the CLI and we don’t need the maintain duplicate implementations. Thanks so much for the enthusiasm and support!

felangel avatar Aug 17 '22 13:08 felangel

Sure will wait.

Let me know if I could start working on this once the CLI with those commands ready!

Thanks 👍

iamsahilsonawane avatar Aug 17 '22 13:08 iamsahilsonawane

Sure will wait.

Let me know if I could start working on this once the CLI with those commands ready!

Thanks 👍

Yes, definitely! 💯

felangel avatar Aug 17 '22 13:08 felangel

Is there currently no way to attach the vscode debugger to the dart_frog process?

rlimberger avatar Sep 01 '22 19:09 rlimberger

I don't think there is.

@felangel when can we start on this?

iamsahilsonawane avatar Sep 02 '22 10:09 iamsahilsonawane

@rlimberger yes you can copy the dev tools URL (you’ll see it when you run dart_frog dev) and use the Dart Attach to Process command, paste the url (but you’ll need to remove the url fragment (#)).

We are working on making this simpler but the above steps should work in the meantime. Hope that helps!

felangel avatar Sep 02 '22 11:09 felangel

@felangel not sure what you're saying about Dart Attach to Process command I don't have such command on IntelliJ.

jaumard avatar Jan 07 '23 13:01 jaumard

Thanks for opening an issue @iamsahilsonawane !

We're thinking about adding extensions to improve the developer experience.

Regarding attaching the debugger (cc: @rlimberger , @jaumard) there is an open PR with documentation on how to do so https://github.com/VeryGoodOpenSource/dart_frog/pull/573 . Feel free to try following the documentation there and if you wish you can review the pull request.

alestiago avatar Apr 05 '23 12:04 alestiago

A Dart Frog VS Code extension is now available at the VS Code Marketplace :partying_face:.

The current published version supports the ability to create a new project, a new route and a new middleware. The next published version will allow attaching a debugger, see https://github.com/VeryGoodOpenSource/dart_frog/pull/955. Therefore, I'm now closing this issue in favour of feat: IntelliJ extension support #775 to target exclusively IntelliJ support.

alestiago avatar Aug 25 '23 12:08 alestiago