racket-format icon indicating copy to clipboard operation
racket-format copied to clipboard

Confused as to how to actually use this.

Open Kietyo opened this issue 5 years ago • 3 comments

I was able to install it using the raco thing, but now I'm not sure how to run it?

For example I tried:

` PS C:\Users\Kiet Sam> racket-format

racket-format : The term 'racket-format' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + racket-format + ~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (racket-format:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
`

Kietyo avatar May 16 '19 07:05 Kietyo

Sorry, I don't remember the syntax for running a Racket program. Try asking on a Racket forum?

On Thu, May 16, 2019 at 8:44 AM Kiet [email protected] wrote:

I was able to install it using the raco thing, but now I'm not sure how to run it?

For example I tried:

PS C:\Users\Kiet Sam> racket-format racket-format : The term 'racket-format' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + racket-format + ~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (racket-format:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/russellw/racket-format/issues/2?email_source=notifications&email_token=AACJFLCWGNVWRHRJZIWRHJLPVUGGTA5CNFSM4HNJ2G62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUDE2EQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AACJFLAX4NUDJLWG2BPJQLTPVUGGTANCNFSM4HNJ2G6Q .

russellw avatar May 17 '19 08:05 russellw

Does racket racket-format.rkt file-to-be-formatted.rkt work? Remember to have a backup of your source code (e.g. committed in git).

Also Racket support is planned for lispunion/code-formatter which is a continuation of Russell's formatter projects but it will take a while :)

lassik avatar May 17 '19 09:05 lassik

@lassik That command hangs for me.

Edit: Actually, it works. :smile:

Kevin-Mok avatar Oct 11 '19 12:10 Kevin-Mok