Text glitched and no wrap
Prerequisites
- [X] I have searched open and closed issues for duplicates.
Describe the bug
When i open this as a file (about 960 kB), the text is rendered in one line, even tho line wrap is enabled. The text is on top of other sections of the same text.
https://gist.githubusercontent.com/davidak/781900fc70a9c04ba21ca3c356024caf/raw/50e88726f0bd055a4d40bf1f50864741730428f4/gistfile2.txt

To Reproduce
Steps to reproduce the behavior:
- Go to https://gist.githubusercontent.com/davidak/781900fc70a9c04ba21ca3c356024caf/raw/50e88726f0bd055a4d40bf1f50864741730428f4/gistfile2.txt and save as file
- Click on open it in Code
- See error
Expected behavior
Just display text.
Even Atom can handle it.

Logs
nothing useful i guess
[davidak@nixos:~]$ G_MESSAGES_DEBUG=all io.elementary.code
(process:30280): dconf-DEBUG: 16:22:41.883: watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0)
(process:30280): dconf-DEBUG: 16:22:41.883: unwatch_fast: "/org/gnome/desktop/interface/" (active: 0, establishing: 1)
(process:30280): dconf-DEBUG: 16:22:41.883: watch_fast: "/io/elementary/code/saved-state/" (establishing: 0, active: 0)
(process:30280): dconf-DEBUG: 16:22:41.884: watch_fast: "/io/elementary/code/settings/" (establishing: 0, active: 0)
(process:30280): dconf-DEBUG: 16:22:41.884: change_fast
(process:30280): dconf-DEBUG: 16:22:41.884: change_notify: /io/elementary/code/settings/opened-files-view2
(process:30280): dconf-DEBUG: 16:22:41.884: change_fast
(process:30280): dconf-DEBUG: 16:22:41.884: change_notify: /io/elementary/code/settings/opened-files-view1
(process:30280): dconf-DEBUG: 16:22:41.884: change_fast
(process:30280): dconf-DEBUG: 16:22:41.884: change_notify: /io/elementary/code/settings/plugins-enabled
(process:30280): dconf-DEBUG: 16:22:41.884: watch_fast: "/io/elementary/code/services/" (establishing: 0, active: 0)
(process:30280): dconf-DEBUG: 16:22:41.884: watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0)
(io.elementary.code:30280): dconf-DEBUG: 16:22:41.892: watch_established: "/org/gnome/desktop/interface/" (establishing: 0)
(io.elementary.code:30280): dconf-DEBUG: 16:22:41.894: watch_established: "/io/elementary/code/saved-state/" (establishing: 1)
(io.elementary.code:30280): dconf-DEBUG: 16:22:41.894: watch_established: "/io/elementary/code/settings/" (establishing: 1)
(io.elementary.code:30280): dconf-DEBUG: 16:22:41.894: watch_established: "/io/elementary/code/services/" (establishing: 1)
(io.elementary.code:30280): dconf-DEBUG: 16:22:41.895: watch_established: "/org/gnome/desktop/privacy/" (establishing: 1)
(io.elementary.code:30280): Gtk-DEBUG: 16:22:41.923: Connecting to session manager
(io.elementary.code:30280): dconf-DEBUG: 16:22:42.029: watch_fast: "/io/elementary/code/folder-manager/" (establishing: 0, active: 0)
(io.elementary.code:30280): dconf-DEBUG: 16:22:42.029: change_fast
(io.elementary.code:30280): dconf-DEBUG: 16:22:42.029: change_notify: /io/elementary/code/folder-manager/opened-folders
(io.elementary.code:30280): dconf-DEBUG: 16:22:42.029: watch_established: "/io/elementary/code/folder-manager/" (establishing: 1)
(io.elementary.code:30280): dconf-DEBUG: 16:22:43.102: change_fast
(io.elementary.code:30280): dconf-DEBUG: 16:22:43.102: change_notify: /io/elementary/code/settings/opened-files-view1
(io.elementary.code:30280): dconf-DEBUG: 16:23:01.923: change_fast
(io.elementary.code:30280): dconf-DEBUG: 16:23:01.924: change_notify: /io/elementary/code/saved-state/window-x
(io.elementary.code:30280): dconf-DEBUG: 16:23:01.924: change_fast
(io.elementary.code:30280): dconf-DEBUG: 16:23:01.925: change_notify: /io/elementary/code/saved-state/window-y
(io.elementary.code:30280): dconf-DEBUG: 16:23:01.936: sync
Platform Information

-
system:
"x86_64-linux" -
host os:
Linux 5.4.41, NixOS, 20.03.1950.48723f48ab9 (Markhor) -
multi-user?:
yes -
sandbox:
yes -
version:
nix-env (Nix) 2.3.4 -
channels(root):
"home-manager-20.03, nixos-20.03.1950.48723f48ab9, nixos-hardware, nixos-unstable-20.09pre226148.0f5ce2fac0c" -
nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos -
[ ] I'm using the latest version from git that I've manually compiled
-
[ ] I'm using the latest released stable version
-
[X] I'm using elementary-code-3.4.0
Additional context
Linewrap has no effect because there is no whitespace in the line. Maybe , could be added. Also just wrap hard when there is no good position to do.
This seems to be a bug in Gtk.SourceView (or Gtk.TextView upon which it is based). Gedit, which is also based on Gtk also has the same problem so I do not think this is specifically a Code issue.