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 a #lang reader file #11

Closed bennn closed 6 years ago

bennn commented 6 years ago

When I raco sloc this file, I get an error:

#lang reader "literal.rkt"
Technology!
System!
Perfect!

Error message:

open-input-file: cannot open module file
  module path: /Users/ben/Desktop/literal.rkt

Related to #10

AlexKnauth commented 6 years ago

Should it set up a parameter ( such as current-directory ) to tell it “where to look” for relative paths?

bennn commented 6 years ago

Yes I'd like that.

If racket path/to/file.rkt doesn't error then I'd like raco sloc path/to/file.rkt to work too.

This seems like an issue with lang-file rather than this package, so I'll open a pull request there.