russellw / racket-format

Format Racket source code
MIT License
15 stars 1 forks source link

Confused as to how to actually use this. #2

Open Kietyo opened 5 years ago

Kietyo commented 5 years ago

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
`

russellw commented 5 years ago

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 notifications@github.com 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 .

lassik commented 5 years ago

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 :)

Kevin-Mok commented 5 years ago

@lassik That command hangs for me.

Edit: Actually, it works. :smile: