[racket-dev] Can't change plot in DrRacket without getting link errors

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Fri Jan 3 23:28:15 EST 2014

Yes: as an experiment we decided to treat files that are open differently
than other files for the purposes of recompiling them.

Looks like that's probably a bad design decision. But it may just be a bug
too, since I thought it was re-compiling more, not less, when you have the
file open.

Robby


On Fri, Jan 3, 2014 at 7:22 PM, Jens Axel Søgaard <jensaxel at soegaard.net>wrote:

> Try this:
>   - open the menu "Language" in DrRacket
>   - choose the menu item "Choose language..."
>   - click the button "Show details"
>   - remove the tick in "Populate 'compiled' directories (for faster
> loading)
>
> /Jens Axel
>
>
>
> 2014/1/4 Neil Toronto <neil.toronto at gmail.com>:
> > I do this:
> >
> >  * In DrRacket, open
> "pkgs/plot-pkgs/plot-lib/plot/private/common/draw.rkt"
> >
> >  * Make a small change, save
> >
> >  * At the command line, "racket/bin/raco setup --no-docs -l plot"
> >
> >  * Run a test file in another tab in DrRacket that has (require plot)
> >
> >
> > I wait a long time (I think it's recompiling) and get this error:
> >
> > link: bad variable linkage;
> >  reference to a variable that has the wrong procedure or structure-type
> > shape
> >   reference phase level: 0
> >   variable module:
> > "/home/neil/plt/pkgs/plot-pkgs/plot-lib/plot/private/common/draw.rkt"
> >   variable phase: 0
> >   reference in module:
> > "/home/neil/plt/pkgs/plot-pkgs/plot-gui-lib/plot/private/gui/plot2d.rkt"
> in:
> > draw-bitmap
> >
> >
> > So I remove the "compiled" directory and try again. Same problem.
> >
> > Here's the kicker: I always get link errors *until I close "draw.rkt" in
> > DrRacket*. After that, I can remove the "compiled" directory, rebuild,
> and
> > run the program without errors.
> >
> > Does anybody know what's going on?
> >
> > Neil ⊥
> > _________________________
> >  Racket Developers list:
> >  http://lists.racket-lang.org/dev
>
>
>
> --
> --
> Jens Axel Søgaard
>
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20140103/4dd8ec43/attachment.html>

Posted on the dev mailing list.