HtDP Tool Linklet Instantiation Error

66 views
Skip to first unread message

Shu-Hung You

unread,
Jun 17, 2018, 12:16:43 PM6/17/18
to Racket Users
Does anyone ever get random HtDP plugin linklet instantiation error at
DrRacket startup? I sometimes get these errors, but they would
disappear if I restart DrRacket a few times. The modules that trigger
the errors seem arbitrary too.

instantiate-linklet: mismatch;
reference to a variable that is unintialized;
possibly, bytecode file needs re-compile because dependencies changed
name: idY365.1
exporting instance: "<RACKET-HEAD>/racket/collects/syntax/id-table.rkt"
importing instance: "<RACKET-HEAD>/racket/collects/racket/match/struct.rkt"



Error invoking tool
#<path:<RACKET-HEAD>/racket/share/pkgs/htdp-lib/lang>;"htdp-langs.rkt"

instantiate-linklet: mismatch;
reference to a variable that is unintialized;
possibly, bytecode file needs re-compile because dependencies changed
name: make-fun-syntax
exporting instance: "<RACKET-HEAD>/racket/collects/ffi/unsafe.rkt"
importing instance:
"<RACKET-HEAD>/racket/share/pkgs/draw-lib/racket/draw/unsafe/cairo.rkt"



Error invoking tool
#<path:<RACKET-HEAD>/racket/share/pkgs/htdp-lib/lang>;"htdp-langs.rkt"

instantiate-linklet: mismatch;
reference to a variable that is unintialized;
possibly, bytecode file needs re-compile because dependencies changed
name: idX48.1
exporting instance: "<RACKET-HEAD>/racket/collects/racket/dict.rkt"
importing instance:
"<RACKET-HEAD>/racket/collects/syntax/parse/lib/function-header.rkt"
instantiate-linklet: mismatch;
reference to a variable that is unintialized;
possibly, bytecode file needs re-compile because dependencies changed
name: parse-function-header1.1
exporting instance:
"<RACKET-HEAD>/racket/collects/syntax/parse/lib/function-header.rkt"
importing instance: "<RACKET-HEAD>/racket/collects/racket/match/match.rkt"



Error invoking tool
#<path:<RACKET-HEAD>/racket/share/pkgs/htdp-lib/lang>;"htdp-langs.rkt"

instantiate-linklet: mismatch;
reference to a variable that is unintialized;
possibly, bytecode file needs re-compile because dependencies changed
name: idY365.1
exporting instance: "<RACKET-HEAD>/racket/collects/syntax/id-table.rkt"
importing instance: "<RACKET-HEAD>/racket/collects/racket/match/struct.rkt"


The error contexts are like:

context...:
for-loop
run-module-instance!125
for-loop
loop
[repeats 1 more time]
expand-capturing-lifts
loop
.../racket/unit.rkt:1001:20
<RACKET-HEAD>/extra-pkgs/drracket/drracket/drracket/private/tools-drs.rkt:56:0:
invoke-drs-tool
.../more-scheme.rkt:261:28
<RACKET-HEAD>/extra-pkgs/drracket/drracket/drracket/private/tools.rkt:72:0:
load/invoke-all-tools
.../racket/unit.rkt:1001:20
"<RACKET-HEAD>/extra-pkgs/drracket/drracket/drracket/tool-lib.rkt":
[running body]
for-loop
run-module-instance!125
"<RACKET-HEAD>/extra-pkgs/drracket/drracket/drracket/private/drracket-normal.rkt":
[running body]
...

context...:
for-loop
run-module-instance!125
for-loop
loop
[repeats 1 more time]
expand-capturing-lifts
loop
.../racket/unit.rkt:1001:20
<RACKET-HEAD>/extra-pkgs/drracket/drracket/drracket/private/tools-drs.rkt:56:0:
invoke-drs-tool
.../more-scheme.rkt:261:28
<RACKET-HEAD>/extra-pkgs/drracket/drracket/drracket/private/tools.rkt:72:0:
load/invoke-all-tools
.../racket/unit.rkt:1001:20
"<RACKET-HEAD>/extra-pkgs/drracket/drracket/drracket/tool-lib.rkt":
[running body]
for-loop
run-module-instance!125
"<RACKET-HEAD>/extra-pkgs/drracket/drracket/drracket/private/drracket-normal.rkt":
[running body]
...

context...:
for-loop
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
run-module-instance!125
for-loop
[repeats 1 more time]
...

Robby Findler

unread,
Jun 17, 2018, 10:47:55 PM6/17/18
to Shu-Hung You, Racket Users
Are you editing the files (and not running "raco setup")?

Robby
> --
> 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...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Shu-Hung You

unread,
Jun 17, 2018, 11:16:13 PM6/17/18
to Robby Findler, Racket Users
No, this happened even after I did `raco setup`

Shu-Hung You

unread,
Jan 6, 2021, 11:07:34 PM1/6/21
to Robby Findler, Racket Users, Matthias Felleisen
Some update:

Hopefully this is the same issue as the one reported at
https://github.com/racket/racket/issues/3604 and that the commit
https://github.com/racket/drracket/commit/3a07fc0319097661d27ea05ba42634f2b5ae14dd
fixes it.
Reply all
Reply to author
Forward
0 new messages