Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Contents of folder not shown in file tree #14581

Open
3 tasks done
e553y opened this issue Oct 28, 2018 · 26 comments
Open
3 tasks done

Contents of folder not shown in file tree #14581

e553y opened this issue Oct 28, 2018 · 26 comments

Comments

@e553y
Copy link

e553y commented Oct 28, 2018

Prerequisites

  • Can you reproduce the problem with Debug -> Reload Without Extensions?
  • Did you perform a cursory search to see if your bug or enhancement is already reported?
  • Did you read the Troubleshooting guide?

For more information on how to write a good bug report read here
For more information on how to contribute read here

Description

File tree is not visible on the left pane.
Even though there are files inside the opened folder, they will not be shown under the folder name on the file tree. Only the folder name is shown.
bracket-empty-file-tree

Steps to Reproduce

  1. Open up any folder containing files.

Expected behavior:
Expected the contents of the active folder be shown on the file tree.

Actual behavior:
Nothing is displayed under the folder name on the file tree.

Versions

OS: Ubuntu 18.04.1 LTS
Brackets: Release 1.13 build 1.13.0-17696 (release 49d29a8)

@kenzo44
Copy link

kenzo44 commented Nov 11, 2018

Have you tried this with a different project?

@ShumailAhmed123
Copy link

Hi,

I am new to GitHub and I am computer science student. I would like to contribute in something. Please can some one help me or guide me to contribute?

Thanks

@e553y
Copy link
Author

e553y commented Nov 18, 2018 via email

@ShumailAhmed123
Copy link

Hi,

Can I have your files to try them on my side? If you don't mind.

Thanks

@LKPridgeon
Copy link

LKPridgeon commented Nov 22, 2018

Hi,
I'm also experiencing this issue on all projects. In my case the issue occurs when adding/removing files/directories via the sidebar. When I add a directory/file outside of brackets then refresh it seems to repopulate.

When I look at the brackets debug console:

ErrorNotification.js:122 Exception in 'projectOpen' listener on Object RangeError: Invalid language tag: c RangeError: Invalid language tag: c
at new Collator (native)
at String.localeCompare (native)
at eval (/file/FileUtils.js:450:30)
at cmpNames (/file/FileUtils.js:475:20)
at Object.compareFilenames (/file/FileUtils.js:478:55)
at _dirsFirstCompare (/project/FileTreeView.js:675:34)
at eval (/thirdparty/immutable.js:3479:42)
at Array.sort (native)
at sortFactory (/thirdparty/immutable.js:3479:13)
at ToIndexedSequence.sort (/thirdparty/immutable.js:4442:26)window.console.error @ ErrorNotification.js:122
EventDispatcher.js:232 Assertion failed:trigger @ EventDispatcher.js:232
ErrorNotification.js:122 Exception in 'change' listener on Preference RangeError: Invalid language tag: c RangeError: Invalid language tag: c
at new Collator (native)
at String.localeCompare (native)
at eval (/file/FileUtils.js:450:30)
at cmpNames (/file/FileUtils.js:475:20)
at Object.compareFilenames (/file/FileUtils.js:478:55)
at _dirsFirstCompare (/project/FileTreeView.js:675:34)
at eval (/thirdparty/immutable.js:3479:42)
at Array.sort (native)
at sortFactory (/thirdparty/immutable.js:3479:13)
at ToIndexedSequence.sort (/thirdparty/immutable.js:4442:26)window.console.error @ ErrorNotification.js:122
EventDispatcher.js:232 Assertion failed:trigger @ EventDispatcher.js:232
KeyBindingManager.js:578 Failed to normalize Cmd-Shift-]
KeyBindingManager.js:578 Failed to normalize Cmd-Shift-[
NodeSocketTransport.js:84 NodeSocketTransport - start
ErrorNotification.js:122 Cannot assign Ctrl-R to refactoring.renamereference. It is already assigned to refactoring.renamereferencewindow.console.error @ ErrorNotification.js:122
FileUtils.js:450 Uncaught RangeError: Invalid language tag: c
FileSystem.js:967 Failed to watch root: /home/lkpridgeon/Documents/[redacted]/subscriptions/ Max connection attempts reached
ErrorNotification.js:122 Error watching project root: /home/lkpridgeon/Documents/[redacted]/subscriptions/ Max connection attempts reached

This was with extensions disabled.
Ubuntu 18.04.1 LTS
Brackets 1.13 build 1.13.0-17696 (Thu Jun 14 2018)

@LKPridgeon
Copy link

LKPridgeon commented Nov 22, 2018

This could be to do with ubuntu 18.04.1 LTS using libcurl 4 instead of 3.
image

@srlopez
Copy link

srlopez commented Dec 3, 2018

I have the same problem on Ubuntu Budgie 18.10

santi@metabook:~/zResponsive$ uname -a
Linux metabook 4.18.0-11-generic #12-Ubuntu SMP Tue Oct 23 19:22:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

with Brackets version:

Release 1.13 build 1.13.0-17696 (release 49d29a8bc) 
build timestamp: Thu Jun 14 2018 07:06:30 GMT+0000

Just open Brackets, installed as snap, and nothing in selected folder.
On the console the folllowing errors.
screenshot from 2018-12-03 18-34-59

If i try to launch Brackets from the command line:

santi@metabook:~/Desktop/Plaiaundi/LEN MAR/zResponsive$ brackets
[1203/184342:ERROR:browser_main_loop.cc(261)] Gtk: Locale not supported by C library.
	Using the fallback 'C' locale.
Gtk-Message: Failed to load module "atk-bridge"
Fontconfig warning: line 5: unknown element "its:rules"
Fontconfig warning: line 6: unknown element "its:translateRule"
Fontconfig error: line 6: invalid attribute 'translate'
Fontconfig error: line 6: invalid attribute 'selector'
Fontconfig error: line 7: invalid attribute 'xmlns:its'
Fontconfig error: line 7: invalid attribute 'version'
Fontconfig warning: line 9: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
... lots of Fontconfig warning and errors
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
Fontconfig error: Cannot load default config file
[1203/184359:ERROR:browser_main_loop.cc(261)] Gtk: GModule (/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)
[1203/184359:ERROR:browser_main_loop.cc(261)] Gtk: Loading IM context type 'ibus' failed
/usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so: undefined symbol: g_log_structured_standard
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
[1203/184401:ERROR:browser_main_loop.cc(261)] Gtk: GModule (/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)
[1203/184401:ERROR:browser_main_loop.cc(261)] Gtk: Loading IM context type 'ibus' failed

@joao-a-cruz
Copy link

Having the exact same issue

Ubuntu 18.04.1 LTS
brackets Release 1.13 build 1.13.0-17696 (release 49d29a8)

@brandonschabell
Copy link

As a workaround, you can run the following command in the devtools console for Brackets:
global.require.s.contexts._.config.locale = "en"

@maddiefleurantin
Copy link

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.

@Cvilec
Copy link

Cvilec commented Mar 14, 2019

@mackomando
your solution helped me solve the same issue, thank you!!

@maddiefleurantin
Copy link

I am glad I could help

@birozz
Copy link

birozz commented May 12, 2019

mackomando thank you, switching to English worked :)

The previous
global.require.s.contexts._.config.locale = "en"
results in error:
VM812:1 Uncaught ReferenceError: global is not defined(…)(anonymous function) @ VM812:1
ls
Anybody knows why ?

@shubhsnov
Copy link
Collaborator

@srlopez @mackomando @birozz
I see the following error listed in the CLI logs pasted above:

Gtk: Locale not supported by C library

Seems like an issue with locales, where Strings.localeCompare fails on execution.

A cursory glance on google yields this result: https://askubuntu.com/questions/359753/gtk-warning-locale-not-supported-by-c-library-when-starting-apps-from-th

Can somebody try the solution to fix the locales shown in the link above and see if it solves the issue?

Thanks.

@eyadfareh
Copy link

debug > switch language > any language

@Sajjad-s
Copy link

@mackomando
Thanks i had same issue but your solution was the answer ...

@chypmonk
Copy link

Thanks, Mackomando - That fixed it for me!

@CodePint
Copy link

CodePint commented Jan 23, 2020

Just been hit with this issue and spent longer than i care to admit trying to find the solution.
Is there a reason a bugfix has not been put in place as i can this was first raised the better part of a decade ago (2013) here: #5292

I am using a recent version of brackets: 1.14 build 1.14.1-1775 (2019 release)
OS is ubuntu 18.04 LTS fresh install

As a naive fix you can cat the contents of the system language and set it automatically.

I am still getting errors when launching from terminal

[0123/144752:ERROR:browser_main_loop.cc(261)] Gtk: Locale not supported by C library. Using the fallback 'C' locale. Fontconfig warning: "/etc/fonts/conf.avail/53-monospace-lcd-filter.conf", line 10: Having multiple values in <test> isn't supported and may not work as expected [0123/144752:ERROR:gconf_listener.cc(117)] Error with gconf key '/apps/metacity/general': Failed to activate configuration server: The name org.gnome.GConf was not provided by any .service files

looks like the root issue is caused by this:
https://askubuntu.com/questions/359753/gtk-warning-locale-not-supported-by-c-library-when-starting-apps-from-th

why not automatically run the recommended fix here if the error occurs or on install?

@CodePint
Copy link

CodePint commented Jan 23, 2020

After several hours of googling, it seems this is an endemic issue with debian/ubuntu...rather than brackets itself. This actually lends more credence to implementing my "naive fix" above. No one seems to have a consistent solution that actually works to fix the language locale issue

I have tried every which way of changing locales and regenerating language packages.
Anyone care to provide further input?

@JJ-ind
Copy link

JJ-ind commented May 2, 2020

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 Thing Works

@anonymous-ramsey
Copy link

@zQueenBlossom
Thanks very much, your solution works for me

@ghost
Copy link

ghost commented Jun 22, 2020

thank you so much @JJ-ind ... I had the same issue and your solution worked for me...!!

@cue8ig
Copy link

cue8ig commented Oct 21, 2020

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.

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.

Works like magic!

@chypmonk
Copy link

chypmonk commented Oct 21, 2020 via email

@sukrosono
Copy link

sukrosono commented Feb 15, 2021

I am on Linux Mint 20.1 Cinnamon with 5.4.0-64-generic 72-Ubuntu SMP Fri Jan 15 10:27:54 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

brackets:
Release 1.14 build 1.14.1-17752 (release-1.14.1 959fed1)
build timestamp: Thu Nov 28 2019 08:58:11 GMT+0000

which installed with snap. which is not the lastest strangely enough!!
on GitHub and the official blog, it should be 1.14.2.

I think #2794 is similar to this, but I am just guessing.

@JJ-ind yeah but it's not the point, it would come when you annoyed because you face another problem when you trying to develop an app (which theoretically solving a problem).

@chypmonk Are you the dev? I mean someone with maintainer authority?

@CodePint Thanks for digging deeper 😄 It very useful when someone wants to submit a PR. Also, your 'naive fix' is far better than no fix at all. But let's hear from the maintainer. I hope a PR is merged before future release :)

@chypmonk
Copy link

chypmonk commented Feb 15, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests