alina 🌸
alina 🌸
DDeno
Created by alina 🌸 on 7/12/2024 in #help
has there been a regression in 1.44.3 in deno ffi?
the smallest repro i could make: https://gist.github.com/teidesu/199abcd47a3fb494564a2c41965be5ad on linux amd64 host, put these 2 files in the same directory, and run docker run --rm $(docker build -q .) then, change deno version to 1.44.2 in dockerfile and run the same command again on 1.44.3 the code fails with a random error from the library being ffi-ed (e.g. pcre2_substitute_8 error: -8. sometimes it's different error code, but always PCRE2_ERROR_NULL or PCRE2_ERROR_UTF8_ERR family), and on 1.44.2 everything works fine and outputs goodbye world correctly on the other hand, everything seems to work fine when running outside docker or on arm64 linux, so i'm not really sure what could be the issue...
5 replies
DDeno
Created by alina 🌸 on 4/28/2024 in #help
get file path from FsFile
given a Deno.FsFile, is there a way to get its path (or at least a filename)? i can't really see a way to do that judging by the typings e.g.
const file = await Deno.open('file.txt')
const fileName = file.??? // == "/path/to/file.txt" or at least "file.txt"
const file = await Deno.open('file.txt')
const fileName = file.??? // == "/path/to/file.txt" or at least "file.txt"
2 replies