~agzam

Recent activity

Re: fennel repl with awesomewm 11 months ago

From Ag Ibragimov to ~technomancy/fennel

Phil Hagelberg <phil@hagelb.org> writes:

So how do you achieve nrepl enabled REPL? Is jeejah still relevant? I've been trying to figure this out, spent hours
trying different things, still not sure how to get that.

> Ag <agzam.ibragimov@gmail.com> writes:
>
>> I'd love to eval things from a .fnl file buffer in Emacs. I found
>> Andrey's lengthy post about Fennel REPL[1] and the
>> fennel-proto-repl.el[2], but I'm not sure how to hook it up so it works
>> with AwesomeWM. Excuse my laziness, but maybe it's as simple as setting
>> one or two elisp vars and running a command? Thank you!
>
> If you just want to load directly from a file, then I would bind a key

fennel repl with awesomewm 11 months ago

From Ag to ~technomancy/fennel

Greetings, friends. Is anyone here using Fennel to configure AwesomeWM?
I recently (after a long break) started using Linux again and picked up
Awesome, and one thing that is now missing from my workflow is a proper
REPL.

I'd love to eval things from a .fnl file buffer in Emacs. I found
Andrey's lengthy post about Fennel REPL[1] and the
fennel-proto-repl.el[2], but I'm not sure how to hook it up so it works
with AwesomeWM. Excuse my laziness, but maybe it's as simple as setting
one or two elisp vars and running a command? Thank you!

[1] https://andreyor.st/posts/2023-03-25-implementing-a-protocol-based-fennel-repl-and-emacs-client
[2] https://git.sr.ht/~technomancy/fennel-mode/tree/main/item/fennel-proto-repl.el

Re: Completions in lsp-mode 11 months ago

From Ag Ibragimov to ~xerool/fennel-ls

XeroOl <xerool@protonmail.com> writes:

> Ag <agzam.ibragimov@gmail.com> writes:
>> Can someone please help me debug completions in Emacs? I'm using
>> lsp-mode (not eglot). Matter of fact can someone confirm that the
>> completions do work in Eglot, I'm not sure if the culprit is lsp-mode or
>> the server.
>
> The fennel-ls server should be able to provide completions, so it's
> strange that you're not getting any. One potential explanation would be
> if fennel-ls isn't running. To check this: does it show diagnostics
> when you have a compiler error? If you put a '~' character into a
> fennel source file, does the message "invalid character: ~" appear?

Completions in lsp-mode 11 months ago

From Ag to ~xerool/fennel-ls

Can someone please help me debug completions in Emacs? I'm using
lsp-mode (not eglot). Matter of fact can someone confirm that the
completions do work in Eglot, I'm not sure if the culprit is lsp-mode or
the server.

This is how I'm setting it up:

config.el:

```
(lsp-register-client
   (make-lsp-client
     :new-connection (lsp-stdio-connection "fennel-ls")

Re: antifennel errors 1 year, 4 days ago

From Ag Ibragimov to ~technomancy/fennel

Phil Hagelberg <phil@hagelb.org> writes:

> Ag Ibragimov <agzam.ibragimov@gmail.com> writes:
>
>> I appreciate it, Phil. Thank you. Unfortunately, I wasn't able to
>> confirm the fix since the Sourcehut outage has been going on for days
>> now. I'm not asking you to push it to another forge, just letting you
>> know. Hopefully, they'll resolve it soon.
>
> Ah right. Well, I'll attach the fix here, so you can try that without
> needing the remote git repo.

Awww, you're so awesome. I was just about telling you that I was able to install it. Sourcehut is now available again. 
Here's btw little elisp snippet I wrote, maybe it should be included in fennel-mode, wdyt?

Re: antifennel errors 1 year, 5 days ago

From Ag Ibragimov to ~technomancy/fennel

Phil Hagelberg <phil@hagelb.org> writes:

> Ag Ibragimov <agzam.ibragimov@gmail.com> writes:
>
>> I simply cloned the repo from https://git.sr.ht/~technomancy/antifennel and installed it, following the instructions in
>> the readme. Tried both system-wide and the user-level install.
>
> Aha; I see the problem now. I accidentally used `cp' to put antifennel in
> my ~/bin instead of `ln' so I was running some of my tests on the stable
> version instead of the development version.
>
> I've pushed a fix; thanks for the heads up.
>
> -Phil

Re: antifennel errors 1 year, 9 days ago

From Ag Ibragimov to ~technomancy/fennel

Phil Hagelberg <phil@hagelb.org> writes:

> Ag Ibragimov <agzam.ibragimov@gmail.com> writes:
>
>> the web version works fine. What am I missing?
>
> Well, you appear to be missing a repro case. =)

I simply cloned the repo from https://git.sr.ht/~technomancy/antifennel and installed it, following the instructions in
the readme. Tried both system-wide and the user-level install.

I also tried on both - Arch and MacOS Sonoma. It's failing for even simplest cases like `local require("foo")`

antifennel errors 1 year, 9 days ago

From Ag Ibragimov to ~technomancy/fennel

For some reason antifennel doesn't work for me, throwing these errors:

luajit: /usr/local/bin/antifennel:6972: attempt to call upvalue 'expr_primary' (a nil value)
stack traceback:
	/usr/local/bin/antifennel:6972: in function 'parse_call_assign'
	/usr/local/bin/antifennel:7120: in function 'parse_stmt'
	/usr/local/bin/antifennel:7170: in function 'parse_block_stmts'
	/usr/local/bin/antifennel:7178: in function 'parse_chunk'
	/usr/local/bin/antifennel:7212: in function 'parse'
	/usr/local/bin/antifennel:9003: in function 'compile'
	/usr/local/bin/antifennel:9019: in main chunk
	[C]: at 0x56243a5a7cd0

the web version works fine. What am I missing?