Skip to content

Exception at startup wrt namespace #720

New issue

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

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

Already on GitHub? # to your account

Closed
abhi18av opened this issue Oct 31, 2018 · 11 comments
Closed

Exception at startup wrt namespace #720

abhi18av opened this issue Oct 31, 2018 · 11 comments

Comments

@abhi18av
Copy link

Hi boot-clj team,

Recently I've started to come across the following error on global boot repl

Abhinavs-MacBook-Pro:~ eklavya$ boot repl
nREPL server started on port 53091 on host 127.0.0.1 - nrepl://127.0.0.1:53091
java.lang.Exception: No namespace: reply.eval-modes.nrepl found
REPL-y 0.4.1, nREPL 0.4.4
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_172-b11
        Exit: Control+D or (exit) or (quit)
    Commands: (user/help)
        Docs: (doc function-name-here)
              (find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
      Source: (source function-name-here)
     Javadoc: (javadoc java-object-or-class-here)
    Examples from clojuredocs.org: [clojuredocs or cdoc]
              (user/clojuredocs name-here)
              (user/clojuredocs "ns-here" "name-here")
boot.user=>

Please let me know how to resolve this.

@martinklepsch
Copy link
Member

Hey @abhi18av 👋 This looks like a configuration issue. Could you share your configuration files as described in the issue template? Thanks!

@abhi18av
Copy link
Author

abhi18av commented Nov 3, 2018

Whoops, let me correct my mistake here.

  • Behaviour of boot repl
Abhinavs-MacBook-Pro: eklavya $ boot repl
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
nREPL server started on port 53048 on host 127.0.0.1 - nrepl://127.0.0.1:53048
java.lang.Exception: No namespace: reply.eval-modes.nrepl found
REPL-y 0.4.1, nREPL 0.4.4
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_172-b11
        Exit: Control+D or (exit) or (quit)
    Commands: (user/help)
        Docs: (doc function-name-here)
              (find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
      Source: (source function-name-here)
     Javadoc: (javadoc java-object-or-class-here)
    Examples from clojuredocs.org: [clojuredocs or cdoc]
              (user/clojuredocs name-here)
              (user/clojuredocs "ns-here" "name-here")
boot.user=> 



  • OS
Abhinavs-MacBook-Pro:~ eklavya$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.13.4
BuildVersion:	17E199


  • Java version
Abhinavs-MacBook-Pro: eklavya$ java -version
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)
Abhinavs-MacBook-Pro:list_of_files eklavya$ 

  • Contents of profile.boot
Abhinavs-MacBook-Pro:~ eklavya$ cat ~/.boot/profile.boot 
Abhinavs-MacBook-Pro:~ eklavya$ 

@martinklepsch
Copy link
Member

@abhi18av Do you have a local build.boot file? And can you also provide the output of boot -V? Thanks

@abhi18av
Copy link
Author

abhi18av commented Nov 4, 2018

@martinklepsch , no I'm just trying to have a bare minimal repl for clojure ( apart from clj etc ) so no, I don't have any build.boot in the directory.

Also, here's the output you requested

hinavs-MacBook-Pro:~ eklavya$ boot -V
#http://boot-clj.com
#Sun Nov 04 20:59:00 IST 2018
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.8.0
BOOT_VERSION=2.8.2


Abhinavs-MacBook-Pro:~ eklavya$ boot repl
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
nREPL server started on port 61605 on host 127.0.0.1 - nrepl://127.0.0.1:61605
java.lang.Exception: No namespace: reply.eval-modes.nrepl found
REPL-y 0.4.1, nREPL 0.4.4
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_172-b11
        Exit: Control+D or (exit) or (quit)
    Commands: (user/help)
        Docs: (doc function-name-here)
              (find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
      Source: (source function-name-here)
     Javadoc: (javadoc java-object-or-class-here)
    Examples from clojuredocs.org: [clojuredocs or cdoc]
              (user/clojuredocs name-here)
              (user/clojuredocs "ns-here" "name-here")

@martinklepsch
Copy link
Member

martinklepsch commented Nov 4, 2018

Can you try with version 2.7.2 just to diagnose if the issue might be related to your particular version? If you use Bash or similar:

BOOT_VERSION=2.7.2 boot repl

@abhi18av
Copy link
Author

abhi18av commented Nov 4, 2018

@martinklepsch , we're on right track here.

The behavior is perfectly normal for this version.

Abhinavs-MacBook-Pro:~ eklavya$ BOOT_VERSION=2.7.2 boot repl
nREPL server started on port 62021 on host 127.0.0.1 - nrepl://127.0.0.1:62021
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_172-b11
        Exit: Control+D or (exit) or (quit)
    Commands: (user/help)
        Docs: (doc function-name-here)
              (find-doc "part-of-name-here")
Find by Name: (find-name "part-of-name-here")
      Source: (source function-name-here)
     Javadoc: (javadoc java-object-or-class-here)
    Examples from clojuredocs.org: [clojuredocs or cdoc]
              (user/clojuredocs name-here)
              (user/clojuredocs "ns-here" "name-here")
boot.user=> 

@bbatsov
Copy link
Contributor

bbatsov commented Dec 28, 2018

@abhi18av The warning is harmless. It comes from a broken version of REPL-y - adding the most recent version somewhere in your project will suppress it, but everything will work perfectly fine in spite of it. I guess I should fire away some PR bumping the version of REPL-y and nREPL bundled with boot.

@bbatsov
Copy link
Contributor

bbatsov commented Dec 28, 2018

@thedavidmeister
Copy link

dropping from boot 2.8.2 to 2.7.2 with latest deps of everything else according to boot show -u fixed this for me

@bbatsov
Copy link
Contributor

bbatsov commented Jan 15, 2019

There's an open PR to update the bundled REPL-y #724

The downgrade you suggest will break clients that depend on a recent nREPL version, so I think it's a bad idea, considering the error is relatively harmless. I'm guessing the overriding the REPL-y version locally should work ok as well.

@burn2delete
Copy link
Contributor

closing as v2.8.3 is out with updated deps

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

No branches or pull requests

5 participants