Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

[tree-sitter] Autocomplete not working for ide-* packages #962

Closed
1 task done
lgeiger opened this issue Mar 28, 2018 · 7 comments
Closed
1 task done

[tree-sitter] Autocomplete not working for ide-* packages #962

lgeiger opened this issue Mar 28, 2018 · 7 comments

Comments

@lgeiger
Copy link

lgeiger commented Mar 28, 2018

Prerequisites

Description

This issue only appears when using tree-sitter.
When using the experimental tree-sitter parser together with a language server package, autocomplete requests aren't triggered.

I was able to reproduce this with ide-python and ide-typescript.

It seams that getSuggestions in the language-client isn't triggered so I'm posting this issue here.

@damieng @maxbrunsfeld Any idea what's happening here? Keep up the great work 💯

Steps to Reproduce

  1. Configure Atom to use experimental tree-sitter parser
  2. Open project/file with grammar matching a installed language server plugin
  3. Verify that the language server is running (linting, hover, outline, ...)
  4. Type a few characters which should trigger a autocompletion suggestion

Expected behavior: Autocompletion should be provided

Actual behavior: No ide autocompletion

Reproduces how often: 100%

Versions

Reproducible on macOS and:

> atom-beta --version
Atom    : 1.26.0-beta0
Electron: 1.7.11
Chrome  : 58.0.3029.110
Node    : 7.9.0
> atom --version
Atom    : 1.25.0
Electron: 1.7.11
Chrome  : 58.0.3029.110
Node    : 7.9.0

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

@damieng
Copy link
Contributor

damieng commented Mar 28, 2018

Can you confirm you are using the latest version of ide-typescript? This was fixed in https://github.com/atom/ide-typescript/releases/tag/v0.7.6

@lgeiger
Copy link
Author

lgeiger commented Mar 28, 2018

Yes I'm using ide-typescript@v0.7.6. ide-python is also using atom-languageclient@0.9.4

@damieng
Copy link
Contributor

damieng commented Mar 29, 2018

Can you open a typescript file then open the dev tools window and type

atom.workspace.getActiveTextEditor().getGrammar().scopeName

and report back here the result? Thanks.

@damieng
Copy link
Contributor

damieng commented Mar 29, 2018

Never mind, I'm able to repro and I see the issue :) Fix going out tonight.

@damieng
Copy link
Contributor

damieng commented Mar 29, 2018

@damieng
Copy link
Contributor

damieng commented Mar 29, 2018

Out in 0.9.5

@damieng damieng closed this as completed Mar 29, 2018
@lgeiger
Copy link
Author

lgeiger commented Mar 29, 2018

Thanks for the fast fix. This v0.9.5 works great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants