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

no compleltion with auto #703

Closed
ryuukk opened this issue Jan 26, 2023 · 4 comments
Closed

no compleltion with auto #703

ryuukk opened this issue Jan 26, 2023 · 4 comments

Comments

@ryuukk
Copy link
Contributor

ryuukk commented Jan 26, 2023

Take this example:

float getf(){}

void main()
{
    auto myf = getf();
    my| // <- cursor here
}

I get no completion, it should be float

image

We need to invest into fixing things like this, basic stuff should work, we wasting time

@WebFreak001
Copy link
Member

this is simply invalid, myf is recognized as type float and you can see that you get valid float auto-completion after myf. (e.g. .infinity and .max_10_exp)

If you mean that float isn't shown in the help text, but rather getf is just a visual thing. I think getf also has value that you can see how the value was defined / constructed. It would probably be cool if we could have both type information & declaration function name in this display.

@ryuukk
Copy link
Contributor Author

ryuukk commented Jan 26, 2023

I think it's just is broken, this is my real world example:

image

image

trying to get .duration yet it shows nothing

@ryuukk
Copy link
Contributor Author

ryuukk commented Jan 26, 2023

With this PR: #680

It now show the proper type

image

But still no completion..

image

Wich indicates something very broken

@ryuukk
Copy link
Contributor Author

ryuukk commented Jan 26, 2023

I think it's related to this: #678 and some cyclic dependencies

@ryuukk ryuukk closed this as not planned Won't fix, can't repro, duplicate, stale Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants