crane
crane copied to clipboard
Code completion only showing classes
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
When you say function, do you mean "top level" functions in a file, or functions on a class (methods)?
Yes I mean function not method. Though method are not showing as well.
Sent from Outlook for Android
From: nevada_scout [email protected] Sent: Tuesday, September 12, 2017 3:54:00 PM To: HvyIndustries/crane Cc: Rahul Aryan; Author Subject: Re: [HvyIndustries/crane] Code completion only showing classes (#360)
When you say function, do you mean "top level" functions in a file, or functions on a class (methods)?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/HvyIndustries/crane/issues/360#issuecomment-328810664, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA39HBcKCVqEvH6MPfHUvBBZ4ZaXIh0Rks5shlvAgaJpZM4PUD8e.
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.
Thanks @DividedByCero, this is a separate bug.
@rahularyan Methods should be working, have you tried uninstalling and re-installing the plugin?
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.