Not sure if this is the right place for the question, so if there is a stream for IDE-related questions, please do tell me :smile:
Is there any tutorial/example of how isabelle-emacs should be used?
I think I installed it correctly (including dependencies), did "M-x lsp-install-server" at the beginning of the file, but don't know how to use its features.
Mmm seems pictures in the Readme are broken. But lsp-install-server
does not install isabelle (at least I never implemented that).
Normally, when you start (and that isabelle has started), you should see the buffer being split into 3 (theory panel, state panel, and output panel)
I will add a new screenshot tomorrow (the old ones: here and there )
(but I am probably not the most qualified person to give a tutorial, because I am the main developer of isabelle-emacs)
Thanks for the response! I did read instructions from the main page, so I took care of steps 1 and 2 - not sure what is missing.
What happens when you run M-x lsp
?
Sorry for the delay. This is the feedback I'm getting:
lsp-isabelle.png
There is a file 211.thy
in /home/nikola/thys/
directory.
In ~/.isabelle/Isabelle2022-vsce/etc/settings
I've modified AFP
line to this:
AFP=/home/nikola/thys/
Am I doing something wrong here?
Do you really have the afp directly in /home/nikola/
?
and not /home/nikola/afp-2022/
or something like that?
This is complete content of the file afp.png and thys
dir fs.png
Okay so you do need the AFP
you should set the emacs variable lsp-isabelle-options to (list )
Thank you! We've made it work :smile:
The only issue I'm facing now is regarding *lsp-isar-output*
which is empty all the time - not sure what's its purpose tbh. I'm attaching screenshot to show what it looks like after sladgehammering.
I will try to use this mode on a regular basis and see if it can be permanent replacement for JEdit.
That is not expected
Can you check in the lsp-log buffer what is executed. It should be of the form:
Command "path-to-isabelle-release/bin/isabelle vscode_server -o vscode_pide_extensions -o vscode_caret_perspective=10 -m do_notation" is present on the path.
but that should not be the source of the problem
There is one more thing that is weird in your screenshot: no syntax highlighting
I guess that the thy
folder from /home/nikola/thy
a soft link?
but that issue does not explain why sledgehammer output is not in the output buffer :thinking:
Mathias Fleury said:
Can you check in the lsp-log buffer what is executed. It should be of the form:
Command "path-to-isabelle-release/bin/isabelle vscode_server -o vscode_pide_extensions -o vscode_caret_perspective=10 -m do_notation" is present on the path.
I do have that line -- only difference is that path-to-isabelle-release
is my actual path on the system.
Mathias Fleury said:
I guess that the
thy
folder from/home/nikola/thy
a soft link?
Well, /home/nikola/thys/
is a real directory I've made, not a soft link
Could it be the problem that I cloned git repository (isabelle-emacs
) in a directory that is a soft link?
Last updated: Dec 21 2024 at 12:33 UTC