Coder Social home page Coder Social logo

Comments (11)

Souvikns avatar Souvikns commented on July 28, 2024 1

There is a bug, CLI is breaking in production, it runs fine but shows a warning, you can look into #192. We are migrating to a new version of oclif #203. Can you merge this branch and try once.

Let me know if this problem is resolved.

from cli.

github-actions avatar github-actions commented on July 28, 2024

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

from cli.

derberg avatar derberg commented on July 28, 2024

yup, still needed, we use https://www.npmjs.com/package/levenshtein-edit-distance already in generator -> https://github.com/asyncapi/generator/blob/master/lib/templateConfigValidator.js#L67

it is pretty nifty and should not be difficult to add I think

from cli.

ron-debajyoti avatar ron-debajyoti commented on July 28, 2024

Hey, can I take this up?

from cli.

derberg avatar derberg commented on July 28, 2024

@ron-debajyoti definitely 👍🏼

from cli.

ron-debajyoti avatar ron-debajyoti commented on July 28, 2024

Hi @Souvikns ,
I was exploring to fix the issue, but I can't really figure out where do I catch the mismatch of the commands.

For example :

  • when I try to run asyncapi validate wrongCommand or a command where I use one of the supported commands but a wrong input parameter, then the catch function in src/base.ts catches it, but
  • when I try to run asyncapi invalidCommand, I don't see the above catch function in src/base.ts catching it. I think oclif directly handles there isn't such a class defined under src/commands. How do I handle such cases?

Please correct me if I got something wrong.

from cli.

Souvikns avatar Souvikns commented on July 28, 2024

Yeah, you are right if there isn't a class in the commands folder then oclif handles it. You can refer to this. Also, check this out for this issue, there are some premade plugins that would help us achieve this.

from cli.

ron-debajyoti avatar ron-debajyoti commented on July 28, 2024

Hey @Souvikns , sorry for not responding to this earlier.

I looked into the plugins and figured using @oclif/plugin-not-found would solve the problem. I tried installing it and also @oclif/plugin-help, but I'm getting plugin module errors during executing. Trying prepack also showed the import errors.

The error looks like this :
Screenshot from 2022-02-21 21-35-40

I suspect this might be due to @oclif/plugin-help dependent on @oclif/core and we are using @oclif/config, Seems like have to make our own plugins instead of using existing ones but I would like to have you take a look into it as well.

from cli.

ron-debajyoti avatar ron-debajyoti commented on July 28, 2024

Let me know if this problem is resolved.

Yep, it worked!

So since you're waiting for that PR to get merged, do I open a PR too for this issue?

from cli.

Souvikns avatar Souvikns commented on July 28, 2024

Yeah @ron-debajyoti you can go ahead and open a PR.

from cli.

asyncapi-bot avatar asyncapi-bot commented on July 28, 2024

🎉 This issue has been resolved in version 0.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from cli.

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.