adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.24k stars 7.62k forks source link

Sidebar refuses to resize, shrinks, and gets stuck when resizing (Linux Mint 19) #14487

Open ajstensland opened 6 years ago

ajstensland commented 6 years ago

Description and Reproduction Steps

When I try to resize the sidebar from the default size: brackets debug 2

It fails to resize to the specified dimension (if anything, it just grows by a few pixels): screenshot from 2018-07-20 15-54-21

When I click again to try again, the sidebar hides itself: brackets debug 5

However, when I try to resize from here it either a) does nothing or b) opens the sidebar to a very small, unmanageable size: brackets debug 4

Sometimes, and I'm not sure when and when not, there is a small tab poking out (not sure if this is intended or not) like so: brackets debug 7

I encountered this error on my first-ever install of Brackets within 30 seconds of use. See Attempted Fixes for more information.

TL;DR

Expected behavior: For the sidebar's width to follow my cursor and stop resizing when the mouse button was lifted.

Actual behavior: The sidebar does not move with the mouse, and when the mouse button is lifted, the <-> resizing cursor remains visible wherever I put the mouse on the window. Then, clicking again on the sidebar border, the sidebar hides itself. After repeating some number of times, the sidebar, when opening, only opens by about 10-30 pixels and will not grow much more (size seems arbitrary when dragging open).

Attempted Fixes

Restarting Brackets does not fix the problem -- the sidebar stays in its same position.

Running with extensions disabled does not fix the problem.

Changing from my NVidia card to the integrated Intel graphics does not fix the problem.

However, deleting ~/.config/Brackets/cef-data, state.json, and brackets.json does solve the problem until I try to resize the sidebar again.

Versions

OS: Linux Mint 19 Tara Linux Kernel: Linux 4.15.0-24-generic Brackets: 1.13.0-17696 (Installed from snap)

D-Jones-1 commented 6 years ago

If there's anything I can do to fix the bug and someone can explain the work to be done, I'd be happy to.

swmitra commented 6 years ago

Go to Debug->Show Developer tools. From the inspector try to inspect the partition between the coding surface and sidebar. You should be able to spot a horizontal resizer 6px? wide and transparent. If you can't find that with inspect, go to the DOM in inspector page and search for sidebar. In sidebar div try to spot the resizer. Post the styles for the resizer, like, display, dimension, position and visibility.

csrohit commented 6 years ago

Check for the libcurl3 and libpango1.0-0 dependencies. I tried to reinstall brackets and got these missing dependency errors. After installing the required dependencies Brackets is working fine on UBUNTU 18.04

ajstensland commented 6 years ago

I just noticed that if I run Brackets through the console, I get the following errors:

[0921/113742:ERROR:browser_main_loop.cc(261)] Gtk: Locale not supported by C library. Using the fallback 'C' locale. [0921/113743:ERROR:browser_main_loop.cc(261)] : Pixbuf theme: Cannot load pixmap file /usr/share/themes/Mint-Y-Dark/gtk-2.0/menubar-toolbar/menubar-dark.png: Unable to load image-loading module: /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so: /snap/core/current/lib/x86_64-linux-gnu/libz.so.1: version "ZLIB_1.2.9" not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion "GDK_IS_PIXBUF (pixbuf)" failed

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion "GDK_IS_PIXBUF (pixbuf)" failed [0921/113743:ERROR:browser_main_loop.cc(239)] GTK theme error: Invalid borders specified for theme pixmap: /usr/share/themes/Mint-Y-Dark/gtk-2.0/menubar-toolbar/menubar-dark.png, borders don't fit within the image

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_n_channels: assertion "GDK_IS_PIXBUF (pixbuf)" failed

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels_with_length: assertion "GDK_IS_PIXBUF (pixbuf)" failed

(Brackets:8895): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion "GDK_IS_PIXBUF (pixbuf)" failed

(... the above errors repeat many times...)

I'm just a casual user -- I'm not very well versed on GTK and Linux libraries and stuff, but I think this might give some insight.

alsavov commented 5 years ago

I got the same issue here under Ubuntu 18.04

ghost commented 5 years ago

Just install brackets from the main repo


sudo add-apt-repository ppa:webupd8team/brackets
sudo apt update
sudo install brackets
shubhsnov commented 5 years ago

[0921/113742:ERROR:browser_main_loop.cc(261)] Gtk: Locale not supported by C library. Using the fallback 'C' locale.

It seems like this issue is related to #14581 (comment), which can be fixed by installing the language pack in Ubuntu.

See my comment here: #14581 (comment)

nagaomkar9 commented 5 years ago

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly. This should surely work. happy coding

xidanezx commented 5 years ago

vim ~/.config/Brackets/state.json +1569 change the size from whatever it is to 300 and open brackets again..

"healthDataNotificationShown": true, "sidebar": { "visible": true, "size": 300 },

ghost commented 5 years ago

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly. This should surely work. happy coding

Omg thank you so much man

khadijanazih commented 4 years ago

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly. This should surely work. happy coding

Thanks So Much! That Saved My Life ^^

Suneelvarma5fi commented 4 years ago

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly. This should surely work. happy coding

LOVE YOU

ltrottier commented 4 years ago

I had the same issue and for me it seems to occur when the language is set to 'system default'. So I went to Debug -> Switch Language menu and choose english, and it solve the issue. I tried with several other languages and it works perfectly. This should surely work. happy coding

Worked for me. Thanks a lot !