GithubHelp home page GithubHelp logo

Comments (15)

dudukk1312 avatar dudukk1312 commented on September 16, 2024 1

@shadycuz
there is it, please take it F.Y.I
Version: 1.59.1 (user setup)
Commit: 3866c3553be8b268c8a7f8c0482c0c0177aa8bfa
Date: 2021-08-19T11:56:46.957Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.18363

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

Hey, sorry I didn't see this until now. It should handle most of the default built in groovy stuff without pointing it to the groovy SDK. The lib path is meant for 3rd party classes and stuff that you are using in your project. It's usually a folder full of jars. I would remove that for now.

I have never taken a look at memory consumption before. I just took a look on my machine and the language server is using 1.3Gb. I don't maintain the LS but I will report it, because it seems a bit high.

I have a new feature but I haven't released it yet, it adds a status bar at the bottom of the vscode gui that lets you know if the LS is running or if it had an error. I will try and get that feature out tomorrow.

Can you try hovering on a variable and see if the hover pops up? That will let you know if its working correctly or not.

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

I just added a small icon to show the status of the extension. Check out step 2 of the README for what the icon looks like. Make sure your plugin upgrades to 0.4.0. It should automatically.

from groovy-guru.

dudukk1312 avatar dudukk1312 commented on September 16, 2024

Hi @shadycuz ,

Thank you for replied.
I tried to install your latest update. It still does not work for me.
image
image

As you demo, the methods of List will appear, but in my VSCode, nothing happens.
When I hover on the user variable, nothing happens too.
I disabled all Jenkins doc and Groovy Lint extensions.
Do you need more any information to check this issue?

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

@dudukk1312 What happens if you hover over the variable with your mouse? Do you get a window that pops up? Like this:

image

Do you have Java 1.8 installed? It is required.

If you hit ctrl+shift+u , it should bring up an output tab.

Can you paste the contents of the Groovy Language Server logs and Log(Extension Host).

image

If they are really long, that first icon to the right of the dropdown menu will clear the logs. You can then type ctrl+shift+p and type Reload Window and hit enter. That will restart vscode and then you can try and use the extension and then copy the logs which should be a lot shorter.

from groovy-guru.

dudukk1312 avatar dudukk1312 commented on September 16, 2024

Do you get a window that pops up

No, it doesn't

Do you have Java 1.8 installed? It is required.

yes, of course.
image
you can see it's running LS by java.exe

Can you paste the contents of the Groovy Language Server

It only has this information:
image

and Log(Extension Host)

Only this information relates to groovy-guru after Reload Window

[2021-08-28 00:17:36.341] [exthost] [info] ExtensionService#_doActivateExtension DontShaveTheYak.groovy-guru {"startup":false,"extensionId":{"value":"DontShaveTheYak.groovy-guru","_lower":"dontshavetheyak.groovy-guru"},"activationEvent":"onLanguage:groovy"}
[2021-08-28 00:17:36.343] [exthost] [info] ExtensionService#loadCommonJSModule file:///c:/Users/<myusername>/.vscode/extensions/dontshavetheyak.groovy-guru-0.4.0/dist/extension.js

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

@dudukk1312 I'm really not sure 🤔

When you type user. can you press ctrl + space (after the period)? That should "force" it to autocomplete. If that doesn't work, I will need to release a new version of the plugin with better logging, which is I was going to do eventually anyways.

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

Also when you have your process explorer open, does the memory and cpu of the LS change when you are typing groovy? I see mine moving around.

What is weird for me is that on windows I use less than 100MB of ram, which is a big reduction from linux, but I guess in linux I had lots and lots of groovy files open.

from groovy-guru.

dudukk1312 avatar dudukk1312 commented on September 16, 2024

@shadycuz
I tried ctrl +space. A new log message appeared 😂
image

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

Is the file saved 🤔 , you need to save the file first before it will work.

From the log you are showing, everything is working.

from groovy-guru.

dudukk1312 avatar dudukk1312 commented on September 16, 2024

I saved it and try again
image

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

I don't really know ☚ī¸

I can add better logging this weekend, and that might help us figure out the problem.

The only thing I can think of is some other extension interfering. I see you have some fancy G icon next to your file name? There is a command called "Developer: Show Running Extensions" that will show you all the ones that are activated. You can then right-click them and disable them for the current workspace.

From the logs you have shown me the extension is working correctly but for some reason, your vscode is not showing the results in the gui.

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

@dudukk1312 Can you go to Help at the top of your vscode and click About and then copy-paste the results? It will help me when I go and look for additional help.

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

@dudukk1312 Can you do ctrl + shift + p and search for "Open Settings (JSON)".

In that JSON file can you set the following value "groovy.trace.server": "verbose"

Then reload your window and you should see lots of information in the Groovy Language Server log tab.

I cleared mine and then hovered over users and got this:

[Trace - 11:05:15 AM] Sending request 'textDocument/hover - (33)'.
Params: {
    "textDocument": {
        "uri": "file:///home/shadycuz/repos/dsty/testGroovy/test.groovy"
    },
    "position": {
        "line": 0,
        "character": 8
    }
}


[Trace - 11:05:15 AM] Received response 'textDocument/hover - (33)' in 1ms.
Result: {
    "contents": {
        "kind": "markdown",
        "value": "```groovy\nList users\n```\n"
    }
}

from groovy-guru.

shadycuz avatar shadycuz commented on September 16, 2024

If you are still having issues then feel free to reply.

from groovy-guru.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.