NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Selected expression not being evaluated


Joined: 14 May 2014
Posts: 8
Location: Tunisia
Reply with quote
Hello,

In previous versions, when I select an expression and mouse hover it, it gets evaluated and the outcome is displayed in the tooltip
but with v13 the expression does not get evaluted (I tried build 13039 and 13041), I also checked the change logs but got no clue.

Is there a setting I have to activate ? Or was this feature removed ?


Thank you for replying, This feature really helps a lot !
View user's profileFind all posts by med_phpSend private message
Guru master

Joined: 24 Jul 2009
Posts: 732
Reply with quote
It's still working in the v14 beta (don't have 13 installed at the moment).

Check Settings > Code Insight Settings for Expression evaluation being ticked.
View user's profileFind all posts by plugnplaySend private message


Joined: 14 May 2014
Posts: 8
Location: Tunisia
Reply with quote
Thank you for your reply

I checked that option and it's indeed ticked
I sent a bug report and hopefully this gets fixed soon
View user's profileFind all posts by med_phpSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7893
Reply with quote
I don't see any problems too.
May sure that debugger is stopped at the sources.
Expression evaluation does not work while php runs.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 May 2014
Posts: 8
Location: Tunisia
Reply with quote
Yes, I stopped the debugger
screenshot:



When I hover my cursor over $a = 2; it is supposed to get evaluated, but that doesn't happen

I'm running PhpEd on Win7 64bits
View user's profileFind all posts by med_phpSend private message
Guru master

Joined: 24 Jul 2009
Posts: 732
Reply with quote
Maybe PhpED deliberately does not evaluate assignment operators because they could potentially interfere with debugging?

That would sound like a reasonable thing to do.
View user's profileFind all posts by plugnplaySend private message


Joined: 14 May 2014
Posts: 8
Location: Tunisia
Reply with quote
I hope it wasn't removed because I use it for live editing my code with no need to restart the debugging process or having to evaluate every change in the immediate window or the watch.
It makes work go a lot faster.
View user's profileFind all posts by med_phpSend private message
Guru master

Joined: 24 Jul 2009
Posts: 732
Reply with quote
I wouldn't be surprised if someone reported that 'feature' as a bug. I fully understand you found it useful, but a lot of people might consider it incorrect. It never caused me a problem though and I evaluate expressions a lot. Assuming that evaluation of assignments really was removed, maybe it could be made another tick option. You could request that?
View user's profileFind all posts by plugnplaySend private message


Joined: 14 May 2014
Posts: 8
Location: Tunisia
Reply with quote
Yes I will request that option in the same ticket and see what comes out.

Thank you guys
View user's profileFind all posts by med_phpSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7893
Reply with quote
If selected text is a modifying php statement, it won't be evaluated in the tooltip, otherwise you will modify a lot by mistake.
Without selection, $a will be evaluated fine.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Selected expression not being evaluated
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