facebook

Cannot get any suggestion 1.0ea [Resolved]

  1. Copilot4Eclipse – GitHub Copilot on Eclipse
  2.  > 
  3. General Discussion
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #699057 Reply

    Moloch
    Participant

    Hello,
    I’ve just installed copilot for eclipse.
    Copilot is working fine with VS Code (so nothing wrong with my github suscription), but is not providing any suggestion on eclipse.

    When activating copilot4eclipse logs, I can see that the query submitted is immediately “cancelled”.
    I am using a corporate proxy, but I have no problems with Eclipse Marketplace using “Native” network settings.
    Best regards
    Logs :

    
    [2023-12-01T17:29:55.116420300+01:00] LANGUAGE_SERVER_TO_LSP4E com.genuitec.copilot4eclipse.copilot:
    {"jsonrpc":"2.0","id":"12","result":{"status":"OK","user":"XXX"}}
    
    [2023-12-01T17:29:55.122419700+01:00] LSP4E_TO_LANGUAGE_SERVER com.genuitec.copilot4eclipse.copilot:
    Content-Length: 659
    
    [2023-12-01T17:29:55.122419700+01:00] LSP4E_TO_LANGUAGE_SERVER com.genuitec.copilot4eclipse.copilot:
    {"jsonrpc":"2.0","id":"13","method":"getCompletionsCycling","params":{"doc":{"tabSize":4,"indentSize":4,"insertSpaces":true,"position":{"line":212,"character":0},"uri":"file:/XXX.java","relativePath":"XXX.java","version":1},"textDocument":{"uri":"file:/XXX.java","version":1},"position":{"line":212,"character":0}}}
    
    [2023-12-01T17:29:55.141448400+01:00] LANGUAGE_SERVER_TO_LSP4E com.genuitec.copilot4eclipse.copilot:
    {"jsonrpc":"2.0","method":"LogMessage","params":{"level":0,"message":"[DEBUG] [getCompletions] [2023-12-01T16:29:55.127Z] Requesting completion at position 212:0, between \"        XXX(false, false, false);\\n\" and \"        try {\\n            final XXX job = new XXX ();\\n\".","metadataStr":"[DEBUG] [getCompletions] [2023-12-01T16:29:55.127Z]","extra":["Requesting completion at position 212:0, between \"        XXX(false, false, false);\\n\" and \"        try {\\n            final XXX job = new XXX();\\n\"."]}}
    
    [2023-12-01T17:29:55.142419800+01:00] LANGUAGE_SERVER_TO_LSP4E com.genuitec.copilot4eclipse.copilot:
    {"jsonrpc":"2.0","id":"13","result":{"completions":[],"cancellationReason":"RequestCancelled"}}
    
    • This topic was modified 11 months, 2 weeks ago by Moloch.
    • This topic was modified 11 months, 2 weeks ago by wayne.
    #699060 Reply

    Brian Fernandes
    Moderator

    Appreciate all the helpful details upfront!

    1) Can you tell us how how you’ve set up the proxy on your machine – is it set via an env variable? And just to confirm, you have no proxy settings in Eclipse on its Network Connections page, you’ve left it at “Native”?
    2) What Eclipse package are you using, and what version?
    3) What language / editor is this – have you tried editors for other file types (good to know if it’s failing everywhere)?

    Thanks!

    #699069 Reply

    Moloch
    Participant

    Hello,
    Networks settings are “native” ; my company uses Zscaler (https://www.zscaler.com/products/zscaler-internet-access) and a proxy script.
    Target language is Java.

    My eclipse installation details are:

    Bash Editor 2.9.0 de.jcup.basheditor.feature.group Albert Tregnaghi
    Buildship: Eclipse Plug-ins for Gradle 3.1.8.v20231120-0947 org.eclipse.buildship.feature.group Eclipse Buildship
    Cloud Foundry Manifest Language Server Feature 4.13.0.202112031705 org.springframework.tooling.cloudfoundry.manifest.ls.feature.feature.group VMware, Inc.
    CodeTogether Collaboration 2023.2.0.202309191818 com.genuitec.eclipse.codetogether.feature.feature.group Genuitec, LLC
    Concourse Pipeline Language Server Feature 4.13.0.202112031705 org.springframework.tooling.concourse.ls.feature.feature.group VMware, Inc.
    Copilot4Eclipse 1.0.0.202311301131-EA2 com.genuitec.copilot4eclipse.feature.feature.group Genuitec, LLC
    DevStyle (includes Darkest Dark Theme) 1.11.0.202306151725 com.genuitec.eclipse.theming.core.feature.feature.group Genuitec, LLC
    DevStyle with CodeTogether Bundle 1.11.0.202306151725 com.genuitec.eclipse.theming.feature.feature.group Genuitec, LLC
    EclEmma Java Code Coverage 3.1.7.202306070845 org.eclipse.eclemma.feature.feature.group Eclipse EclEmma
    Eclipse IDE for Java Developers 4.29.0.20230907-1200 epp.package.java Eclipse Packaging Project
    Eclipse Java Development Tools 3.19.200.v20230903-1000 org.eclipse.jdt.feature.group Eclipse.org
    Eclipse Java EE Developer Tools 3.31.0.v202308110616 org.eclipse.jst.enterprise_ui.feature.feature.group Eclipse Web Tools Platform
    Eclipse Java Web Developer Tools 3.31.0.v202307061452 org.eclipse.jst.web_ui.feature.feature.group Eclipse Web Tools Platform
    Eclipse Java Web Developer Tools – JavaScript Support 3.31.0.v202307061452 org.eclipse.jst.web_js_support.feature.feature.group Eclipse Web Tools Platform
    Eclipse JSON Editor and Tools 1.1.11.v202308160419 org.eclipse.wst.json_ui.feature.feature.group Eclipse Web Tools Platform
    Eclipse Web Developer Tools 3.31.0.v202308210520 org.eclipse.wst.web_ui.feature.feature.group Eclipse Web Tools Platform
    Eclipse Web JavaScript Developer Tools 3.22.0.v202307260543 org.eclipse.wst.web_js_support.feature.feature.group Eclipse Web Tools Platform
    Eclipse XML Editors and Tools 3.31.0.v202308200343 org.eclipse.wst.xml_ui.feature.feature.group Eclipse Web Tools Platform
    Eclipse XSL Developer Tools 1.3.1500.v202307260701 org.eclipse.wst.xsl.feature.feature.group Eclipse Web Tools Platform
    Enhanced Class Decompiler (Core) 3.4.0 org.sf.feeling.decompiler.feature.group ECD project contributors
    Enhanced Class Decompiler CFR Extension (Optional) 3.4.0 org.sf.feeling.decompiler.cfr.feature.group ECD project contributors
    Enhanced Class Decompiler Jad Extension (Optional) 3.2.2 org.sf.feeling.decompiler.jad.feature.group ECD project contributors
    Enhanced Class Decompiler JD-Core Extension (Optional) 3.4.0 org.sf.feeling.decompiler.jd.feature.group ECD project contributors
    Enhanced Class Decompiler Procyon Extension (Optional) 3.4.0 org.sf.feeling.decompiler.procyon.feature.group ECD project contributors
    Enhanced Class Decompiler Source (Optional) 3.4.0 org.sf.feeling.decompiler.source.feature.group ECD project contributors
    FreeMarker IDE 1.5.306.v20210709-2349 org.jboss.ide.eclipse.freemarker.feature.feature.group Red Hat
    Git integration for Eclipse 6.7.0.202309050840-r org.eclipse.egit.feature.group Eclipse EGit
    JAutodoc 1.15.0.202007122220 net.sf.jautodoc.feature.feature.group Martin Kesting
    Java implementation of Git 6.7.0.202309050840-r org.eclipse.jgit.feature.group Eclipse JGit
    JST Server Adapters 3.31.0.v202308110241 org.eclipse.jst.server_adapters.feature.feature.group Eclipse Web Tools Platform
    JST Server Adapters Extensions (Apache Tomcat) 3.4.700.v202308172116 org.eclipse.jst.server_adapters.ext.feature.feature.group Eclipse Web Tools Platform
    JST Server UI 3.4.500.v202308172116 org.eclipse.jst.server_ui.feature.feature.group Eclipse Web Tools Platform
    JustJ Adoptium OpenJDK Hotspot JRE Complete 21.0.1.v20231028-0937 org.eclipse.justj.openjdk.hotspot.jre.full.feature.group Eclipse JustJ
    M2E – Maven Integration for Eclipse 2.4.200.20231119-0901 org.eclipse.m2e.feature.feature.group Eclipse.org – m2e
    M2E – POM Editor using LemMinX language server (includes Incubating components) 2.0.6.20231113-2319 org.eclipse.m2e.lemminx.feature.feature.group Eclipse.org – m2e
    M2E – SLF4J over Logback Logging 2.2.1.20231113-2319 org.eclipse.m2e.logback.feature.feature.group Eclipse.org – m2e
    Marketplace Client 1.10.1.v20221110-1841 org.eclipse.epp.mpc.feature.group Eclipse Marketplace Client
    Mylyn WikiText Editors 3.0.48.202308291007 org.eclipse.mylyn.wikitext.editors_feature.feature.group Eclipse Mylyn
    Node.js embedder from Wild Web Developer 1.0.7.202310251358 org.eclipse.wildwebdeveloper.embedder.node.feature.feature.group Eclipse Wild Web Developer project
    Oomph Setup 1.29.0.v20230828-1517 org.eclipse.oomph.setup.feature.group Eclipse Oomph Project
    SonarLint for Eclipse 9.1.0.81411 org.sonarlint.eclipse.feature.feature.group SonarSource
    Spring Boot Language Server Feature 4.13.0.202112031705 org.springframework.tooling.boot.ls.feature.feature.group VMware, Inc.
    Spring IDE Boot Microservices Dash 4.13.0.202112031901 org.springframework.ide.eclipse.boot.dash.feature.feature.group Spring IDE Developers
    Spring Tool Suite 4 Main Feature 4.13.0.202112031901 org.springframework.boot.ide.main.feature.feature.group VMware, Inc.
    SQL Editor 1.4.0 de.jcup.sqleditor.feature.group Albert Tregnaghi
    Tip of the Day UI Feature 0.4.100.v20230726-0617 org.eclipse.tips.feature.feature.group Eclipse.org
    TM Terminal 11.3.0.202307110141 org.eclipse.tm.terminal.feature.feature.group Eclipse CDT
    Wild Web Developer HTML, CSS, JSON, Yaml, JavaScript, TypeScript, Node tools 1.3.3.202311211923 org.eclipse.wildwebdeveloper.feature.feature.group Eclipse Wild Web Developer project
    Wild Web Developer XML tools 1.3.1.202310310352 org.eclipse.wildwebdeveloper.xml.feature.feature.group Eclipse Wild Web Developer project
    WST Server Adapters 3.31.0.v202308110241 org.eclipse.wst.server_adapters.feature.feature.group Eclipse Web Tools Platform
    WST Server UI 3.3.1800.v202308172116 org.eclipse.wst.server_ui.feature.feature.group Eclipse Web Tools Platform
    Yaml Editor 1.9.0 de.jcup.yamleditor.feature.group Albert Tregnaghi

    #699072 Reply

    wayne
    Moderator

    Thx for the additional info. We are digging in to better understand the various proxy configuration issues.
    Can you please try this quick experiment of setting your proxy connection details in an environment variable and then restarting Eclipse?

    HTTPS_PROXY=userid:pwd@ip:port

    e.g.,
    without credentials: HTTPS_PROXY=myproxyip:3128
    with credentials: HTTPS_PROXY=tom:123@myproxyip:3128

    Please note there is a known issue where github copilot does not support proxy servers with url starting with “https”.

    It will be helpful to know if this works as a workaround while we work through this and another user proxy issue.
    Regards,
    Wayne

    #699094 Reply

    Moloch
    Participant

    Hello,
    it actually worked, thanks!

    #699095 Reply

    wayne
    Moderator

    That is good news. Please ping us if you encounter other issues or have a neat feature idea we should know about.
    Regards,
    Wayne

    #699448 Reply

    Philipp25
    Participant

    I have the same problem and get the same logs as Moloch, I tried using a public proxy but had no success with that approach. Might I overlook something here?

    #699458 Reply

    Philipp25
    Participant

    Edit: The proxy settings on my system are not set via environment variables, suggesting that the current method may not work in my situation. Could you advise on what specific information or requests I need to communicate to my network administrators to ensure the plugin works?

    • This reply was modified 10 months, 4 weeks ago by Philipp25.
    #700079 Reply

    vmr
    Participant

    I’m facing also the issue with the copilot, the completion status: no completions available

    Following steps are done
    – Eclipse IDE 2023-12 is being installed
    – Copilot plug-in installed and set up successfully, Status: Copilot4Eclilpse: ready
    – Network connection in Eclipse is configured by using proxy settings
    -> Active Provider: manual
    -> Schema HTTP and HTTPS is checked and configured with authentication

    Any idea what the reason could be for this issue

    #700095 Reply

    wayne
    Moderator

    Hi,
    This is interesting with the status at ready and no results.
    Several things to check:

    0) With the status showing “ready” try manually requesting Copilot completions:
    – Create or open a Java file in the Eclipse java editor.
    – Place the cursor inside a method on a blank line.
    – Now type the first 2-4 characters of this line “System.out.println(”
    – Choose the Copilot menu > Show Completions, watch the status bar to see if there is a short activity with text “Copilot gen…”
    – Does the a completion appear to the right of the cursor in light gray text (i.e., ghost text)?
    – If yes, inspect the Copilot4Eclipse preferences and enable the “Automatically show Copilot completions” setting. This will enable completions to be requested and displayed in real-time as you type.

    1) Can you check the Eclipse error log for any errors
    If no code suggestions/completions appear in (0) above, check the Eclipse error log for useful error messages.
    Please share any details from the log. You may need to clear the log if it is very large and then repeat (0) for a smaller manageable log.

    2) Signout/Signin
    I’m wondering if the Copilot “Status: Copilot4Eclpse Ready” is a false positive. Try signing out and then sign back in from the Copilot menu.
    If the process fails on signin please check the error log and share any entries.

    Hopefully we can get this resolved shortly.
    Wayne

    #701147 Reply

    Moloch
    Participant

    Bad news, I’ve upgraded eclipse to 2024-03 (4.31.0) and the plugin to 1.2.0.202405271 and it totally stopped working.
    I can neither sign in to copilot nor get recommandations.

    I have error logs such as “java.util.concurrent.CancellationException” due to “channel closing” IO exceptions for all accesses to the copilot server from the plugin.
    I have no issue accessing the market place and installing plugins, whatever the “Network” settings : Direct or Manual via a localhost proxy.

    I the latter case, through a manual proxy, I can see all eclipses queries but none comming from the copilot plugin, so it ignores the network parameter, and setting HTTP_PROXY / HTTPS_PROXY env vars before launching eclipse does not have any effect either.

    #701185 Reply

    wayne
    Moderator

    Hi Moloch,

    I’m wondering if you are hitting a plugin incompatibility issue that we identified recently.

    1) Can you do me a favor and check your Eclipse install and determine if the “Wild Web Developer editors” plugin is installed. If yes, what is the version number of the plugin?

    2) Are you running Eclipse 4.31 with Java 17? If no, what version of Java are you running?

    Please share this info and we can work from there.

    Wayne
    Copilot4Eclipse Team

    #701209 Reply

    Moloch
    Participant

    Hi,
    I’ve missed your reply.
    My wild web developer plugin version is 1.36.202405280856
    I’m running with java 21 (corretto).
    Arnaud

    #701212 Reply

    wayne
    Moderator

    Arnaud,
    I have setup a similar environment as you have described on Win 11. Two key difference when running the newer WWD plugin is it moves from using Nodejs v18 to Nodejs v20 internally and I’m not behind an enterprise proxy. No issues with Copilot4Eclipse observed in my test env. I am running a new dev build in prep for an upcoming Copilot4Eclipse 1.2.0 update next week. Would you consider helping us test this build in your environment to see how it functions? If yes send me a note to my attention, support@genuitec.com.

    Wayne

    #701217 Reply

    Moloch
    Participant

    Ok, I’ve made a clean reinstall of my eclipse, and it works again. Kept the old install for reference.

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: Cannot get any suggestion 1.0ea [Resolved]

You must be logged in to post in the forum log in