Fork me on GitHub
#hoplon
<
2017-01-23
>
candera00:01:07

@flyboarder Thanks! I will experiment along those lines. The part that’s confusing me is that although things work fine when I run via electron target/, once it gets rolled up into a .app via electron-packager, it doesn’t, even though all the code appears to be where I think it should be, in the Resources/app.asar. I have tried with @martinklepsch‘s electron-and-clojurescript sample as well (https://github.com/martinklepsch/electron-and-clojurescript) to see if it was something with my setup, but I get the same result.

flyboarder00:01:27

@candera: I'll be extending boot-electron to package things for us probably come February

flyboarder00:01:02

Many utility Node packages could be better rewritten as cljs

candera01:01:11

That would be handy, and I probably don't really need it before then, but it's bugging me now so I'll probably have to figure it out to keep from going nuts :)

candera01:01:21

OK, got @martinklepsch’s electron-and-clojurescript example working with simple/advanced compilation. Could have sworn I tried that before, but given that I had to add a (target) task, clearly that was not the case. 🙂 I should be able to use that as a template for my more complicated app - thanks for the help @flyboarder !

flyboarder01:01:34

@candera: if you get a good packaging process down, feel free to open an issue and document it on boot-electron repo

flyboarder01:01:48

Would help for the future

candera01:01:38

OK, I can do that. Traveling this week, which may mean either more or less time to do that, but I will attempt. You want it as an issue? I’m not actually using boot-electron yet.

thedavidmeister01:01:42

hmmm, anyone know how i can get something like startOffset to work with svg?

thedavidmeister01:01:55

it's lowercasing to startoffset

flyboarder04:01:05

@candera: yeah an issue would be nice, I'd like boot-electron to be able to build, package and launch electron apps

candera08:01:56

@flyboarder Issues don’t seem to be enabled for your project.

thedavidmeister09:01:24

@micha @jumblerg any idea why this started throwing errors in my tests when i bumped hoplon to alpha17?

thedavidmeister09:01:27

(when (not (:static attrs))
        (remove-all-kids! elem)
        (add-children! elem kids)))))

thedavidmeister09:01:20

i set :static to true on my body tag to make the error go away, not sure what that means?

thedavidmeister09:01:38

error looks like this:

thedavidmeister09:01:42

ERROR in (??current-page) ([email protected]:262:6)
Uncaught exception, not in assertion.
expected: nil
  actual: #object[TypeError TypeError: null is not an object (evaluating 'this$.hoplonKids = null')]

thedavidmeister10:01:15

hmmm, setting :static to true on the body tag seems to break the app 😕

thedavidmeister10:01:20

(prn (.-outerHTML js/document)) appears to be nil in phantomjs, so i'd say it's not possible to "remove kids" from the body in that case