Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

Command Output: length of command dictates window size (and thus word wrapping) #445

Open ervumlens opened 8 years ago

ervumlens commented 8 years ago

Problem Long lines in the Command Output panel don't appear to wrap when word wrap is enabled. Naturally there is no scrollbar when the text should wrap, so the text is not viewable.

When word wrap is disabled, the scrollbar appears as expected. The distance the scrollbar can move suggests that the output area extends out of view.

All third-party extensions are disabled.

Komodo Edit, version 9.1.0, build 15798, platform linux-x86_64. Built on Sat May 30 05:22:08 2015.

Here's the output panel with a typical line of output (a compile error, naturally). normal

word wrap on It's clear the panel is not wrapping anything even when squashed by the side panels.

squashed with word wrap on

word wrap off With word wrap off, the scroll bar appears. It extends out of view. squashed with word wrap off

The bar scrolls well past the edge of the area. squashed with word wrap off fully scrolled

In the act of squashing, the scrollbar does not resize. It seems the output area does not adapt to the change.

before squash scrollbar doesnt resize - before

mid squash Note the scrollbar still ends at the letter "t" in "take" despite the smaller area. This is unlike the editor, which adapts to the change in size.

scrollbar doesnt resize - after

Naatan commented 8 years ago

I cannot reproduce this (with sidepane turned on);

ll5y8jixv_xiigagpgrejnzpp0zwluu1rbirzaalpau

Can you right click in the command output and very word wrap is turned on?

ervumlens commented 8 years ago

Can you right click in the command output and very word wrap is turned on?

Yep.

word wrap on with word wrap

word wrap off without word wrap

Word wrap turned off adds the scrollbar. Note that it's much larger than it needs to be. The "open" end is off the screen.

ervumlens commented 8 years ago

Okay, take two...

The size of the output window (and thus the word wrapping!) is dictated by the length of the command I'm running, not the size of the visible area.

Command 1 mcs -out:main.exe -pkg:gtk-sharp-2.0 -r:/usr/lib/cli/gtksourceview2-sharp-2.0/gtksourceview2-sharp.dll -r:/usr/lib/mono/4.0/Mono.WebBrowser.dll main.cs

Output 1 — text lost, no apparent wrapping command 1

Command 2 mcs -out:main.exe -pkg:gtk-sharp-2.0 -r:/usr/lib/cli/gtksourceview2-sharp-2.0/gtksourceview2-sharp.dll main.cs

Output 2 — some text lost, some wrapped command 2

Command 3 mcs -out:main.exe -pkg:gtk-sharp-2.0 main.cs

Output 3 — all text wrapped command 3

Naatan commented 8 years ago

Oh joy, another XUL word wrapping issue.

Thanks ervumlens.