Why do folded code blocks unfold "automatically" in PhpStorm - phpstorm

While writing code in PhpStorm the folded code blocks unfold automatically. I don't know why and this is making me real crazy. Somebody please help.

It's a bug -- very annoying bug.
https://youtrack.jetbrains.com/issue/WEB-13995 -- watch this ticket (star/vote/comment) to get notified on progress.
UPDATE: Current status of the corresponding ticket is "resolved" so it must be working OK in WebStorm v11/PhpStorm v10.

Related

Quartz Composer : can't see anything in timeline patch

I'm very close to have a nervous breakdown ... I hope you can help me
I try to add a timeline patch into a Composition but when I open the Patch Information for edit the Timeline ... there's nothing, only the help text, and if I put it down, a grey empty space ... Do I miss to install a third party soft/add-on ?
It's seems like no one had this problem before ...
In advance thank you.
I uploaded Timeline patch into Animated Cloudscomposition and QC successfully showed its Settings window when I pressed:
Cmd+2.
So, for me everything works fine.
Try using the latest version of QC.

How to stop ReSharper fading unreachable code?

Very simple question: is there a way of stopping ReSharper fading unreachable code, and if so, how? It's extremely annoying; sometimes when debugging I want to temporarily make code unreachable, yet I still want to see it clearly and maybe edit it. I can't seem to find a configuration option to stop the fading happening.
Options -> Code Inspection -> Inspection Severity
in search box write "unreachable code" and set level to "Do not show" for your language

How to display inline errors in the editor

On the scrollbar, the yellow areas designate warnings in the code. When hovering them, we get a nice preview of the code along with message labels at the end of the line, as seen in the screenshot below:
I find this really nice and would like to display them all the time directly in the code editor. I looked up a bit and didn't find any option for that. Is it possible? If yes, how?
Right now it is not possible: https://youtrack.jetbrains.com/issue/IDEA-139324 -- watch this ticket (star/vote/comment) to get notified with any progress.
It works like that only in Code Lense mode which allows you to preview small chunk of another part of your file together with errors/warnings/etc.
But if you want to see a list of all errors for this file/folder/whole project -- use Code | Inspect Code....

Google Chrome follow developer console logging

Im using console.log lots in my javascript for debugging mouse move events. The problem im having is that when in the chrome console the new entries aren't followed.
Its best illustrated in these screenshots:
First lot of logs is fine because its big enough to see all of it on the screen:
A few seconds later:
The log has gone past the size of the window requiring me to scroll.
This makes it incredibly difficult to debug mouse move events because I have to move over to the console and scroll down, thus adding more entries to the log.
So my question is: How can I get chrome to essentially tail the log instead of stopping and require me to scroll.
With the console open, drag the scroll bar down to the bottom of the window and release it. It should tail the output for you.
It took me quite a few tries to get it to work in Version 27.0.1438.7 dev-m. But in Version 27.0.1440.0 canary, not only did it happen automatically, I could reattach the auto-scroll each time I tried.
You can download Canary from here.
The default behavior is for Console to follow (tail) logs as they head in there.
However, we had a bug in the DevTools where if you changed the zoom factor (cmd++) it didn't work always.
We just fixed that: https://codereview.chromium.org/180733003/ You'll need canary for a little while (from the date of this post) but it'll work its way down to Stable in about 10 weeks.
There's a rather pernicious bug here (present in Chrome for as long as I remember), where if you log any sort of expando-item like a DOM element or some such thing, it messes with the display of the log, and causes the scroll to stop following.
I solved this by applying a little bit of ingenuity, and finding the offending log, and you don't even need to delete the log statement, you just have to make it "friendlier". What works very often is I take any such log statement such as
console.log((mouse ? "mouse" : "touch") + " start on", jqtarg[0]);
and wrap it in an array:
console.log([(mouse_not_touch ? "mouse" : "touch") + " start on", jqtarg[0]]);
You may try do other things as well, in an attempt to make the log more readable, such as an object (haven't tested any of this rigorously, it may still cause the annoying failure-of-scroll-follow):
console.log({"mouse/touch start on": jqtarg[0]});
Based on a very small amount of testing, it would appear that if a log appears in the log buffer as an item that can be directly hovered (as opposed to requiring you to manually expand it first) to cause the inspector to highlight the item in the DOM for you, then it may trigger "scroll lock syndrome".
BTW, a helpful thing to be aware of is that if you log the exact same stuff repeatedly, Chrome helpfully "stacks" them like so: (See? I fixed the autoscroll by shoving my log in an object! yay!)
If you don't really need to see values based on precise coordinates, printing coarser values more ... coarsely will lead to a more compact log (which will still give you sensible feedback with counts).
Update: Sometimes none of this works. Sometimes you're just out of luck with this and you just have to clean up all the logs that you don't need and log the minimal amount of information to prevent overloading it and causing it to fail to scroll down.

What am I supposed to see in the "Build History of Hudson" diagram?

When clicking on Build History in the Web UI of the Hudson CI, I get a list of builds that happend in the past. Fine.
But above that is a diagram, sort of a timeline that I can drag back and forth. But there is nothing in that timeline!?
What is supposed to be displayed there?
Not an answer perhaps, but it seems that this feature just isn't working
http://issues.hudson-ci.org/browse/HUDSON-6439
Just a touch up note!
Currently Internet Explorer displays this feature as blank...
But using Firefox I can see Dates (scrolling in this frame is enabled)!!! …but Dates only...
These dates start around (maybe a day or two before) the creation of the Job!!