Bluemix and the Remote Systems View in Eclipse - eclipse

I just updated all of my plugins and noticed the "Application and Services" tab of the IBM Bluemix view has a link says "Show deployed files in Remote Systems View". When I click on that link, it opens the view and I can drill down to my apps but it does not show me any files or anything useful. Can this view (or a different view) show file contents on bluemix? This would be really useful especially since the files app was removed when the Diego upgrade happened.

I just tried using Neon.2 with the latest version of the IBM Eclipse Tools for Bluemix from the Eclipse market place and deploy a new application. The Remote System View is showing the files correctly for me.
Note that the problem may happen for older version of the product. What version of the product (Eclipse and Bluemix Tools) and also what platform are you using?
The other thing that you can try is to deploy a new simple application to see if the problem is specific to that application.

It does show the files that are deployed. Attached is an image that I see

Related

Locked pom.xml causes git branch checkout failure in eclipse

I'm using Eclipse with Egit/Github and Maven on Windows. Often but not always, when checking out a branch an error message is thrown indicating the pom.xml file could not be renamed which causes the checkout to fail. The file is locked by Windows, preventing the rename. Using Handle as suggested below shows Eclipse has the lock. Colleagues don't see this problem. I've installed an entirely different instance of Eclipse and cloned the repository to a different location and have the same results.
This all causes a great mess in my repository because Git does not have a rollback function on the checkout failure. All of the files from the go-to branch were copied in but git keeps the come-from branch as checked out. All of the files that differ between the branches are shown as modified. Cleanup takes a bit of work.
I'm having the same issue.
Unfortunately, I'm unable to switch to Bluemix set of tools.
In the meantime, waiting for IBM to fix this issue, I was able to work around this issue by performing manually Garbage Collection in Eclipse.
This is easily done by enabling GC button in status bar as show here:
Eclipse: Garbage Collector Button
Press it, and locks on pom.xml are released!
In the fog of eclipse plug-ins I was not able to find the exact answer, but this was the solution.
The problem was in the IBM Websphere and Bluemix plugins. There are several options for installing those plugins which results in different content.
From the Eclipse Marketplace:
The bad set came from Eclipse Marketplace from "IBM Liberty Developer Tools for Oxygen"
The good set came from "IBM Eclipse Tools for Bluemix Oxygen"
The problem plug-ins are these:
IBM Bluemix Tools 1.0.2.v20171004_2101 com.ibm.wdt.bluemixtools.feature.feature.group IBM
OSGi Application Development Tools 17.0.3000.v20171004_2101 com.ibm.osgi.wdt.feature.feature.group IBM
Web Development Tools 17.0.3000.v20171004_2101 com.ibm.wdt.webtools.top.feature.feature.group IBM
Web Services Development Tools 17.0.3000.v20171004_2101 com.ibm.wdt.ast.ws.tools.feature.feature.group IBM
The ones that work are these:
IBM Bluemix Tools 17.0.3000.v20171004_2330 com.ibm.cftools.ext.feature.feature.group IBM
WebSphere® Application Server Liberty Tools 1.0.2.v20171004_2330 com.ibm.cftools.server.tools.feature.feature.group IBM
These two came with either package, but are required in a websphere/bluemix installation.
Cloud Foundry Tools Core 1.2.3.v201709130027 org.eclipse.cft.server.core.feature.feature.group Eclipse Tools for Cloud Foundry
Cloud Foundry Tools UI 1.0.10.v201709130027 org.eclipse.cft.server.ui.feature.feature.group Eclipse Tools for Cloud Foundry
As of this writing this link has the current information on installing Bluemix / Websphere:
https://console.bluemix.net/docs/manageapps/eclipsetools/eclipsetools.html#eclipsetools

Google Deploy to App Engine disabled in 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.

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 !

Launch a configured Eclipse IDE from web browser

I have come across a demonstration whereby a company launches an Eclipse IDE onto a developer's PC from a website. The Eclipse that was downloaded to the work station on the fly was configured with the plugins and applications server configuration. I did not get a chance to ask how was it done, can anyone point me to resources how this is being done?
You might have seen Yoxos, which allows to configure profiles of plugins and installation of those pre-configured profiles.

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.