Hi,
i`m testing VS.php as a Trial version. And i have problem with it. I`m using VS2010 and VS.php 2.9. I`m running PHP 5.3.2 on IIS 7. I`m using Nette Framework and i have few problems with VS.php. I`m trying it because i need to decide what Kind of Development tool use. I would really appreciate working Intellisense and also Debugging would be great. Both these things should be working under VS.php but intellisense is working only for static content or only when class is defined in same file where i`m working with it. If i create object of some class defined in another Namespace or just in another file it doesnt work. Everything is well commented so i dont know if it is because of PHP 5.3 (and namespaces) or because of Nette Framework or because of any wrong settings. I`m also using soap in my projects and when i run debug mode it says it cannot find SoapClient but this does not bother me much.
My co-workers use NetBeans and their intellisense is working correctly. But i dont like NetBeans ;-). And i would rather use this VS.php. But if this is not going to work correctly it is not useful tool. Please if you can help me somehow it would be great.
Thanks for help.
juanc says:
Intellisense should pick up any class defined in the project. They show in the all tab of the intellisense window.
Do you have a sample project that shows the issue.
Also, intellisense can be optimized by adding commonly used referenced files into the user references folder. This will allow those particular files to show in the intellisense window (default tab, not the all tab)
Juan
kukjevov says:
Hi here is an example solution.
Example Solution VS 2010
You can download it from there and test it. It looks like that there is problem with parsing absolute namespace reference, i mean something like this
public function __construct(Nette\IComponentContainer $parent = NULL, $name = NULL){
//some code here
return "bla";
}
Visual studio shows me these errors:
Syntax Error in php Block; Unexpected expression
can not continue parsing due to syntax errors
These errors are shown on the Nette\IComponentContainer to be more exact on the char '\'.
But there is nothing illegal in that code. I think this is reason why is it not working.
If you download that sample you can see that there is directory in the libs which is MyLibs\TestLib\Test.php and there i put code for creating AppForm object from \Nette\Application\AppForm.php but i cant get Intellisense working for this object, probabably because it is unable to parse those files.
Please if you can help me ;-), thank you.
juanc says:
No problem I'll take a look at this bug.
juanc says:
Tomorrow's build will have this fixed.
http://svn.jcxsoftware.com
Thanks,
Juan