Crash in (load-pagetree "../index.ptree") with "find-relative-path: contract violation"
#78
Closed
opened 3 years ago by pmarinov
·
4 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Hello,
My pollen.rkt is: https://github.com/pmarinov/bash-scripting-guide/blob/master/pollen.rkt
I get this error backtrace:
Observations of strangeness, this error wouldn't show up if:
raco pollen render -r html pages/commands.poly.pm
ORln -s ../index.ptree index.ptree
and in function node-menu I pass "index.ptree" not "../index.ptree"I run
raco pollen reset
before each of the observations above. Any single step will make the problem not show up.This code (pollen.rkt) has been working for a long time and I have been simply adding pages to the book (index.ptree), and now suddenly it complains.
What could be the problem? Thank you for taking the time to look into it.
What changed? Did you update Pollen or Racket or any other underlying pieces?
The new thing is that I had added this at the end of index.ptree:
The function (node-menu) is invoked in many pages prior commands.poly.pm. If I remove the call to (node-menu) from this page specifically the project also compiles successfully.
The strange thing is if I add it to any other part of index.ptree the project compiles (I do "pollen reset" between these experiments)
Otherwise, I've updated the machine a few weeks ago, but I believe I did a "pollen reset" after that.
OK, thanks for the report. I’ve pushed a fix for this issue.
It works.
I did:
And my project compiled.
Thank you for the fix. Thank you for making Pollen.