Can't save file with .p extension
Closedopened 2 years ago by cena · 2 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Going through the Pollen tutorials, then realized that attempting to save template files with a
.pextension results in DrRacket appending
.rktto the filename, so the file becomes template.p.rkt.
From what I can tell, this issue was resolved in #34 (in 2015!). However, that issue did lead me to trying:
which showed me:
(#"rkt" #"pm" #"pmd" #"pp" #"ptree" #"scm" #"scrbl" #"ss")
I'm able to save correctly as .pmd, .pp, .pm, and .ptree.
#"p"also be an entry there?
Using Big Sur 11.6, DrRacket 8.3; Pollen updated today.
pisn’t on the list of module suffixes because
pdoesn’t denote a certain kind of module. It’s just a convenience suffix that can be appended to any file (without one of the other Pollen file suffixes). For the most part,
pis used with template files, which contain plain text and not code. I don’t think this behavior qualifies as a bug — because DrRacket doesn’t hold itself out as a general-purpose text editor — but I will add a note to the docs flagging this behavior.
Understood. Appreciate your taking the time to explain/update the docs for so minor an issue. :)