Google Deploy to App Engine disabled in Eclipse - eclipse

I am using the Google Plugin for Eclipse to deploy my project to App Engine, and this has worked great for over a year. But a couple of days ago it stopped working, and I can not seem to find the reason. The project is still an App Engine project, but the Deploy to App Engine button is disabled.
I already reinstalled the entire Google Plugin in Eclipse. I also added another GAE project, but then the button is still disabled. I managed to enable the button once to upload, but I don't know what triggered the enabling.
Has anyone seen this before and any clue on how to fix this?
EDIT: The button enabled when I removed and re-added the App Engine SDK from the build path of the project. After the deployment, the button disabled again..

This is a known bug in the latest 3.9.1 release. The fix will be pushed on Monday, 5/2.

The same thing is happening for my eclipse mars. The workaround I'm using is, File >> Close Project, then double click to open project, voila.

For those who don't want to wait (I didn't), use appcfg. If you want to use External Tools, you'll find the executable in (SDK install - check configured SDK's)/bin/appcfg.(sh|cmd)
Set the working dir to the project folder, the commands are "update war", where 'war' is the location of the war directory relative to the project folder.
I set JAVA_HOME under the environment tab to the Java SDK, and PATH to the Java SDK/bin directory, and "replace native environment with specified environment" on Windows, worked fine without Environment settings on Linux.

The "Deploy to App Engine" only disables itself when I select another project. So to get it enabled:
Deselect all projects (Ctrl+Click on the selected project - or restart Eclipse).
Select your project.
It should then be enabled (well, it was for me).
EDIT: Google rolled out a new version of the plugin, and now the button works fine.

Running Eclipse Neon 4.6.3 with no issue. To get it enabled:
Install Google Cloud SDK and Cloud Tools for Eclipse https://cloud.google.com/eclipse/docs/quickstart
Install components using the Google Cloud command line
gcloud components install app-engine-java
Convert eclipse project to a google app engine project
Right-click on project
Click on Configure
Click on Convert to standard app engine project
Make sure you click on the project and... voila!

For me simple restarting of the eclipse did the trick.
I had closed the project by mistake and when I re-opened it, the deploy button was disabled.

Related

Problems creating a project with CodenameOne in Netbeans

Install Netbeans 12.6 on a Windows 10 machine. I was able to install the CodenameOne plugin with no problem. When creating a project I get the following error message:
Cannot invoke "org.openide.filesystems.FileObject.getFileObject(String)" because "folder" is null
I've been surfing the internet and can't find a way to fix it.
Thank you for your support.
This approach is no longer supported. The plugin is only used for legacy applications and no longer works in newer IDEs due to breaking changes in almost all IDEs.
Starting with Codename One 7.x we moved to maven projects which don't require the plugin and can be created in https://start.codenameone.com/
I have followed the instructions in the manual and it mentions as important:
"Before opening the project in NetBeans, you need to copy the contents of the tools/netbeans directory into the root project directory. These files are required by NetBeans to build, run, and debug the project correctly. "
But I can't find this folder in netbeans version 12.6.

Eclipse Neon 2 & 3 keeps Resetting the Workspace and Plugins

Have installed Eclipse Neon 3 x86_64 bit on macOS Sierra...
Proceeded by picking a workspace folder and installed the following plugins:
Subclipse 1.10.13 (by dragging the icon on to the workspace from https://marketplace.eclipse.org/content/subclipse)
Installed the following plugins (by going to Help -> Install New Software -> All Available Sites and expanded Web, XML, Java EE and OSGI Enterprise Development):
Eclipse Java EE Developer Tools 3.8.0.v201701262139
Eclipse Java Web Developer Tools 3.8.0.v201702270442
Eclipse Web Developer Tools 3.8.2.v201702270442
JST Server Adapters 3.2.400.v201606081655
JST Server Adapters Extensions 3.3.501.v201609071751
JST Server UI 3.4.300.v201606081655
Everything works (plugin functionality) but everytime I close Eclipse, it brings up the default dialog asking for a workspace and is completely fresh (no plugins and preferences...). I have to manually install these plugins every single time I restart Eclipse!
I've deleted the following directories and files:
~/.eclipse (folder);
~/Library/Saved Application/org.eclipse.eclipse.savedState;
~/Library/Preferences/org.eclipse.platform.ide.plist;
~/Library/Caches/org.eclipse.platform.ide;
And, also unzipped Eclipse into a different folder and specified a new workspace and after installing the plugins and restarting Eclipse, its completely fresh again!
This is very annoying and also disappointing...
I even tried to put -clean as the first line of the eclipse.ini file but it didn't help any...
What's weird is that this is happening on my company issued MacBook Pro but not my personal MacBook Pro (which is the exact same model and year as the company issue one)...
Any suggestions would be most appreciated!
Have you checked Eclipse Bugzilla for a similar issue?
It looks like you are running into this:
Bug 507328 - Eclipse forgets about global settings and installed features
It's a feature of macOS introduced with Sierra called "App Translocation" or "Gatekeeper Path Randomization". Try unzipping Eclipse and moving it (drag and drop) with Finder to a different location. This should set a flag which disables Gatekeeper Path Randomization. However, it's important this this is done from within Finder.
The Eclipse Oxygen packages will ship as DMG which will motivate users to drag and drop the Eclipse.app bundle into the Applications folder using Finder. There is an Apple bug here where Apple explicitly states that Finder may be able to opt an app out of Gatekeeper Path Randomization.
To check whether Gatekeeper Path Randomization is happing in Eclipse perform the following:
Open Eclipse > About Eclipse
Click Installation Details
Navigate to tab Configuration
Check the value of osgi.install.area property
If it points to some random looking path with /var/private that path randomization is in effect.
The situation may become more complicated in future macOS versions, though.

Can't sign into Google using Google plugin for Eclipse

I am using Eclipse Luna and I recently installed the Google plugin for Eclipse to deploy apps to the Google app engine.
I tried signing into Google services and was able to get past the password prompt and 2-step verification screen successfully. After that I get the permissions screen where I click 'Accept'.
After I click 'Accept' however nothing happens and the window goes blank. I've waited for like an hour and yet it just stays like that.
I have tried using a different Eclipse workspace, a different Eclipse installation (Luna), a different Google account which doesn't have 2-step authentication but I get the same result.
I have even checked the Eclipse log file and there are no entries made at time I tried signing in.
I've searched around but couldn't find anything related to this. Thanks in advance.
Right click, choose another encoding. Worked for me!
I faced the same issue with next configuration
Windows 8.1
JDK 7 and 8
Eclipse Luna
Google Plugin for Eclipse 4.4
GWT SDK 2.6
App Engine SDK 1.9
I think that something wrong with Google plugin, so here my Windows command line workaround:
Download and install external tools: App Engine SDK, Apache
Ant. At moment of writing this text Google App Engine doesn't
support Java 8, so you need install Java 7 and configure JAVA_HOME
environment variable accordingly.
Add to PATH environment variable paths to bin folders of App Engine and Ant.
Run command line and go to folder of your Eclipse project. Note that your project must be configured with Ant and build.xml file must be inside your project's folder.
Type ant build command and wait until successful compilation.
Configure your application ID via Eclipse or edit file war\WEB-INF\appengine-web.xml and set appropriate value into <application> tag.
Type app cfg update war It may run your browser, ask you credentials and ask to paste generated key.
After successful deploy navigate to your_application_id.appspot.com
Enjoy.
Read this article for details.
There were some bugs in the oAuth flow when you encountered this. We fixed all the ones we knew about last year. GPE login should be working now, but if not you can also try the newer Google Cloud Tools for Eclipse.
I had exactly the same problem ( Ubuntu 16.04 LTS )
To solve it I went to Eclipse Market Place and installed Google Cloud Tools for Eclipse 1.1.0
I accepted all the items to be installed
When I finished the installation, I restarted Eclipse, reopened it, clicked the Google icon in the bottom right corner, and logged in to the Chrome browser (It opens Chrome automatically).
This way I managed to make the connection.
I hope this can help !

Eclipse EGit and GWT/GAE

I have a central GIT repository, so that i can work on the project from different computers.
However when i pull the project on the other computer i get the error "Unbound classpath container: 'GWT SDK [missing]' in project 'Test Project'" (I also get a similar error for GAE).
So my question is: How do i setup my project so the same version of GAE/GWT is used on all computers.
I suspect the problem could be caused by the different versions of GAE and GWT on the machines. For example: GWT (1) is not the same version on the machines as it depends on when you updated GWT.
I ran into this problem too, and solved it by installing the GAE and GWT sdks under specific names, manually. That is, instead of relying on eclipse's software update tools, I downloaded the specific SDK version I wanted from the googlecode sites, and then added them manually to eclipse. This way their names include the numbers, and your git repository can store information about which versions it's using.
I do have to install the sdks manually on each developer machine, which is a drag.
To install an sdk manually:
Download it
Right-click on the sdk container in eclipse (in project explorer, it probably says GWT SDK [missing])
Choose properties
Click configure SDKs
follow the path to install a new sdk
You don't have to set the new sdk as default or anything - your project will pick it up immediately after you install it.
Note to any GPE developers: it'd be nice if the sdks were installed automatically with a version-specific name for the benefit of source control!
You can Change the project's SDK target.
In eclipse go to Marker [it is a tab next on the extreme left of the tabs including Console and Development] --> Left Click problem indication --> Click Quick fixes and choose the option which re-configures the project. This should fix the problem. Note that if your code uses features that changed between SDK versions you will have to make changes.
Combined with Rilev Lark's answer This is a chance to Update your projects or your environments whenever the problem occurs.

Cannot find installed plugin on my Eclipse IDE after update

I have updated my ubuntu desktop and the eclipse which i was running on the system got updated automatically. After the update all the options inside the eclipse are the same as they used to be by default.. all my customization has been lost and the perspectives, project templates are no more. Now when i tried to installed the plugins, eclipse returns me that the selected plugins has already been installed..
I want to know is it common with eclipse to show this behavior after each update? How to can i get back my old customization without deleting the installed plugin folder and install them from scratch again..
I didn't met the issue you mentioned before. but I suggest you can check whether your workspace location is changed after your plugin is installed/updated.
Actually, all your eclipse plugins configuration/preferences settings are stored into your {workspace_home}.metadata folder. it's not relevant about what plugin eclipse has installed, That's the reason why each time switch workspace, you need to re-customized preferences settings.
So, if you want to protect customized settings, pls consider backup .metadata folder properly.