untangled

NEW CHANNEL: #fulcro
tony.kay 2017-03-04T00:44:02.005027Z

Client 0.8.0 on clojars. Adds: - Added defmutation - Fixed up namespaces that defined macros to allow for implicit macro usage by adding self-references - Added support for multiple remotes (networking option now accepts a map) - NOTE: clear-pending-remote-requests! now requires a remote parameter. - Added support for progressive load updates (nice for file upload support)

đź‘Ť 2
tony.kay 2017-03-04T00:45:12.005029Z

I've got a branch of untangled-ui with working file upload on forms. Still needs clean-up, but is working pretty well.

🦜 2
2017-03-04T00:46:12.005031Z

Awesome! I’ll check it next week

2017-03-04T00:47:35.005034Z

ahh thx....was searching for it

tony.kay 2017-03-04T00:48:23.005035Z

there's a little placeholder server here:

tony.kay 2017-03-04T00:49:31.005037Z

nothing really special there...just handles post to /file-upload (https://github.com/untangled-web/untangled-ui/blob/feature/upload/dev/clj/upload_server.clj#L128)

2017-03-04T00:50:24.005038Z

@tony.kay that’s fantastic…I’ll try it tomorrow and then implement it in my project next week...

tony.kay 2017-03-04T00:50:51.005039Z

The form support is getting close, which would make it even better.

2017-03-04T00:51:00.005040Z

for sure

tony.kay 2017-03-04T00:51:14.005041Z

so you'd get an Untangled mutation on the form, which would have already uploaded the files.

tony.kay 2017-03-04T00:51:30.005042Z

it's just a bit of cleanup away

2017-03-04T00:56:16.005043Z

I’m busy with other things....but my first impression is very promising. independent cleanup or not

2017-03-04T00:56:20.005044Z

great example!

2017-03-04T01:00:51.005047Z

I’m speechless! This is more than a simple file upload

tony.kay 2017-03-04T01:01:09.005048Z

🙂

2017-03-04T01:01:23.005049Z

I’m looking forward untangled-ui

tony.kay 2017-03-04T01:03:31.005052Z

meant to be a reusable thing. Custom rendering of progress, etc. Just a couple of mutations and a UI component. The form support makes the state management story easier

tony.kay 2017-03-04T01:04:08.005053Z

e.g. you upload the file, but the tempid remap happens when you submit the form...which allows you to separate the file upload logic from the application logic.

adambros 2017-03-04T05:51:21.005058Z

@fragamus that exception doesn’t say much other than it cant find the class Lifecycle Can you provide some code, probably just your app.system? Also are there any conflicts/warnings when you do lein deps :tree > /dev/null

tony.kay 2017-03-04T06:42:54.005060Z

@fragamus Try making sure you have a :min-lein-version in your project file of a recent lein version

tony.kay 2017-03-04T06:43:10.005061Z

at least 2.0.0...heroku defaults to something very old. I remember having problems there

tony.kay 2017-03-04T06:43:33.005062Z

maybe :min-lein-version "2.7.0"

tony.kay 2017-03-04T06:44:48.005064Z

Also, remember that your runtime classpath will not be the same as dev. I think you might have to specify a profile to get deps to tell you the right thing.

tony.kay 2017-03-04T06:47:02.005065Z

lein with-profile uberjar deps :tree

tony.kay 2017-03-04T06:47:30.005066Z

with that you might find that component is only coming in during dev

fragamus 2017-03-04T17:57:03.005071Z

:min-lein-version "2.6.1"

fragamus 2017-03-04T18:16:25.005072Z

i changed it to 2.7.0 but I got this message: Warning: This project requires Leiningen 2.7.0, but you have 2.6.1

tony.kay 2017-03-04T18:24:52.005073Z

Hm. It appears to be there. Have you tried upgrading everything to latest versions? untangled-client, om, cljsbuild, etc.? Also, try putting a hard dep on component in your deps with the latest version @fragamus

fragamus 2017-03-04T18:34:11.005075Z

Ok I shall try that later when I am near my dev box. One thing I noticed is really weird. The app crashes twice. The first time heroku brings it up it times out for port binding. There is no exception regarding SS. But there is also no output from my main which should say hello world. After that, it appears to retry and that's when the SS thing goes wrong.

tony.kay 2017-03-04T20:36:45.005076Z

you're putting in a config that has an :env.edn/PORT value, right?

tony.kay 2017-03-04T20:37:16.005077Z

sounds like you don't have the config set right for the port

fragamus 2017-03-04T22:22:20.005078Z

prod.edn

fragamus 2017-03-04T22:22:22.005079Z

{ :port :env.edn/PORT }

fragamus 2017-03-04T22:24:12.005080Z

Tony, I'm just trying to make the websockets recipe run on heroku. Maybe we can start over from that recipe.

fragamus 2017-03-04T22:25:09.005081Z

The other idea i have is digging into the runtime to really understand the exception.

fragamus 2017-03-04T22:28:58.005082Z

It looks gnarly but it seems necessary. the error message means something and with some additional instrumentation it could tell us something about what is happening.