Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set cookie #5

Open
zh217 opened this issue Jul 18, 2013 · 6 comments
Open

Can't set cookie #5

zh217 opened this issue Jul 18, 2013 · 6 comments

Comments

@zh217
Copy link

zh217 commented Jul 18, 2013

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"]]
@ohpauleez
Copy link
Member

I'm just seeing this now - for some reason GitHub emails weren't showing up in my inbox

@ktsujister
Copy link

Is there updates to this issue?
I'm getting similar error.
I'm using below versions:

[org.clojure/clojurescript "0.0-2277"]

@devth
Copy link

devth commented Mar 16, 2015

I'm seeing the same issue.

[org.clojure/clojurescript "0.0-2814"]

@bilus
Copy link

bilus commented Apr 23, 2015

Same here plus probably a related issue in #8

@bilus
Copy link

bilus commented Apr 23, 2015

Please see https://github.com/magomimmo/shoreleave-browser/tree/0.3.1 It appears to fix at least #8.

To use in your project: [org.clojars.magomimmo/shoreleave-browser "0.3.1"]

If you use another library that depends on shoreleave-browser, use :exclusions e.g.

[org.clojars.magomimmo/shoreleave-browser "0.3.1"]
[shoreleave/shoreleave-remote "0.3.0" :exclusions [shoreleave/shoreleave-core]]

Would be nice to have it integrated into the orig but looking at how much time has passed there's not much chance for that.

@magomimmo
Copy link

just saw now as the other issue....
you can also use

[org.clojars.magomimmo/shoreleave-remote "0.3.1"] and [org.clojars.magomimmo/shoreleave-core "0.3.1"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants