For some absurd/historical reason the F# interactive console for scripts requires the name of the script files to end the extension .fsx. That means that something that should work perfectly well like this:
Simply doesn't work. Instead I get the following error:
"~/Documents/Wiki/src/wasabi/wasabito_compact_filters.md" 50L, 729B written
^@^@error FS0226: The file extension of '/tmp/panda_script-57a468d967123abc/script.dotnet' is not r
ecognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli.^@^@Error runni
ng filter /home/lontivero/.local/bin/panda.lua:^@PandocLuaError "/home/lontivero/.local/bin/panda.l
ua:434: script error"^@stack traceback:^@^I/home/lontivero/.local/bin/panda.lua:422: in upvalue 'ru
n_script'^@^I/home/lontivero/.local/bin/panda.lua:446: in function </home/lontivero/.local/bin/pand
a.lua:440>^@
Press ENTER or type command to continue
I don't see any obvious way to make panda to save the script with a given extension.
Just to prove the problem is the script file extension, if I hardcode th extension .fsx
in the run_script
function as follow: