Sean Schertell | 1 Nov 2006 02:35

Re: PHPCodeCompletion Bundle

Hi There,

For what it's worth, I just tried installing phpcc for the first time  
and I'm having the exact same issue reported by slazareth. Opt-Esc  
just adds parentheses, no code. I installed phpcc 10 mins ago using  
the "GetBundle" bundle with all default settings and I as I said,  
this is my first time ever installing phpcc so there shouldn't be any  
previous installation issues.

Sean

On Nov 1, 2006, at 8:23 AM, Soryu wrote:

>
> On 31.10.2006, at 21:27, slazareth@... wrote:
>
>> I have updated the bundle and its still not working. Are you sure  
>> your modifications have made it to the repository on the server?
>>
> Someone had asked in the IRC channel about this, which made me  
> investigate. He told me, it worked for him, after I checked it in.  
> Do you checkout to /Library or ~/Library? Maybe you have a locally  
> modified version of the command or something like this. The command  
> seems to generally fail if modified locally with a checkout to / 
> Library because the Path used in the command points to ~/Library in  
> that case where it can’t find the helper file it calls. Though in  
> that case it should report the missing file…
>
> That’s all I can think of now. Please check your setup and report  
> back in case you can’t fix it,
(Continue reading)

Sean Schertell | 1 Nov 2006 02:48

Re: PHPCodeCompletion Bundle

Update:

I just discovered that if I attempt to code-complete a function which  
accepts multiple args, I get the commas, but no args like this:

str_replace [ then click opt-esc ], becomes:

str_replace( , , )

Does that help at all?

Sean

On Nov 1, 2006, at 10:35 AM, Sean Schertell wrote:

> Hi There,
>
> For what it's worth, I just tried installing phpcc for the first  
> time and I'm having the exact same issue reported by slazareth. Opt- 
> Esc just adds parentheses, no code. I installed phpcc 10 mins ago  
> using the "GetBundle" bundle with all default settings and I as I  
> said, this is my first time ever installing phpcc so there  
> shouldn't be any previous installation issues.
>
> Sean
>
>
>
> On Nov 1, 2006, at 8:23 AM, Soryu wrote:
>
(Continue reading)

Picon

Re: PHPCodeCompletion Bundle

I have the same problem as Sean. str_replace yields commas and  
parentheses and that is all.

I found in the archives a post made by you soryu that included a PHP2  
bundle. I installed that and when I run it I get the following error.

"str_replacesh: line 1: ctags: command not found"

I looked into your readme inside the tmbundle package and saw that it  
needs ctags (duh right?) It also said that it comes with Tiger which  
is not the case as I have tiger and no ctags. Could be a  
configuration thing? Do I need to enable ctags somewhere?

On Oct 31, 2006, at 8:48 PM, Sean Schertell wrote:

> Update:
>
> I just discovered that if I attempt to code-complete a function  
> which accepts multiple args, I get the commas, but no args like this:
>
> str_replace [ then click opt-esc ], becomes:
>
> str_replace( , , )
>
> Does that help at all?
>
> Sean
>
>
>
(Continue reading)

Picon

Re: PHPCodeCompletion Bundle

Ok, an update on that.

I installed Xcode tools from my OSX Install disc. Reformatted last  
week and didn't realize I had yet to reinstall it. After doing this I  
no longer get the command not found error. Instead when I run the  
snippet nothing happens. Cursor blinking pauses for a split second  
and then nothing.

On Nov 1, 2006, at 1:27 AM, slazareth@... wrote:

> I have the same problem as Sean. str_replace yields commas and  
> parentheses and that is all.
>
> I found in the archives a post made by you soryu that included a  
> PHP2 bundle. I installed that and when I run it I get the following  
> error.
>
> "str_replacesh: line 1: ctags: command not found"
>
> I looked into your readme inside the tmbundle package and saw that  
> it needs ctags (duh right?) It also said that it comes with Tiger  
> which is not the case as I have tiger and no ctags. Could be a  
> configuration thing? Do I need to enable ctags somewhere?
>
> On Oct 31, 2006, at 8:48 PM, Sean Schertell wrote:
>
>> Update:
>>
>> I just discovered that if I attempt to code-complete a function  
>> which accepts multiple args, I get the commas, but no args like this:
(Continue reading)

Picon

Re: PHPCodeCompletion Bundle

I FIXED IT!

Alright, so I do believe I've fixed the PHPCodeCompletion Bundle. It  
should now complete your code and input placeholder variables as  
parameters. I've also added another feature. Sometimes when I'm  
viewing my local docs I want to view the online docs to see comments  
and such. So I've added a link at the top of each local documentation  
window to that same functions page on the php.net server. Hope that  
helps some others.

Ok, so the install. I ran GetBundle to install PHPCodeCompletion  
originally. This put my bundle at ~/Library/Application Support/ 
TextMate/Pristine Copy/Bundles/PHPCodeCompletion.tmbundle

(sorry, but not sure about the SVN method of install, but I assume it  
goes to the same place?)

So just locate your PHPCC bundle and replace it with the one I  have  
attached to this email and then reconfigure PHPCC! Also can some  
others please confirm that this is working? Let me know if anyone has  
any problems and I'll do my best to help out. (backup your current  
bundle just in case) Enjoy!


-- Casey

On Nov 1, 2006, at 1:51 AM, slazareth@... wrote:
(Continue reading)

Soryu | 1 Nov 2006 10:00
Picon

Re: PHPCodeCompletion Bundle


On 01.11.2006, at 08:32, slazareth@... wrote:

> I FIXED IT!
>

Hey there,

Just got up. I will look into it after work tonight and might commit  
it to the repository if it works.
The Insert Snippet Command for me also only inserted parens and  
commas, though tabbing through them worked, like a snippet. That is  
what I called 'fixed'. The arguments (snippet placeholders) seem to  
have not been meaningful anyway (such as arg1, arg2?) but I could be  
mistaken there. As far as I recall from using the bundle quite some  
time ago, you complete a function with Escape and then trigger the  
insert snippet command only for the arguments.

Until tonight (10 AM here),
Soryu.

slazareth | 1 Nov 2006 16:34
Picon

Re: PHPCodeCompletion Bundle

The placeholders are of value to me. Just incase I forget the order  
of something.  For instance, str_replace was "str_replace(, , )" now  
it's "str_replace($search, $replace, $subject)" I personally find  
this nice and helpful. I could be alone on that though.

On Nov 1, 2006, at 4:00 AM, Soryu wrote:

>
> On 01.11.2006, at 08:32, slazareth@... wrote:
>
>> I FIXED IT!
>>
>
> Hey there,
>
> Just got up. I will look into it after work tonight and might  
> commit it to the repository if it works.
> The Insert Snippet Command for me also only inserted parens and  
> commas, though tabbing through them worked, like a snippet. That is  
> what I called 'fixed'. The arguments (snippet placeholders) seem to  
> have not been meaningful anyway (such as arg1, arg2?) but I could  
> be mistaken there. As far as I recall from using the bundle quite  
> some time ago, you complete a function with Escape and then trigger  
> the insert snippet command only for the arguments.
>
> Until tonight (10 AM here),
> Soryu.
>
> ______________________________________________________________________
> For new threads USE THIS: textmate@...
(Continue reading)

Adam French | 1 Nov 2006 16:56
Picon

Re: PHPCodeCompletion Bundle

Nope, I'm with you.  I'm _always_ hitting php docs to clarify the  
order of parameters.

"Is it haystack, needle or needle, haystack?"
===
~Adam

On Nov 1, 2006, at 9:34 AM, slazareth@... wrote:

> The placeholders are of value to me. Just incase I forget the order  
> of something.  For instance, str_replace was "str_replace(, , )"  
> now it's "str_replace($search, $replace, $subject)" I personally  
> find this nice and helpful. I could be alone on that though.
>
>
> On Nov 1, 2006, at 4:00 AM, Soryu wrote:
>
>>
>> On 01.11.2006, at 08:32, slazareth@... wrote:
>>
>>> I FIXED IT!
>>>
>>
>> Hey there,
>>
>> Just got up. I will look into it after work tonight and might  
>> commit it to the repository if it works.
>> The Insert Snippet Command for me also only inserted parens and  
>> commas, though tabbing through them worked, like a snippet. That  
>> is what I called 'fixed'. The arguments (snippet placeholders)  
(Continue reading)


Gmane