Comments (9)
@codecat @depilz
Please move to #247
from lua-language-server.
VSCode should not startup language server until you open a lua file.
Please show me your log, it should at server/log/
from lua-language-server.
I noticed that this process is runnig while vs code was already closed long time ago, since extension has updated I have no access to logs. Seems like server process outlived vscode session. Anyway it shouldn't wakeup or do some work since nothing going on.
from lua-language-server.
Obtained log, since file decriptor to that file still alive (cp /proc/25321/fd/3 log
):
log.txt
BTW ls -l /proc/25321/fd/
shows this:
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 0 -> 'socket:[758868]'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 1 -> 'socket:[758870]'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 101 -> '/dev/shm/.org.chromium.Chromium.hhKSyA (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 2 -> 'socket:[758872]'
l-wx------ 1 yanpas yanpas 64 июн 5 00:38 3 -> '/home/yanpas/.vscode/extensions/sumneko.lua-0.9.9/server/log/file_home_yanpas_pg.log (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 34 -> 'socket:[751329]'
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 35 -> /opt/visual-studio-code/resources/app/node_modules.asar
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 36 -> 'socket:[751330]'
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 38 -> /opt/visual-studio-code/resources/electron.asar
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 39 -> '/dev/shm/.org.chromium.Chromium.rgFv9F (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 40 -> '/dev/shm/.org.chromium.Chromium.PDp1xy (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 41 -> '/dev/shm/.org.chromium.Chromium.FKbzWq (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 42 -> '/dev/shm/.org.chromium.Chromium.xu29kj (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 44 -> '/dev/shm/.org.chromium.Chromium.tbDgKb (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 45 -> '/dev/shm/.org.chromium.Chromium.zp4n93 (deleted)'
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 47 -> /usr/share/fonts/TTF/times.ttf
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 52 -> /usr/share/fonts/TTF/arial.ttf
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 53 -> '/dev/shm/.org.chromium.Chromium.tpy41f (deleted)'
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 54 -> /usr/share/fonts/TTF/arial.ttf
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 55 -> /usr/share/fonts/TTF/arialbd.ttf
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 56 -> /usr/share/fonts/TTF/arialbd.ttf
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 57 -> /usr/share/fonts/TTF/DejaVuSans.ttf
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 58 -> /usr/share/fonts/TTF/times.ttf
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 59 -> /usr/share/fonts/TTF/DejaVuSans.ttf
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 60 -> '/dev/shm/.org.chromium.Chromium.9C8SFL (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 61 -> '/dev/shm/.org.chromium.Chromium.TcUcDO (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 62 -> '/dev/shm/.org.chromium.Chromium.rK9wAR (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 63 -> '/dev/shm/.org.chromium.Chromium.LrCRxU (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 64 -> '/dev/shm/.org.chromium.Chromium.zYFfvX (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 65 -> '/dev/shm/.org.chromium.Chromium.Ja5un6 (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 66 -> '/dev/shm/.org.chromium.Chromium.FmtEs0 (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 67 -> '/dev/shm/.org.chromium.Chromium.DSc4p3 (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 68 -> '/dev/shm/.org.chromium.Chromium.RPHsic (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 69 -> '/dev/shm/.org.chromium.Chromium.v8EYk9 (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 70 -> '/dev/shm/.org.chromium.Chromium.dZ4Wff (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 71 -> '/dev/shm/.org.chromium.Chromium.x0xudi (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 72 -> '/dev/shm/.org.chromium.Chromium.Jxe6al (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 73 -> '/dev/shm/.org.chromium.Chromium.vSlI8n (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 74 -> '/dev/shm/.org.chromium.Chromium.pDjdXC (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 75 -> '/dev/shm/.org.chromium.Chromium.h19n6q (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 76 -> '/dev/shm/.org.chromium.Chromium.vmc43t (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 77 -> '/dev/shm/.org.chromium.Chromium.phHK1w (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 78 -> '/dev/shm/.org.chromium.Chromium.9ZrISI (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 79 -> '/dev/shm/.org.chromium.Chromium.HVIXHX (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 80 -> '/dev/shm/.org.chromium.Chromium.pMNtZz (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 81 -> '/dev/shm/.org.chromium.Chromium.VwNxQL (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 82 -> '/dev/shm/.org.chromium.Chromium.ttDXUF (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 83 -> '/dev/shm/.org.chromium.Chromium.BEwnOO (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 84 -> '/dev/shm/.org.chromium.Chromium.tAsdMR (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 85 -> '/dev/shm/.org.chromium.Chromium.jCS3JU (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 86 -> '/dev/shm/.org.chromium.Chromium.dIQo4G (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 87 -> '/dev/shm/.org.chromium.Chromium.rUcaE3 (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 88 -> '/dev/shm/.org.chromium.Chromium.hhKSyA (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 89 -> '/dev/shm/.org.chromium.Chromium.V4M3F0 (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 90 -> '/dev/shm/.org.chromium.Chromium.LGghC6 (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 91 -> '/dev/shm/.org.chromium.Chromium.zdFWui (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 92 -> '/dev/shm/.org.chromium.Chromium.9mMpA9 (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 93 -> '/dev/shm/.org.chromium.Chromium.n5nzyc (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 94 -> '/dev/shm/.org.chromium.Chromium.DCOKwf (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 95 -> '/dev/shm/.org.chromium.Chromium.nHY8sl (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 96 -> '/dev/shm/.org.chromium.Chromium.3UZypr (deleted)'
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 97 -> '/dev/shm/.org.chromium.Chromium.58Blro (deleted)'
lr-x------ 1 yanpas yanpas 64 июн 5 00:38 98 -> /opt/visual-studio-code/resources/app/node_modules.asar
lrwx------ 1 yanpas yanpas 64 июн 5 00:38 99 -> '/dev/shm/.org.chromium.Chromium.zKCkkK (deleted)'
Do you know what kind of memory is using server with chromium?
from lua-language-server.
Should be fixed.
from lua-language-server.
I have a very big project. Opening a single very small file in this project leads quickly to a situation where lua-language-server takes 98% of CPU and 224.7 Mb of real mem. This is OSX 10.14.6.
Usually when this happens VSCode shows: 'Loading document symbols for 'vscode-debug.lua'
There can be multiple versions of lua-language-server open at the same time, each consuming 98% of CPU. Quitting VSCode does not stop those processes.
Should there be a limit on how much files it searches?
cloc .
=>
Language files blank comment code
--------------------------------------------------------------------------------
JSON 1723 163 0 249021
Lua 864 24660 30400 202022
from lua-language-server.
sumneko_lua always eats CPU power even on idle, it suffices that there are open files in the background and it will eat CPU power for each of them.
comparison with clangd:
top -b -n 1 | grep lua | xclip -selection c
14825 gianmar+ 20 0 251472 30172 4216 R 12,5 0,4 2:53.14 lua-language-se
14827 gianmar+ 20 0 262652 39852 4072 R 6,2 0,5 2:54.19 lua-language-se
top -b -n 1 | grep clangd | xclip -selection c
23485 gianmar+ 20 0 799960 58604 44568 S 0,0 0,7 0:00.12 clangd.main
I'm using neovim, not vscode. On idle it shouldn't consume CPU power at all, I think, the more open lua buffers you have, the worse it gets.
from lua-language-server.
I also noticed 100% CPU usage today, the server kept running even after vscode had closed, so I had to manually terminate the process that was running at 100% CPU.
from lua-language-server.
Same for me, I'm using this plugin for months with no problem at all (actually, very satisfied), but today it is taking the whole processor by itself. The processes still there even if I disable the plugin and entirely quit VSC.
from lua-language-server.
Related Issues (20)
- [Feature Request] Allow passing filters to `--doc`
- 新版本
- 定义泛型函数对于指定了泛型类型的参数插件无法识别该参数的类型,不能提示出该类型的正确成员
- linux arm missing from releases
- Annotation type any not working properly
- operator 貌似不支持重载?可否支持? HOT 1
- .luarc.json file doesn't apply the nameStyle.config
- require path with custom package.loaders HOT 2
- Class generics cannot inherit directly from the generic HOT 1
- Change default TokenModifiers global color
- Slow startup + invalid UTF-8 code HOT 2
- Anonymous function whitespace
- Addons not working right HOT 7
- `Lua: Export Document ...` fails, throws error in log when trying to export documentation. HOT 2
- luaLS 推荐搭配什么调试 lua 插件要好? HOT 1
- LuaLS 3.9 feels sluggish and shows stray warnings HOT 8
- 升级新版本后无法使用 HOT 1
- Diagnostics run `await.delay()` too often HOT 1
- 能否支持 类似 python 的 import 的模块类型?
- operator 对于左右两边类型不一样的情况下只能支持定义该 operator 的类型在左边,在右边会推到不了类型
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 lua-language-server.