What is the best way to hack away a bug in GTK+? The bug in https://bugzilla.gnome.org/show_bug.cgi?id=127840 is irritating and I would like to see a working version of it. But there is just so many lines of code so how can I find the correct part of the code? I'm using DDD.
In this case you know it's a bug in the text view, so you'd look at gtk+/gtk/gtktextview.c and then start following the source out to other related files.
This particular bug is essentially unfixable though. Each paragraph is rendered as a single PangoLayout and PangoLayout doesn't really support processing only part of a single paragraph.
The best fix might be in GEdit to throw an error or insert line breaks or something.
Related
I apologize if a question like this already exists somewhere, but I've really searched carefully and haven't found a question like this one.
I have a question regarding Performance Tab in the Chrome Development Tools.
I have a difficulty understanding how exactly to interpret it.
In particular, considering a scenario shown in the screenshot, it seems to me like these operations underscored by the blue lines ("recalculate styles", "composite") have been offset to the right, because when I scrub through the FPS chart bar that shows the animation, the timing of the animation starts and ends exactly where the green region does, instead of where the operations themselves start and end.
Is this indeed due to some offset (perhaps a bug in devtools?) or is there some deeper explanation to it that I'm unaware of?
I would appreciate any help as this has been bugging me for quite a while.
EDIT:
I could paraphrase my question in this way as well:
How did all these frames render if no operations took place like "recalculate styles" and "compositing"?
RESOLVED:
I apologize for not returning to this immediately after I solved the mystery for myself. I was very busy in the meantime.
Hereby, I confirm that yes, indeed, the confusion was due to the cursor being recorded (as suspected in the comments) but at the time I wasn't aware of it.
I want to thank everybody in the comments for their suggestions and their will to help.
The new structure guide lines in VS2017 are extremely confusing, as they are positioned in the middle of a character, instead of to the left. The biggest problem is that I don't know when my cursor is ALL the way to the left, as it seems to be when it is standing on the grid line, but it may off by one.
How can I change them to look more like Visual Code? I know how to enable and disable them but can't find any way to alter their looks.
No guide lines in VS2017: This does not help me much.
With guide lines in VS2017: This is awful, it looks like there is just 1 space between two guide lines, when in fact there are two!
Guide lines in Visual Code: Very helpful.
Finally found this plugin, which fixes the main off-by-one problem and works for VS2017. See below for a screenshot of the indent guides added by the plugin.
The plugin is customizable, such that you can get a solid line if preferred.
In my program I have a bunch of RectangleFigures where each figure holds text. The text is held in a TextFlow which is held by FlowPage to allow word wrapping. RectangleFigure then uses getPrefferedSize() to make itself just big enough to hold it's text (using a fixed width).
These RectangleFigures are held by a ScalableLayeredPane. The problem rises when I try to zoom by calling setScale(). Most of the time it works fine but occasionally the ends of the text will be cut off. If I zoom again the figure will correct itself. I should also say that I have tested my program using Figure instead of RectangleFigure with the same result.
Has anyone dealt with this bug before and can shed some light on why this is happening and/or know of any workarounds?
I havn't included any code because this is a rather large program and relevant chunks of code are spread out. But if you would like to see the code let me know and I will try piecing it together.
I was holding the text inside a Figure and that was the Figure I was calling getPrefferedSize() on. But I then put that Figure(lets call it textFigure) inside a second Figure(called containerFigure). I was essentially doing the equivalent of containerFigure.setSize(textFigure.getPrefferedSize()).
You're probably wondering why I was doing that. Well originally I planned on having containerFigure hold multiple things instead of just textFigure. I ended up coding it differently but forgot about the unnecessary extra layer.
So even though containerFigure was technically the size it needed to be scaling caused problems. But when I removed containerFigure and started placing textFigure directly on the screen this bug was fixed.
This is a fairly specific error on my part so I don't know how much help this will be to others. To make it more broad if you're having some kind of sizing issue just check to see how the size of parent Figures are being set. Using sizes from child Figures might be incorrect and/or causing problems.
I've spent like an hour tying to find a way to fix this, but I just can't do it. Some lines/characters will show up a different color in Aptana (all semicolons, some tabs, and some whole). I just installed it today, so I don't know my way around the software very well.
Here's a picture to help you get the idea:
I would like get rid of the way some sections are lighter (the line saying some text is the line the caret's on, which is not the problem)
P.S. If this is the wrong place to ask this, I'm sorry, but I'm getting frustrated searching through Google and the Aptana preferences.
I too spent way too much time on this issue.
The answer by phazei is correct:
Aptana 3, php code background highlighting
But my main problem was I didn't know where to look. So to give some insight into how I found the answer:
It turns out you can see what markup the editor is using and how it classifies any block of text, by just right-clicking on the text you are interested in and pick Show in -> Properties.
I need to do a simple thing at first glance - add a bar with line numbers to CKEditor. The main idea is a writer can refer to a particular paragraph while discussing the text.
I have tried to find a plugin, tried to find an another WYSIWYG editor with line numbers but no success.
Does anybody know any solution for CKEditor or another one that already has line numbering?
Or the only I can do is to write it from scratch?
Thanks!
I implemented it from scratch. When it will be possible I'm going to improve it. There are some issues and limitations now.
Link to repository.
Instead you can use the Codemirror plugin as well to get the Line numbers which includes search and replace as well.