Fork me on GitHub
#chlorine
<
2020-11-04
>
fabrao01:11:22

hello all, I started shadow-cljs with pedestal integration, so, the web server is not in shadow-cljs. What is happen if I use somthing like this? I tried to use embded connection but it fails

fabrao01:11:57

the webserver is stared in clj session

seancorfield02:11:48

Sounds like you'll need to connect to a socket REPL in the web server then @fabrao

seancorfield02:11:13

It's just a JVM option (I have socket REPL under a :socket alias for that so I can combine it with anything else).

fabrao02:11:42

Hello Sean, I did it into clojure session, but in clojurescript repl for connect embeded is not working

fabrao02:11:14

I could connect to shadow-cljs repl

fabrao02:11:28

Shadow Socket-REPL was given an wrong token. Please, be sure you have the Shadow-CLJS compiler running and watching some build-id <- returning this

fabrao02:11:11

@seancorfield so, It seems that something is worng

seancorfield02:11:51

Ah, I don't know anything about ClojureScript, sorry.

fabrao02:11:44

anyway, thanks for your time

mauricio.szabo12:11:58

@fabrao the best thing you can do is to run shadow over lein or deps, so a single socket-repl is used to connect both to the pedestal and clojurescript

mauricio.szabo12:11:33

So then, when you connect to the REPL on lein or deps, shadow will also be present

William Skinner18:11:07

Does anyone here use clj-kondo in Atom? I can't get it working.

seancorfield19:11:27

I use it all the time @skinner89 What's up?

seancorfield19:11:07

Do you get any errors/alerts in the editor when it is trying to lint your code?

seancorfield19:11:54

Have you verified you can run it from the command-line, and prep'd your clj-kondo cache for your project per the clj-kondo README?

William Skinner19:11:58

I don't get any errors or alerts and no linting

William Skinner19:11:11

I've run it from the command line. Missed the cache step

seancorfield19:11:45

macOS? Linux? The Atom package for the clj-kondo linter needs to be able to find the executable on the path. How/where did you install the command-line executable?

William Skinner19:11:53

Linux ubuntu. It's on my user's path. Atom is running as my user.

William Skinner19:11:47

I created the cache but I'm still seeing nothing in atom

mauricio.szabo19:11:16

@skinner89 did you install the linter packages on Atom?

William Skinner19:11:34

just linter and linter-kondo

borkdude19:11:57

The cache is not necessary for linting, you will just better linting :)

borkdude19:11:45

@skinner89 How did you install it, via a package manager?

William Skinner19:11:09

no downloaded it and put it on my path

borkdude19:11:25

maybe Atom has a different idea of PATH than your shell?

borkdude19:11:56

is it possible to start atom from your shell, similar to how you can start vscode from the shell using $ code?

William Skinner19:11:24

Yeah that's possible

William Skinner19:11:35

let me just install via apt

Ian Fernandez19:11:40

you can inspect env path that the program runs by doing bash -X atom

Ian Fernandez19:11:56

to see if is in the path

William Skinner20:11:39

I use zsh but I just switched over to bash to try that. I'm getting bash: -X: invalid option . When ran bash atom I was promoted to install linter-ui-default. Still not seeing any linter messages

William Skinner20:11:39

linter-ui-default installed but was disabled from a previous attempt at setting this up.

William Skinner20:11:54

seeing linter ui

William Skinner20:11:57

I appreciate the help