ricardoemerson / create-flutter-widgets-and-classes

Extension that creates Flutter Stateless or Stateful Widgets, Screens, MobX Store and Classes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty generated files

Kemorave opened this issue · comments

Hello and thank you for this awesome extension i just started learning flutter and it helped me a lot.
after updating visual code (VSCode x64-1.69.2) and all of my extensions along with it, now every time i try to generate an app structure or a module or any other command i get 3 to 2 to 1 empty files per attempt (randomly) and sometimes none

Screenshot (4)

Screenshot (9)

Screenshot (10)

Screenshot (11)

Thanks for your time and please forgive my grammar mistakes EN is not my native language

Rolling back VS code to version 1.65.2 fixed it for me

Hi @Kemorave. That's weird!

vscode-flutter-tools

I am using vscode in version 1.69.2 and the extension it is working fine for me.

Do the following:

vscode-flutter-tools-2

Let's see what's going on with your.

Do the following:

vscode-flutter-tools-2

Let's see what's going on with your.

Thanks for replying its a really weird issue indeed, i just updated vscode to version 1.69.2 and followed your steps see the screenshot bellow

image

On the first time everything work but When this error is thrown the extension just keeps making blank files afterwards and never recover until next reload

@Kemorave, I tried to simulate here the same path of folders that you are using in your project and here the problem does not occur.

Looking at the image you sent me earlier, why is your lib folder showing up twice in VSCode. I believe the problem may be there.

Have to see if you have any other extension that could be causing the error.

image

@Kemorave, I tried to simulate here the same path of folders that you are using in your project and here the problem does not occur.

Looking at the image you sent me earlier, why is your lib folder showing up twice in VSCode. I believe the problem may be there.

Have to see if you have any other extension that could be causing the error.

image

I actually made that folder from previous attempts to solve the problem (I suspected the path issues too so I moved/created projects in different paths and played around for trial purposes), sorry for the confusion I should have deleted it before taking the screenshot.
I also already tried removing all my other extensions and deleting the vscode settings and cache folders but nothing worked for me except rolling vscode back to the old version I used to work with.
at this point I really believe its a weird bug in vscode and something gets broken after update.