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

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Fri Jan 3 20:22:54 EST 2014

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


Posted on the dev mailing list.