GithubHelp home page GithubHelp logo

Comments (6)

danielmartin avatar danielmartin commented on June 18, 2024

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.

jandamm avatar jandamm commented on June 18, 2024

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.

jandamm avatar jandamm commented on June 18, 2024
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.

danielmartin avatar danielmartin commented on June 18, 2024

@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.

jandamm avatar jandamm commented on June 18, 2024

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.

blandinw avatar blandinw commented on June 18, 2024

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)

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.