Git Product home page Git Product logo

Comments (13)

plexus avatar plexus commented on July 30, 2024

I've seen this before. Are you running the latest versions of cider and cider-nrepl? Have you looked at the CIDER issue tracker?

from chestnut.

samedhi avatar samedhi commented on July 30, 2024

My cider-version and cider-nrepl are both "0.8.1". I looked at CIDER issues and I don't see one that seems to match this issue (but there are a lot of them and I may have missed it).

from chestnut.

plexus avatar plexus commented on July 30, 2024

Running cider, and cider-nrepl from master, and Weasel latest release (0.4.2), it seems that switching namespace through CIDER (C-c M-n) does not "stick", you can evaluate one expression, and after that it drops you back to the previous namespace.

When setting the namespace in the repl with (in-ns foo.bar) it works fine.

@bbatsov is this a known issue? Should we file a bug against cider or cider-nrepl or weasel...? cc @tomjakubowski

from chestnut.

bbatsov avatar bbatsov commented on July 30, 2024

Sounds like clojure-emacs/cider#909, but I have no idea what might have caused this. The suggested cause of the problem is now fixed on master. Unfortunately I don't use ClojureScript (yet) and we're a bit short on the integration tests (meaning we have none :-) ).

from chestnut.

plexus avatar plexus commented on July 30, 2024

It's definitely still an issue on master, just reproduced it using today's master of cider and cider-nrepl.

from chestnut.

bbatsov avatar bbatsov commented on July 30, 2024

Guess someone will have to investigate this further then. I can't think of any reason why this would behave differently in Clojure and ClojureScript (at least as far as CIDER is concerned).

from chestnut.

plexus avatar plexus commented on July 30, 2024

On the latest chestnut (0.7.0-SNAPSHOT) the browser-repl will start in the .core namespace, so you can access e.g. @app-state without having to change namespaces. While this does not fix this issue, it should make it less of a problem.

from chestnut.

tomjakubowski avatar tomjakubowski commented on July 30, 2024

Looks like nrepl/weasel#26 to me!

from chestnut.

plexus avatar plexus commented on July 30, 2024

This does seem to be an issue with weasel, I've marked it as an upstream issue.

If you experience this issue, please do (setq nrepl-log-messages t), then reproduce this issue. Afterwards the *nrepl-messages* buffer will contain the messages coming back from nrepl. Report these findings in nrepl/weasel#26 to help diagnose the issue.

from chestnut.

sritchie avatar sritchie commented on July 30, 2024

Still an issue for me.

from chestnut.

sritchie avatar sritchie commented on July 30, 2024

I just upgraded cider and am running into this too. I'm on Cider 0.8.2 and

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

Here's what I get when I set debug messages on:

(--->
  ns  "racehub.client.session.facebook"
  op  "eval"
  session  "02b1c99c-fc90-4b20-9c67-3de596fcd42f"
  code  "10\n"
  id  "241"
)
(<-
  id  "241"
  ns  "cljs.user"
  session  "02b1c99c-fc90-4b20-9c67-3de596fcd42f"
  value  "10"
)
(<-
  id  "241"
  session  "02b1c99c-fc90-4b20-9c67-3de596fcd42f"
  status  ("done")
)

from chestnut.

bbatsov avatar bbatsov commented on July 30, 2024

As noted in another issue - this confirms that the bug is not in CIDER. For some reason the ns of the request is not preserved in the response. Hopefully this will be fixed in weasel soon.

from chestnut.

plexus avatar plexus commented on July 30, 2024

According to the upstream issue this is fixed in latest nREPL and CIDER (from MELPA).

from chestnut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.