text:
Enable dev/bots/ build_tests for Windows

Description
Enables build_test for Windows. Currently only flutter_gallery has platform directories for the desktop platforms, so this will run only that build, but this will provide an end-to-end build test for Windows.
Once this lands, other example/test projects can be brought online for Windows in the future just by adding the windows/ directory to the project.
Related Issues
https://github.com/flutter/flutter/issues/54295
Tests
I added the following tests: build_test for Windows
Checklist
Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I signed the CLA.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.

[x] No, no existing tests failed, so this is not a breaking change.
[ ] Yes, this is a breaking change.

Currently includes https://github.com/flutter/flutter/pull/68656; will be rebased once that lands.


text:
Fix handling of empty --project-assets option

@tvolkert

LGTM

source: gharchive/pull-request

authors: johnmccutchan tvolkert

repo: flutter/flutter

license_type: permissive

license_source: github-api


text:
Roll Engine from 99cc50dfffab to f0661a40169b (9 revisions)

https://github.com/flutter/engine/compare/99cc50dfffab...f0661a40169b
2020-10-30 skia-flutter-autoroll@skia.org Roll Dart SDK from 1a18fff9ad2e to f01bcdc24ec6 (2 revisions) (flutter/engine#22222)
2020-10-30 skia-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from Usec4YBzR... to sNx8qabBn... (flutter/engine#22220)
2020-10-30 skia-flutter-autoroll@skia.org Roll Fuchsia Mac SDK from ICK_JlnKJ... to mhak7e_o6... (flutter/engine#22219)
2020-10-30 a-siva@users.noreply.github.com Manual roll of Dart 1a18fff9ad2e...ba80ed989cc (flutter/engine#22216)
2020-10-30 robert.ancell@canonical.com Fix warning when no entrypoing args provided. (flutter/engine#22136)
2020-10-30 robert.ancell@canonical.com Fix incorrect parameter used for self object (flutter/engine#22135)
2020-10-30 devoncarew@google.com use the dart analyze command to analyze source (flutter/engine#22212)
2020-10-30 10547444+lazylazyllama@users.noreply.github.com Fix viewInset.bottom and viewPadding.bottom… (flutter/engine#21730)
2020-10-30 a-siva@users.noreply.github.com Manual Roll of Dart to ba80ed989cc...9c6e76468ca (flutter/engine#22213)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from Usec4YBzRUKB to sNx8qabBnGMe
fuchsia/sdk/core/mac-amd64 from ICK_JlnKJ9AX to mhak7e_o6rs-
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC garyq@google.com on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md

Commit queue failed; closing this roll.


text:
Roll Dart to 1.23.0-dev.11.3.

This is expected to fix the Windows crashes reported in https://github.com/flutter/flutter/issues/8912.

This roll is blocked on a bug in the Dart VM (see https://github.com/dart-lang/sdk/issues/29229), which is causing the test failures.

Apparently, this also brings us @immutable : https://github.com/flutter/flutter/issues/6892

authors: abarth goderbauer sethladd


text:
See if fixing indent fixes our missing caching

@abarth

lgtm

did it work?

I don't think so, no.  The travis docs seem to not care about this indent for whatever reason. Maybe yaml doesn't.
https://docs.travis-ci.com/user/caching/#Arbitrary-directories

What make you say that the cache is missed? At line 219 I can see:

found cache
adding /home/travis/.pub-cache to cache

Travis seems to see the cache just fine, but the pub gets are not any faster.  Even in the most recent build:  https://travis-ci.org/flutter/flutter
120s for a first-run ./dev/update_packages.dart is expected, and matches what I get on my mac for example.  But the second run on the same hardware is more like 10s.  We never seem to get that second run behavior, so presumably we're caching the wrong thing.

Maybe the difference is that we don't cache the pubspec.lock files? But we can't cache those, that would prevent us from getting the latest packages each time.

@Hixie is right. If you don't check in pubspec.lock pub will try to resolve the dependency graph and .pub-cache does not help here (though it helps once the good versions are found to avoid downloading the package once again).
On your machine you should have the pubspec.lock generated after the first run of pub get and that's why it takes less time.
Usually it's not a good practice to check in pubspec.lock for packages. It's used mainly for final applications.
Another solution could be to use pub get --offline (it will try to resolve the dep graph from your cache) but the drawback is that your code will not be checked against the last matching versions.

I don't really understand why pub is so slow at this. It doesn't seem like fundamentally a difficult problem.

authors: Hixie a14n eseidelGoogle


text:
Roll Flutter from 0e7257e698db to 96345a4bb94c (13 revisions)

https://github.com/flutter/flutter/compare/0e7257e698db...96345a4bb94c
2022-09-05 engine-flutter-autoroll@skia.org Roll Flutter Engine from 3c0898c0dfed to ddc5bb330254 (1 revision) (flutter/flutter#110999)
2022-09-05 engine-flutter-autoroll@skia.org Roll Flutter Engine from 7b3710878503 to 3c0898c0dfed (1 revision) (flutter/flutter#110993)
2022-09-05 engine-flutter-autoroll@skia.org Roll Flutter Engine from 25642a45a55e to 7b3710878503 (1 revision) (flutter/flutter#110992)
2022-09-05 engine-flutter-autoroll@skia.org Roll Flutter Engine from 47c281f218db to 25642a45a55e (1 revision) (flutter/flutter#110991)
2022-09-05 engine-flutter-autoroll@skia.org Roll Flutter Engine from 3ff25eb9081c to 47c281f218db (1 revision) (flutter/flutter#110983)
2022-09-05 engine-flutter-autoroll@skia.org Roll Flutter Engine from 5a2861e499d2 to 3ff25eb9081c (1 revision) (flutter/flutter#110974)
2022-09-05 engine-flutter-autoroll@skia.org Roll Flutter Engine from b94120dfe9c6 to 5a2861e499d2 (1 revision) (flutter/flutter#110972)
2022-09-05 tessertaha@gmail.com Migrate ListTile disabled icon color to Material 3 (flutter/flutter#102078)
2022-09-05 tessertaha@gmail.com Update MaterialBanner to support Material 3 (flutter/flutter#105957)
2022-09-05 engine-flutter-autoroll@skia.org Roll Flutter Engine from b040ed90175b to b94120dfe9c6 (1 revision) (flutter/flutter#110960)
2022-09-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from 0a2f56cd025f to b040ed90175b (1 revision) (flutter/flutter#110954)
2022-09-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from a8e97892ce25 to 0a2f56cd025f (1 revision) (flutter/flutter#110940)
2022-09-04 engine-flutter-autoroll@skia.org Roll Flutter Engine from 14eb83a7d0bd to a8e97892ce25 (1 revision) (flutter/flutter#110938)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins
Please CC dit@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Plugins: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.

repo: flutter/plugins


text:
Roll Flutter from 723b82e4f0f3 to 547de47a93f7 (28 revisions)

https://github.com/flutter/flutter/compare/723b82e4f0f3...547de47a93f7
2022-09-07 engine-flutter-autoroll@skia.org Roll Flutter Engine from d94d3d5dd807 to c0a06da6b228 (1 revision) (flutter/flutter#111093)
2022-09-07 engine-flutter-autoroll@skia.org Roll Flutter Engine from 7549f94b55d1 to d94d3d5dd807 (1 revision) (flutter/flutter#111087)
2022-09-07 mit@google.com Update null safety warnings in prep for Dart 3 (flutter/flutter#110998)
2022-09-07 engine-flutter-autoroll@skia.org Roll Flutter Engine from a8551aa0e9b9 to 7549f94b55d1 (1 revision) (flutter/flutter#111082)
2022-09-07 engine-flutter-autoroll@skia.org Roll Flutter Engine from 52271211177c to a8551aa0e9b9 (1 revision) (flutter/flutter#111075)
2022-09-07 engine-flutter-autoroll@skia.org Roll Flutter Engine from 2eba5a7485e9 to 52271211177c (1 revision) (flutter/flutter#111072)
2022-09-07 engine-flutter-autoroll@skia.org Roll Flutter Engine from d7b9d7260ba0 to 2eba5a7485e9 (2 revisions) (flutter/flutter#111067)
2022-09-07 engine-flutter-autoroll@skia.org Roll Flutter Engine from 3300fd194747 to d7b9d7260ba0 (4 revisions) (flutter/flutter#111059)
2022-09-07 engine-flutter-autoroll@skia.org Roll Flutter Engine from 38ee17b7a817 to 3300fd194747 (1 revision) (flutter/flutter#111058)
2022-09-07 54558023+keyonghan@users.noreply.github.com Switch Linux_build_test flutter_gallery__transition_perf to prod (flutter/flutter#111047)
2022-09-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 3af5d354cd4f to 38ee17b7a817 (4 revisions) (flutter/flutter#111052)
2022-09-06 darrenaustin@google.com Fixing elevation issues with Material 3 (flutter/flutter#110624)
2022-09-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 7db0a37ac76c to 3af5d354cd4f (2 revisions) (flutter/flutter#111046)
2022-09-06 dnfield@google.com Dispose Paragraph objects (flutter/flutter#110627)
2022-09-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from ce97b5a7f944 to 7db0a37ac76c (6 revisions) (flutter/flutter#111044)
2022-09-06 engine-flutter-autoroll@skia.org ce97b5a7f Roll Fuchsia Mac SDK from h_r2I6Cu8-ItT6Tu4... to vxuLLecT-NU8FuW1l... (flutter/engine#35937) (flutter/flutter#111026)
2022-09-06 liama@google.com Null safety migration of packages/flutter_tools/test/commands.shard/hermetic, part 1/3 (flutter/flutter#110707)
2022-09-06 liama@google.com Migrate packages/flutter_tools/test/web.shard (flutter/flutter#110713)
2022-09-06 32538273+ValentinVignal@users.noreply.github.com Adds PopupMenuPosition position to the PopupMenuThemeData (flutter/flutter#110268)
2022-09-06 liama@google.com Null safety migration of packages/flutter_tools/test/commands.shard/hermetic, part 2/3 (flutter/flutter#110708)
2022-09-06 liama@google.com Null safety migration of packages/flutter_tools/test/commands.shard/hermetic, part 3/3 (flutter/flutter#110709)
2022-09-06 liama@google.com Null safety migration of packages/flutter_tools/test/commands.shard/permeable (flutter/flutter#110710)
2022-09-06 109111084+yaakovschectman@users.noreply.github.com Preliminary PR for engine changes for Tristate checkboxes (flutter/flutter#110859)
2022-09-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 623b80157c7a to 7595e0996866 (1 revision) (flutter/flutter#111023)
2022-09-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 61020e974c3f to 623b80157c7a (1 revision) (flutter/flutter#111016)
2022-09-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from d79d26f8dc15 to 61020e974c3f (1 revision) (flutter/flutter#111014)
2022-09-06 engine-flutter-autoroll@skia.org Roll Flutter Engine from 263cf42f8a25 to d79d26f8dc15 (1 revision) (flutter/flutter#111007)
2022-09-05 engine-flutter-autoroll@skia.org Roll Flutter Engine from ddc5bb330254 to 263cf42f8a25 (1 revision) (flutter/flutter#111002)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins
Please CC dit@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Plugins: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


text:
Flutter web does not support BlendMode.clear  using html renderer

After latest update to flutter 3.7, I started facing this error on image editing on flutter web when I try to render with html
flutter run -d chrome --web-renderer html
If I try to open the image editor page with canvas kit, it opens just fine but when I build with html renderer ( flutter run -d chrome --web-renderer html ), then the page goes all black and this error is being posted
Another exception was thrown: PersistedOffset: is in an unexpected state.
Sharing the sample file below where it can be reproduced
canvas kit rendering works fine
Error happens on html renderer
import 'package:extended_image/extended_image.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final ImagePicker _picker = ImagePicker();
  XFile? _image;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            if (_image != null)
              Image.network(
                _image!.path,
                height: 300,
                width: 300,
              ),
            const SizedBox(height: 20),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                OutlinedButton(
                    onPressed: () {
                      if (_image != null) {
                        Navigator.push(
                            context,
                            MaterialPageRoute(
                              builder: (context) =>
                                  ImageEditorDemo(fetchedImage: _image!),
                            ));
                      }
                    },
                    child: const Text('Edit Image')),
                const SizedBox(width: 20),
                ElevatedButton(
                    onPressed: () async {
                      _image =
                          await _picker.pickImage(source: ImageSource.gallery);
                      setState(() {});
                    },
                    child: const Text('Get Image')),
              ],
            )
          ],
        ),
      ),
    );
  }
}

class ImageEditorDemo extends StatefulWidget {
  final XFile fetchedImage;
  const ImageEditorDemo({Key? key, required this.fetchedImage});
  @override
  _ImageEditorDemoState createState() => _ImageEditorDemoState();
}

class _ImageEditorDemoState extends State<ImageEditorDemo> {
  final GlobalKey<ExtendedImageEditorState> editorKey =
      GlobalKey<ExtendedImageEditorState>();
  final GlobalKey<PopupMenuButtonState<EditorCropLayerPainter>> popupMenuKey =
      GlobalKey<PopupMenuButtonState<EditorCropLayerPainter>>();

  EditorCropLayerPainter? _cropLayerPainter;

  @override
  void initState() {
    _cropLayerPainter = const EditorCropLayerPainter();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('image editor demo'),
      ),
      body: Column(children: <Widget>[
        Expanded(
            child: ExtendedImage.network(
          widget.fetchedImage.path,
          fit: BoxFit.contain,
          mode: ExtendedImageMode.editor,
          enableLoadState: true,
          extendedImageEditorKey: editorKey,
          initEditorConfigHandler: (ExtendedImageState? state) {
            return EditorConfig(
              maxScale: 8.0,
              cropRectPadding: const EdgeInsets.all(20.0),
              hitTestSize: 20.0,
              cropLayerPainter: _cropLayerPainter!,
              initCropRectType: InitCropRectType.imageRect,
              cropAspectRatio: 1,
            );
          },
          cacheRawData: true,
        )),
      ]),
    );
  }
}

full error code, and make a simple demo

Thanks for such quick response. It resolved the issue.

source: gharchive/issue

license: MIT


text:
support set enableAudio attr

pickFromCamera方法增加enableAudio可选参数，默认值为false，用于初始化CameraController，当enableAudio为false时，只使用拍照功能时，不会强制要求麦克风权限

@AlexV525 你好，重新提交了，辛苦帮忙review一下

LGTM 但是有一个格式修改麻烦回滚一下

已回滚


text:
Can't read contacts

I am using an emulation of a Pixel 2 (Android 28).
pubspec.yaml
environment:
    sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies:
    flutter:
        sdk: flutter

    # The following adds the Cupertino Icons font to your application.
    # Use with the CupertinoIcons class for iOS style icons.
    cupertino_icons: ^0.1.2
    path_provider: '>=0.3.0'
    sqflite: any
    uuid: 2.0.0
    quiver: '>=2.0.0 <3.0.0'
    flutter_speed_dial: ^1.1.1
    contacts_service: '>=0.1.1'
    simple_permissions: 0.1.7

After adding the dependencies to contacts_service and simple_permissions and some test code, I get:
Syncing files to device Android SDK built for x86...
I/flutter (20912): Found 0 Contacts
Reloaded 2 of 492 libraries in 4,785ms.
E/flutter (20912): [ERROR:flutter/shell/common/shell.cc(184)] Dart Error: Unhandled exception:
E/flutter (20912): MissingPluginException(No implementation found for method requestPermission on channel simple_permissions)
E/flutter (20912): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:291:7)
E/flutter (20912): <asynchronous suspension>
E/flutter (20912): #1      SimplePermissions.requestPermission (package:simple_permissions/simple_permissions.dart:24:35)
E/flutter (20912): <asynchronous suspension>
E/flutter (20912): #2      ContactsScreenState._addContact (package:my_app/contact_list.dart:118:27)
E/flutter (20912): <asynchronous suspension>
E/flutter (20912): #3      ContactsScreenState.build.<anonymous closure> (package:my_app/contact_list.dart:85:20)
E/flutter (20912): #4      AnimatedChild._performAction (package:flutter_speed_dial/src/animated_child.dart:60:24)
E/flutter (20912): #5      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14)
E/flutter (20912): #6      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:562:30)
E/flutter (20912): #7      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
E/flutter (20912): #8      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9)
E/flutter (20912): #9      TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:175:7)
E/flutter (20912): #10     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:315:9)
E/flutter (20912): #11     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
E/flutter (20912): #12     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
E/flutter (20912): #13     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:180:19)
E/flutter (20912): #14     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:158:22)
E/flutter (20912): #15     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:138:7)
E/flutter (20912): #16     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:101:7)
E/flutter (20912): #17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:85:7)
E/flutter (20912): #18     _invoke1 (dart:ui/hooks.dart:168:13)
E/flutter (20912): #19     _dispatchPointerDataPacket (dart:ui/hooks.dart:122:5)
Lost connection to device.

If I try to do
flutter clean
and then try to run the app, I get:
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:support-core-utils' has different version for the compile (27.1.1) and runtime (28.0.0-rc01) classpath. You should manually set the same version via DependencyResolution

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
Finished with error: Gradle task assembleDebug failed with exit code 1

The code of my function:
	_addContact(BuildContext context) async {
		print("_addContact called");

		await SimplePermissions.requestPermission(Permission.ReadContacts);
		await SimplePermissions.requestPermission(Permission.WriteContacts);

		bool isReadPermissionGranted = await SimplePermissions.checkPermission(Permission.ReadContacts);
		bool isWritePermissionGranted = await SimplePermissions.checkPermission(Permission.WriteContacts);
		if (isReadPermissionGranted && isWritePermissionGranted) {
			Iterable<Contact> contacts = await ContactsService.getContacts();
			print('Found ${contacts.length} contacts');
		} else {
			print('Permissions not granted');
		}
	}

I did add the required lines in the Android Manifest and plist, and in fact it works in the iOs emulator.

@Calin-Cosma Can you try using a different package to handle permissions? The simple_permissions repository seems to have either been deleted or made private.

I actually tried these 2:
https://github.com/AppleEducate/flutter_simple_permissions (
https://pub.dartlang.org/packages/contacts_service links to it)
and
https://pub.dartlang.org/packages/permission_handler
The first one got me the error I posted. The second one cause a whole
different error (I posted an issue on their Github, too).
I am quite new to Flutter/Dart, and while it seems like a pretty cool
language with a thriving community, it's disappointing that some basic
stuff is missing   (like being able to access the contacts) and has to be
developed by the community.
Since I am new to Flutter, I am starting to wonder if I am wasting my time
trying to build an app with it. If accessing the contacts is so difficult,
how many of these problems will I run into, even for a relatively simple
app ?
It would be great if the devs for contacts_service could update their
README and put some working code there.
On Tue, Feb 19, 2019 at 8:48 PM Joshua S Lee notifications@github.com
wrote:

@Calin-Cosma https://github.com/Calin-Cosma Can you try using a
different package to handle permissions? The simple_permissions
https://github.com/Ethras/flutter_simple_permissions repository seems
to have either been deleted or made private.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fluttercommunity/flutter_contacts/issues/61#issuecomment-465283080,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APW5v-o7FxmdSAcp1_q-85M2NippRMVwks5vPFT3gaJpZM4bDTqV
.

@Calin-Cosma The issue you are facing may be because of this Flutter update. It broke many plugins for Android(which is probably why it was working on your iOS simulator), and flutter_contacts was one of them.
flutter_contacts was migrated to AndroidX quite recently, so it should be working now.
Try using the latest version of flutter_contacts contacts_service: ^0.2.1, and migrate to AndroidX.

@Calin-Cosma bug fixes have been resolved. Please use the latest version 0.2.3 and review the example app for ways to implement into your app.
I've tested extensively Android Pixel 2 (API 28) and iOS. Everything is working. Closing this issue, but feel free to re-open if you think there's a problem with the plugin.

authors: Calin-Cosma lukasgit trinqk

license: mit

license_source: bigquery


text:
Windows support for null safety

Plugin
flutter pub add package_info_plus_windows
Use case
After figuring out that package info does not work in windows and too much is involved with placing a bug report,
I noticed that there was a package for linux and also tried the same for windows.
However, I cannot add the package because it was written so long ago and seems to not have the settings for null safety.
I'm using your latest  package 4..0.1
and the same with the share plus.
as of May 20th
here is the output
PS C:\git\tipitaka-pali-reader> flutter pub add package_info_plus_windows

The lower bound of "sdk: '>=2.5.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety

When I used windows without the above package (can't add it).. you package says that version is 1.0.0 and build number is blank.  It works perfectly fine in Android.
We already call
WidgetsFlutterBinding.ensureInitialized();
but we don't use the package unless the about dlg is called.
I assume I need the windows package and linux packages for desktop . maybe even macOS.
We publish all 5 OS.
We have 2000 users on android and 300+ users on Windows .   Apple ios and MacOS not sure because another volunteer publishes for us.
( The free app is called:  Tipitaka Pali Reader)
It was an idea to use your package because we are lazy to update the manual version numbers in code, but the yaml  version number increments are required for app store updates.
Proposal
Make null safety so the error does not show up and that flutter 3.10 lets you safely add
flutter pub add package_info_plus_windows
or give a solution to make windows work (and linux and mac)

It does not seem to be documented what is needed to make Desktop versions work.  I assume you need to add the proper desktop packages.

Make null safety so the error does not show up and that flutter 3.10 lets you safely add
flutter pub add package_info_plus_windows or give a solution to make windows work (and linux and mac)

It does not seem to be documented what is needed to make Desktop versions work. I assume you need to add the proper desktop packages.

All Plus Plugins packages support null safety for a very long time. The output that you show clearly indicates that it is your project that has the lower Dart version as 2.5.0. If you would check Plus plugins constraints you would see that our lower constraint is much higher than 2.12 (version where null-safety was introduced): https://github.com/fluttercommunity/plus_plugins/blob/main/packages/package_info_plus/package_info_plus/pubspec.yaml#L47
So you need to deal with your project setup and there is nothing not documented. Closing as invalid.

Windows does not work.  Shall I make a bug.. the requirements to make a bug report would require a lot of items.
although i did check google.
I did do flutter dr and clean
BTW:  Here is my flutter dr. which shows that I'm using proper dart.
C:\git\tipitaka-pali-reader> flutter doctor -v
[√] Flutter (Channel stable, 3.10.0, on Microsoft Windows [Version 10.0.22621.1555], locale en-US)
• Flutter version 3.10.0 on channel stable at c:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 84a1e904f4 (11 days ago), 2023-05-09 07:41:44 -0700
• Engine revision d44b5a94c9
• Dart version 3.0.0
• DevTools version 2.23.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:\Users\bksub\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.4)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.3.32901.215
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
[√] VS Code (version 1.78.2)
• VS Code at C:\Users\bksub\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.64.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.1555]
• Chrome (web)      • chrome  • web-javascript • Google Chrome 113.0.5672.127
• Edge (web)        • edge    • web-javascript • Microsoft Edge 112.0.1722.58
[√] Network resources
• All expected network resources are available.

@bksubhuti  can you please create another bug report issue please? this issue seems to be closed and I am afraid your issue will get lost here.

authors: bksubhuti mhadaily vbuberen


text:
Notifier does not update on watchAll after requesting the same repository more than once

Hey..
Noticed this when I was adjusting some tests.
When I call the .watchAll more than once for the same provider the notifier does not update with the models and the isLoading to false..
At the line 80 of remote_adapter_watch.dart (events.singleWhereOrNull), if the events contains more than one entry with the same type and keys.first the function will return null making the doneLoading attribute being null and therefore the following condition to update the notifier will not be fulfilled.
Obs:
I've managed to make it work by changing the doneLoading logic to the following:
      final doneLoading = events
          .where((e) =>
              e.type == DataGraphEventType.doneLoading &&
              e.keys.first == internalType)
          .isNotEmpty;

@frank06 what do you think about it?

@GabrielAraujo thanks! Fixed in 74c654cf9ae5a0bfe895ef218157a84e581e550f

@frank06 thanks! Any idea on when a new version will be sent to pub.dev?

Not sure, point to the git commit for now.  If in the next few days all looks stable I'll release a new version.


text:
Example does not compile

The example does not compile, lib/chat.dart has an issue line 84:
lib/chat.dart:84:25: Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't.
final file = File(filePath);
Flutter environment:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.1, on macOS 11.6 20G165 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.60.1)
[✓] Connected device (1 available)
• No issues found!

Forgot to update dependencies, updated on main branch now :)

authors: appdevingenio demchenkoalex


text:
ignoreMissingMigrations default not specified

What version of Flyway are you using?
4.2.0
What did you do?
Opened flyway.conf to set it up for the first time.
What did you expect to see?
A default mentioned.
What did you see instead?
# Ignore missing migrations when reading the metadata table. These are migrations that were performed by an
# older deployment of the application that are no longer available in this version. For example: we have migrations
# available on the classpath with versions 1.0 and 3.0. The metadata table indicates that a migration with version 2.0
# (unknown to us) has also been applied. Instead of bombing out (fail fast) with an exception, a
# warning is logged and Flyway continues normally. This is useful for situations where one must be able to deploy
# a newer version of the application even though it doesn't contain migrations included with an older one anymore.
# true to continue normally and log a warning, false to fail fast with an exception.
# flyway.ignoreMissingMigrations=

Good catch! Fixed.

authors: axelfontaine codingthat

repo: flyway/flyway


text:
add option to place

Add the option that allows to place <script> at the end of <body> instead of <head>.
Reasoning: a react app throws this error https://legacy.reactjs.org/docs/error-decoder.html/?invariant=299.
The problem is, app renders page inside of <div id="root"> tag, and

This is a possible workaround I think: https://stackoverflow.com/a/73759421/1642887

repo: fmal/gulp-inline-source


text:
Modify syntax for gp.predict() in concert with sklearn 0.18

Hi there,
Minor issue, but in playing with the visualization notebook in Jupyter, it appears that minor changes to sklearn syntax in 0.18 have broken the tutorial (related to the posterior() function definition).
I was able to fix this as follows (I'm showing posterior_old() for the sake of comparison).  It appears that eval_MSE has been deprecated, and instead return_std may be specified to get the standard deviation.
def posterior_old(bo, xmin=-2, xmax=10):
    xmin, xmax = -2, 10
    bo.gp.fit(bo.X, bo.Y)
    mu, sigma2 = bo.gp.predict(np.linspace(xmin, xmax, 1000).reshape(-1, 1), eval_MSE=True)
    return mu, np.sqrt(sigma2)

def posterior(bo, xmin=-2, xmax=10, n_points=1000):
    xmin, xmax = -2, 10
    bo.gp.fit(bo.X, bo.Y)
    mu,std = bo.gp.predict(np.linspace(xmin, xmax, n_points).reshape(-1, 1), return_std=True)
    return mu, std

Sweet!  Thanks!

repo: fmfn/BayesianOptimization


text:
Malformed HTTP headers for async hot functions

When logging incoming request headers in async hot function content length defined as Fn_header_content_length instead of Content-Length. Moreover all HTTP 1.0 spec headers are prefixed with FN_:

Fn_header_accept
Fn_header_content_type
Fn_header_content_length

App config included into headers
App info:

{
	"config": {
		"pg_db": "emokognition",
		"pg_host": "10.0.2.15",
		"pg_port": "5432",
		"pg_pswd": "postgres",
		"pg_user": "postgres"
	},
	"name": "emokognition"
}

http headers logged inside hot func
Pg_host: [10.0.2.15]
Pg_user
Pg_db: [emokognition]
Pg_port: [5432]

If this meant to be expected behaviour it doesn't look like documented.
When running same hot function but sync everything works okay.

sure @denismakogon ? did you test? i think the casing is still inconsistent for async but I haven't tested

At first, it looked like it worked as expected, but it appeared that FDK does all messy work for cleaning up headers.

#370 fixes but haven't gotten around to updating it for some time

authors: denismakogon rdallman

repo: fnproject/fn


text:
Fix swappiness

closes #1473
without this, is vm.swappiness is not turned off, then it allows containers to
use unlimited (up to host max) anonymous swap space on the host. this behavior
is not what we want, particularly for getting tests to pass on everybody's dev
environment, but we don't really want this behavior in any case.
see https://github.com/fsouza/go-dockerclient/pull/776 for 'why fsouza needed to be updated' - this will affect https://github.com/fnproject/fn/pull/1477 as well (it is easy to update, just change pid limit to a pointer, so I'm not sure order matters).
pretty small and straightforward change though

I merged #1477 already. So you need to rebase on master and change the value to a pointer  in api/agent/drivers/docker/cookie.go. (Just noticed I never approved this PR, sorry)

thanks!

authors: hatchan rdallman


text:
Not creating another domain.

Hello,
I am currently having the issue where it will not detect a new domain name. It's only reading the very first line of proxydomains. Any suggestions to resolve this?
if nshield_proxy is 1 and dryrun is 0:
	print "Setting up nShield proxy for domains found in /etc/nshield/proxydomains\n"
        # Generates nginx proxy_pass from /etc/nshield/proxydomains and checks if already present in nginx conf
        with open("/etc/nshield/proxydomains") as f:
                content = f.readlines()
                content1 = content[0].split(' ')
                ip = content1[1].strip('\n')
                domain = content1[0]
                if domain not in os.popen("cat /etc/nginx/sites-enabled/dynamic-vhost.conf").read():
                    print "I Will generate proxy configuration for site "+domain+" on IP: "+ip
                    os.popen("""echo 'server {
        listen 80;

        root /var/www/html;
        index index.html index.htm index.nginx-debian.html;

        server_name """+domain+""";

        location / {
    proxy_pass       http://"""+ip+""";
    proxy_set_header Host      $host;
    proxy_set_header X-Real-IP $remote_addr;
}
}
' >> /etc/nginx/sites-enabled/dynamic-vhost.conf""")
                    os.popen('service nginx restart')
                else:
                    print "Domain already configured"

        print "Now you can test that your site is reachable via nShield proxy by changing the domain DNS or via your PC hosts file or directly DNS A record"

Kind Regards,
Jack K-B

Hello Jack,
I fixed the code and now the proxydomain configuration is working with multiple domains
commit link
Sami

Hello Sami,
That's perfect, thank you very much for resolving this issue for me!
Kind Regards,
Jack K-B

Hello,
I'm sorry for re-opening this issue but upon executing the 'python nshield-main.py' command, I'm receiving this error http://prntscr.com/gz44pn - The file does exist and I've checked it's in the correct path.
Kind Regards,
Jack K-B

Hello,
The error is most likely from the variable not a str, now i have added the str() conversion

Hello,
That's perfect thank you. I've just executed git pull and it's now showing the error http://prntscr.com/h2bv4k
Kind Regards,
Jack K-B

Hello,
Could you remove the /home/nShield/ folder  and run again:
cd /home/ && git clone https://github.com/fnzv/nShield.git && bash nShield/install.sh
?
From my ubuntu 16 image works without issues

Hello,
Thank you for replying. I've done as you said and it ran without issues upon default settings. As soon as I turned the variable 'nshield_proxy' to '1'. It's showing the same error as the above.
The machine that I'm receiving this error on is 'Ubuntu 16.04.3 LTS'.
Kind Regards,
Jack K-B.

Hello,
Sorry for the late reply, here is the fix: commit 5af9a02eb63a00f18ec25cc98de4b8f5ff0ef611

authors: fnzv jackkelly-bayliss

repo: fnzv/nShield


text:
🛑 Contaboo is down

In aa6a02b, Contaboo (https://contabo.com) was down:

HTTP code: 403
Response time: 565 ms

Resolved: Contaboo is back up in fc5d5d4 after 9 hours, 7 minutes.

repo: fnzv/status


text:
🛑 Contaboo is down

In d9101d6, Contaboo (https://contabo.com) was down:

HTTP code: 403
Response time: 455 ms

Resolved: Contaboo is back up in 928ceb1 after 1 hour, 39 minutes.


text:
是否可以在业务表中定义 tables.xlsx 中的内容

工具很好用，但是交由其他习惯在一个配置表中定义所有结构和内容的小伙伴来说，表示多表配置有点复杂，而且在版本管理工具环境下，tables.xlsx  文件容易冲突。
请问是否有方法不定义 三个 tables,enum,bean.xlsx 表，在业务表中就把配置内容搞定呀~
非常感谢。

虽然有可能，但这样做会严重丧失灵活性。luban的设计不仅要平衡简便性，更要适应各种复杂的项目需求。不过luban后续会有一个完全重构的版本，允许你自定制这些规则。

感谢您的回复！
如果在现在版本中，我这边想去除这三个表，然后在业务表中定义原本 tables.xlsx 中内容，比如：

请问在我新分支中，需要修改哪些地方才能适配代码生成和数据生成呢，或者您针对这个需求有什么建议吗。

没啥建议。乍一看不是很优雅。如果你想避免冲突，table和bean定义可以填写在xml中，方便合并。或者填到csv里也是适当的选择。

authors: BinGuoGuo pirunxi

repo: focus-creative-games/luban


text:
Make list UI more generically usable

Currently, this is one of the, if not the best UIs for a location-jump list interface. Especially once #15 is implemented, the UX here will be pretty much perfect!
Given that fact, I'd love to use the same UI in other places, too - such as a list references menu, stuff like that.
It would be amazing if it was possible to provide a more generic API for the list UI that can be used from outside of the plugin (such that I could manually implement this as my find-references provider, too), and, optimally, if this would just support these other use-cases out of the box.
Thanks for making an amazing plugin!

Yeah, I've been thinking about that too.
Would be good to make it extensible and have providers for data in the last.
Some interesting ones:

lsp related ones as you mention like finding references etc
quickfix & loclists (Coc and ALE would then probably work as well)

Thank you for the suggestion. I'll see if I can implement something like this!

Just making it a general quickfix & loclist UI would be brilliant! That + more LSP integration + a comfy lua api would be...... 💦

I just pushed a big update with support for lsp references, quicklists and loclists.
Let me know what you think!

This is really nice! Thanks a ton! I guess we can close this!

authors: elkowar folke


text:
Startup easee component error

This error message appeared 12 times after startup of HA.
Version 0.9.14
The car is not plugged in.
Logger: homeassistant.helpers.entity
Source: custom_components/easee/sensor.py:152
First occurred: 19:49:53 (12 occurrences)
Last logged: 19:51:23
Update for sensor.easee_charger_eh266759_consumption_days_1 fails
Update for sensor.easee_charger_eh266759_consumption_days_30 fails
aiohttp.client_exceptions.ClientResponseError: 503, message='', url=URL('https://api.easee.cloud/api/sessions/charger/EH266759/total/2020-09-18T19:49:53.632696/2020-09-19T19:49:53.632696')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 469, in async_device_update
await self.async_update()  # type: ignore
File "/config/custom_components/easee/sensor.py", line 152, in async_update
self._state = await self.charger.get_consumption_between_dates(
File "/usr/local/lib/python3.8/site-packages/easee/charger.py", line 90, in get_consumption_between_dates
await self.easee.get(f"/api/sessions/charger/{self.id}/total/{from_date.isoformat()}/{to_date.isoformat()}")
File "/usr/local/lib/python3.8/site-packages/easee/easee.py", line 86, in get
await self.check_status(response)
File "/usr/local/lib/python3.8/site-packages/easee/easee.py", line 99, in check_status
await raise_for_status(response)
File "/usr/local/lib/python3.8/site-packages/easee/easee.py", line 43, in raise_for_status
raise Exception(data) from e
Exception:
503 Service Temporarily Unavailable

503 Service Temporarily Unavailable

Hi,
I've seen it too on my end (mentioned it yesterday in #29. I believe it means that the Easee API didn't respond (i.e. temporarily unavailable), and if that's the case there is not much we can do unless handle the error in a nicer way like we discussed in the other thread.

We will fix this in #47

Can you test with the new release?

can you try with https://github.com/fondberg/easee_hass/releases/tag/v0.9.19?

Not my issue, but while testing version 0.9.19 I have not had any startup issues.
As for "503 Service Temporarily Unavailable" i have added my input in #29

503 is sent from the Easee cloud servers now and then. It is on the TODO list to handle the error in a better way.

authors: TheAzzi astrandb fondberg hmorkemo tmjo


text:
[varLib Instancer] Adjust usWeightClass and names

When instantiating a variable font and the default axes values has has been moved, should the instancer adjust usWeightClass and nameID 1 and 6?

I think we already do that, have you used --update-name-table option?

You are right! I neglected about updateFontNames 🤦
So only usWeightClass doesn’t get up updated

So only usWeightClass doesn’t get up updated

that should also be supported, see
https://github.com/fonttools/fonttools/blob/12bf60aee01e65a1fef2d74814abb7259cfc974d/Lib/fontTools/varLib/instancer/__init__.py#L1170

So I will double check my code because it didn’t worked for me. Thanks!

how are you calling the instancer? Are you creating a static instance (with all axes fully instantiated) or a new VF with axis defaults changed?

ah I think I see the problem now.. We only use axisLimits.pinnedLocation() when setting default OS/2 weight/width (so we only update those if wght/wdth are pinned), whereas we should also consider the modified axis defaults when the axes are retained. I'll fix that, thanks!

authors: anthrotype guidoferreyra

repo: fonttools/fonttools


text:
Apple/coingecko

Description
Getting market cap and coin value from coingecko but we should put it on supply module because that depends on the total_supply table.
It is a fork that may rebase to the local copy of coingecko being an independent module.
close #27
Checklist

[x] Targeted PR against correct branch.
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[x] Wrote unit tests.
[x] Re-reviewed Files changed in the Github PR explorer.

Codecov Report

Merging #31 into master will increase coverage by 0.82%.
The diff coverage is 78.57%.

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
+ Coverage   64.08%   64.90%   +0.82%
==========================================
  Files           9       10       +1
  Lines         465      493      +28
==========================================
+ Hits          298      320      +22
- Misses        126      129       +3
- Partials       41       44       +3

Impacted Files
Coverage Δ

database/supply.go
72.72% <75.00%> (+6.06%)
:arrow_up:

database/coingecko.go
83.33% <83.33%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a5b76c...54e0d84. Read the comment docs.

authors: HarleyAppleChoi codecov-commenter

repo: forbole/bdjuno


text:
Unidentified metadata error - SharingGuestRule

Summary
Getting error retrieving from org, when "SharingGuestRule" included in the package.xml
Steps To Reproduce:

In package.xml, include SharingGuestRule metadata

Customer_Information__c.Guest_User
SharingGuestRule

Execute sfdx force:source:retrieve -x ./manifest/package.xml

Expected result
All metadata in the package.xml file retrieved
Actual result
Unidentified metadata error - SharingGuestRule
System Information
{
"cliVersion": "sfdx-cli/7.116.2",
"architecture": "win32-x64",
"nodeVersion": "node-v14.17.5",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.2.2 (core)",
"@oclif/plugin-not-found 1.2.4 (core)",
"@oclif/plugin-plugins 1.10.1 (core)",
"@oclif/plugin-update 1.4.0-3 (core)",
"@oclif/plugin-warn-if-update-available 1.7.0 (core)",
"@oclif/plugin-which 1.0.3 (core)",
"@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
"@salesforce/sfdx-trust 3.6.0 (core)",
"alias 1.1.10 (core)",
"apex 0.2.8 (core)",
"auth 1.7.1 (core)",
"config 1.2.24 (core)",
"custom-metadata 1.0.12 (core)",
"data 0.6.1 (core)",
"generator 1.1.7 (core)",
"limits 1.2.1 (core)",
"org 1.7.0 (core)",
"salesforce-alm 52.3.1 (core)",
"schema 1.0.8 (core)",
"sfdx-cli 7.116.2 (core)",
"source 1.0.12 (core)",
"telemetry 1.2.3 (core)",
"templates 52.1.0 (core)",
"user 1.4.0 (core)"
],
"osVersion": "Windows_NT 10.0.18363"
}
Additional information
sfdx plugins --core
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.2.2 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.10.1 (core)
@oclif/plugin-update 1.4.0-3 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
@salesforce/sfdx-trust 3.6.0 (core)
alias 1.1.10 (core)
apex 0.2.8 (core)
auth 1.7.1 (core)
config 1.2.24 (core)
custom-metadata 1.0.12 (core)
data 0.6.1 (core)
generator 1.1.7 (core)
limits 1.2.1 (core)
org 1.7.0 (core)
salesforce-alm 52.3.1 (core)
schema 1.0.8 (core)
sfdx-cli 7.116.2 (core)
source 1.0.12 (core)
telemetry 1.2.3 (core)
templates 52.1.0 (core)
user 1.4.0 (core)

this should be fixed in 7.118.1 (currently tagged as latest-rc).

duplicate of https://github.com/forcedotcom/cli/issues/1199

authors: IVerkhosh mshanemc

repo: forcedotcom/cli


text:
sf 1.82 (June 14, 2023) no longer consolidates sources from multiple directories during deploy

Summary
Starting with sf 1.82, if you're pushing disparate source files that live in different directories, only one of the files "wins out" and is deployed to the org. Prior to 1.82, it seems that the combination of the two files would be deployed to the org.
Steps To Reproduce:
Repository to reproduce: jeffreyazevedo/sf-cli-multi-directory
This simple repo contains two Opportunity stage standard value set metadata files in two different directories. One includes a value of Test Stage 1 and the other a value of Test Stage 2. Both directories are defined as packageDirectories in the sfdx-project.json file.

Generate a scratch org and deploy the project using sf project deploy start
Log into the org and navigate to the Opportunity Stage field in setup

Expected result
Both Test Stage 1 and Test Stage 2 should be present as Opportunity Stages Picklist Values. This is true when deploying with sf version 1.81.
Actual result
When using sf version 1.82, only Test Stage 2 is present in the org after deployment.
System Information
CLI Version:
@salesforce/cli/1.82.6
Architecture:
win32-x64
Node Version:
node-v18.16.0
Plugin Version:
@dx-cli-toolbox/sfdx-toolbox-package-utils 0.8.4 (user)
@oclif/plugin-autocomplete 2.3.0 (core)
@oclif/plugin-commands 2.2.15 (core)
@oclif/plugin-help 5.2.9 (core)
@oclif/plugin-not-found 2.3.24 (core)
@oclif/plugin-plugins 3.1.2 (core)
@oclif/plugin-search 0.0.17 (core)
@oclif/plugin-update 3.1.17 (core)
@oclif/plugin-version 1.3.4 (core)
@oclif/plugin-warn-if-update-available 2.0.37 (core)
@oclif/plugin-which 2.2.22 (core)
@salesforce/cli 1.82.6 (core)
apex 2.3.2 (core)
auth 2.8.1 (core)
data 2.3.22 (core)
deploy-retrieve 1.11.4 (core)
info 2.6.19 (core)
limits 2.3.18 (core)
login 1.2.11 (core)
org 2.9.7 (core)
schema 2.3.12 (core)
settings 1.4.10 (core)
sobject 0.1.23 (core)
source 2.10.13 (core)
telemetry 2.2.0 (core)
templates 55.4.20 (core)
trust 2.4.20 (core)
user 2.3.16 (core)
sfdmu 4.28.0 (user)
OS and Version:
Windows_NT 10.0.22621
Shell:
cmd.exe
Root Path:
C:\Users\Jeffrey Azevedo\AppData\Local\sf\client\1.82.6-35a6434
PS C:\PMDev\MultiDirectoryDeploy> sf version --verbose --json
{
"cliVersion": "@salesforce/cli/1.82.6",
"architecture": "win32-x64",
"nodeVersion": "node-v18.16.0",
"osVersion": "Windows_NT 10.0.22621",
"shell": "cmd.exe",
"rootPath": "C:\Users\Jeffrey Azevedo\AppData\Local\sf\client\1.82.6-35a6434",
"pluginVersions": [
"@dx-cli-toolbox/sfdx-toolbox-package-utils 0.8.4 (user)",
"@oclif/plugin-autocomplete 2.3.0 (core)",
"@oclif/plugin-commands 2.2.15 (core)",
"@oclif/plugin-help 5.2.9 (core)",
"@oclif/plugin-not-found 2.3.24 (core)",
"@oclif/plugin-plugins 3.1.2 (core)",
"@oclif/plugin-search 0.0.17 (core)",
"@oclif/plugin-update 3.1.17 (core)",
"@oclif/plugin-version 1.3.4 (core)",
"@oclif/plugin-warn-if-update-available 2.0.37 (core)",
"@oclif/plugin-which 2.2.22 (core)",
"@salesforce/cli 1.82.6 (core)",
"apex 2.3.2 (core)",
"auth 2.8.1 (core)",
"data 2.3.22 (core)",
"deploy-retrieve 1.11.4 (core)",
"info 2.6.19 (core)",
"limits 2.3.18 (core)",
"login 1.2.11 (core)",
"org 2.9.7 (core)",
"schema 2.3.12 (core)",
"settings 1.4.10 (core)",
"sobject 0.1.23 (core)",
"source 2.10.13 (core)",
"telemetry 2.2.0 (core)",
"templates 55.4.20 (core)",
"trust 2.4.20 (core)",
"user 2.3.16 (core)",
"sfdmu 4.28.0 (user)"
]
}

I gave the same thing a try for a settings file (Chatter.settings) with each enabling a different chatter setting (emoticons and out of office) and similarly only one of the settings was ultimately enabled. However this behavior seems to be the same on 1.81 and 1.82, so not a regression. (I've committed this new file to the existing repo in case that's helpful.)
However I would expect any metadata that isn't monolithic in nature (like standardValueSet, settings, profiles, permission sets, etc) to end up fully applied even if there are multiple files. Obviously if two files contradict each other (one grants a certain permission and the other takes the same permission away), then one of them has to win out. But if the two files have no overlap and would each be successfully applied if deployed individually in separate deployments, then it should follow that the same thing happens when done together in a single sf project deploy start. The output of the command even seems to imply that both files were deployed, but that's not accurate. And there's no way to tell which one was ignored and which one was actually deployed.
PS C:\PMDev\MultiDirectoryDeploy> sf project deploy start
Deploying v57.0 metadata to test-gazl6uzr1jkh@example.com using the v58.0 SOAP API.
Deploy ID: 0AfDC00000d9Mfs0AE
Status: Succeeded | ████████████████████████████████████████ | 2/2 Components

Deployed Source
================================================================================================================================
| State   Name             Type             Path
| ─────── ──────────────── ──────────────── ────────────────────────────────────────────────────────────────────────────────────
| Changed Chatter          Settings         force-app\main\default\settings\Chatter.settings-meta.xml
| Changed Chatter          Settings         unpackaged\main\default\settings\Chatter.settings-meta.xml
| Changed OpportunityStage StandardValueSet force-app\main\default\standardValueSets\OpportunityStage.standardValueSet-meta.xml
| Changed OpportunityStage StandardValueSet unpackaged\main\default\standardValueSets\OpportunityStage.standardValueSet-meta.xml

Great repro!  I've figured out what caused this (swapping out a library).  Thanks for testing with RC and for reporting.

I'm going to share what I've learned so far--no solution yet, but I can explain the problem.  It's...crazy.
Background
all the deploy commands (source:push, source:deploy, mdapi:deploy, project:deploy) use https://github.com/forcedotcom/source-deploy-retrieve which until recently used archiver to make zip files.  It's got various bugs, one of which caused https://github.com/forcedotcom/cli/issues/2125.
So we swapped it for https://github.com/Stuk/jszip (also heavily used generally, and used in other areas of the CLI, like when we zip up stuff for packaging).
Investigation
I logged what Archiver (the old way) was doing.  It adds the same file to the zip twice
adding to zip package.xml
adding to zip standardValueSets/OpportunityStage.standardValueSet
adding to zip standardValueSets/OpportunityStage.standardValueSet

And you may be thinking, "wait, you can put the same filename in a zip twice?!"   Well, Archiver does. 🤪
And I also wrote out the zip file to the file system to confirm this:
➜  sf-cli-multi-directory git:(main) ✗ zip -sf zipToSend.zip
Archive contains:
  package.xml
  standardValueSets/OpportunityStage.standardValueSet
  standardValueSets/OpportunityStage.standardValueSet
Total 3 entries (1079 bytes)

Note: there is no folder you could create on your filesystem in mdapi format and then zip to arrive at such a zip file. It only exists because of what I'd consider "another bug in Archiver".
Even when I unzip that abomination, I only get one OpportunityStage file because, you know, two files can't exist at the same place on the FileSystem.

It also means the metadata API isn't unzipping to a FS and then processing the files, it's iterating/streaming them out of the zip folder or something.

jsZip maintains the "in progress zip files" with keys like this, so the second file you give it with the same name is a modification (js objects don't allow duplicate keys).
{
      "standardValueSets/OpportunityStage.standardValueSet": {...}
}

So the new library (sanely) doesn't allow duplicate paths in the zip.

OK, so don't duplicate the files!  Unfortunately, they have to be named exactly
standardValueSets/OpportunityStage.standardValueSet.  Mdapi format (what's in the zip file that we send to the API) doesn't allow nested folders for this type.
Things that won't work

standardValueSets/OpportunityStage.standardValueSet
x/standardValueSets/OpportunityStage.standardValueSet.
standardValueSets/x/OpportunityStage.standardValueSet.

authors: jeffreyazevedo mshanemc


text:
sfdx force:* hangs when there's an error (no exit code returned)

Summary
When there's an error in any of the force:* commands, process hangs forever without returning an exit code.
Steps To Reproduce:

Run any force:* command forcing an error (E.g. sfdx force:org:list wrongparam or sfdx force:org:list --json wrongparam).

Expected result
Process exits returning a (negative) exit code.
Actual result
Process hangs forever, doesn't return an exit code.
Additional information
sfdx force:org:list wrongparam

sfdx force:org:list --json wrongparam

SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.18.0-ee5dc8194c win32-x64 node-v10.15.3
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core):
@oclif/plugin-commands 1.2.2 (core)
@oclif/plugin-help 2.2.0 (core)
@oclif/plugin-not-found 1.2.2 (core)
@oclif/plugin-plugins 1.7.8 (core)
@oclif/plugin-update 1.3.9 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/sfdx-trust 3.0.5 (core)
analytics 1.2.0 (core)
generator 1.1.0 (core)
salesforcedx 46.8.0 (core)
├─ force-language-services 46.12.0 (core)
└─ salesforce-alm 46.11.0 (core)

sfdx-cli 7.18.0 (core)

OS and version: Windows 10

Also, did you try in a stock windows command.exe instance? Could it be related to Cmder?

Sorry for the super delayed response.  I think one of the later versions fixed this for me as I'm no longer having the issue.  Thanks!

Hello. It did for me as well, thank you.
I'm closing this issue now.

authors: BobSeu bcattaneo tnoonan-salesforce


text:
Background Tasks (Long-living)

The concept of some tasks that are not in the tree(but can be controlled by the tree nodes) executing some work in the background.
For instance, synchronize the topics of BB and ROS2 etc.
It seems to have the nodes in the tree appear to make the tree cumbersome and do not fit properly into the conception of trees since the tasks need to hang for a long time.

 Long-Living Tasks

repo: forester-bt/forester


text:
unable to call form-data getBoundary method in React Native

I was trying to upload file using form-data and axios library. It is working flawlessly on a node application. As soon as I switch to react native, it comes with a red screen stating that getBoundary method doesn't exist in form data object.
Can someone please help me with that?

React-Native doesn't have nodejs, so it uses browser environment to run javascript, meaning FormData available there is the one from Web API – https://developer.mozilla.org/en-US/docs/Web/API/FormData
What you can try to do is to use isomorphic version:
https://github.com/form-data/isomorphic-form-data
/cc @DylanPiercey

hey @alexindigo @DylanPiercey Thank you so much for your input guys.
@DylanPiercey I actually was calling getBoundary myself for a file upload multipart fomdata, but apparently that is not what I should be doing. For some reason if I use the react-native's version of FormData, I feel that it behave's a bit differently from what form-data package is doing. Although they state that it is following the Mozilla Web API, but unsure what are the core differences.

I am referring to this code
https://github.com/facebook/react-native/blob/1151c096dab17e5d9a6ac05b61aacecd4305f3db/Libraries/Network/FormData.js

authors: aajiwani alexindigo

repo: form-data/form-data


text:
WIP: migrate to typescript

At the moment, the library is quite outdated.

Rewrite the library to TypeScript (closes #398)
Stop supporting older versions of node.js that are already in the EOL stage
Make major changes to the implementation (abandon callback and use getters instead of functions where necessary)

At the moment, Node.js is rapidly developing. The library should meet the requirements of the Node.js ecosystem. So with this PR, I want to make the Node.js ecosystem better. I'll take whatever help I can to make these changes better.

Coverage decreased (-2.6%) to 95.531% when pulling 9a2c5959bf6e3945a1dbcf30bb9bae73d47b2814 on negezor:migrate-to-typescript into d7026253e728af9568503dc3dc55cd1a566605e0 on form-data:master.

Hey,
Thanks for the interest in the project.
This PR looks big and hard to swallow in a single run.
Let’s chat about it and see how we can turn it into more manageable chunks.
Let’s start with the big picture and what’s the end goal here?
Thank you.

At the moment it is one of the most popular modules for FormData. But the module has not changed its API from Node.js 0.6, and still supports stream of the first version.
Time does not stand still, the ecosystem of JavaScript was developing, new features appeared. Old versions of Node.js have long been in EOL state. It became difficult to interact with it when all API is based on Promise.
I understand that it really looks big in this form PR. But at the moment, the only major change made is the changes on named export.
My suggestions for changing the API for the better:

Use accessors instead of getter methods

- formData.getBoundary()
+ formData.boundary

Use promises instead of callbacks

- formData.getLength((error, length) => { /* do something */ })
+ formData.getLength().then((length) => { /* do something */ })

Move the submit method to a separate helper

- formData.submit(...);
+ import { FormData, submit } from 'form-data';
// ...
+ submit(formData, {
+  // ... Options
+})

Use sandwich-stream instead of combined-stream
Remove constants FormData.LINE_BREAK and FormData.DEFAULT_CONTENT_TYPE
Remove methods/properties starting with underscore

authors: alexindigo coveralls negezor


text:
First row data not getting populated in data grid with merge component schema

I 'am having a select drop down Approach (with 2 values - Product Based and Process Based). I have added the below Advanced Logic on selection of the one of the values for the data grid with columns(using Text Area) like riskEvent, baselLevelI, baselLevelIi, baselRiskCategory, control and controlCategory
Type - Simple
When the Form Component - Approach
Has the Value - Product Based
Action Type - Merge Component Schema
Schema Definition
var values = [
                {
                    "riskEvent": "a",
                    "baselLevelI": "aa",
                    "baselLevelIi": "aaa",
                    "baselRiskCategory": "aaaa",
                    "control": "aaaaa",
                    "controlCategory": "aaaaaa"
                },{
                    "riskEvent": "e",
                    "baselLevelI": "ee",
                    "baselLevelIi": "eee",
                    "baselRiskCategory": "eeee",
                    "control": "eeeee",
                    "controlCategory": "eeeeee"
                },
				{
                    "riskEvent": "f",
                    "baselLevelI": "ff",
                    "baselLevelIi": "fff",
                    "baselRiskCategory": "ffff",
                    "control": "fffff",
                    "controlCategory": "ffffff"
                }
            ]	;

console.log(values);

schema = {
	defaultValue: 		values
}

The values in the first row are not displayed and the text area remains empty, whereas the values in the second row onwards are correctly displayed in the data grid

What version of the imported "formiojs" library are you using? I want to think that this issue was resolved with the latest versions of our renderer (formiojs) which is imported into the react-formio library.

What version of the imported "formiojs" library are you using? I want to think that this issue was resolved with the latest versions of our renderer (formiojs) which is imported into the react-formio library.

Below are the entries in my package.json
"formiojs": "^4.0.0-rc.21",
"react-formio": "^4.2.6",

@pratikpbhagat
We have 5.0.0-rc.2 release of react-formio that supports latest formiojs version and peer dependencies.
You could try to update your react-formio and formiojs versions to latest.

authors: AlexeyDavyd pratikpbhagat travist

repo: formio/react-formio


text:
[BUG] Vue-formio is not work with bootstrap 5

i am work with bootstrap modal 5 but Form is not working when i giving src url

I think formio does not support Bootstrap 5 yet.

We have been working on releasing a bootstrap 5 version of our libraries starting with our formio/formio.js repo. See here for the pull request that implements this.
https://github.com/formio/formio.js/pull/4607
This has been pulled into the latest version, which is currently released as 5.0.0-rc.1. I have not tried it personally, but you may be able to get it to cooperate by installing this version alongside this library like so.
yarn install @formio/vue
yarn install @formio/formiojs@5.0.0-rc.1

Give it a try and let us know if you run into issues.

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!

authors: Sefriol daneformio shuhaib-aot travist

repo: formio/vue


text:
Unable to use src="" instead of script setup inside template.

Reproduction
https://formkit.com/playground?fkv=latest&fileTab=Playground.vue&css-framework=genesis&files=jc[HPJd.vueD<scrip4srcB.%2FNts137+ESM+impVt2ar9eAfrom+URLqhttps%3A7cdn...z7YwellYsecondary+pJAfiXq.%2FOtherFiX.vue}.-8script3-<G0<FVmKitZ0typeBkxt1Z0labelBFVmKi4Input1Z0helpBWi4mQto+ge4startW1Z%2F38G-<stylQscopW3%2F*-Thi2fil92TailwinACSS.+--If+you+neeAvanilla+CSS+i4can+go+here.-*%2F-8styX3'6%2CHNjsDexpV4defineC5{(\rZ\r-)z'~removabX_~siXnt!false6]-\n0++1\'2s+3>-4t+5omponent6~addW_)7%2F%2F8<%2F9QsuppVtAd+B%3D1D'~WitV!'Gkmplak3H('name!'JlaygrounNkst.c5.Qe+VorWedXleY+a2Z-0_!truekteq2{z}-zqk_ZYXWVQNJHGDBA9876543210-_
Describe the bug
I have a nuxt 3 setup where i split view and functionality in seperate files: component.vue and component.ts.
my template looks like this:
<div>
	<FormKit type="form" label="" add-label="Add Movie">
		<FormKit
			type="select"
			label="Country"
			name="country"
			:options="['Danamrk', 'United states', 'China', 'Africa']"
		/>
		<FormKit type="text" label="Fornavn" name="first_name" validation="required" />
	</FormKit>
</div>
<script lang="ts" src="./component.ts" />

I get an error when i use a script file (src import ) as my component definition.
Error message:
Internal server error:

@bootsmann1995 can you re-file this on unplugin-formkit?

repo: formkit/formkit


text:
Fixing dates and exposing placeholders

I did both changes i mentioned - i really think that at least placeholders should be built in feature here.
Unfortunately i didn't manage to change template for adding placeholder to deal with it without putting braces around var - it may cause some issues for users (say with Django if somebody screw templates up). I think there is no other way, but if im wrong i'd really like to know how ;)
Thanks and enjoy

Why not just use placeholder property of fsSelect (i.e. fsPlaceholder => placeholder)?

well, i wanted to mark that this is coming from the directive - im not especially attached to it to be honest

I think, placeholder is better remember-able and transparent.
Another question: do you need dynamic binding for it or bind-once enough?

Well, personally i just needed way to put my own text there, as i said, for purely i18n reasons. I can imagine somone wanting to dynamically changin placeholder, but i think it would be a bit of a stretch to forsee it in library. But then again i guess the same could be said about me wanting to have custom one.
What i wanted, and what i did, is simply to pull out 'placeholder' attribute to place where i would be able to set it to my liking

Ups, build is broken after pull
@4rlekin  could you try to fix specs?

Sure, i will look into it tomorrow

repo: formstamp/formstamp


text:
Parallel Universes on Beach Scene

When two players walk into the beach at the same time two different instances occur, causing players to not see each other:

^^^ Pictures taken at the same time.

Seems to load two maps for whatever reason at this location:

Currently still investigating cause, perhaps something in Tiled?

Solution created and in the works: #193

Fornclake implemented this in one of his streams I believe

repo: fornclake/TetraForce


text:
Compatibility with io.js

The package time is compatible with io.js using the version 0.11.3, recently released.
Please update the dep in package.json and publish a new version (4.0.1?).
Thanks.

Thanks for the ride, but the time is over. :)
See #45 for alternate solutions.

repo: fortes/enfield


text:
Added Internal IP Enrichment Summary

Added Internal IP Enrichment Summary

Any tracking mantis for this? What all unit tests performed?

authors: cs-sujeet-ahirrao cs-suyog-jinturkar


text:
[WIP] Split speaker from other questions

add two new templates only showing the respective questions
add flow form with proper parameters

Step 1:

Step 2:

Step 3:

Step 4:

Tests are still failing since the CfP test flow has changed, will work on that next.

repo: fossasia/eventyay-talk


text:
feat: Add lombok for data classes

Fixes #288

Add lombok for code generation
Remove BaseModel from super class

Building locally without any problem, checking why this is failing

@arp95 @Shailesh351 Guys could you please pull this PR and compile via terminal and tell if it is throwing errors. I am able to compile it but travis can't
./gradlew build

Should work

@iamareebjamal Giving errors while compiling

`Information:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :app:compileDebugUnitTestSources]
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/OrgaApplication.java
Error:(18, 54) error: cannot find symbol class DaggerAppComponent
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/events/EventListFragment.java
Error:(26, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(52, 13) error: cannot find symbol class FragmentEventListBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/detail/EventDetailFragment.java
Error:(20, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(38, 13) error: cannot find symbol class EventDetailBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/attendees/AttendeesFragment.java
Error:(25, 52) error: cannot find symbol class BR
Error:(35, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(72, 13) error: cannot find symbol class FragmentAttendeesBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/checkin/AttendeeCheckInFragment.java
Error:(12, 34) error: cannot find symbol class BR
Error:(16, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(27, 13) error: cannot find symbol class BottomsheetAttendeeCheckInBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/events/EventsListAdapter.java
Error:(11, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(12, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(75, 23) error: cannot find symbol class EventLayoutBinding
Error:(79, 33) error: cannot find symbol class EventLayoutBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/events/viewholders/EventsHeaderViewHolder.java
Error:(5, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(9, 13) error: cannot find symbol class EventSubheaderLayoutBinding
Error:(11, 35) error: cannot find symbol class EventSubheaderLayoutBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/attendees/viewholders/AttendeeViewHolder.java
Error:(7, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(11, 19) error: cannot find symbol class AttendeeLayoutBinding
Error:(13, 31) error: cannot find symbol class AttendeeLayoutBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/data/EventRepository.java
Error:(7, 46) error: cannot find symbol class Attendee_Table
Error:(9, 46) error: cannot find symbol class Event_Table
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/checkin/AttendeeCheckInPresenter.java
Error:(8, 46) error: cannot find symbol class Attendee_Table
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/attendees/StickyHeaderAdapter.java
Error:(12, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(29, 9) error: cannot find symbol class AttendeeSubheaderLayoutBinding
Error:(31, 27) error: cannot find symbol class AttendeeSubheaderLayoutBinding
Error:==========class com.raizlabs.android.dbflow.processor.TableValidator (Kotlin reflection is not available) :Table org.fossasia.openevent.app.data.models.Attendee must provide a visible, default constructor.==========
Error:java.lang.Thread.getStackTrace(Thread.java:1556)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.logError(ProcessorManager.kt:203)
Error:com.raizlabs.android.dbflow.processor.TableValidator.validate(Validators.kt:182)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateDefinitions(DatabaseDefinition.kt:95)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateAndPrepareToWrite(DatabaseDefinition.kt:87)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.handle(ProcessorManager.kt:270)
Error:com.raizlabs.android.dbflow.processor.DBFlowProcessor.process(DBFlowProcessor.java:92)
Error:com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
Error:==========class com.raizlabs.android.dbflow.processor.TableValidator (Kotlin reflection is not available) :Table org.fossasia.openevent.app.data.models.Event must provide a visible, default constructor.==========
Error:java.lang.Thread.getStackTrace(Thread.java:1556)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.logError(ProcessorManager.kt:203)
Error:com.raizlabs.android.dbflow.processor.TableValidator.validate(Validators.kt:182)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateDefinitions(DatabaseDefinition.kt:95)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateAndPrepareToWrite(DatabaseDefinition.kt:87)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.handle(ProcessorManager.kt:270)
Error:com.raizlabs.android.dbflow.processor.DBFlowProcessor.process(DBFlowProcessor.java:92)
Error:com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
Error:==========class com.raizlabs.android.dbflow.processor.TableValidator (Kotlin reflection is not available) :Table org.fossasia.openevent.app.data.models.Order must provide a visible, default constructor.==========
Error:java.lang.Thread.getStackTrace(Thread.java:1556)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.logError(ProcessorManager.kt:203)
Error:com.raizlabs.android.dbflow.processor.TableValidator.validate(Validators.kt:182)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateDefinitions(DatabaseDefinition.kt:95)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateAndPrepareToWrite(DatabaseDefinition.kt:87)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.handle(ProcessorManager.kt:270)
Error:com.raizlabs.android.dbflow.processor.DBFlowProcessor.process(DBFlowProcessor.java:92)
Error:com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
Error:==========class com.raizlabs.android.dbflow.processor.TableValidator (Kotlin reflection is not available) :Table org.fossasia.openevent.app.data.models.Ticket must provide a visible, default constructor.==========
Error:java.lang.Thread.getStackTrace(Thread.java:1556)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.logError(ProcessorManager.kt:203)
Error:com.raizlabs.android.dbflow.processor.TableValidator.validate(Validators.kt:182)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateDefinitions(DatabaseDefinition.kt:95)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateAndPrepareToWrite(DatabaseDefinition.kt:87)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.handle(ProcessorManager.kt:270)
Error:com.raizlabs.android.dbflow.processor.DBFlowProcessor.process(DBFlowProcessor.java:92)
Error:com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
Error:==========class com.raizlabs.android.dbflow.processor.TableValidator (Kotlin reflection is not available) :Table org.fossasia.openevent.app.data.models.User must provide a visible, default constructor.==========
Error:java.lang.Thread.getStackTrace(Thread.java:1556)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.logError(ProcessorManager.kt:203)
Error:com.raizlabs.android.dbflow.processor.TableValidator.validate(Validators.kt:182)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateDefinitions(DatabaseDefinition.kt:95)
Error:com.raizlabs.android.dbflow.processor.definition.DatabaseDefinition.validateAndPrepareToWrite(DatabaseDefinition.kt:87)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.handle(ProcessorManager.kt:270)
Error:com.raizlabs.android.dbflow.processor.DBFlowProcessor.process(DBFlowProcessor.java:92)
Error:com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
Error:==========class com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition (Kotlin reflection is not available) :Could not find the referenced table definition org.fossasia.openevent.app.data.models.Event from SocialLink. Ensure it exists in the samedatabase org.fossasia.openevent.app.data.db.configuration.OrgaDatabase==========
Error:java.lang.Thread.getStackTrace(Thread.java:1556)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.logError(ProcessorManager.kt:203)
Error:com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition.checkNeedsReferences(ForeignKeyColumnDefinition.kt:337)
Error:com.raizlabs.android.dbflow.processor.definition.TableDefinition.onWriteDefinition(TableDefinition.kt:337)
Error:com.raizlabs.android.dbflow.processor.definition.BaseDefinition.getTypeSpec(BaseDefinition.kt:130)
Error:com.raizlabs.android.dbflow.processor.utils.WriterUtils$writeBaseDefinition$1.invoke(WriterUtils.kt:16)
Error:com.raizlabs.android.dbflow.processor.utils.WriterUtils$writeBaseDefinition$1.invoke(WriterUtils.kt:11)
Error:com.grosner.kpoet.JavaFileExtensionsKt.javaFile(JavaFileExtensions.kt:9)
Error:==========class com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition (Kotlin reflection is not available) :Could not find the referenced table definition org.fossasia.openevent.app.data.models.Event from SocialLink. Ensure it exists in the samedatabase org.fossasia.openevent.app.data.db.configuration.OrgaDatabase==========
Error:java.lang.Thread.getStackTrace(Thread.java:1556)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.logError(ProcessorManager.kt:203)
Error:com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition.checkNeedsReferences(ForeignKeyColumnDefinition.kt:337)
Error:com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition.addPropertyDefinition(ForeignKeyColumnDefinition.kt:110)
Error:com.raizlabs.android.dbflow.processor.definition.TableDefinition$onWriteDefinition$$inlined$apply$lambda$5.invoke(TableDefinition.kt:381)
Error:com.raizlabs.android.dbflow.processor.definition.TableDefinition$onWriteDefinition$$inlined$apply$lambda$5.invoke(TableDefinition.kt:29)
Error:com.raizlabs.android.dbflow.processor.utils.JavaPoetExtensionsKt.override fun(JavaPoetExtensions.kt:12)
Error:com.raizlabs.android.dbflow.processor.definition.TableDefinition.onWriteDefinition(TableDefinition.kt:370)
Error:==========class com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition (Kotlin reflection is not available) :Could not find the referenced table definition org.fossasia.openevent.app.data.models.Event from SocialLink. Ensure it exists in the samedatabase org.fossasia.openevent.app.data.db.configuration.OrgaDatabase==========
Error:java.lang.Thread.getStackTrace(Thread.java:1556)
Error:com.raizlabs.android.dbflow.processor.ProcessorManager.logError(ProcessorManager.kt:203)
Error:com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition.checkNeedsReferences(ForeignKeyColumnDefinition.kt:337)
Error:com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition.addPropertyCase(ForeignKeyColumnDefinition.kt:129)
Error:com.raizlabs.android.dbflow.processor.definition.TableDefinition$onWriteDefinition$$inlined$apply$lambda$5.invoke(TableDefinition.kt:382)
Error:com.raizlabs.android.dbflow.processor.definition.TableDefinition$onWriteDefinition$$inlined$apply$lambda$5.invoke(TableDefinition.kt:29)
Error:com.raizlabs.android.dbflow.processor.utils.JavaPoetExtensionsKt.override fun(JavaPoetExtensions.kt:12)
Error:com.raizlabs.android.dbflow.processor.definition.TableDefinition.onWriteDefinition(TableDefinition.kt:370)
Error:==========class com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition (Kotlin reflection is not available) :Could not find the referenced table definition org.fossasia.openevent.app.data.models.Event from SocialLink. Ensure it exists in the samedatabase org.fossasia.openevent.app.data.db.configuration.OrgaDatabase==========
Warning:File for type 'com.raizlabs.android.dbflow.config.OrgaDatabaseorga_database_Database' created in the last round will not be subject to annotation processing.
Warning:File for type 'com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder' created in the last round will not be subject to annotation processing.
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
Information:Total time: 10.89 secs
Information:101 errors
Information:2 warnings`

Yeah, that was test build, please test now

@iamareebjamal  Tested it. Still build failed with less errors.
It is showing cannot find symbol class DaggerAppComponent, FragmentEventListBinding etc..
Error:(26, 46) error: package org.fossasia.openevent.app.databinding does not exist

The actual error is the last one, can you please post that

`Information:Gradle tasks [clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources]
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/OrgaApplication.java
Error:(18, 54) error: cannot find symbol class DaggerAppComponent
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/events/EventListFragment.java
Error:(26, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(52, 13) error: cannot find symbol class FragmentEventListBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/detail/EventDetailFragment.java
Error:(20, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(38, 13) error: cannot find symbol class EventDetailBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/attendees/AttendeesFragment.java
Error:(25, 52) error: cannot find symbol class BR
Error:(35, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(72, 13) error: cannot find symbol class FragmentAttendeesBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/checkin/AttendeeCheckInFragment.java
Error:(12, 34) error: cannot find symbol class BR
Error:(16, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(27, 13) error: cannot find symbol class BottomsheetAttendeeCheckInBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/events/EventsListAdapter.java
Error:(11, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(12, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(75, 23) error: cannot find symbol class EventLayoutBinding
Error:(79, 33) error: cannot find symbol class EventLayoutBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/events/viewholders/EventsHeaderViewHolder.java
Error:(5, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(9, 13) error: cannot find symbol class EventSubheaderLayoutBinding
Error:(11, 35) error: cannot find symbol class EventSubheaderLayoutBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/attendees/viewholders/AttendeeViewHolder.java
Error:(7, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(11, 19) error: cannot find symbol class AttendeeLayoutBinding
Error:(13, 31) error: cannot find symbol class AttendeeLayoutBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/data/EventRepository.java
Error:(7, 46) error: cannot find symbol class Attendee_Table
Error:(9, 46) error: cannot find symbol class Event_Table
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/checkin/AttendeeCheckInPresenter.java
Error:(8, 46) error: cannot find symbol class Attendee_Table
/home/shell/Git Projects/open-event-orga-app/app/src/main/java/org/fossasia/openevent/app/event/attendees/StickyHeaderAdapter.java
Error:(12, 46) error: package org.fossasia.openevent.app.databinding does not exist
Error:(29, 9) error: cannot find symbol class AttendeeSubheaderLayoutBinding
Error:(31, 27) error: cannot find symbol class AttendeeSubheaderLayoutBinding
/home/shell/Git Projects/open-event-orga-app/app/src/main/res/layout/attendee_layout.xml
Error:(38, 33) Could not find accessor org.fossasia.openevent.app.data.models.Attendee.firstName
/home/shell/Git Projects/open-event-orga-app/app/src/main/res/layout/bottomsheet_attendee_check_in.xml
Error:(47, 73) Could not find accessor org.fossasia.openevent.app.data.models.Attendee.firstName
/home/shell/Git Projects/open-event-orga-app/app/src/main/res/layout/event_layout.xml
Error:(28, 35) Could not find accessor org.fossasia.openevent.app.data.models.Event.thumbnail
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

java.lang.RuntimeException: Found data binding errors.
Information:BUILD FAILED
Information:Total time: 14.356 secs
Information:31 errors
Information:0 warnings`

Did you do a clean build, should work fine IMO, if not, try opening in Android Studio and install lombok plugin

@iamareebjamal It's strange i am still getting errors. I have cleaned the project. Installed lombok plugin.

@arp95 @rohanagarwal94 @shreyasnbhat Can you guys please test this too? I think this is because of dbflow but I am not facing any errors

@iamareebjamal  please have a look at this.
https://github.com/Raizlabs/DBFlow/issues/1084
It seems dbflow will never support lombok without kotlin

But it's working for me. Did you try it? Try opening the model classes after installing lombok plugin so that it generates the code

@mejariamol It's a shame if it doesn't work, we shouldn't be really maintaining the model boilerplate.
@Shailesh351 Can you please do me a favour? Can you try making model attributes package private (without modifiers) and check if it's working

@iamareebjamal No luck. Still getting errors.

Hmm, well, let's scrap it then

@arp95 @shreyasnbhat @mejariamol Please try this once before I close

@iamareebjamal getting the same errors as @Shailesh351 . no luck with this.

Guys, last time, can you try this -> https://stackoverflow.com/a/43448940/3309666
:smile:

@iamareebjamal previous errors are gone. Getting other incompatible types error
Information:Gradle tasks [clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources]
Warning:File for type 'com.raizlabs.android.dbflow.config.OrgaDatabaseorga_database_Database' created in the last round will not be subject to annotation processing.
Warning:File for type 'com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder' created in the last round will not be subject to annotation processing.
/home/shell/Git Projects/open-event-orga-app/app/build/generated/source/apt/debug/org/fossasia/openevent/app/databinding/BottomsheetAttendeeCheckInBinding.java
Error:(201, 117) error: incompatible types: Attendee cannot be converted to boolean
Error:(203, 115) error: incompatible types: Attendee cannot be converted to boolean
Error:(205, 117) error: incompatible types: Attendee cannot be converted to boolean
Error:(207, 123) error: incompatible types: Attendee cannot be converted to boolean
/home/shell/Git Projects/open-event-orga-app/app/build/generated/source/apt/debug/org/fossasia/openevent/app/databinding/AttendeeLayoutBinding.java
Error:(138, 109) error: incompatible types: Attendee cannot be converted to boolean
Error:(140, 108) error: incompatible types: Attendee cannot be converted to boolean
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Information:BUILD FAILED
Information:Total time: 12.161 secs
Information:7 errors
Information:2 warnings

Can you please clean and retry, this time even travis didn't fail

@iamareebjamal
checkedIn() method is making conflict with data binding checkedIn. It worked for me by replacing the method to withCheckedIn().

Oh Yeah! Thanks a lot

@Shailesh351 @arp95 Please review

@niranjan94 Please merge

repo: fossasia/open-event-orga-app


text:
fixed the upload-ipa script

Fixes issue #168 : Fixed the upload_ipa script to delete all the stale files and upload ipa properly.
Changes:
Modified upload_ipa.sh script to delete stale files, add new ipa to a fresh orphan branch and rename it to ipa just like I did in susi_android and open-event-android
Note:  It is working locally but I cannot confirm working until PR merges and Circle Build runs with a commit that is not in a Pull Request due to the check if [[ $CIRCLE_BRANCH != pull* ]]
Screenshots for the change:
N/A

@chashmeetsingh Apparantely, Circle CI is not building this Pull Request. It seems to be disabled. Can you check once?

@betterclever I enabled the option to build PRs, can you please try closing the PR and opening another to check if that works? thanks!

@betterclever seems that the other files were committed as well which had .gitignore which caused the .ipa file to not upload.

authors: betterclever chashmeetsingh


text:
Live Code Protocol v0.2

Currently the executing the code is done as part of the websocket connection. If the connection gets lost, there is no way to reconnect. This is an improvement over protocol v0.1 by adding the concept of sessions.
Protocol
The LiveCode manages sessions of execution. A new session is created by sending a POST request to /sessions and each session info can be get by sending a GET request to /sessions/session-id.
List all sessions of the current user
GET /sessions
--
200 OK

[
    {"id": "d953d41febcc"},
    {"id": "'0f55ee843aa5'"}
]

This will be implemented only after adding support for users.
Create a new session
POST /sessions
{
    "runtime": "python-canvas",
    "code": "circle(100, 100, 50)"
}
---
201 Created

Location: http://..../sessions/d953d41febcc

{
    "id": "d953d41febcc",
    "created": "2021-03-01T10:20:30",
    "elapsed": 5.3,
    "links": {
        "self": "http://.../sessions/d953d41febcc",
        "stream": "ws://.../sessions/d953d41febcc/stream"
    }
}

The stream link provides the websocket connection for receiving the output and events .
Delete a session
DELETE /sessions/d953d41febcc
---
204 No Content

Possible Error codes:
404 Not Found

Connection to the stream
GET /sessions/d953d41febcc/stream
Connection: Upgrade
Upgrade: websocket
---
101 Switching Protocols
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Accept: ...

If the connection to a websocket is lost, connection can be retried.
The behaviour of multiple websocket clients connecting at the same time is undefined.
The stream websocket protocol
The stream websocket protocol will be save as in the LiveCode protocol 0.1, except that there won't be any exec command.

It would be a  good idea to generalize the stream concept further to support multiple streams. Regular executions will either have an io stream or no streams. Graphical applications like the ones that paint on canvas etc. can have additional stream to communicate the keyboard board and mouse events to the program and receive the commands to paint.

repo: fossunited/livecode


text:
Delete Image

The readme mentions a URL to moderate/delete an image but I'm not finding any further documentation on that URL. Any help on that would be most appreciated. Thanks!

I'm going to close this as I was informed by @julianduque, however I'll leave this here for future users:
curl --user AUTH_USERNAME: AUTH_PASSWORD -X DELETE -H "Content-Type: application/json" https://[SITE_URL]/deleteObj --data '{"filename": "[FULL_IMAGE_URL]"}'

I'm going to close this as I was informed by @julianduque, however I'll leave this here for future users:
curl --user AUTH_USERNAME: AUTH_PASSWORD -X DELETE -H "Content-Type: application/json" https://[SITE_URL]/deleteObj --data '{"filename": "[FULL_IMAGE_URL]"}'

repo: fostive/gif-booth


text:
reference: Add "Advanced Tagging" section

As factories and CI stories get more complex, we are finding the need
to introduce more powerful ways to do handle tagging. This change
adds a new document to help explain what's possible. Its based
on the issue defined here:
https://github.com/foundriesio/ci-scripts/issues/44
Signed-off-by: Andy Doan andy@foundries.io

Docs for e5d513ae9ef5b23d5f3ad53ef00f42a60df045ac are browesable at: https://ci.foundries.io/projects/fio-docs/builds/369/docs/artifacts/html/index.html

Rendered page is: https://ci.foundries.io/projects/fio-docs/builds/369/docs/artifacts/html/reference/advanced-tagging.html

Docs for 3ac971be47eeda60a5d89207b471e1d520e19202 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/370/docs/artifacts/html/index.html

Docs for 34b6467bcdcd220ecdb723a40a9320ca94c2c4ed are browesable at: https://ci.foundries.io/projects/fio-docs/builds/371/docs/artifacts/html/index.html

Docs for bf36f7cfe829517d77b3b6db5121a70e3da3f014 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/372/docs/artifacts/html/index.html

@EmbeddedAndroid @ricardosalveti  - just add a new "Scenario 3" to this PR.

Docs for 3c4674b35ca83fd265a5ba2ce0a0b6285854ea33 are browesable at: https://ci.foundries.io/projects/fio-docs/builds/373/docs/artifacts/html/index.html

repo: foundriesio/docs


text:
Purple sorcerer demon generator npc import and/or Atk issue

It seems that the demons in the purple sorcerer demon generator (https://purplesorcerer.com/demon.php) use "and" for multiple Atk fields which results in only the first Atk importing.  Changing the "and" to "or" imports both attacks.   Allowing either "and" or "or" would be useful so that these import without intervention.

It appears that purplesorcerer.com fixed this on their end.  The demon generator now uses "or" and seem to be importing into the module.

repo: foundryvtt-dcc/dcc


text:
Some added languages are not sorted alphabetically

Some languages added with a script (maybe only languages other than Standard Languages) are not displayed alphabetically on the character sheet despite being sorted that way in the console. One example below, including how they are added:

class HomebrewManager {
  static init() {
    foundry.utils.mergeObject(CONFIG.DND5E.languages.exotic.children, {
      netherese: "Netherese",
      scro: "Scro"
    });
  };
}
Hooks.once("init", HomebrewManager.init);

Additionally, Thieves' Cant is above Druidic (though this one may be intentional, I'm not sure). However, all default and added languages under the Standard umbrella, including those with children, are sorted in proper alphabetical order.

Just a little bug with preparing trait lists. The ordering of Thieves' Cant & Druidic is wrong because the keys are cant and druidic, so I put them in that order rather than translated order :).

Chrome's console will auto sort things alphabetically, which is why you're seeing that discrepancy

Chrome's console will auto sort things alphabetically, which is why you're seeing that discrepancy. I'm not sure there's a clean way of re sorting the keys of a non-array object in JS without fully re-instantiating it.

Already fixed! We've got sorting built in to the SelectChoices object which those are, so it was simply a matter of marking those as needing to be sorted.

authors: JPMeehan arbron etiquettestartshere