Visual Studio Code - Azure Functions - New Project button disappeared - azure

So I have been messing around trying to create an Azure Function using Visual Studio code. Frustrated enough to start all over and now according to Microsoft, to create a new project, I have to click the Azure icon on the left hand side and click New Project:
That being said, I don't have it anymore somehow:
Somebody please advise. I'm going crazy here trying to make it reappear.

For me, this option was buried in the sidebar menu in vscode as pictured below. I was not able to get the icons to reappear (I'm on an Apple Silicon machine).

1.Try to uninstall Azure Function Extension.
2.Restart Visual Studio Code.
3.Install the extension again.

The documentation on how to create New Azure Function Project in Visual Studio Code appears to be out of date. I found the solution in the store page of the extension. Open the 'Azure' extension, go to Workspace, click the plus, create function. Proceed as normal as per the MS Docs. Uninstalling did not work for me as #bala suggested.

Yeah, I did not had the button to create a new local Azure function.
I uninstalled Azure function plugin and after the refresh the button appeared. When I clicked the button, it informed me that I need to have Functions plugin installed.Then I reinstalled the plug-in and the button disappeared.
Restarting and Updating VSC fixed the issue.

Related

LogCat Missing from Android Studio 3.1.3

I recently installed Android Studio 3.1.3 on my laptop in order to start learning android/mobile development (I am still new to all of this). The LogCat option seems to be missing though (refer to images below)
What I tried to do in order to fix the problem:
-uninstalling and reinstalling android studio (along with updating it...)
-researching the problem (no useful results as all the solutions were to press alt-6 or go to View->Tool Windows)
It would be a huge help/relief if someone knows how to solve this problem.
Thanks in advance.
I know it is an old question, but I encountered this problem at least twice so it might help someone.
The problem seems to be the path of the project you're looking at.
It should be pointing to the folder containing the 'app' and 'gradle' folders inside your project.
Go to File > Open
Select the folder with the 'app' folder inside your project
Press 'Open'
If you see something like this you can now probably open the Logcat window with alt-6 or View->Tool Windows.
Note that for some reason, it didn't work for me at first until I opened the app folder, run a build and then opened the folder containing the app folder.
You need to sync your project and then Logcat will show up
Just in case anyone stumbles upon this as I did: If you are developing a react-native app, be sure that you import only the android folder of the project.
If you import the whole project, then among other things, logcat is nowhere to be found!
Try pressing Alt+6 on Windows or CMD+6 on Mac.
I closed "Logcat" by accident via right click -> "Remove From Sidebar".
I was able to restore it with these steps:
Launch your current App on an emulator.
This should create a "Run" Tab on the Sidebar.
Click on the "Run" Tab and find the "Modify Run Configuration..."
(Wrench) icon and launch it.
Change the tab to "Miscellaneous".
Check the box next to "Show logcat automatically"
This is not a solution if Logcat doesn't even show up in View->Tool Windows!
But if it does: click it and it may show up at a different location than it used to be. Without recognizing I had shoved it to the top left where the project tab is shown. You can now click on the gear wheel on the tab and select move to bottom left (that is the default location).
This was the solution for my "logcat not showing".
Press Alt+6 inside Android Studio to open Logcat monitor.
Then, Do the following steps:-
Open Android Studio.
Open Android Monitor Window(at the bottom of android studio).
Here you will see the drop down in right corner.
Select Show only selected Application.

WIX in VS 2012 Menu and Commands missing

I just installed WIX 3.10 and I'm using VS 2012 Ultimate. I have then successfully added a WIX setup project to my solution but that's about as far as I can go because the WIX menu is not showing up. The commands buttons that should appear at the top of the solution explorer window does not appear, neither does the shortcut button that appears just below the 'clean' button when you right click the project. I have tried uninstalling and restarting my PC several times but still the same.
snap shot of the solution explorer window.
I'm obviously missing something, but what? Thanks very much.
The designer you're looking for is from a 3rd party commercial product:
https://www.add-in-express.com/wix-designer/index.php
Normally one would write most Wix files by hand. It's relatively simple XML and the documentation isn't bad.
You can install the extension: Tools -> Extensions and Updates
Then in the search box type 'wix' and Enter.
The extension name is 'Designer for Visual Studio Wix Setup Projects':

VS2015 Crashes when I try to Publish

So, I am developing a Web Service, and at some point, my Visual Studio 2015 started to crash every time i right click project -> Publish. When I publish a project it gets deployed to Azure.
I use git, so I undid all the changes to my last successful project publish, and yes, I did publish after that build before.
I tried to remove/re-install Visual Studio, and nothing worked.
Last thing I did was reset Windows 10 to factory settings and install everything again. This still does not do anything.
Last thing I could do is Wipe my computer completely and install everything again, but I don't really want to resort to that!
I am desperate with this! I have resharper 9.2 installed and Xamarin.
Thank you,
The closest thing I've found to solving it is to right-click the project and select 'Clean' before then selecting 'Publish'.
Apparently I fixed this by:
right clicking project-> properties -> Package/Publish SQL -> Import from Web.config
It seems that somehow the project lost some properties regarding these settings, even though they were in the web.config.
I faced same issue with VS 2015 Community Edition while publish.
Just installed latest Azure SDK for .Net (VS 2015) - 2.8.1(Or latest one) and it solved the problem.
hit this problem myself, i found that deleting the publish profiles worked.
Expand the properties container under the project that keeps crashing and delete PublishProfiles.
warning: you will have to recreate the publish profiles you have just
deleted.
Deleting the *.suo file in v14 folder helped in my case.
Cleaning the solution occasionally worked, but 90% of time the VS crashed anyways.
In my case I updated Azure SDK first and then opened solution then right-click the project and select 'Clean'. Then clicked on publish and now i imported the publish profile or created custom profiles, no issue.
I have been having this issue as well. What worked for me was logging into Azure through Visual Studio, making sure I was connected in the Server Explorer, and then trying to publish afterwards.
For those who still couldn't make it work, Make sure you publish in "Release" mode. For me I was trying to publish in Debug mode which hangs the publish window.

Android studio no main activity, no layouts on a new project

I installed new Android Studio. I created new Project and asked the wizard to create main activity. But there were no layouts, no main activity class, no nothing. Error on trying to make new Java class files. The new project tree looks like this:
No (main/java) folder.
No (res/layout) folder.
Other words project is useless.
From what i learned is that you may be picking the "no layout" option when prompted to pick one. Try picking the basic activity and the rest of the files will show
After creating the project, you need to go to File menu and then Import Project. Then browse to the location of your project and import it. Then you will see all of these files and folders. I had this problem too, and it seems to be something that they overlooked in the newer versions of Android Studio (which is quite pathetic if you ask me).
Empty Activity
Choose "Empty Activity" instead of "No Activity",
while creating a NEW PROJECT in Android Studio.
I don't know if anyone is having the same problem right now but i solved this issue by changing the Android Gradle plugin version and the Gradle version.
For doing this you have to open the project you're having issues with and click on
File->Project Structure->Project
and there you will see the two options.
Android Gradle Plugin Version 4.0.0 and Gradle version 6.1.1 worked for me. After that I went to the file directory, right click on the package folder "com.example.myProject" and manually created an empty activity. The layout folder with my new activity was created automatically after that.
I found it's because I changed the Java runtime version before through the Android Studio plugin Choose Runtime. I changed to JDK 8 from JDK 11 then the problem occured. It worked for me to change back to JDK 11 through plugin Choose Runtime.
Try
Typing main activity (without quotes) in the search box and
Press enter.
For me it got restored. Search window is useful in finding many hidden tools quickly.
I created a new activity by right clicking on java then selected activity and the layout file was automatically written
When you open a new project, you can't select "empty project" you have to select and activity project. I just went through this had to delete my project and start a new one now everythings there.

Start debugging button unavailable in a VS2012 project

I'm using visual studio 2012 and I don't find the button start for debugging.
Instead, there a button "Attach".
How is it possible to enable Start button.
I have only one project in the solution that I imported from vs2010.
When a create a new project from scratch, Start is available.
You can solve this issue by right clicking the project in Visual Studio and setting it as the 'StartUp Project'.
I had this problem and it turned out that, even though the status bar was blank, it was still building (reeeeally slowly).

Resources