Yii Framework Forum: Yii+Netbeans: Auto Completion Of Useridentity And Similar - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii+Netbeans: Auto Completion Of Useridentity And Similar Rate Topic: -----

#1 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 10 October 2012 - 03:46 AM

I have followed wiki article about this case and read many forum posts about Netbeans + Yii, but still have some problem.

Adding ingore of yiilite does solves doubled list positions. But how to solve problem with classes like UserIdentity?

I have an example Yii project open in Yii. Added path to framework in project options (don't use Global Include Path) and ignore to yiilite in Netbeans setup. Now, I write "UserIdentity::" in editor and code completion comes out with three copies per each element in this class. For example I have three "ERROR_NONE" contstants etc.

The problem is because I have whole framework code inside my project code (/protected/framework). I know that this could be a security issue, but this is not the key of this discussion.

Because I've included framework code inside my project code I have actually have three UserIdentity classes. One is in-app autogenerated:

  • protected/components/UserIdentity.php
  • protected/framework/cli/views/webapp/protected/components/UserIdentity.php
  • protected/framework/gii/components/UserIdentity.php

Is there any way to solve problems like this or do I have to learn living with this?
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 10 October 2012 - 07:29 AM

In Aptana you can ignore directories - should be able to do the same in NetBeans, I presume?
"Less noise - more signal"
0

#3 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 10 October 2012 - 02:51 PM

View Postjacmoe, on 10 October 2012 - 07:29 AM, said:

In Aptana you can ignore directories - should be able to do the same in NetBeans, I presume?

Don't know, but... if I ignore framework folder I won't get code completion for Yii at all, right?
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 10 October 2012 - 05:36 PM

I guess you can ignore the individual paths/files inside of the 'framework' directory. :)
Let's hope a NetBeans expert comes along because this is really a blind leading a blind. :P

Hold on.. -> Project Properties -> Ignored Folders...

Sounds like something you can use?
"Less noise - more signal"
0

#5 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 11 October 2012 - 04:02 AM

Probably this is some kind of solution.

But to be honest with you, NetBeans started pissing me sou much, that I'm seriously thinking about dropping it in favor of Sublime2.

Even, if it does means paying one-time fee of fifty bucks. But I saw this editor in work and I'm amazed!
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#6 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 11 October 2012 - 07:57 AM

I switched to Aptana because of lots of Netbeans issues. :)
Especially the aggressive auto-complete and the fact that I can't seem to be able to turn off error-detection..
It's a pity.
"Less noise - more signal"
0

#7 User is offline   acorncom 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 100
  • Joined: 25-February 11
  • Location:CO, USA

Posted 11 October 2012 - 10:56 AM

Might also be worth looking at PhpStorm. samdark uses it and I switched to it a few months ago. I've been pleasantly surprised.
0

#8 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 11 October 2012 - 11:28 AM

The price of Phpstorm is quite steep, IMO
Especially when Aptana / Emacs does everything I need it to do. :)
"Less noise - more signal"
0

#9 User is offline   acorncom 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 100
  • Joined: 25-February 11
  • Location:CO, USA

Posted 11 October 2012 - 11:34 AM

True. I got it on a half off sale last month, so it wasn't so bad. :-)
0

#10 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 12 October 2012 - 03:38 AM

View Postfr0d0z, on 11 October 2012 - 11:34 AM, said:

True. I got it on a half off sale last month, so it wasn't so bad. :-)

Lucky you! :]

I know that according to many paid software sucks and open source is the only way in our misserables lives, but I'm ready to pay for a piece of software or service, if I find it worth and useful.

This topic has auto-magically turned into voting on which IDE is better and why! :] Great! Thanks for some tips and ideas, I'll surely make a use of it, when deciding on some new IDE.

BTW: Multi-cursors is Sublime2's feature that just struggled my heart! :] Does any of these mentioned here has this?
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#11 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 12 October 2012 - 07:28 AM

I must admit that Sublime Text 2 is almost winning me over. :)

I still love Emacs, but if I can't solve the annoying TAB handling 'problems', I'll definitely switch to using Sublime.
It does everything I'd ever wanted, even from an IDE.
"Less noise - more signal"
0

#12 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 12 October 2012 - 07:58 AM

Trejder, take a look at this:
http://blog.stuarthe...hp-development/
"Less noise - more signal"
0

#13 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 12 October 2012 - 02:55 PM

View Postjacmoe, on 12 October 2012 - 07:58 AM, said:

Trejder, take a look at this:
http://blog.stuarthe...hp-development/

Perfect readout. Saved for future reference (when I organize fifty bucks for Sublime itself! :]). Thanks!
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#14 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 12 October 2012 - 03:44 PM

Keep in mind that you can download, install and start using Sublime Text 2 already, all the while saving up.
The evaluation period is currently not limited.
Which is great. :)
((It's actually how evaluation should be IMO))
"Less noise - more signal"
0

#15 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 12 October 2012 - 05:53 PM

View Postjacmoe, on 12 October 2012 - 03:44 PM, said:

((It's actually how evaluation should be IMO))

Depends on country, culture and people way of thinking. In my country (Poland) people aren't willing to pay even if evaluation is limited and over. Even if they run a company and therefore are obligated to pay, by law.

You wouldn't belive, what some people are willing to do, to not to pay for the software they use! How about installing a 60-days trial Office 2010 on a virtual machine, duplicating it's drive file and replacing with it current one after each 60 days?

Remember (know?) George Carlin Show? There's nothing wrong with the planet. The planet is fine... The people are fucked! :] (for example here).
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
2

#16 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 12 October 2012 - 08:17 PM

What can I say ? :lol:

(( Sounds a bit like me 10 years ago.:P ))
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users