Comments (15)
@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.
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.
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.
Hi @shadycuz ,
Thank you for replied.
I tried to install your latest update. It still does not work for me.
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.
@dudukk1312 What happens if you hover over the variable with your mouse? Do you get a window that pops up? Like this:
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)
.
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.
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.
you can see it's running LS by java.exe
Can you paste the contents of the Groovy Language Server
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.
@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.
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.
@shadycuz
I tried ctrl +space
. A new log message appeared đ
from groovy-guru.
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.
from groovy-guru.
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.
@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.
@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.
If you are still having issues then feel free to reply.
from groovy-guru.
Related Issues (19)
- Illegal argument: line must be non-negative HOT 5
- Bundle the JAR with the extension HOT 5
- No intellisense for unsaved files HOT 2
- Unable to see what the extension is doing
- How to prevent the extension from checking files in `bin` folder? HOT 7
- Automatic dependency/classpath handling with maven HOT 7
- Does not work on latest vscode (1.65 windows) HOT 4
- Open VSX HOT 3
- Language Server won't start HOT 8
- Very high CPU usage on remote HOT 6
- Is this extension supported on Mac? HOT 10
- Dependency Dashboard
- Only download language server once
- Javadoc comment formatting HOT 1
- Invalid duplicate class definition of class Jenkinsfile HOT 2
- FileSystemAPI/-Provider Workspaces have no IntelliSense
- Go to definition for @Fields and def fails HOT 2
- Unable to access jarfile on Windows HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ī¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from groovy-guru.