Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

defrecord in instarepl produces warnings #10

Open
cldwalker opened this issue Jan 1, 2016 · 0 comments
Open

defrecord in instarepl produces warnings #10

cldwalker opened this issue Jan 1, 2016 · 0 comments

Comments

@cldwalker
Copy link
Member

From LightTable/LightTable#934:

When I eval or Instarepl a defrecord in a .clj:

  (defrecord Test [])

I get a bunch of warnings in the console:

  WARNING: Symbol IHash is not a protocol at line 4 
  WARNING: Symbol ILookup is not a protocol at line 4 
  WARNING: Symbol IAssociative is not a protocol at line 4 
  WARNING: Symbol IPrintWithWriter is not a protocol at line 4 
  WARNING: Symbol IRecord is not a protocol at line 4 
  WARNING: Symbol ICollection is not a protocol at line 4 
  WARNING: Symbol ISeqable is not a protocol at line 4 
  WARNING: Symbol ICounted is not a protocol at line 4 
  WARNING: Symbol IEquiv is not a protocol at line 4 
  WARNING: Symbol IWithMeta is not a protocol at line 4 
  WARNING: Symbol IMeta is not a protocol at line 4 
  WARNING: Symbol IMap is not a protocol at line 4 

This isn't a critical issue, but since it fills the console every time I reevaluate the file it's a bit annoying.

This may be down to my limited understanding of records, protocols, and the warning system. I have not seen this behavior with other REPLs, though I suppose they may be suppressing the warning. I've looked for any information on this and no one else seems to have mentioned this exact issue.

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

No branches or pull requests

1 participant