Giter VIP home page Giter VIP logo

Comments (9)

chemzqm avatar chemzqm commented on May 18, 2024 1

@wwwdata I've figured it out, is's bug of dart language server, it claimed to support increment document sync, but it's buggy. vim-lsp could work because it doesn't support increment sync.

natebosch/dart_lsp#50

from coc.nvim.

chemzqm avatar chemzqm commented on May 18, 2024 1

Or add "forceFullSync": true to configuration section of dart languageserver.

from coc.nvim.

chemzqm avatar chemzqm commented on May 18, 2024 1

Figured out dart language server expect optional rangeLength field on document change params, I've added that field, so forceFullSync not needed any more.

from coc.nvim.

chemzqm avatar chemzqm commented on May 18, 2024

Looks like the server need sometime to build the cache for completion, it works well after the server get started for a while.

I think this is unnecessary:

cwd": "./lib",

from coc.nvim.

wwwdata avatar wwwdata commented on May 18, 2024

Hm, also after waiting a while it doesn't work for me. On the contrary, yes it seems to display completions after I type in the DOT so for example variable. and then I get other global completions and not completions of methods for the instance variable i am currently using.

from coc.nvim.

wwwdata avatar wwwdata commented on May 18, 2024

Example: lots of global namespace stuff again and not completions for context

screen shot 2018-08-06 at 17 17 32

from coc.nvim.

chemzqm avatar chemzqm commented on May 18, 2024

I have increase the timeout for content sync, hope that could solve your issue.
You have to build from source right now it see the result.

from coc.nvim.

wwwdata avatar wwwdata commented on May 18, 2024

no doesn't work for me, I still see a lot of global results. I am currently using vim-lsc which works just fine with the dart_language_server

from coc.nvim.

wwwdata avatar wwwdata commented on May 18, 2024

thx, that forceFullSync was fixing it for me!

from coc.nvim.

Related Issues (20)

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.