Improved php intellisense

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
ikeo
Posts: 23
Joined: Thu May 31, 2007 3:25 am

Post by ikeo »

Any chance of getting improved php intellisense.
(Right now it just lists all the variables on a page ... so if you're building a class and use $this->do_something a couple of times ... you'll see $this->do_something however many times you use it instead of it just being one variable.
Also it doesn't do intellisense for included files, which I think would be a killer feature.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

ikeo wrote:Any chance of getting improved php intellisense.
(Right now it just lists all the variables on a page ... so if you're building a class and use $this->do_something a couple of times ... you'll see $this->do_something however many times you use it instead of it just being one variable.
Also it doesn't do intellisense for included files, which I think would be a killer feature.
The object auto complete is already available for a while, you have to type $this-> and the list of properties and methods pops up. Ctrl+Space is also working.
Karlis Blumentals
Blumentals Software
www.blumentals.net
ikeo
Posts: 23
Joined: Thu May 31, 2007 3:25 am

Post by ikeo »

Karlis wrote:
ikeo wrote:Any chance of getting improved php intellisense.
(Right now it just lists all the variables on a page ... so if you're building a class and use $this->do_something a couple of times ... you'll see $this->do_something however many times you use it instead of it just being one variable.
Also it doesn't do intellisense for included files, which I think would be a killer feature.
The object auto complete is already available for a while, you have to type $this-> and the list of properties and methods pops up. Ctrl+Space is also working.
I know this ... but I'm asking for the impossible :)
Intellisense from an included file. So if I include a class ... say class_db
and then I go

$page = new class_db();
and then type in $page ... there's no intellisense
I want there to be ... TSW WebCoder had it and I was very fond of it :)
bandrej
Posts: 65
Joined: Fri Oct 20, 2006 10:50 am
Location: maribor, slovenia

Post by bandrej »

What version of WB do you have?

Because I use it ever since WB 8.2 got released.

Image
to-do: full-screen feature
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Yes this is already in (unless some sophisticated include paths or programming tricks are used which can not be parsed by editor).
Karlis Blumentals
Blumentals Software
www.blumentals.net
ikeo
Posts: 23
Joined: Thu May 31, 2007 3:25 am

Post by ikeo »

I have tried and tried and tried and I cannot get this to work.
Am currently using Web Builder 8.3
See screenshots ...
What am I doing wrong?


Image
Image
ikeo
Posts: 23
Joined: Thu May 31, 2007 3:25 am

Post by ikeo »

Hey Karlis ... I finally figured out the problem!

if I use

Code: Select all

$test = new object();
instead of

Code: Select all

$test = &new object();
intellisense works fine
can you possibly fix this ... I still do a bit of work in PHP4 so passing by reference is a must.
drjee
Posts: 63
Joined: Sun Feb 05, 2006 10:37 pm

Post by drjee »

Hi,

here (WeBuilder V8.3) intellisense is not working with included files. for example, if I have defined a function in a file example.php:

Code: Select all

function foo($bar) {
	return $bar;
}
and include this file in another file:

Code: Select all

require("example.php");
foo(
I do not get any call tips when typing the opening brace after foo( as I would when using a standard library function or if foo was defined in the same file.

It would really be a big plus if this worked.

cheers, drjee
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Post by Gatis »

require("example.php");
foo(
"Free" functions indeed are not available in the AC list from included files. This will be added in next version.
$test = &new object();
Thank you for your report. We shall consider whether to improve this or not. As stated, on www.php.net, support for version 4.4 has been discarded now, so I am not sure whether it is worth improving intellisense functionality for it.
s1tony
Posts: 15
Joined: Wed Jan 09, 2008 1:44 am

Post by s1tony »

Yes this is already in (unless some sophisticated include paths or programming tricks are used which can not be parsed by editor).
This is one of the reasons I suggested adding a feature to be able to add "included" or personal "library" files or directories to a project or to a PHP "setup" in general, so intellisense will have alternate places to look if a class is not defined in the local file and some sophisticated include paths or programming tricks are used.

The other main reason is to allow the addition of external libraries, such as PEAR or Smarty, to also be available to intellisense.
fuzzylogic
Posts: 43
Joined: Thu Jan 10, 2008 11:55 am

Yes, File List is needed

Post by fuzzylogic »

Yes, Please, a separate file list is needed.

All of my paths are computed because my program has to be able to run from any location and the directory layout is fairly complex.

The "project" knows what the files are.... if you could just parse any file in the project that would be good.
Post Reply