Re: [racket-users] Can’t get `raco setup --mode er rortrace` to work
Alexis King <[email protected]>
| Newsgroups | gmane.comp.lang.racket.user,gmane.lisp.scheme.plt |
|---|---|
| Message-ID | <[email protected]> |
> On Feb 1, 2017, at 10:45 AM, Dan Liebgold <[email protected]> wrote: > > Out of curiosity, does the -j option help here? Yes, good suggestion; it seems like maybe --mode doesn’t work with the parallel build. However, using -j 1 produces an error: $ raco setup -j 1 --mode errortrace --pkgs test-pkg <pkgs>/errortrace-lib/errortrace/errortrace-lib.rkt:98:20: module: cannot be cross-phase persistent due to required modules in: (#%plain-module-begin (#%require (for-meta 0 errortrace/errortrace-key)) (#%plain-app init-test-coverage (quote ())) (#%provide (protect alias-of) (protect kw-converted-arguments-variant-of)) (#%declare #:cross-phase-persistent) (define-values (kw-conve... compilation context...: /Users/alexis/gits/racket/racket/racket/collects/racket/private/kw-prop-key.rkt /Users/alexis/gits/racket/racket/racket/collects/syntax/module-reader.rkt /private/tmp/test-pkg/main.rkt It seems like using --mode attempts to compile my module and its dependencies using errortrace? That breaks the cross-phase persistent modules, since it inserts requires into the annotated modules. This raises a few things: 1) There seems to be a bug in `raco setup` with respect to --mode and parallel builds. 2) Errortrace probably shouldn’t try to annotate cross-phase persistent modules. 3) Even if I did get this to work, it looks like it would dump the compiled .zos into compiled/errortrace/ instead of compiled/. How would I then instruct Racket to load the .zos from that location instead of the default? Do I need to set use-compiled-file-paths somehow? Is there some way of achieving that with the -R option or the PLTCOMPILEDROOTS environment variable? Is there any way to get `--mode errotrace` to work without fixing point number 2 above? Or is it pretty much a lost cause? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] For more options, visit https://groups.google.com/d/optout.