Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete missing some indexed functions #5041

Open
frithrah opened this issue Nov 16, 2021 · 3 comments
Open

Autocomplete missing some indexed functions #5041

frithrah opened this issue Nov 16, 2021 · 3 comments

Comments

@frithrah
Copy link

Description of the bug

Some functions are not shown in autocomplete even though they appear to have been indexed correctly.

Steps to reproduce

This example uses a minimal header and source file from the PCG project. Grab pcg_basic.h and pcg_basic.c.

  1. Start in safe mode passing an empty directory
  2. Copy pcg_basic.h and pcg_basic.c into the empty directory
  3. Note Indexing Status cataloguing the new files
     indexing [job 1]: indexed 2 files
     index "PCG" collated in 0.00s from 2 files
     index "PCG" is using 4096 bytes for 16 symbols across 22 locations
  1. Create new file: main.c
  2. Insert basic main function
  3. Within function, type: pcg
  4. Autocomplete only suggests pcg32_random_r and pcg32_srandom_r

Expected behavior

Autocomplete also suggests pcg32_srandom, pcg32_random, pcg32_boundedrand and pcg32_boundedrand_r

Actual behavior

Autocomplete only suggests two of the functions: pcg32_random_r and pcg32_srandom_r

Sublime Text build number

4122

Operating system & version

openSUSE Tumbleweed

(Linux) Desktop environment and/or window manager

Xfce

Additional information

No response

OpenGL context information

No response

@michaelblyons
Copy link

Does this belong on sublimehq/Packages instead? Also, try sublimehq/Packages#1831 to see if that fixes your problem.

@deathaxe
Copy link
Collaborator

Even though the description slightly differs, that's basically the same issue as #5031, IMHO. ST's index based auto-completion doesn't work as users would normally expect which makes it feel broken. It's not related with syntaxes or symbols, so not directly related to Packages repo. The mensioned completions are functions, which are indexed by default. The issue is just ST not providing them under most circumstances. I don't know why some are displayed and others not though. I don't find the current behavior useful, too.

@frithrah
Copy link
Author

Also, try sublimehq/Packages#1831 to see if that fixes your problem.

Alas, no difference in this situation.

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

No branches or pull requests

3 participants