127.0.0.1
Messing around my $HOME
Other places to find me (in order of preference for contact methods)
Comment by ~hedy on ~technomancy/fennel
awesome. thank you!
Ticket created by ~hedy on ~technomancy/fennel
(let [pathsepesc (escapepat pkg-config.pathsep) pattern (: "([^%s]*)%s" :format pathsepesc pathsepesc) no-dot-module (modulename:gsub "%." pkg-config.dirsep) fullpath (.. (or ?pathstring utils.fennel-module.path) pkg-config.pathsep)] (fn try-path [path] (let [filename (path:gsub (escapepat pkg-config.pathmark) no-dot-module) filename2 (path:gsub (escapepat pkg-config.pathmark) modulename)] (case (or (io.open filename) (io.open filename2)) file (do (file:close) filename) _ (values nil (.. "no file '" filename "'")))))it checks
modulename
which was the value of that in(require :modulename)
as well as asno-dot-module
, but returns only the filename forno-dot-module
if either of them works.this presents an issue when the module contains a dot. on requiring
module.name
, it checksmodule/name.fnl
, andmodule.name.fnl
if only the latter exists, the filename is passed todofile
, which then raises runtime error on failing toio.open
it.checking
module.name.fnl
(rather than justmodule/name.fnl
is also inconsistent with lua's behaviour.use case: custom support for importing modules with dot in their names: https://git.sr.ht/~hedy/fssg/tree/67b30cdac878cc3b8809379abe1d2f23751f854b/item/fix-searcher.fnl
Comment by ~hedy on ~hedy/gelim
~hedy referenced this ticket in commit 22bcbe7.
REPORTED
RESOLVED CLOSEDTicket created by ~hedy on ~hedy/gelim
for now I can only see a mention of the type 7 item in the rfc "FullText search" query but have no idea how this is submitted or how it should be handled.