Comments (6)
Thanks for the report. Do you have a sample project where this behavior is reproducible? Can you post the output of running M-x company-diag
?
from lsp-sourcekit.
For me it happens in Login/Login.swift
in https://github.com/jandamm/gitlab-ci-viewer/tree/test.
I'll run company-diag later 👍
from lsp-sourcekit.
Emacs 26.3 (x86_64-apple-darwin18.7.0) of 2019-09-05 on Mac
Company 0.9.10
company-backends: (company-lsp company-yasnippet)
Used backend: company-lsp
Major mode: swift-mode
Prefix: stop
Completions: none
from lsp-sourcekit.
@jandamm, SourceKit-LSP has just implemented server-side filtering of completion results (see apple/sourcekit-lsp#298). This should improve performance, specially on Emacs <27, where JSON serialisation is done in Emacs Lisp code.
Could you compile a SourceKit-LSP toolchain from top of tree and see if completion performance is better? Thanks.
from lsp-sourcekit.
Hey @danielmartin, thanks for the follow up.
I've switched back to Neovim in the meantime. Having some performance issues with sourcekit-lsp there as well.
But they improved over the last months, so I'd guess company mode has gotten better as well :)
from lsp-sourcekit.
For posterity, building sourcekit-lsp
removed the lag for me.
git clone https://github.com/apple/sourcekit-lsp.git
cd sourcekit-lsp
export TOOLCHAINS=swift
swift package update
swift build -c release
ls -l .build/release/sourcekit-lsp
from lsp-sourcekit.
Related Issues (12)
- Add lsp-sourcekit to MELPA HOT 2
- Emacs 25 incompatibility HOT 2
- no such module 'UIKit' HOT 2
- lsp-sourcekit can't get complete candidates HOT 8
- completion stops working after error HOT 3
- Example of working config? HOT 2
- "could not open compilation database for /path/to/Foo.swift" HOT 2
- Error during redisplay: (eval (lsp-mode-line)) signaled (wrong-type-argument lsp--workspace nil) [6 times] HOT 5
- Configuration Help HOT 3
- lisp-sourcekit doesn't support LSP server of Xcode 11.4 HOT 2
- No completion on basic SPM project (Xcode 12 beta) HOT 10
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 lsp-sourcekit.