Fork me on GitHub
#conjure
<
2020-05-13
>
Olical12:05:57

Completions were not working for CLJS because I wasn't providing the session šŸ™ƒ should work a lot better now

Olical12:05:28

lol it works SO well now šŸ˜„

Olical12:05:57

I'd argue that this works better than most JS tools since we're getting live completions from real objects in the browser / node, not just static analysis.

šŸ’Æ 4
šŸš€ 4
Olical12:05:01

This release includes so many fixes, how am I supposed to list them all šŸ˜¬

Olical12:05:19

Think I'll release this version :thinking_face: I think it's good to go.

dharrigan12:05:57

Conjure just keeps conjuring up better and better!

Olical12:05:22

I managed to improve a bunch of things in piggieback connections too, they send stdout to the wrong place which I can't do anything about, but I've added mitigations. So hopefully I've closed the gap between clj and cljs UX even more!

šŸ’Æ 8
Olical12:05:53

Shadow continues to be the smoothest cljs experience for me in testing. It just works so well.

Olical13:05:11

v3.1.0 released!

šŸŽ‰ 4
dave13:05:26

i love the pupdates :paw_prints:

dave13:05:29

thanks for always including detailed release notes, i find that really helpful! when i'm excited about a project, i like to keep up with what new features are available and try them out

dave13:05:59

uh-oh, looks like something is broken for me after updating. i'm putting an issue together

dharrigan14:05:16

Interesting, I don't see that issue

dharrigan14:05:32

opening a file, or doing ,cf, I don't get that lua callback error

rafaeldelboni15:05:22

yeap eval from file is not working for me anymore on v3.1.0

Olical15:05:05

Oh no :( what are you seeing? Clojure or ClojureScript?

rafaeldelboni15:05:25

Clojure, it's return always nil

Olical17:05:31

That's correct though? Evaluating a file should return nil? Or you mean it's not actually loading it and it's returning nil?

rafaeldelboni17:05:56

no loading just returning instant nil

rafaeldelboni17:05:16

in 3.0 it process and then return the evaluation

Olical17:05:06

Yep, you're right, I messed it up, I quoted the symbols. Needs to be unquoted.

Olical17:05:54

pushed a fix to develop

Olical17:05:00

will release in 3.1.1 asap

rafaeldelboni19:05:47

Yeah just updated and is working again

rafaeldelboni19:05:56

you are incredible

Olical19:05:23

So glad it's fixed! I'm sorry I broke it in the first place. And thank you very much, I think I'm just persistent and can't let bugs sit around šŸ˜…

rafaeldelboni13:05:48

Hey, the nil thing is still happening to cljs

Olical13:05:24

I mean, it will return nil when you eval a file

Olical13:05:48

If you put some println in the top level of the file and ,ef do you see the print?

Olical13:05:53

(on v3.1.1)?

rafaeldelboni13:05:17

got it, I don't have much experience on cljs, but when I do a eval buffer or eval root I have something different from eval file, like I was having on clj

Olical13:05:52

Yeah, CLJS eval buffer will show you EVERY result from every form, CLJ eval buffer will only show you the last thing.

Olical13:05:56

Eval file should be nil return for both

Olical13:05:06

Since that's what (load-file ...) returns

Olical13:05:26

You should still see println output though if it's at the top level!

rafaeldelboni13:05:24

; --------------------------------------------------------------------------------
; eval (file): ...ank/shuffle/modules/fraud/alert_bars/blocked_transfers_out/dictionary.cljs
nil
; --------------------------------------------------------------------------------
; eval (buf): ...ank/shuffle/modules/fraud/alert_bars/blocked_transfers_out/dictionary.cljs
nil
{:huge :map}
; --------------------------------------------------------------------------------
; eval (root-form): (i18n/add! {:en {::blocked-transfers-out-alert "Bypass Rule: " ::transfers...
{:huge :map}

Olical13:05:51

Yep that seems about right to me, if your buffer is a ns form and something that generates a large map?

Olical13:05:06

Eval file just won't show you the last form I'm afraid.

Olical13:05:17

Don't think there's a way I can enable it.

rafaeldelboni13:05:44

I was just testing the behavior on cljs

dave15:05:15

the issue i mentioned above appears to be related to not having XDG_CONFIG_HOME set in your shell

dave15:05:07

applications/tools like conjure should default to ~/.config if XDG_CONFIG_HOME is not set

Olical16:05:38

Yep, I already added this šŸ˜¬

dharrigan15:05:36

Interesting, I don't have that set

dharrigan15:05:03

ļŒƒ ļ€• ~                                                                                                                                                                                                                                                                                      
āÆ echo $XDG_CONFIG_HOME


ļŒƒ ļ€• ~                                                                                                                                                                                                                                                                                      
āÆ 

dave15:05:05

i use fish shell, so it's possible that that causes additional problems šŸ™‚

dave15:05:59

when i echo $XDG_CONFIG_HOME, i get nothing, and when i try to tab-complete from $XDG_, XDG_CONFIG_HOME is not one of the options, so it's not set, for whatever definition of "not set" that means for fish shell

dave15:05:00

setting XDG_CONFIG_HOME fixes it for me, as a workaround

Olical16:05:08

Hmm I deliberately put in defaults to handle XDG_CONFIG_HOME not existing, it's clearly not working properly, I'll fix it ASAP!

Olical16:05:23

And I use fish

dave16:05:52

sorry for the issue spam, hope it isn't annoying šŸ˜„

dave16:05:04

defaulting to clojure syntax for fennel worked, btw! i like the warning message that includes a link to fennel.vim

dave16:05:48

conjure school is incredibly cool. i'm so stoked about conjure these days! metal

šŸŽ‰ 8
āž• 4
Olical17:05:14

Hmm, I've just pushed a change to develop that might fix the XDG_CONFIG_HOME issue? I'm being a bit more careful with the value I extract from the environment. I wonder if it's an OSX thing?

Olical17:05:44

Okay, eval-file was broken in my attempt to make it better for ClojureScript, that's sorted now. I've made the environment variable sniffing slightly safer which will hopefully fix the XDG_CONFIG_HOME error some were seeing.

dave17:05:52

I'm on Ubuntu 16.04, for what it's worth. Thanks for looking into this, I'll give the develop branch a try soon!

Olical17:05:13

Ah okay, we're both on Ubuntu then, super weird! I literally check if it's defined and use a default if not. It's not defined on my machine either but I don't see that error, I have no idea how to reproduce it :thinking_face:

dave17:05:48

Is it possible we're using different versions of Lua?

Olical17:05:21

Any better on develop now? :thinking_face:

dave18:05:38

yep! whatever changes you made did the trick šŸ™‚

Olical18:05:02

Very glad to hear that! I'll get this patch out

Olical17:05:06

Nope, it's compiled into Neovim

dharrigan17:05:21

Ubuntu 16.04!

dharrigan17:05:29

man, that's ancient šŸ™‚

dave17:05:29

Hmm. I do use the bleeding edge development version of Neovim

dave17:05:04

I'm holding off on upgrading Ubuntu until 16.04 support ends in 2021 :)

dharrigan17:05:20

Come to arch...you'll love it šŸ™‚

dharrigan17:05:37

you never need to do big-bang upgrades ever again šŸ™‚

dave17:05:44

Too many things tend to break when you upgrade your OS. I'd rather defer the pain as long as possible šŸ˜…

dave17:05:15

I did try Arch a long time ago, but found it too bleeding-edge for my tastes. I do like the idea in theory though

dharrigan17:05:36

My, you're a cautious fellow, aren't you šŸ™‚

dave17:05:47

Most of the time, lol šŸ˜‚

dharrigan17:05:51

yet...you're on bleeding edge of neovim....

dave17:05:13

There are a handful of things that I prefer to follow development on, like Neovim. I'm not 100% sure why

dave17:05:47

Tmux is another one of those things

dave17:05:04

The version of tmux in the Ubuntu repos is super old

dave17:05:40

I guess the difference is that I have a good understanding of Neovim and tmux, so when something breaks, I feel comfortable enough looking into it

dave17:05:33

I'd prefer not to be on the bleeding edge of all the system packages, though, like xorg and systemd and whatnot. I find that a bit scary!

dharrigan17:05:10

It's exciting!

dharrigan17:05:24

tbh, since running arch for 1+ years, it's not failed me once.

dharrigan17:05:46

I used to run Mint before that (before that was Ubuntu, before that was FreeBSD, before that was Debian)

dharrigan17:05:00

I think I did some suse on the way and maybe, can't recall, some fedora

dharrigan17:05:10

and by far, I'm happiest on Arch šŸ™‚

dharrigan17:05:53

(I would choose FreeBSD for a server at a drop of a hat if it only did lxd...esp as they are now using ZFS On Linux as their base source)

Olical18:05:07

Yay! Releasing patch!

dave18:05:03

maybe i'll give arch another try sometime. i'm hesitant to make the jump at the moment because a bunch of my coworkers also use ubuntu, and it's nice to be able to troubleshoot together when things go awry

Olical18:05:46

Thanks for the reports! It was quite a big update so there was a few things that could slip through the net, hopefully the next release will be a smaller chunk of new stuff and fixes! I may well create a "next" or "pre-release" branch that's merged to when I have a candidate for release. That way you intrepid explorers can get the new things early without getting burned by me pushing a bad commit to develop at 1am.

dharrigan18:05:42

where are you, 1am?

dharrigan18:05:56

or are you talking about future...

Olical18:05:04

Oh no, I'm in London, I mean in the future šŸ˜›

dharrigan18:05:39

when you're sipping pina coladas on a beach somewhere on a tropical island after making your millions?

Olical18:05:51

Hahaha, of course!

Olical18:05:15

I'm sure the investors will roll in any day now once the gold rush of interactive evaluation tooling takes off.

RafaMedina19:05:38

@olical question, which file in the repo is a good example for "the Conjure API interaction"

Olical19:05:56

There's no external systems that hook into Conjure yet but you can always browse the Fennel source, anything that's public is near enough fair game right now. You can just require the modules and call any function you want, although I may want to enshrine some as part of a stable API soon or wrap them up in a conjure.api module that will be safe for plugins to rely on.

Olical19:05:01

I'm just not quite there yet

Olical19:05:20

So right now you can just delve into the source and call whatever you want, there's just a slight risk I change things that break it in future versions.

Olical19:05:36

Not that I'm making massive internal changes right now or plan to, but still.

RafaMedina20:05:53

Got it, Iā€™m just trying to figure out how to hang a plug to conjure jajaja