question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show closing labels in Dart source code preferences not saving between Android Studio launches.

See original GitHub issue

## Steps to Reproduce

Issue #1 Closing Labels I truly enjoy using this software. However, I have an annoyance with one thing.

I have noticed after setting the preferences to allow the Android Studio to Show closing labels in Dart source code, this setting does not stay set. The next time I open Android Studio, the allowance has to be rechecked.

I found another user suffering from the same annoyance in regards to the “Show closing Labels setting” - @MargrietPB who may also be willing to provide you with some feedback on this issue if needed.

Issue #2 Copyright Settings I also noticed a similar issue with the copyright settings. I put the copyright profile into the preferences and the next time the software is opened, only the scope setting from the profile remain.

I am not completely sure this next statement has anything to do with the issue but while looking for an answer to correct this problem, I came across an uninstall guide for Android Studio that mentions these preferences files which are supposed to be located in the Library.

~/Library/Preferences/AndroidStudio ~/Library/Preferences/com.google.android ~/Library/Preferences/com.android

However, I did not find any of these files from the list on my Mac.

I am curious if this is happening because of something I have failed to do or if there may be some other solution to this issue.

Code01 Settings01 Settings02 Setting03

## Version info Android Studio 3.4.1

[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale en-US) • Flutter version 1.5.4-hotfix.2 at /Users/jimbray/Developer/flutter • Framework revision 7a4c33425d (3 weeks ago), 2019-04-29 11:05:24 -0700 • Engine revision 52c7a1e849 • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/jimbray/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01) • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.2.1, Build version 10E1001 • ios-deploy 1.9.4 • CocoaPods version 1.6.1

[✓] Android Studio (version 3.4) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 35.3.1 • Dart plugin version 183.6270 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] Connected device (1 available) • iPhone Xs • ADFCB658-5F95-4639-BC60-2B1FFEA128F0 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

• No issues found! Process finished with exit code 0

Thank you Jim Bray

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
devoncarewcommented, May 28, 2019

Thanks for all the reports! This is due to an interaction with the new UI Guides feature. User feedback from UI Guides has been good, and as UI Guides and closing labels attempt to solve the same problem - better awareness of where your widgets are in code - we don’t think it makes sense to have them both enabled at the same time. The logic to disable closing labels when UI Guides was enabled is a bit aggressive and doesn’t respect the actual closing labels settings.

We’re going to dial this back for the next release, eta hopefully end of this week.

0reactions
jimbrayrcpcommented, Jun 1, 2019

It’s working fine now! Thanks for fixing it for us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove automated closing bracket comments in IntelliJ IDEA
The checkbox is in Settings (Preferences) | Editor | General | Appearance, toggle 'Show closing labels in Dart source code'.
Read more >
Settings - Dart & Flutter support for Visual Studio Code
This setting is intended for use by Dart Analysis Server developers. dart.autoImportCompletions#. Default: true . Whether to include symbols that have not been ......
Read more >
Shared Preferences — How to save Flutter application ...
This article describes the notion of Shared Preferences that allows a Flutter application (Android or iOS) to save settings, properties, data in the...
Read more >
How To Managing State in Flutter with Provider - DigitalOcean
Learn how to pass and update account data between screens and widgets with the Flutter Provider.
Read more >
Language Server Extension Guide - Visual Studio Code
LSP is a win for both language tooling providers and code editor vendors! LSP Languages and Editors. In this guide, we will: Explain...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found