untangled

NEW CHANNEL: #fulcro
ianchow 2016-12-28T01:52:19.001172Z

thanks for the clarification tony. i had the wrong idea that each df/load resulted in separate network calls. if the loads are batched and processed in order, then i probably wonโ€™t have to use df/load-data anymore.

fragamus 2016-12-28T06:39:30.001178Z

@tony.kay I ditched intellij and made sure I was running a recent version of lein. I deleted my .m2 I still get the same errors. I really want to use clojure / om-next / untangled; I feel not so great bugging you guys with this basic stuff. Anyone have any suggestions?

fragamus 2016-12-28T06:58:12.001180Z

I am running it exactly as recommended in the README.md

fragamus 2016-12-28T07:18:10.001181Z

lein -v Leiningen 2.7.1 on Java 1.8.0_112 Java HotSpot(TM) 64-Bit Server VM

adambros 2016-12-28T07:44:34.001182Z

@fragamus Try removing your ~/.lein/profiles.clj

adambros 2016-12-28T07:44:51.001183Z

That's usually it in this kind of problem

tony.kay 2016-12-28T14:52:23.001189Z

@fragamus yes, what @adambros said. That is my #1 suspect as well. If that doesnโ€™t work, what do you see from lein deps :tree?

fragamus 2016-12-28T17:58:38.001195Z

I do not have a ~/.lein/profiles.clj My lein deps :tree appears in my 10:36 PM post above.

tony.kay 2016-12-28T17:58:50.001196Z

let me look

tony.kay 2016-12-28T18:00:27.001197Z

I don't see a top-level clojure or clojurescript dependency. What is your project.clj look like?

tony.kay 2016-12-28T18:02:44.001198Z

@fragamus ^^^

tony.kay 2016-12-28T18:03:58.001200Z

which demo is that?

tony.kay 2016-12-28T18:04:03.001201Z

on which branch?

tony.kay 2016-12-28T18:05:37.001203Z

on develop, that recipe works for me:

# lein --version
Leiningen 2.7.0 on Java 1.8.0_112 Java HotSpot(TM) 64-Bit Server VM

fragamus 2016-12-28T18:05:41.001204Z

My environment must be wrong but I set up leiningen the way it said to do on their web page.

tony.kay 2016-12-28T18:05:52.001205Z

pc or mac?

fragamus 2016-12-28T18:06:09.001206Z

lein --version Leiningen 2.7.1 on Java 1.8.0_112 Java HotSpot(TM) 64-Bit Server VM

fragamus 2016-12-28T18:06:11.001207Z

mac

tony.kay 2016-12-28T18:06:25.001208Z

# lein run -m clojure.main
Clojure 1.8.0
user=> (start-figwheel)
STARTING FIGWHEEL ON BUILDS:  nil
Figwheel: Starting server at <http://localhost:3449>
Figwheel: Watching build - dev
Compiling "resources/public/js/compiled/app.js" from ["src/client" "dev/client"]...
Successfully compiled "resources/public/js/compiled/app.js" in 11.099 seconds.

tony.kay 2016-12-28T18:06:57.001209Z

I'm using home brew for lein, I think

fragamus 2016-12-28T18:07:08.001210Z

lein run -m clojure.main

fragamus 2016-12-28T18:10:00.001211Z

hang on... i was on branch master... switching...

tony.kay 2016-12-28T18:10:08.001212Z

should be the same

tony.kay 2016-12-28T18:10:19.001213Z

master, if anything, should be more stable

fragamus 2016-12-28T18:12:48.001214Z

compiling...

tony.kay 2016-12-28T18:14:35.001216Z

hm. strange

tony.kay 2016-12-28T18:14:43.001217Z

(reset-autobuild)

tony.kay 2016-12-28T18:16:39.001219Z

well, that looks better

tony.kay 2016-12-28T18:16:47.001220Z

did you fork or clone the repo?

tony.kay 2016-12-28T18:18:15.001221Z

actually, at the moment master and develop are identical git checkout develop; git diff master

tony.kay 2016-12-28T18:18:49.001222Z

wondering if you had munged a file

tony.kay 2016-12-28T18:18:57.001223Z

and switching branches fixed it, perhaps

fragamus 2016-12-28T18:19:57.001224Z

tony... not sure i think mi cloned this time

fragamus 2016-12-28T18:20:00.001225Z

git checkout develop; git diff master Already on 'develop' Your branch is up-to-date with 'origin/develop'.git checkout develop; git diff master Already on 'develop' Your branch is up-to-date with 'origin/develop'.git checkout develop; git diff master Already on 'develop' Your branch is up-to-date with 'origin/develop'.

tony.kay 2016-12-28T18:21:06.001226Z

well, my only guess at this point is you had a munged file. Looks like your two branches are the same too

tony.kay 2016-12-28T18:21:45.001227Z

A handy command to know to make sure you're at a clean slate (assuming all code changes are checked in):

git clean -xfd
wipes out everything not tracked (including IDE control files).

tony.kay 2016-12-28T18:22:10.001228Z

git checkout -- .
is a nice one for throwing away changes.

fragamus 2016-12-28T18:22:22.001229Z

i was doing that... fresh checkout and xfd all of that

tony.kay 2016-12-28T18:22:27.001230Z

weird

tony.kay 2016-12-28T18:22:35.001231Z

well, it is working now it seems

fragamus 2016-12-28T18:22:51.001232Z

thanks i will spin up the sever and see

tony.kay 2016-12-28T18:25:58.001233Z

k

tony.kay 2016-12-28T18:26:41.001235Z

ok, now make sure you use localhost:8080 ๐Ÿ˜‰

fragamus 2016-12-28T18:29:24.001237Z

yes I am on localhost:8080

tony.kay 2016-12-28T18:29:31.001238Z

where are you seeing this error?

fragamus 2016-12-28T18:30:04.001239Z

in chrome developer view

tony.kay 2016-12-28T18:30:10.001240Z

OH

tony.kay 2016-12-28T18:30:16.001241Z

stand by

tony.kay 2016-12-28T18:30:22.001242Z

I thought it was failing to compile

fragamus 2016-12-28T18:30:50.001243Z

console output

tony.kay 2016-12-28T18:31:00.001244Z

try firefox

tony.kay 2016-12-28T18:31:04.001245Z

or safari

fragamus 2016-12-28T18:31:05.001246Z

OK!!!

tony.kay 2016-12-28T18:31:50.001247Z

guessing you have some kind of chrome extension that is borking you

fragamus 2016-12-28T18:34:07.001248Z

haha

tony.kay 2016-12-28T18:34:19.001249Z

yeah. Some kind of clj/cljs plugin I'm guessing?

fragamus 2016-12-28T18:34:27.001250Z

i sure do

fragamus 2016-12-28T18:37:03.001251Z

React Developer Tools 0.15.4

fragamus 2016-12-28T18:39:45.001252Z

It comes right up in firefox

fragamus 2016-12-28T18:40:11.001253Z

Now BIG thank you. Apologies to the channel for this madness.

tony.kay 2016-12-28T18:40:32.001254Z

no problem. Let me know when you verify which plugin it was. I'm surprised the React one is to blame

fragamus 2016-12-28T18:47:42.001255Z

i fragged all my extensions one by one, trying it again in a new tab each time. It continued to fail. then i quit and restarted chrome and it still failed.

tony.kay 2016-12-28T18:48:12.001256Z

wow. We do push an install of devtools through the network

tony.kay 2016-12-28T18:48:19.001257Z

for clj data structure viewing

fragamus 2016-12-28T18:48:26.001258Z

so we still have a mystery but if no one else is experiencing it i say we drop it. I will use firefox.

tony.kay 2016-12-28T18:48:41.001259Z

look in user.cljs

tony.kay 2016-12-28T18:48:48.001260Z

comment out the devtools lines

tony.kay 2016-12-28T18:49:02.001261Z

I use nothing but chrome and it is fine

tony.kay 2016-12-28T18:49:30.001262Z

anyhow. glad you got it working

tony.kay 2016-12-28T18:49:45.001263Z

Chrome is better with those devtools, as debugging shows data structures more nicely

tony.kay 2016-12-28T18:49:55.001264Z

even with source tracing

fragamus 2016-12-28T18:52:07.001265Z

well clearly i have done something to my environment, but I don't know what I did

fragamus 2016-12-28T18:56:59.001266Z

i deleted all mention of devtools in user.clj and then i did (reset-autobuild) and I created a new tab in chrome but the error persists. BUT... no worries I am up and running and would rather code than solve this weirdness.

fragamus 2016-12-28T19:01:50.001267Z

I ran an incognito window in chrome and tried it... works fine.

fragamus 2016-12-28T19:03:14.001268Z

OH I did a control-reload page and it works now in regular chrome

fragamus 2016-12-28T19:04:07.001269Z

I guess we have all learned something...

fragamus 2016-12-28T19:04:19.001270Z

Don't be a newb/idiot

๐Ÿ˜… 1
tony.kay 2016-12-28T19:04:55.001271Z

๐Ÿ˜„

tony.kay 2016-12-28T19:05:30.001272Z

well, if you figure out what kind of cached weirdness you had, let me know. OH. In chrome devtools options: I "enable custom formatters" and "disable caching when devtools is open"

tony.kay 2016-12-28T19:05:41.001273Z

the disable caching might have saved you