reference to a variable that is uninitialized #256

Closed
opened 4 years ago by casouri · 4 comments
casouri commented 4 years ago (Migrated from github.com)

I installed pollen by raco from Mini Racket v8.1 on macOS 11.2.3. But when I try to call raco pollen start, the following error shows up:

> raco pollen start
instantiate-linklet: mismatch;
 reference to a variable that is uninitialized;
 possibly, bytecode file needs re-compile because dependencies changed
  name: dirname
  exporting instance: "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/file-utils.rkt"
  importing instance: "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/cache-utils.rkt"
  context...:
   body of "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/cache-utils.rkt"
   /Applications/Racket v8.1/collects/raco/raco.rkt:41:0
   body of "/Applications/Racket v8.1/collects/raco/raco.rkt"
   body of "/Applications/Racket v8.1/collects/raco/main.rkt"

Seems I need to recompile pollen? But I couldn't find how to recompile a package.

I installed pollen by raco from Mini Racket v8.1 on macOS 11.2.3. But when I try to call `raco pollen start`, the following error shows up: ``` > raco pollen start instantiate-linklet: mismatch; reference to a variable that is uninitialized; possibly, bytecode file needs re-compile because dependencies changed name: dirname exporting instance: "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/file-utils.rkt" importing instance: "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/cache-utils.rkt" context...: body of "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/cache-utils.rkt" /Applications/Racket v8.1/collects/raco/raco.rkt:41:0 body of "/Applications/Racket v8.1/collects/raco/raco.rkt" body of "/Applications/Racket v8.1/collects/raco/main.rkt" ``` Seems I need to recompile pollen? But I couldn't find how to recompile a package.
mbutterick commented 4 years ago (Migrated from github.com)

try raco setup pollen

try `raco setup pollen`
casouri commented 4 years ago (Migrated from github.com)

I tried it and the issue persists. Here is the output.

> raco setup pollen
raco setup: version: 8.1
raco setup: platform: x86_64-macosx [cs]
raco setup: target machine: ta6osx
raco setup: installation name: 8.1
raco setup: variants: cs
raco setup: main collects: /Applications/Racket v8.1/collects/
raco setup: collects paths:
raco setup:   /Users/yuan/Library/Racket/8.1/collects
raco setup:   /Applications/Racket v8.1/collects/
raco setup: main pkgs: /Applications/Racket v8.1/share/pkgs
raco setup: pkgs paths:
raco setup:   /Applications/Racket v8.1/share/pkgs
raco setup:   /Users/yuan/Library/Racket/8.1/pkgs
raco setup: links files:
raco setup:   /Applications/Racket v8.1/share/links.rktd
raco setup:   /Users/yuan/Library/Racket/8.1/links.rktd
raco setup: main docs: /Applications/Racket v8.1/doc
raco setup: --- updating info-domain tables ---                    [16:03:25]
raco setup: --- pre-installing collections ---                     [16:03:25]
raco setup: --- installing foreign libraries ---                   [16:03:25]
raco setup: --- installing shared files ---                        [16:03:25]
raco setup: --- compiling collections ---                          [16:03:25]
raco setup: --- parallel build using 8 jobs ---                    [16:03:25]
raco setup: 7 making: <pkgs>/pollen/pollen
raco setup: 7 making: <pkgs>/pollen/pollen/misc
raco setup: 7 making: <pkgs>/pollen/pollen/private
raco setup: 7 making: <pkgs>/pollen/pollen/private/external
raco setup: 7 making: <pkgs>/pollen/pollen/private/server-extras
raco setup: 7 making: <pkgs>/pollen/pollen/scribblings
raco setup: 7 making: <pkgs>/pollen/pollen/template
raco setup: 7 making: <pkgs>/pollen/pollen/unstable
raco setup: 7 making: <pkgs>/pollen/pollen/unstable/convert
raco setup: --- creating launchers ---                             [16:03:28]
raco setup: --- installing man pages ---                           [16:03:28]
raco setup: --- building documentation ---                         [16:03:28]
raco setup: --- installing collections ---                         [16:03:30]
raco setup: --- post-installing collections ---                    [16:03:30]


> raco pollen test
instantiate-linklet: mismatch;
 reference to a variable that is uninitialized;
 possibly, bytecode file needs re-compile because dependencies changed
  name: dirname
  exporting instance: "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/file-utils.rkt"
  importing instance: "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/cache-utils.rkt"
  context...:
   body of "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/cache-utils.rkt"
   /Applications/Racket v8.1/collects/raco/raco.rkt:41:0
   body of "/Applications/Racket v8.1/collects/raco/raco.rkt"
   body of "/Applications/Racket v8.1/collects/raco/main.rkt"
I tried it and the issue persists. Here is the output. ``` > raco setup pollen raco setup: version: 8.1 raco setup: platform: x86_64-macosx [cs] raco setup: target machine: ta6osx raco setup: installation name: 8.1 raco setup: variants: cs raco setup: main collects: /Applications/Racket v8.1/collects/ raco setup: collects paths: raco setup: /Users/yuan/Library/Racket/8.1/collects raco setup: /Applications/Racket v8.1/collects/ raco setup: main pkgs: /Applications/Racket v8.1/share/pkgs raco setup: pkgs paths: raco setup: /Applications/Racket v8.1/share/pkgs raco setup: /Users/yuan/Library/Racket/8.1/pkgs raco setup: links files: raco setup: /Applications/Racket v8.1/share/links.rktd raco setup: /Users/yuan/Library/Racket/8.1/links.rktd raco setup: main docs: /Applications/Racket v8.1/doc raco setup: --- updating info-domain tables --- [16:03:25] raco setup: --- pre-installing collections --- [16:03:25] raco setup: --- installing foreign libraries --- [16:03:25] raco setup: --- installing shared files --- [16:03:25] raco setup: --- compiling collections --- [16:03:25] raco setup: --- parallel build using 8 jobs --- [16:03:25] raco setup: 7 making: <pkgs>/pollen/pollen raco setup: 7 making: <pkgs>/pollen/pollen/misc raco setup: 7 making: <pkgs>/pollen/pollen/private raco setup: 7 making: <pkgs>/pollen/pollen/private/external raco setup: 7 making: <pkgs>/pollen/pollen/private/server-extras raco setup: 7 making: <pkgs>/pollen/pollen/scribblings raco setup: 7 making: <pkgs>/pollen/pollen/template raco setup: 7 making: <pkgs>/pollen/pollen/unstable raco setup: 7 making: <pkgs>/pollen/pollen/unstable/convert raco setup: --- creating launchers --- [16:03:28] raco setup: --- installing man pages --- [16:03:28] raco setup: --- building documentation --- [16:03:28] raco setup: --- installing collections --- [16:03:30] raco setup: --- post-installing collections --- [16:03:30] > raco pollen test instantiate-linklet: mismatch; reference to a variable that is uninitialized; possibly, bytecode file needs re-compile because dependencies changed name: dirname exporting instance: "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/file-utils.rkt" importing instance: "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/cache-utils.rkt" context...: body of "/Users/yuan/Library/Racket/8.1/pkgs/pollen/pollen/private/cache-utils.rkt" /Applications/Racket v8.1/collects/raco/raco.rkt:41:0 body of "/Applications/Racket v8.1/collects/raco/raco.rkt" body of "/Applications/Racket v8.1/collects/raco/main.rkt" ```
otherjoel commented 4 years ago (Migrated from github.com)

is there by chance a compiled/ subfolder in the directory from which you're running the raco pollen test command?

is there by chance a `compiled/` subfolder in the directory from which you're running the `raco pollen test` command?
casouri commented 4 years ago (Migrated from github.com)

is there by chance a compiled/ subfolder in the directory from which you're running the raco pollen test command?
No there is not.

I figured out the problem. I had a file pollen.rkt in the directory following the tutorial, but instead of #lang racket I put #lang pollen. I fixed that and raco pollen works now. Thanks (and sorry) for taking your time.

> is there by chance a compiled/ subfolder in the directory from which you're running the raco pollen test command? No there is not. I figured out the problem. I had a file `pollen.rkt` in the directory following the tutorial, but instead of `#lang racket` I put `#lang pollen`. I fixed that and `raco pollen` works now. Thanks (and sorry) for taking your time.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen#256
Loading…
There is no content yet.