pnp / sp-dev-fx-vs-extension

Visual Studio extension work around SPFx together with community
MIT License
56 stars 25 forks source link

Visual Studio not responding when creating new SPFx project #15

Closed gonadn closed 6 years ago

gonadn commented 6 years ago

Observed Behavior

Only a few files and folders are created (bin, obj and the project file), and the process never completes. Visual studio 2017 are not responding. Using .NET framework 4.6.1 in VS 2017 pro. VS just hanging on creating the project and never get finished, you have to just kill the process, close VS.

Steps to Reproduce

Create new SPFx web part project, select name and location, select component name and start generating.....

Ref issue: https://github.com/SharePoint/sp-dev-fx-vs-extension/issues/10

I did as @Ahmad-Gad described but still not working. I uninstalled VS and installed again, dident help, i even installed vs on my second computer, still same issue....

solutionprovider27 commented 6 years ago

having same issue with me on VS 2017 15.4 Community edition and VS 2015 Enterprise Edition .

pschaeflein commented 6 years ago

Please respond with the installed version of the generator using the following:

npm list -g @microsoft/generator-sharepoint

gonadn commented 6 years ago

npm

gonadn commented 6 years ago

i just tried to create a SPFx project, and as i mentioned above VS is hanging / freezed . i waited for at least 5 min before i had to just kill the process.

VS: Not Responding: notresponding

vs

Folder structure looks like: folder

pschaeflein commented 6 years ago

The latest version of the generator has caused this issue. Thanks for reporting it.

As a work-around, click on the Advanced tab and tick the box to Show Command window. You will see a prompt for tenant deployment in the window. Answer that prompt as appropriate. Once the generator finishes, type exit and press enter to complete the generator. Visual Studio will then continue and create the project.

gonadn commented 6 years ago

I tried the workaround as you described, VS finished creating the project, but when i open the project it looks like: pj

none of the folders or files are loaded...

pschaeflein commented 6 years ago

Another possible work-around. On the advanced tab, add the "skipFeatureDeployment" option to the command-line shown.

yo @microsoft/sharepoint --solutionName "hello-world" --framework "react" --componentType "webpart" --componentName "HelloWorld" --componentDescription "HelloWorld web part" skipFeatureDeployment true

gonadn commented 6 years ago

oki thanks, but when will this bug be fixed?

Did you test your workarounds?

eshupps commented 6 years ago

We are working on it. In the meantime, you may explicitly get a previous version of the yeoman generator that does not include the new prompt or use the workaround described by Paul.

From: gonadn notifications@github.com Reply-To: SharePoint/sp-dev-fx-vs-extension reply@reply.github.com Date: Thursday, September 7, 2017 at 9:49 AM To: SharePoint/sp-dev-fx-vs-extension sp-dev-fx-vs-extension@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [SharePoint/sp-dev-fx-vs-extension] Visual Studio not responding when creating new SPFx project (#15)

oki thanks, but when will this bug be fixed?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/SharePoint/sp-dev-fx-vs-extension/issues/15#issuecomment-327718260, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALoSZGGG7a7hwDRABgZ6EkGFUYxAc-c7ks5sf6ADgaJpZM4PNV4K.

gonadn commented 6 years ago

what was the previous version number?

gonadn commented 6 years ago

Best workaround for this is just to remove the new generator:

npm rm -g @microsoft/generator-sharepoint

and install the previous version: npm install -g @microsoft/generator-sharepoint@1.1.3

gonadn commented 6 years ago

any fix on this bug?