Solargraph: No completion when a part of a method name is already typed

Created on 31 Aug 2017  路  5Comments  路  Source: castwide/solargraph

Try this out in the demo:

  1. Erase everything and type []., press Ctrl-Space. See each as one of the completions (good).

  2. Type [].ea, press Ctrl-Space. See no completions (and in the network console, the call returns [] in the suggestions field.

bug

All 5 comments

Confirmed. The problem appears to be specific to literal values. If you assign an array to a variable and enter Ctrl-space for a partial method name, the suggestions work. Example:

x = [1,2,3]
x.ea         # <- Ctrl-space returns suggestions

I'll fix literal value detection for the upcoming minor version update.

Fixed in version 0.11.2 and updated in the demo.

This looks fixed, thanks!

Here's a probably related problem, though: no completion after number literals.

123.| <- press Ctrl-Space here

Yep, got it. The fix will be included in 0.11.3.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

siumennel picture siumennel  路  5Comments

PyvesB picture PyvesB  路  4Comments

Shougo picture Shougo  路  4Comments

bry-guy picture bry-guy  路  3Comments

tylerlu94 picture tylerlu94  路  5Comments