shoreleave / shoreleave-browser Goto Github PK
View Code? Open in Web Editor NEWA smarter client-side with ClojureScript : Shoreleave's enhanced browser utilities
License: Eclipse Public License 1.0
A smarter client-side with ClojureScript : Shoreleave's enhanced browser utilities
License: Eclipse Public License 1.0
Was trying to use cookies
(assoc! cookies :a "b")
got back the following
"Error evaluating:" (assoc! cookies :a "b") :as "cljs.core.assoc_BANG_.call(null,shoreleave.browser.cookies.cookies,\"\\uFDD0:a\",\"b\")"
#<Error: No protocol method ITransientAssociative.-assoc! defined for type object: [object Object]>
@http://localhost:7000/js/test.js:3931
_assoc_BANG_@http://localhost:7000/js/test.js:3934
assoc_BANG_@http://localhost:7000/js/test.js:9699
eval code
eval@[native code]
@http://localhost:7000/js/test.js:29700
evaluate_javascript@http://localhost:7000/js/test.js:29713
@http://localhost:7000/js/test.js:29778
deliver@http://localhost:7000/js/test.js:27771
deliver_@http://localhost:7000/js/test.js:29133
messageReceived_@http://localhost:7000/js/test.js:28554
handleEvent@http://localhost:7000/js/test.js:22470
fireListener@http://localhost:7000/js/test.js:22808
handleBrowserEvent_@http://localhost:7000/js/test.js:22923
@http://localhost:7000/js/test.js:22556
[native code]
nil
I have no idea what could be wrong ...
I'm using the following versions
:dependencies [[org.clojure/clojure "1.5.1"]
[shoreleave/shoreleave-browser "0.3.0"]]
:plugins [[lein-cljsbuild "0.3.2"]]
In the latest and greatest you have turned-on the local storage support again, which is great,
but I get those:
ERROR - required "goog.storage.mechanism.HTML5LocalStorage" namespace never provided
goog.require('goog.storage.mechanism.HTML5LocalStorage')
When I peek in the generated main-debug.js, then there is no code included/provided for goog.storage.mechanism.HTML5LocalStorage.
Believe this issue has been mentioned before.
Kind of puzzling... as your code seems pretty innocent (?)
-FrankS.
I can't use any shoreleave project that uses browser (eg, remote) until localStorage is properly wrapped OR you can provide your super secret home-made google closure jar :-)
I know you fixed it in pubsub, but now that i'm trying to use remote (which pulls in browser), I'm back where I started.
Help!
WARNING: Bad method signature in protocol implementation, ITransientAssociative -assoc! does not declare arity 5 at line 27 file:/Users/martinb/.m2/repository/shoreleave/shoreleave-browser/0.3.0/shoreleave-browser-0.3.0.jar!/shoreleave/browser/cookies.cljs
WARNING: Bad method signature in protocol implementation, ITransientMap -dissoc! does not declare arity 4 at line 27 file:/Users/martinb/.m2/repository/shoreleave/shoreleave-browser/0.3.0/shoreleave-browser-0.3.0.jar!/shoreleave/browser/cookies.cljs
WARNING: Bad method signature in protocol implementation, ITransientAssociative -assoc! does not declare arity 5 at line 27 resources/public/js/out/shoreleave/browser/cookies.cljs
WARNING: Bad method signature in protocol implementation, ITransientMap -dissoc! does not declare arity 4 at line 27 resources/public/js/out/shoreleave/browser/cookies.cljs
Isn't that an inconsistency ?
Regards,
Geraldo
In Safari and Opera (but not in Chrome or Firefox), i get this error:
window.BlobBuilder = shoreleave.browser.blob.blobber.call(null);
shoreleave.browser.blob.blob_builder = function blob_builder() {
return new window.BlobBuilder
};
// here:
window.BlobBuilder.prototype.cljs$core$ITransientCollection$ = true;
The exception I get is: 'undefined' is not an object (evaluating 'window.BlobBuilder.prototype')
.
I am not using blobs in my code, so this is a whitespace-compilation-only issue. It means that I can not debug in Safari or Opera.
Please fix this :-)
For context, here are the cljs portions of my deps tree (using leiningen 2 preview10):
$ lein deps :tree
[enfocus "1.0.0-alpha3"]
[domina "1.0.0" :exclusions [[org.clojure/clojurescript]]]
[goog-jar "1.0.0"]
[shoreleave/shoreleave-pubsub "0.2.2"]
[shoreleave/shoreleave-browser "0.2.2"]
[shoreleave/shoreleave-core "0.2.2"]
[shoreleave/shoreleave-worker "0.2.2"]
[shoreleave/shoreleave-remote "0.2.2"]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.