NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Constants in code insight, autocompletion. *solved*


Joined: 21 Oct 2004
Posts: 81
Location: UK
Reply with quote
Hi, I've got a couple of issues with 4.0.1.

1) Constants:

Is there any way to get constants to appear along with functions and variables in the code insight popup? I'm sure I used to get this no problem. I've ticked "Defines (constants)" in the code insight settings tab. I have various options defined in the normal manner, for example:

Code:
define( 'PG_RESELLER',            10005 );
define( 'PG_ENDCUST',            10006 );


However, typing PG_ only pops up the built in PostgreSQL functions and PG_RESELL pops up nothing. This happens in any script, either the script with the defines or otherwise. "Limit scope to includes" is off. Class constants ("const F_NULL = 1101;") pop up fine on ClassName:: being entered.


2) Autocompletion:

Autocompletion code doesn't indent. Again, I'm sure this used to be fine. When I autocomplete some code by hitting Ctrl+J, the first line is inserted where the completion code was, which is what I'd expect. However, future lines are not indented at all. Shouldn't they be indented to the same distance as the line which the completion code was on?
View user's profileFind all posts by QuboidSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
no, constants defined with define() are not shown in Code Completion dropdown. As of current build (4048) checkbox you mentioned has no effect, yet. It will be used soon when we add this functionality.

Regarding wrong indentation of code templates invoked with Ctrl-J, yes it's known problem and has already been fixed in 4049 (beta).
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Update: support for defined constants is added in build 4050. See screenshot:

View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 21 Oct 2004
Posts: 81
Location: UK
Reply with quote
Excellent! When will this be available?

I've a related feature request - it's not a big deal but I thought it was worth mentioning: case sensitive insight. It would be handy if, when I entered "pg_", the postgresql functions and such like appear, while "PG_" shows only my constants.
View user's profileFind all posts by QuboidSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Trial version available from the web since Jan 20th already comes with this feature. It is build 4051.
Regarding customers, we're preparing update #2 which among other things will have this feature too.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Constants in code insight, autocompletion. *solved*
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic