solargraph: autocompletion does not work if array given for an object

When I declare type for solargraph and fetch an object from an array, autocompletion does not work. See here:

image

If I do this by giving a method or a static member then it works:

image

Basically, anything[] type does not support autocomplete. I cannot see methods in it.

Sample:

    # @type [Reserve]
    source = Reserve[source_id]
    # @type [Reserve]
    another = anonymous_method()
    
    source. # does not work.
    another. # works.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

@gencer The bug related to your last email is being tracked in #108. The fix is scheduled for release in v0.29.0.

Fix released in v0.29.0.

Confirmed. It’s a minor bug that’s also related to the new source mapper. I’ll have it fixed in master shortly and will include the fix in v0.29.0.