Giter VIP home page Giter VIP logo

Comments (9)

alexander-yakushev avatar alexander-yakushev commented on June 13, 2024

I thought the exceptions from Compliment are handled, as per #35. CC: @bbatsov

from compliment.

bbatsov avatar bbatsov commented on June 13, 2024

I thought the exceptions from Compliment are handled, as per #35. CC: @bbatsov

They are - you get a stracktrace in your REPL buffer. :-) Obviously it'd be better if the users weren't exposed to any such errors.

from compliment.

alexander-yakushev avatar alexander-yakushev commented on June 13, 2024

So, as I already told in #35, it's no problem for me to wrap every API function in generic try/catch. But then, by silently swallowing all exceptions, I leave no options for user library (like cider-nrepl) to handle it differently. I think the try/catch block should wrap completions and documentation on cider-nrepl side, not Compliment side.

from compliment.

expez avatar expez commented on June 13, 2024

I think the try/catch block should wrap completions and documentation on cider-nrepl side, not Compliment side.

I think we all agree on this. It just hasn't been done yet.

from compliment.

bbatsov avatar bbatsov commented on June 13, 2024

I'm not saying we should swallow exceptions in compiment - I'm saying we should handle expected problems gracefully - e.g. I don't think anyone should expect a NPE from java.util.concurrent.ConcurrentHashMap.get. Compliment might raise some more specific exception and cider can handle it.

from compliment.

alexander-yakushev avatar alexander-yakushev commented on June 13, 2024

OK, agreed.

Looking at the stacktrace I can tell that this happens when candidates function of ns-mappings source gets null as ns argument. But the top-level completions should never pass a null namespace to the underlying functions. I'll need a reproducible case to weed out this bug.

from compliment.

expez avatar expez commented on June 13, 2024

I don't have time to investigate further. My biggest gripe was that I was prevented from typing when each keypress changed focus to the repl so I could look at the stacktrace.

from compliment.

alexander-yakushev avatar alexander-yakushev commented on June 13, 2024

No need to close this yet. Someone might bump into this issue and have more insights.

from compliment.

alexander-yakushev avatar alexander-yakushev commented on June 13, 2024

I suppose the issue is probably fixed now. Compliment doesn't seem to throw this exception anymore, and CIDER has a exception muffling mechanism. Closing.

from compliment.

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.