Apps script on eclipse : Error reading contents of project from Drive; - eclipse

I'm trying to use the google apps script plugin for eclipse (https://developers.google.com/eclipse/docs/apps_script) When I follow the directions and try to import an apps script project, The import wizard does not appear to populate, and I end up with the error in the title . The logs have the following:
!SESSION 2017-09-06 20:41:42.028 -----------------------------------------------
eclipse.buildId=4.6.3.M20170301-0400
java.version=1.8.0_131
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64 -data file:/E:/EclipsePortable/Data/workspace/
!ENTRY org.eclipse.ui.navigator 2 0 2017-09-06 20:41:46.917
!MESSAGE Can't find Navigator Content Descriptor with id: org.eclipse.jst.servlet.ui.EnhancedJavaRendering
!ENTRY com.google.gdt.eclipse.drive 1 0 2017-09-06 20:42:16.644
!MESSAGE Connected to Drive service at https://www.googleapis.com/
!ENTRY com.google.gdt.eclipse.drive 4 0 2017-09-06 20:43:23.266
!MESSAGE Error reading contents of project from Drive; see Error Log.
!STACK 0
java.lang.NullPointerException
at com.google.gdt.eclipse.drive.wizards.ScriptProjectImportWizard$2.run(ScriptProjectImportWizard.java:162)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
How can I get this working?

From https://developers.google.com/eclipse/
The Google Plugin for Eclipse is deprecated and will be removed in January 2018. Migrate to Cloud Tools for Eclipse and/or the GWT Eclipse Plugin as soon as possible to avoid disruption.

Related

Problem with Checkstyle: Creating formatter profile

I downloaded the checkstyle plugin for university in order to check the code like my professor wants it. We got an xml configuration file and i created with that another checkstyle configuration (Preferences -> Checkstyle -> New...) Also I set it as default. Now we have to create an automatic formatter like "Rightclick project -> Checkstyle -> Create Formatter-profile". Now I get an problem popup from eclipse with the message:
"An internal error occurred during: "transformCheckstyle".
org/eclipse/jdt/internal/ui/preferences/PreferencesAccess
This is the full error message from the log:
!ENTRY org.eclipse.core.jobs 4 2 2018-12-02 16:42:24.496
!MESSAGE An internal error occurred during: "transformCheckstyle".
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/ui/preferences/PreferencesAccess
at net.sf.eclipsecs.core.transformer.FormatterConfigWriter.writeCleanupSettings(FormatterConfigWriter.java:95)
at net.sf.eclipsecs.core.transformer.FormatterConfigWriter.writeSettings(FormatterConfigWriter.java:89)
at net.sf.eclipsecs.core.transformer.FormatterConfigWriter.<init>(FormatterConfigWriter.java:81)
at net.sf.eclipsecs.core.transformer.CheckstyleTransformer.transformRules(CheckstyleTransformer.java:124)
at net.sf.eclipsecs.core.jobs.TransformCheckstyleRulesJob.runInWorkspace(TransformCheckstyleRulesJob.java:117)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
!SESSION 2018-12-02 16:44:15.808 -----------------------------------------------
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product
CheckStyle had this bug reported:
https://github.com/checkstyle/eclipse-cs/issues/107
It has been fixed so upgrade to the latest CheckStyle version for Eclipse.
The issue has already been reported at https://github.com/checkstyle/eclipse-cs/issues/107 but no one has contributed a fix for it.

Has anyone succeeded in getting Eclipse's "Report bug or enhancement..." to work?

Here it fails every time, on multiple installations, with "Unexpected error while creating task for this report" https://i.imgur.com/CNa9KYD.png .
I'm using "Eclipse for PHP Developers" latest version - 2018-09 (4.9.0).
EDIT: Further info:
I got the error after clicking Finish https://i.imgur.com/GcCZHI3.png . I don't use the same workspace for both. I don't have a proxy. I did not knowingly try to report it anonymously, but the failing operation did not ask for any ID. This was on fairly new installations.
EDIT: Error details
eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.php.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.php.product
and
!ENTRY org.eclipse.mylyn.tasks.bugs 4 0 2018-11-04 22:03:08.842
!MESSAGE Unexpected error while creating task for error report
!STACK 1
org.eclipse.core.runtime.CoreException: Error retrieving task attributes from repository.
Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:774)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.initializeTaskData(BugzillaTaskDataHandler.java:439)
at org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal.createTaskData(TasksUiInternal.java:875)
at org.eclipse.mylyn.internal.tasks.bugs.AttributeTaskMapper.createTaskData(AttributeTaskMapper.java:60)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter.process(TaskErrorReporter.java:88)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter$1.run(TaskErrorReporter.java:66)
at org.eclipse.mylyn.commons.ui.CommonUiUtil$1.run(CommonUiUtil.java:47)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.io.IOException: Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.AbstractReportFactory.collectResults(AbstractReportFactory.java:125)
at org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfigurationFactory.getConfiguration(RepositoryConfigurationFactory.java:40)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getRepositoryConfiguration(BugzillaClient.java:857)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:751)
... 7 more
!SUBENTRY 1 org.eclipse.mylyn.bugzilla 4 1 2018-11-04 22:03:08.843
!MESSAGE Error retrieving task attributes from repository.
Premature end of file.
!STACK 0
java.io.IOException: Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.AbstractReportFactory.collectResults(AbstractReportFactory.java:125)
at org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfigurationFactory.getConfiguration(RepositoryConfigurationFactory.java:40)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getRepositoryConfiguration(BugzillaClient.java:857)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:751)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.initializeTaskData(BugzillaTaskDataHandler.java:439)
at org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal.createTaskData(TasksUiInternal.java:875)
at org.eclipse.mylyn.internal.tasks.bugs.AttributeTaskMapper.createTaskData(AttributeTaskMapper.java:60)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter.process(TaskErrorReporter.java:88)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter$1.run(TaskErrorReporter.java:66)
at org.eclipse.mylyn.commons.ui.CommonUiUtil$1.run(CommonUiUtil.java:47)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
The same issue on Eclipse IDE for C/C++ Developers gave:
org.eclipse.core.runtime.CoreException: Error retrieving task attributes from repository.
Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:774)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.initializeTaskData(BugzillaTaskDataHandler.java:439)
at org.eclipse.mylyn.internal.tasks.ui.util.TasksUiInternal.createTaskData(TasksUiInternal.java:875)
at org.eclipse.mylyn.internal.tasks.bugs.AttributeTaskMapper.createTaskData(AttributeTaskMapper.java:60)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter.process(TaskErrorReporter.java:88)
at org.eclipse.mylyn.internal.tasks.bugs.TaskErrorReporter$1.run(TaskErrorReporter.java:66)
at org.eclipse.mylyn.commons.ui.CommonUiUtil$1.run(CommonUiUtil.java:47)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: java.io.IOException: Premature end of file.
at org.eclipse.mylyn.internal.bugzilla.core.AbstractReportFactory.collectResults(AbstractReportFactory.java:125)
at org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfigurationFactory.getConfiguration(RepositoryConfigurationFactory.java:40)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.getRepositoryConfiguration(BugzillaClient.java:857)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector.getRepositoryConfiguration(BugzillaRepositoryConnector.java:751)
... 7 more
and
eclipse.buildId=4.8.0.I20180611-0500
java.version=1.8.0_191
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product
This looks like Eclipse bug 527895 which occurs with a new workspace.
If the workspace is old enough, the feature can be used, otherwise it fails with the known error dialog.
Please leave a comment that Help > Report Bug or Enhancement... is also affected by this bug.

Eclipse does not restart in Ubuntu

I have Ubuntu 16.04 and Eclipse Oxygen 3.A installed on my machine. The Eclipse restart does not work. Eclipse closes but does not start again neither by 'Restart' menu nor if an application requires a restart.
Update: I cleared .metadata/.log and then restarted Eclipse from the menu. As usual Eclipse closed down but did not start again. I had to start it by clicking on the icon on my taskbar. Below is the logs generated when I started Eclipse.
!SESSION 2018-08-19 20:44:55.135 -----------------------------------------------
eclipse.buildId=4.7.3.M20180330-0640
java.version=1.8.0_181
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_IN
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.ui 2 0 2018-08-19 20:45:05.372
!MESSAGE Warnings while parsing the images from the 'org.eclipse.ui.commandImages' extension point.
!SUBENTRY 1 org.eclipse.ui 2 0 2018-08-19 20:45:05.372
!MESSAGE Cannot bind to an undefined command: plug-in='org.eclipse.lsp4e', id='org.eclipse.lsp4e.togglehighlight'
!ENTRY com.genuitec.eclipse.theming.ui 1 0 2018-08-19 20:45:08.115
!MESSAGE A DevStyle Theme is being activated on this workspace; preparing colors and configuration
!ENTRY com.genuitec.eclipse.theming.ui 1 0 2018-08-19 20:45:09.652
!MESSAGE DevStyle has archived current color configurations to alternate preferences - will be restored when switching out of the DevStyle Theme
!ENTRY com.genuitec.eclipse.patches 2 0 2018-08-19 20:45:13.331
!MESSAGE Patches instrumentation extension PerformanceJavaNavigatorContentProviderPatch ([31078] [Angular] Webclipse UI freezes constantly after closing/reopening Angular 2 projects) has not weaved class org.eclipse.jdt.internal.ui.navigator.JavaNavigatorContentProvider.
The issue was that the path set for --launcher.library argument in eclipse.ini file was incorrect. I found it out by comparing the ini files from another installation. The path for this argument was set as a relative path which I replaced with an absolute path as below.
/home/<username>/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180518-1200

Error during open the eclipse

When I want to open the eclipse. I get the error described below:
Do you have any idea how to resolve this problem?
!SESSION 2014-02-13 13:50:28.893 -----------------------------------------------
eclipse.buildId=M20120914-1540
java.version=1.6.0_37
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=pl_PL
Command-line arguments: -os win32 -ws win32 -arch x86_64
!ENTRY org.eclipse.core.resources 2 10035 2014-02-13 13:50:30.981
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.osgi 4 0 2014-02-13 13:50:31.228
!MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (40).
I found the resolution. I'm deleting the file .metadata/.plugins/org.eclipse.core.resources/.snap And it's works!

eclipse cdt tools installing error

I am trying to install the CDT plugin on an exisitng 32-bit installation of Eclipse on Ubuntu Jaunty. I've tried both web-update and standalone-package install and both fail with the following error-
Application Started: 4000
!SESSION 2009-10-05 21:24:55.947 -----------------------------------------------
eclipse.buildId=I20090611-1540
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86 -consolelog -debug
!ENTRY org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2009-10-05 21:25:28.172
!MESSAGE Error while loading manipulator.
!STACK 0
java.lang.IllegalStateException: !fwConfigLocation.equals(fwPersistentDataLocation)
!fwConfigLocation=/opt/eclipse-galileo/configuration
,fwPersistentDataLocation=/opt/eclipse-galileo/plugins/configuration
at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.checkConsistencyOfFwConfigLocAndFwPersistentDataLoc(EquinoxManipulatorImpl.java:65)
at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.loadWithoutFwPersistentData(EquinoxManipulatorImpl.java:360)
at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.load(EquinoxManipulatorImpl.java:331)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.loadDelegate(LazyManipulator.java:50)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.getConfigData(LazyManipulator.java:108)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction.uninstallBundle(UninstallBundleAction.java:74)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction.execute(UninstallBundleAction.java:29)
at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:35)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.mainPerform(Phase.java:129)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.perform(Phase.java:72)
at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet.perform(PhaseSet.java:44)
at org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:54)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.performProvisioningPlan(ProvisioningUtil.java:389)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProfileModificationOperation.doExecute(ProfileModificationOperation.java:61)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningOperation.execute(ProvisioningOperation.java:37)
at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningOperationRunner$1.run(ProvisioningOperationRunner.java:94)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!ENTRY org.eclipse.equinox.p2.engine 4 4 2009-10-05 21:25:28.201
!MESSAGE An error occurred while uninstalling
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2009-10-05 21:25:28.202
!MESSAGE session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Uninstall, operand=[R]org.eclipse.ant.ui 3.4.0.v20090520 --> [R]org.eclipse.ant.ui 3.4.1.v20090901_r351, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction).
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2009-10-05 21:25:28.202
!MESSAGE Error while loading manipulator.
!STACK 0
java.lang.IllegalStateException: Error while loading manipulator.
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.loadDelegate(LazyManipulator.java:54)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.getConfigData(LazyManipulator.java:108)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction.uninstallBundle(UninstallBundleAction.java:74)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction.execute(UninstallBundleAction.java:29)
at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:35)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.mainPerform(Phase.java:129)
at org.eclipse.equinox.internal.provisional.p2.engine.Phase.perform(Phase.java:72)
at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet.perform(PhaseSet.java:44)
at org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:54)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.performProvisioningPlan(ProvisioningUtil.java:389)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProfileModificationOperation.doExecute(ProfileModificationOperation.java:61)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningOperation.execute(ProvisioningOperation.java:37)
at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningOperationRunner$1.run(ProvisioningOperationRunner.java:94)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
This may be related to bug 285743: as explained in this thread
What happens is that P2 fails to correctly setup osgi.install.area, because it doesn't strip 'plugins' part from the path. I saw this happen when eclipse.ini file in target directory didn't have '-startup' option in it.
Take a look into your eclipse.ini file if it contains -startup option like this:
-startup
plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
Note: if this is the case, you can refer to "proper" eclipse.ini to avoid any settings-related problem (for eclipse3.4 or 3.5.x): see "good" eclipse.ini.