AlexKnauth / syntax-sloc

counts the number of source lines of code in a racket syntax object
MIT License
3 stars 1 forks source link

Cannot count the racket guide #10

Closed bennn closed 3 years ago

bennn commented 6 years ago

Try this:

$ git clone https://github.com/racket/racket
$ raco sloc racket/pkgs/racket-doc/scribblings/guide

I get an error (relative to my current directory):

SLOC    Source
open-input-file: cannot open module file
  module path: /Users/ben/Desktop/five.rkt
  path: /Users/ben/Desktop/five.rkt

And I'm not exactly sure what's wrong.

AlexKnauth commented 6 years ago

https://github.com/racket/racket/blob/62f5b2c4e4cdefa18fa36275074ff9fe376ddaf3/pkgs/racket-doc/scribblings/guide/reader-extension.scrbl#L28 ?

AlexKnauth commented 6 years ago

https://github.com/racket/racket/blob/62f5b2c4e4cdefa18fa36275074ff9fe376ddaf3/pkgs/racket-doc/scribblings/guide/reader-extension.scrbl#L77

AlexKnauth commented 3 years ago

Now that https://github.com/AlexKnauth/lang-file/commit/0e955a5ba575c592c57ceb48371a66d1f83b84d7 has been added to lang-file, it can count the racket guide properly.