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

Add solution for multimethod precedence error #63

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,17 @@ Try the [portal api](./src/portal/api.cljc) with the following commands:
(p/close) ; Close the inspector when done
```

#### Known Issue & Solution

When launching Portal from a REPL, in some cases an error is thrown due
to conflicing multimethods in `clojure.pprint`. The error doesn't prevent
Portal from functioning, but can be annoying. Add this to your Portal
startup code to prevent the error.

```clojure
(prefer-method clojure.pprint/simple-dispatch clojure.lang.IPersistentMap clojure.lang.IDeref)
```

### Portal Atom

For the `jvm`, `bb` and `web` platforms, you can pull values from portal back
Expand Down