when i run (.getFileName (fs/path "my-path.clj")) in a clojure repl it works fine, but when i run the same in an SCI interpreter, it gives this error:
Method getFileName on class sun.nio.fs.UnixPath not allowed!why does that happen? this shouldn't need to interact with the host filesystem, i wouldn't think?
You need to configure SCI for interop explicitly
Are you on the JVM or in a native image?
oh i see
i am currently on the JVM but i plan to use Graal eventually
i missed <https://github.com/babashka/sci/tree/master?tab=readme-ov-file#classes> in the readme
i think fs/file-name is what i want, then i don't need to worry about interop
Check babashka’s src/babashka/impl/classes.clj for bb’s classes config. Yeah it’s better to just add functions