Fork me on GitHub
#figwheel-main
<
2018-08-23
>
neural19:08:36

hello all!! is lein new figwheel-main new.app working???

bhauman19:08:15

you having problems?

bhauman19:08:26

@neural.works.com try refreshing the browser after it opens

bhauman19:08:33

I just saw your other comments

neural19:08:35

yup. Doing that and `lein fig:build' but should i get prompt a repl

bhauman19:08:51

yes you should

neural19:08:21

refreshing didnt work...

neural19:08:35

inspecting js console seems ok!

bhauman19:08:12

is there anything strange about your system?

bhauman19:08:18

ie what system are you on?

neural19:08:41

šŸ˜‚ besides the system is strange for it self??

neural19:08:09

linux - stumpwm - emacs - lein

bhauman19:08:37

and you didnā€™t modify the generated project?

bhauman19:08:02

does it say connected in the page that pops up?

neural19:08:48

nop just plain lein new figwheel-main new... the browser connection is ok... the terminal doesnot go to prompt repl...

bhauman19:08:20

does it have the Green connected next to the CLJS symbol?

neural19:08:22

it even reload on save

bhauman19:08:32

ok its working

neural19:08:41

yup all lights green!

bhauman19:08:52

so it looks like you are having a terminal problem

bhauman19:08:14

your shell is fighting with rebel-readline or something

neural19:08:52

i even tried with and without rebel... both didnt work

bhauman19:08:00

Iā€™d spin up a regular bash shell and give it a try

neural01:08:34

Hi Bruce. What do you mean by "strange tty configs"? what do you know that can affect this behaviour? now i know that it is related!

neural01:08:47

lein repl works fine!

bhauman19:08:15

and if you have any strange tty configs, or if you are using screen, or tmux stop

neural19:08:33

my system works with figwheel but not figwheel-main

bhauman19:08:35

hmmm ok try this

bhauman19:08:56

in the file that you are editing and reload reloading,

bhauman19:08:16

add a line that says (prn 456) and save the file

bhauman19:08:26

and see if it prints in the terminal

neural19:08:35

you mean in the source .cljs

bhauman19:08:25

it really sounds like you arenā€™t getting any printed output to your terminal, which sounds very odd

bhauman19:08:52

Iā€™d definitely remove rebel-readline from the dependencies and leave it that way

bhauman19:08:04

until things start working

neural19:08:09

no it didnt print but give success compiling .js

bhauman19:08:22

yes thats what I thought

bhauman19:08:46

so try that again without rebel-readline

neural19:08:50

this test was whithout rebel-readline

bhauman19:08:50

@neural.works.com this is strange behavior for sure and its ether that the REPL isnā€™t making a connection in the code somewhere or there is an output problem in general.

bhauman19:08:04

Do you have rebel-readline in your profiles.clj?

neural19:08:13

without rebel-readline!!

bhauman19:08:33

profiles.clj!!!!

bhauman19:08:40

not project.clj šŸ™‚

bhauman19:08:22

its going to be difficult to debug this without being on your system

bhauman19:08:06

I would suggest you generate a new project without the name new and give it a try, but its working on my system and a lot of other folks systems, so Iā€™m a bit suspect.

neural19:08:08

i mv my profiles.clj in case... same thing...

neural19:08:15

how i post a image here??

bhauman19:08:27

the plus sign <-

bhauman19:08:41

or just drag and drop it

bhauman19:08:58

and what version of java are you using?

bhauman19:08:49

actually Iā€™m almost positive that your shell is somehow hiding the output

bhauman19:08:30

yep I get the situation, Iā€™m sure that your shell simply isnā€™t printing the output

bhauman19:08:00

which is really hard for me to debug because my clojure code prints the output

neural19:08:10

openjdk version "1.8.0_171" OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-1~deb9u1-b11) OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)

neural19:08:41

yeah its strange...

bhauman19:08:07

or you may have a version that is running in the background somewhere and the browser is connecting to it instead???

bhauman19:08:28

but that really shouldnā€™t be possible

bhauman19:08:34

yeah thatā€™s not possible

bhauman19:08:23

did you try to enter 1 where the repl prompt should be?

bhauman19:08:02

and perhaps try (js/alert ā€œhiā€) where the prompt should be

bhauman19:08:10

and see if it creates the alert

neural19:08:14

@bhauman yup...tried nil, () (+ 1 1) (js/alert "asd") (.log js/console "hi")

bhauman19:08:47

and doesnā€™t affect the browser at all

neural19:08:56

made a new lein new figwheel-main app.core -- --reagent

neural19:08:25

it works on reload but no repl

neural19:08:38

before the (prn 654) now is printing on js/console... did not see that

bhauman20:08:06

well Iā€™m kinda at the end of things to try here, the only other thing is that perhaps an encoding problem is corrupting the websocket url

bhauman20:08:22

can you show me the the websocket url from the console?

bhauman20:08:42

should look like:

neural20:08:09

i made a lein upgrade this morning...:thinking_face:

bhauman20:08:03

yeah Iā€™m stumped and I gotta go eat

neural20:08:42

man... tks!!! great job!!!

neural20:08:57

figwheel is working though!!

dnolen20:08:51

whatā€™s the config to disable launching the browser?

defn21:08:37

@dnolen my figwheel-main.edn has :open-url false