Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Code completion only showing classes #360

Open
rahularyan opened this issue Sep 12, 2017 · 5 comments
Open

Code completion only showing classes #360

rahularyan opened this issue Sep 12, 2017 · 5 comments

Comments

@rahularyan
Copy link

Platform : win32
VSCode Version : 1.16.0
Crane Version : 0.3.8

Hello,
I am facing a weird issue since I moved from VS code insiders to VS code. Code completion only showing classes suggestion never shows any function. I tried to recompile many time but same thing happens always. As I remember it was working in insider version.
Is this issue have something to do with PHP namespace? I recently started added namespaces to my project (only in few files) but not sure if it was work before adding namespace.

Lemme know if you need more info. Thanks

@nevadascout
Copy link
Member

When you say function, do you mean "top level" functions in a file, or functions on a class (methods)?

@rahularyan
Copy link
Author

rahularyan commented Sep 12, 2017 via email

@DividedByCero
Copy link

DividedByCero commented Sep 14, 2017

I declared a functions outside of a class within a namespace too, but when i get the function in the autocompletion, it doesn't refer to the namespace where was declared, instead, it's appearing as a function owned by the file where i'm trying to call it, and then when I hit enter, i get Function() instead of Namespace\SubNamespace\Function() or Namespace\Function(). I was thinking that i was doing something wrong declaring my functions.

@nevadascout
Copy link
Member

Thanks @DividedByCero, this is a separate bug.

@rahularyan Methods should be working, have you tried uninstalling and re-installing the plugin?

@rahularyan
Copy link
Author

Yes but that did nothing.
For now I am switching to PHP IntelliSense by Felix Beacker which does not work well with classes and methods. I think installing both PHP IntelliSense plugin will solve our issue (not tried, may be it will end up showing duplicate results :) ).
Lemme know if you need any further clarification on this bug.

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

3 participants