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

Can't generate model classes gets following exception. #42

Closed
zahidshaikh08 opened this issue Jul 19, 2021 · 13 comments
Closed

Can't generate model classes gets following exception. #42

zahidshaikh08 opened this issue Jul 19, 2021 · 13 comments

Comments

@zahidshaikh08
Copy link

zahidshaikh08 commented Jul 19, 2021

Command 'Json to Dart: Convert From ClipBoard' resulted in an error (Running the contributed command: 'jsonToDart.fromClipboard' failed.)

To Reproduce
Generate class using clipboard option

Expected behavior
It should generate class normally.

Screenshots
image

Version
3.2.5

Json

{
    "status": true,
    "message": "Cuisines get successfully.",
    "data": {
        "cuisines": [
            {
                "id": 39,
                "category_id": 2,
                "name": "General"
            },
            {
                "id": 40,
                "category_id": 2,
                "name": "Birthday"
            },
            {
                "id": 41,
                "category_id": 2,
                "name": "Love"
            }
        ]
    }
}

Additional context
It was working completely fine but suddenly it just started giving this error.

@iamarnas
Copy link
Collaborator

iamarnas commented Jul 19, 2021

@zahidshaikh08 Hi 👋

Thanks for reporting. Right now I'm on vacation. But I will check it whenever possible.
Have you tried reinstalling this extension?
And how to run conversion, with hot keys or with command pallet?

@zahidshaikh08
Copy link
Author

Yes i tried reinstalling extension multiple times and i even tried in different mac also but returns the same error.

Btw no worries and enjoy vacation :)

@iamarnas
Copy link
Collaborator

@zahidshaikh08 I'm working now with commands and already corrected command subscription. With next version will be more option to run converter, for example from right mouse button context. We will see if after next release will be same problem for you ;)

@zahidshaikh08
Copy link
Author

That's great right mouse button context option will be really be helpful and easy to generate model classes TBH.
Looking forward for next release to try it out.

And thanks for your quick feedback and wonderful plugin it really helped me a lot after null safety migration.

@zahidshaikh08
Copy link
Author

zahidshaikh08 commented Jul 29, 2021

Hello @iamarnas any update on this??
As i am still not able to use this plugin in mac although windows plugin works perfectly.

@iamarnas
Copy link
Collaborator

iamarnas commented Jul 29, 2021

@zahidshaikh08 Hi

Hello @iamarnas any update on this??

It is underway and there is not much left. I will completely change the quality of the settings and you will see big difference.

As i am still not able to use this plugin in mac although windows plugin works perfectly.

It stange. Looks like bug is not from my side 😕

@iamarnas
Copy link
Collaborator

@zahidshaikh08 can you try to clean VC Code cache folder?

@zahidshaikh08
Copy link
Author

@zahidshaikh08 can you try to clean VC Code cache folder?

I tried clearing cache and even completely reinstalled vs-code but the problem still persists the same as before.

Thats very strange i don't know why its happening?? i even tried in different mac and in that mac also problem is still the same.

Did you tried in different mac??

@zahidshaikh08
Copy link
Author

zahidshaikh08 commented Jul 30, 2021

It is underway and there is not much left. I will completely change the quality of the settings and you will see big difference.

Thats great :) till then i will be waiting for your update on this issue.

@iamarnas
Copy link
Collaborator

iamarnas commented Jul 31, 2021

@zahidshaikh08 Hi,

You can test the new version and see if still throw an error. And of course, try new features actions from the context

@zahidshaikh08
Copy link
Author

Hi @iamarnas,

I tried new version in mac and it seems like issue is resolved as i was able to generate model classes as usual as before.

Thank you for your quick support and thanks for building such a nice and useful tool for folks like us. 🙏

@iamarnas
Copy link
Collaborator

iamarnas commented Aug 2, 2021

Hi @zahidshaikh08

I tried new version in mac and it seems like issue is resolved as i was able to generate model classes as usual as before.

Thank you for your quick support and thanks for building such a nice and useful tool for folks like us. 🙏

I am very happy to hear that it was resolved and hope that it never happens again 🤞

@zahidshaikh08
Copy link
Author

Closing this issue as it's resolved now. 🤗

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

No branches or pull requests

2 participants