Stream: contributing

Topic: Roc Formatter for VSCode?


view this post on Zulip Chris Duncan (Oct 09 2022 at 21:55):

Since the Roc Editor is still WIP, should we invest some time making plugins for VSCode? For example, I'm currently using Roc-lang Support (unofficial/community) by @Benjamin Thomas. It would be nice to have other tools while we wait for the Editor to mature, starting with a formatter.

view this post on Zulip Brendan Hansknecht (Oct 09 2022 at 22:10):

https://github.com/roc-lang/roc/blob/main/FAQ.md#is-there-syntax-highlighting-for-vimemacsvs-code-or-a-lsp

view this post on Zulip Brendan Hansknecht (Oct 09 2022 at 22:12):

This is specifically not a goal of the Roc team. Someone will eventually make it, I'm sure, but to give the editor the best chance of success, we don't want to promote the building of competition.

view this post on Zulip Chris Duncan (Oct 09 2022 at 22:14):

Yes, I read that document. I wouldn't want the team working on Roc to deal with this. The we that I was referring to was the community that's come together here, including myself.

view this post on Zulip Brendan Hansknecht (Oct 09 2022 at 22:16):

Sure, just trying to say that the Roc team doesn't really want to promote its creation.

view this post on Zulip Richard Feldman (Oct 09 2022 at 22:21):

if you're looking to integrate a formatter, you can probably get a long way with having it run roc format I'd imagine!

view this post on Zulip Chris Duncan (Oct 09 2022 at 22:39):

I was thinking the same.

view this post on Zulip Benjamin Thomas (Oct 10 2022 at 02:24):

@Chris Duncan you can probably get by using something like this find . -name "*.roc" | entr roc format /_ at the moment. I'm not planning on doing much more with the plugin at the moment :)

@Richard Feldman the editor sounds like a great way to fund the project. Have you thought about this? I would gladly pay for a tool if it improves my productivity.

view this post on Zulip Shritesh Bhattarai (Oct 10 2022 at 03:23):

I use https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave with the following json settings to format on save:

    "emeraldwalk.runonsave": {
        "commands": [
            {
                "match": "\\.roc$",
                "cmd": "roc format ${file}"
            }
        ]
    }

view this post on Zulip Richard Feldman (Oct 10 2022 at 03:41):

Richard Feldman the editor sounds like a great way to fund the project. Have you thought about this? I would gladly pay for a tool if it improves my productivity.

the plan is for the editor to be free, in order to maximize the plugin ecosystem for it...but I'm working on getting a foundation set up so we can get GitHub Sponsors going to accept donations for the project in general!

view this post on Zulip Benjamin Thomas (Oct 10 2022 at 04:52):

@Richard Feldman got you. I've been a long time vim user like you, but got into JetBrain IDEs about 2 years ago (I wanted to learn Java!). Initially, I was reluctant to pay for an IDE, but then realized that it was worth it for me. These days I don't mind switching between tools when appropriate but overall I don't have time to fiddle with stuff, I'll favor something that works out of the box.

Roc looks promising to me, so I hope you'll find a model to sustain its development, be it via Github Sponsors or otherwise :)

view this post on Zulip Chris Duncan (Oct 10 2022 at 10:02):

Thanks @Shritesh Bhattarai for the suggestion :raised_hands:


Last updated: Jul 06 2025 at 12:14 UTC