untangled 2016-12-28

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.

@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?

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

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

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

That's usually it in this kind of problem

@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?

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

let me look

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

which demo is that?

on which branch?

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

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

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

# lein run -m clojure.main
Clojure 1.8.0
user=> (start-figwheel)
STARTING FIGWHEEL ON BUILDS:  nil
Figwheel: Starting server at 
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.

I'm using home brew for lein, I think

lein run -m clojure.main

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

should be the same

master, if anything, should be more stable

compiling...

hm. strange

(reset-autobuild)

well, that looks better

did you fork or clone the repo?

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

wondering if you had munged a file

and switching branches fixed it, perhaps

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

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'.

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

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).

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

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

well, it is working now it seems

thanks i will spin up the sever and see

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

yes I am on localhost:8080

where are you seeing this error?

in chrome developer view

I thought it was failing to compile

console output

try firefox

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

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

React Developer Tools 0.15.4

It comes right up in firefox

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

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

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.

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

for clj data structure viewing

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

look in user.cljs

comment out the devtools lines

I use nothing but chrome and it is fine

anyhow. glad you got it working

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

even with source tracing

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

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.

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

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

I guess we have all learned something...

Don't be a newb/idiot

๐Ÿ˜… 1

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"

the disable caching might have saved you