Closed Kalimehtar closed 1 year ago
Sorry for the late reply, I missed the issue notification.
I tried that, it works for me. Did you run that as a script? If it did not work as a script, can you try that within the REPL?
And also, a simpler way for your code would be like below:
#lang racket
(require ming/racket/base)
(require ming/racket/list)
And there are other two points that need to be in the user's head always:
raco pkg install "https://github.com/yanyingwang/ming.git#c88c0574ddda9a777bd8b996ef6b5468553639e3"
I tried different Racket versions.
Ming works on Linux/racket-8.7 and doesn't work on WIndows/racket-8.9
./raco pkg install ming
...
raco setup: 3 making: <pkgs>/ming
mapping/racket/base: undefined;
cannot reference an identifier before its definition
in module: "C:\Users\Monk\AppData\Roaming\Racket\8.9\pkgs\ming\private\core.rkt"
compilation context...:
C:\Users\Monk\AppData\Roaming\Racket\8.9\pkgs\ming\racket\base.rkt
C:\Users\Monk\AppData\Roaming\Racket\8.9\pkgs\ming\list.rkt
context...:
body of "C:\Users\Monk\AppData\Roaming\Racket\8.9\pkgs\ming\private\core.rkt"
C:\Users\Monk\AppData\Roaming\Racket\8.9\pkgs\ming\private\core.rkt:17:0
C:\Program Files\Racket\collects\syntax\wrap-modbeg.rkt:46:4
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:686:0: compile-zo*
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:452:15
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:441:12: build
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:412:0: maybe-compile-zo
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:210:0: compile-root
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:145:4: compilation-manager-load-handler
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:686:0: compile-zo*
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:452:15
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:441:12: build
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:412:0: maybe-compile-zo
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:210:0: compile-root
C:\Program Files\Racket\collects\compiler\private\cm-minimal.rkt:105:4
C:\Program Files\Racket\collects\setup\parallel-build.rkt:332:9
...
from my trying with a Windows, this is related to the difference of Windows path from the UNIX system. Even though I can fix that part of code, it's better for me to refactor it by explicitly defining them.
https://github.com/yanyingwang/ming/commit/56e429eb4916ee509747a7dd2bcf0d860c1de24a
please try it again, it works on my PC now.
Now it works.
谢谢
Hello!
I installed
ming
, but it doesn't work for me.I got an error after
#lang ming
The same error, if I write
What do I wrong?