Closed bortzmeyer closed 8 months ago
In the mean time, calling uiua fmt main.ua
and uiua run main.ua
from inside Emacs produces the expected result and may form the basis of a simple "uiua mode".
thanks! jumping off this, would anyone like to start working on a uiua-mode? I'd be happy to help.
I'd love to help here too. Facilities such as running the line you're on and displaying it would be great, especially with image support.
I use VSCode, so that is what I test the language server with. Unfortunately, I can't get VSCode to request stuff like semantic tokens or inlay values from the server, so I'm unable to test it there.
https://github.com/crmsnbleyd/uiua-mode, initiated a repository, I'll start hacking. I'm on the uiua discord as well, under @crmsnbleyd if anyone wants to collaborate there
uiua-ts-mode is now on melpa, if you all are interested.
cc @emiflake @bortzmeyer
https://github.com/crmsnbleyd/uiua-mode, initiated a repository, I'll start hacking. I'm on the uiua discord as well, under @crmsnbleyd if anyone wants to collaborate there
I've linked to this on the install page.
I try to use Emacs as an editor. To have Emacs automatically reload the file, I add:
When Emacs saves the file, it actually creates a new file which makes uiua miss it and display "failed to load /home/stephane/tmp/uiua/main.ua: No such file or directory (os error 2)". So, I tell Emacs not to make backup files, thus overwriting the file instead of creating a new one:
Now, uiua no longer complains, Emacs reloads the file if it is changed by an external program (I tested with vi and with
uiua fmt
) but not when it was changed by used uiua interactively: Emacs continues to display the old file, even when uiua changed it.