This topic is locked

Turn off Intellisense

5/15/2012 5:24:39 AM
PHPRunner General questions
A
acpan author

Each time i type a $ sign in the event, it pops up help window which is very annoying.

And if i am not careful, it inserts some extra $ and later i have to troubleshoot.
I followed the instructions earlier provided by support but does not work:
renamed the following files, located in the same directory where PHPrunner has been installed:
runner-js-functions.xml

runner-php-functions.xml

php-functions.xml
to
runner-js-functions.xml.bak

runner-php-functions.xml.bak

php-functions.xml.bak
Does not work.
Is there some where we can turn it off easily? It should be default to off (imagine you use EXCEL and

each time you type something in the cell, it gives you help window).
it should be easy to turn it off with a check box in MISC menu.
Thanks

acp

C
cgphp 5/15/2012

Did you close and restart PHPrunner after renaming the files?

A
acpan author 5/15/2012



Did you close and restart PHPrunner after renaming the files?


Hi,
Thanks for your quick response, yes, i had restarted the phprunner but still does not help.
acp

D
Dale 5/15/2012

A quick stab at this. I have seen this with other applications.

try redoing your renaming convention. ie
instead of
runner-js-functions.xml.bak

runner-php-functions.xml.bak

php-functions.xml.bak
rename them to
bak_runner-js-functions.xml

bak_runner-php-functions.xml

bak_php-functions.xml
I have been caught before on renaming with a too similar name.

No guarantees, just a thought.

A
acpan author 5/15/2012

Thanks DaleM, It still does not work.

Sergey Kornilov admin 5/15/2012

Intellisense cannot be turned off. Even if you rename/delete those files it still provides a popup with local variables names i.e. event parameters.
However if you keep typing your variable name intellisense popup disappears wtihout adding anything to your code. If for some reason it doesn't work as expected contact support directly explaining how this issue can be reproduced and we'll gladdly fix this.

A
acpan author 5/15/2012

Thanks for your clarification. If you can make it an option for future release at the MISC menu it will be helpful.
The reason is it causes more troubleshooting than helping as it inserted an $ sign if we are not careful to

close the help window, when we don't need any suggestion of the variables, which is most of the time for me.
Thanks

acp



Intellisense cannot be turned off. Even if you rename/delete those files it still provides a popup with local variables names i.e. event parameters.
However if you keep typing your variable name intellisense popup disappears wtihout adding anything to your code. If for some reason it doesn't work as expected contact support directly explaining how this issue can be reproduced and we'll gladdly fix this.

P
procheck 5/16/2012

Please POST the fix because I've been having the same problem. I dislike this option (like autocomplete) in any application that uses it. If I try to type something like $string I'll get something like $_SESSION instead. A good typist might notice that right away but many of us still need to look at the keyboard and we end of with a bug.

Sergey Kornilov admin 5/16/2012

I wonder if anyone can explain the scenario when typing $string may lead to you to enter $SESSION instead.
Intellisense popup provides the list of suggestions. If you ignore this popup and keep typing this popup disappears as soon as there are no suggestions. You do not need to close anything manually.

P
procheck 5/16/2012

My fault. I didn't explain myself correctly. When you start to type a variable name and press $, the first thing that Intellisense will show on the list is $_SESSION. If you don't notice that the list has appeared and keep typing your variable name and press enter, then $_SESSION is selected. Sorry for the misunderstanding.

A
acpan author 5/17/2012

Hi,
Because different people type differently, eg, i would cut and past the data fields from mysql or elsewhere

and add the $values[""] to it later, but intellisense tries "very hard" to overwrite my variables several times,

if i am not careful, it becomes an invalid variables.
Eg. say i type a field:
firstname
then i try to add $values to my variables
$values["firstname"]
this seems easy but instead, intellisense will try very hard several times to suggest something and overwrite my intention.
acp.

Sergey Kornilov admin 5/17/2012

@acpan,
thank you, this is obviously a bug, we'll fix this. We'll add an option to disable intellisense all together.
@prochecksports,
this scenario still doesn't make much sense. As soon as you type your variable name intellisense popup disappears. Pressing Enter won't insert anything. Are you talking about pressing Enter right after typing $ character?

P
procheck 5/17/2012

Hi Sergey,
Yes for the most part it does disappear.
For example, if I start to type $v, the list might show something like below, based on what it finds.

If I want to type $var2 and I'm not looking, it will choose var22.
var

var1

var22
The Intellisense for PHPRunner does not work any different than other applications. I just dislike them all. I have it on Code Lobster and I don't like it there either. I find it more of a distraction every time it pops up and it hides the code behind it so I'm constantly pressing escape to remove it.