Tagged: copilot signin github fail
- This topic has 5 replies, 3 voices, and was last updated 9 months, 4 weeks ago by wayne.
-
AuthorPosts
-
sssujithParticipantI tried with latest eclipse , spring tool suite. when I click Sign in to Github copilot nothing happens. I observed the following error in error log.
It would be great if you could make this work. I would hate if i have to start using Vscode because of copilot compatibility alone.
Not sure if it is related but I am behind a corporate proxy that injects its certificate on every site. I had to import the certificate to jre cacerts to make eclipse marketplace workCommand ‘com.genuitec.copilot4eclipse.commands.signInCommand’ failed
org.eclipse.core.commands.ExecutionException: Error executing ‘com.genuitec.copilot4eclipse.commands.signInCommand’: java.lang.NullPointerException: Cannot read field “status” because “<local4>” is null
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:170)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:485)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:438)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:449)
at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:475)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4274)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:645)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:552)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:171)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
at org.eclipse.equinox.launcher.Main.run(Main.java:1459)
Caused by: org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException: Cannot read field “status” because “<local4>” is null
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:300)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
… 32 more
Caused by: java.lang.NullPointerException: Cannot read field “status” because “<local4>” is null
at com.genuitec.copilot4eclipse.handlers.SignInHandler.execute(Unknown Source)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
… 36 moreeclipse.buildId=4.29.0.20230907-1200
java.version=17.0.8.1
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -data file:/C:/Users/ss5266/eclipse-workspace/ -product org.eclipse.epp.package.jee.product
wayneModeratorHi, Thanks for reporting this issue. Copilot4Eclipse is still early in development, (early-access 2 shipped earlier today), and we will be working through problems such as this.I suspect that network access is possibly the root cause. Several things to check:
1) GitHub Copilot business subscription is required for HTTP proxy support via custom certificates. Are you using a Copilot business subscription?
2) If your proxy’s URL starts with https://, it is not currently supported by GitHub Copilot.
3) Please see this copilot network troubleshooting guide, especially the Troubleshooting certificate-related errors section and see if it helps:
https://docs.github.com/en/enterprise-cloud@latest/copilot/troubleshooting-github-copilot/troubleshooting-network-errors-for-github-copilotPlease keep us posted on what you learn.
Wayne
sssujithParticipantHi Wayne,
I uninstalled the prev version and installed EA3 today. Sadly, i am having the same problem. the following is the stack trace!ENTRY org.eclipse.core.jobs 4 2 2024-01-02 11:49:32.173
!MESSAGE An internal error occurred during: “Copilot4Eclipse Init”.
!STACK 0
java.lang.NullPointerException: Cannot invoke “com.genuitec.copilot4eclipse.Copilot4EclipsePlugin.log(java.lang.Throwable)” because the return value of “com.genuitec.copilot4eclipse.Copilot4EclipsePlugin.getDefault()” is null
at com.genuitec.copilot4eclipse.Copilot4Eclipse.lambda$0(Unknown Source)
at com.genuitec.copilot4eclipse.Copilot4Eclipse$1.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
!SESSION 2024-01-02 11:49:33.916 ———————————————–
eclipse.buildId=4.29.0.20230907-1200
java.version=17.0.8.1
java.vendor=Eclipse Adoptium
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -data file:/C:/Users/ss5266/eclipse-workspace/ -product org.eclipse.epp.package.jee.product
wayneModeratorBased on this line
“com.genuitec.copilot4eclipse.Copilot4EclipsePlugin.getDefault()” is null
I’m thinking the installation process was faulty. Please try:
– uninstalling Copilot4Eclipse, restart,
– clear error log
– then install Copilot4Eclipse again from the Eclipse Marketplace
– restart 1 more timeI was revisiting your initial msg and am thinking about this
I had to import the certificate to jre cacerts to make eclipse marketplace work
. Internally Copilot4Eclipse is running a nodejs process to communicate with the Copilot servers over a TLS encrypted connection. Can you try an experiment of setting the nodejs NODE_EXTRA_CA_CERTS environment variable to point to the your cert file in pem format as discussed here: https://stackoverflow.com/questions/70198705/how-can-i-set-node-extra-ca-certs-on-node In the meantime we will continue to work on this from our side.Lastly, is your Copilot subscription at the individual level or business level?
W
slecsParticipanthello wayne
When will the proxy for https be supported????
-
AuthorPosts