Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot render html when using a local language via #lang reader. #138

Open
LeifAndersen opened this issue Aug 21, 2017 · 4 comments
Open

Comments

@LeifAndersen
Copy link

Namely, I run:

raco cover

The coverage runs fine. However, when cover goes to generate the html, I get the error:

dumping coverage info into "coverage"
default-load-handler: cannot open module file
  module path: #<path:/Users/leif/video/viddoclang.rkt>
  path: /Users/leif/video/viddoclang.rkt
  system error: No such file or directory; errno=2
  context...:
   standard-module-name-resolver
   /Users/leif/racket/racket/collects/syntax/module-reader.rkt:249:18: loop
   /Users/leif/racket/racket/collects/syntax/module-reader.rkt:296:4: -read-syntax
   /Users/leif/rsrc/cover/cover/private/html/html.rkt:404:0: expression-coverage/file
   /Users/leif/rsrc/cover/cover/private/html/html.rkt:125:0: make-html-file
   /Users/leif/rsrc/cover/cover/private/html/html.rkt:53:4: for-loop
   /Users/leif/rsrc/cover/cover/private/html/html.rkt:47:0: get-files
   /Users/leif/rsrc/cover/cover/private/html/html.rkt:31:0: generate-html-coverage
   /Users/leif/rsrc/cover/cover/raco.rkt:85:4
   /Users/leif/racket/racket/collects/racket/logging.rkt:43:0
   (submod /Users/leif/rsrc/cover/cover/raco.rkt main): [running body]
   /Users/leif/racket/racket/collects/raco/raco.rkt: [running body]
   /Users/leif/racket/racket/collects/raco/main.rkt: [running body]

Because this is only a problem with html generation and not coverage itself, the error does not happen when using the coveralls or codecov extensions. I should point out that this is one of the commit that is giving raco cover problems. And the file that is giving it problems (video.scrbl), starts out with:

#lang reader "viddoclang.rkt"

(where viddoclang.rkt is in the same directory as vidlang.)

@florence
Copy link
Owner

Strange. While trying to make a test case for this I get the same error but from a much earlier point (during module instrumentation).

As a work around for now, does this go away if you use the collection path instead of a relative path?

@LeifAndersen
Copy link
Author

As in move the file to lang/reader.rkt? If so, ya, that does make the problem go away. Although I would much rather be able to use a relative path if possible. :)

@florence
Copy link
Owner

Can't you do #lang reader video/test/videolang instead of #lang reader "videolang.rkt"?

@LeifAndersen
Copy link
Author

LeifAndersen commented Aug 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants