Some intellisense errors/warnings do not show a tooltip.
3 posts
• Page 1 of 1
Some intellisense errors/warnings do not show a tooltip.
Usually when you have some kind of issue in the code, hovering your mouse over the underlined code will display a tooltip indicating what the problem is.
In some cases I am unable to view the message. For example, the following simple function has 3 different problems:
The issues are that not all paths return a value, division by zero, and an unused variable. I am unable to see the message regarding the unused variable. See the following recording:
In some cases I am unable to view the message. For example, the following simple function has 3 different problems:
- Code: Select all
function foo($input) {
$divisionByZero = 1 / 0;
if ($input) {
return $divisionByZero;
}
$unusedVar = 1;
}
The issues are that not all paths return a value, division by zero, and an unused variable. I am unable to see the message regarding the unused variable. See the following recording:
You do not have the required permissions to view the files attached to this post.
- DanTalash
- Posts: 23
- Joined: November 25th, 2015, 6:19 pm
Re: Some intellisense errors/warnings do not show a tooltip.
It should also show you the `$unusedVariable` info (see attachment), not just the warning.
Also I've noticed the the function tooltip is not correct (it states `mixed $bar` and return type `void`), it should be `$input` with return type `double|integer`.
We couldn't replicate the issue - may I ask for your activity log? (https://docs.devsense.com/troubleshooti ... itylog-xml)
It might be problem with your license, or another extension you have in VS.
Also I've noticed the the function tooltip is not correct (it states `mixed $bar` and return type `void`), it should be `$input` with return type `double|integer`.
We couldn't replicate the issue - may I ask for your activity log? (https://docs.devsense.com/troubleshooti ... itylog-xml)
It might be problem with your license, or another extension you have in VS.
You do not have the required permissions to view the files attached to this post.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Some intellisense errors/warnings do not show a tooltip.
I was having a lot of difficulty reproducing this issue on a fresh VS boot until I realized that it only happens when the debugger is listening. See updated screen recording.
Hopefully this is enough to repro on your side. If you still need I can provide the activity log, but there doesn't appear to be any errors in there.
Hopefully this is enough to repro on your side. If you still need I can provide the activity log, but there doesn't appear to be any errors in there.
You do not have the required permissions to view the files attached to this post.
- DanTalash
- Posts: 23
- Joined: November 25th, 2015, 6:19 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 48 guests