-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blodwen adaptation #489
Comments
According to Edwin, the protocol is mostly the same. There seems to be a
few new commands, described in the Blodwen repository. I would imagine that
pointing the Idris executable at Blodwen would be enough to get most
working, and then the new features would be a matter of first adding a
buffer local variable stating the protocol version, and then make a few
commands send the extra parameters conditional on the version.
|
Thanks so much, So I tried pointing idris-mode at the blodwen executable:
but I get From the Messages buffer:
Not sure where to go from here. |
I'd like support for Blodwen too.
I'd like to point out that Blodwen does not support the --ide-mode-socket flag yet. It only supports --ide-mode right now. Right now this package tries to use the protocol over tcp: https://github.com/idris-hackers/idris-mode/blob/master/inferior-idris.el#L134. Normal --ide-mode which Blodwen does support is pretty much the same thing but it is done througth stdin and stdout it appears. Getting this package to handle --ide-mode or porting --ide-mode-socket to Blodwen would be the next step of getting Blodwen support at least functioning. In the furure the enhancements of v2 should be added. |
Good points. It wouldn't be particularly hard to let WRT deleting IBCs, Also, for Blodwen, we probably need to add another category of compiler metadata for the highlighting code: the quantity annotations on binding forms. Those should give appropriate explanatory tooltips. |
Thanks @gyroninja and @david-christiansen. Sounds like there is at least a clear first step. Get socket mode up and running for blodwen. I'll submit a small PR to add this as an open issue on ide-notes for blodwen. Then if I get a chance I can look in to porting the socket mode. Given the back compatibility, fingers crossed it will be a simple port. |
As discussed in the [idris-mode issues](idris-hackers/idris-mode#489) socket support doesn't seem to be up and running yet. I hope one of the discussants will be able to issue a PR porting socket-mode from Idris1 and removing this note in the near future.
For the record, Idris 2 supports From a quick test:
Now I'm stuck with some evaluation problems in |
Has anybody done some work towards Idris2 integration? What needs changing? To keep backwards compatibility with old Idris we need something better than idris-interpreter-path. Do you have any suggestions? |
https://github.com/bigos/idris-mode/blob/36db9f91db0e17473324b4362dcb2e00a7ac9dfe/idris-core.el#L35 |
Hi Jacek,
Current idris-mode works with Idris2, at least for basic cases: Loading
file, interacting in REPL, some commands like case split, with
introduction, hole extraction, basic syntax highlighting (offsets are wrong
with off-by-one errors and it does not highlight types, constructors...).
It seems to me that rn most work needs to be done on the Idris2 side to
implement missing commands and improve syntax highlighting.
Regards,
--
Arnaud Bailly - @dr_c0d3
…On Sat, Aug 1, 2020 at 3:53 AM Jacek Podkanski ***@***.***> wrote:
https://github.com/bigos/idris-mode/blob/36db9f91db0e17473324b4362dcb2e00a7ac9dfe/idris-core.el#L35
with example like this where do I start in adopting existing mode to Idris
2?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#489 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAJ2HKEFJJOFRMQSQR7JIDR6NYTFANCNFSM4GMS377A>
.
|
In such case I will wait. By the way, do you think my description of reloading mode code may be useful? https://github.com/bigos/idris-mode/blob/wip1/development-notes.org |
Hi Jacek,
It is for me, useful when hacking on the elisp side. I must admit I am not
very proficient at emacs-lisp so I would hardly be able to suggest
improvements :)
--
Arnaud Bailly - @dr_c0d3
…On Sat, Aug 1, 2020 at 2:23 PM Jacek Podkanski ***@***.***> wrote:
In such case I will wait.
By the way, do you think my description of reloading mode code may be
useful?
https://github.com/bigos/idris-mode/blob/wip1/development-notes.org
<http://url>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#489 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAJ2HM7HJA6OM6B3Z3YV7TR6QCNNANCNFSM4GMS377A>
.
|
@ether42 https://github.com/bigos/idris-mode/blob/ad1049febb64ffdd8c8d2612bb1d88a5f96b83fd/idris-repl.el#L263 |
Hi All,
I'm interested in playing with blodwen. Anyone have any suggestions for what needs to be modified to get idris-mode compatible with idris2?
Thanks!
Chris
The text was updated successfully, but these errors were encountered: