Params - add style & explode parameter for deepObject/… encoding

Hi,
this PR basically picks up the idea by @adriangb using ` … = Query(style="deepObject") for models in query parameters.
While it currently only serves deepObject for query parameters, it could do the job for all Parameters - depending on the encoding styles/explode combinations supported,
https://spec.openapis.org/oas/v3.1.0#style-examples
Questions -

is supporting Parameter encoding (e.g. deepObject for query parameters) actually intended to be supported by fastapi
which style/explode combinations to support (for which parameter types),

matrix
label
form
simple
spaceDelimited
pipeDelimited
deepObject

This does deepObject.
This is a clone of #9768 which got closed when deleting a branch.

It would be very helpful :)

The deepObject encoding is not compatible to any other encoding.
… all encodings are not interchangeable/compatible, similar to a type specification for a variable.
You need to serve the encoding required.

This would indeed be helpful. Thank you for the PR!

I rebased the changes.
The failure in the CI is related to the documentation build.

Run python ./scripts/docs.py build-lang en
  python ./scripts/docs.py build-lang en
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.11.9/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.9/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.9/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.9/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.9/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.9/x64/lib
Insiders file None
Building docs for: en
INFO    -  [macros] - Macros arguments: {'module_name': 'main', 'modules': [], 'render_by_default': True, 'include_dir': '', 'include_yaml': [{'external_links': '../en/data/external_links.yml'}, {'github_sponsors': '../en/data/github_sponsors.yml'}, {'people': '../en/data/people.yml'}, {'sponsors_badge': '../en/data/sponsors_badge.yml'}, {'sponsors': '../en/data/sponsors.yml'}], 'j2_block_start_string': '', 'j2_block_end_string': '', 'j2_variable_start_string': '', 'j2_variable_end_string': '', 'on_undefined': 'keep', 'on_error_fail': False, 'verbose': False}
INFO    -  [macros] - Loading yaml file: /home/runner/work/fastapi/fastapi/docs/en/../en/data/external_links.yml
INFO    -  [macros] - Loading yaml file: /home/runner/work/fastapi/fastapi/docs/en/../en/data/github_sponsors.yml
INFO    -  [macros] - Loading yaml file: /home/runner/work/fastapi/fastapi/docs/en/../en/data/people.yml
INFO    -  [macros] - Loading yaml file: /home/runner/work/fastapi/fastapi/docs/en/../en/data/sponsors_badge.yml
INFO    -  [macros] - Loading yaml file: /home/runner/work/fastapi/fastapi/docs/en/../en/data/sponsors.yml
INFO    -  [macros] - Extra variables (config file): ['analytics', 'social', 'alternate']
INFO    -  [macros] - Extra filters (module): ['pretty']
INFO    -  Cleaning site directory
INFO    -  Building documentation to directory: /home/runner/work/fastapi/fastapi/site_build/en
INFO    -  DeprecationWarning: Passing multiple extensions as a single list or tuple is deprecated. Please pass them as separate arguments instead.
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/mkdocstrings_handlers/python/handler.py", line 275, in collect
    extensions=load_extensions(extensions),
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/griffe/extensions/base.py", line 481, in load_extensions
    warnings.warn(

ERROR   -  Error reading page 'reference/apirouter.md': list index out of range

Not sure what is causing this.
So far I consider it unrelated to the changes.


[.NET] Fix gradle builds for multiple ABIs

Include the needed .NET jar in the Godot templates so it's always available, then we don't need to include the jar from a .NET publish which could fail when exporting to multiple architectures because it would attempt to add the same jar for each architecture.

As discussed in https://github.com/godotengine/godot/pull/98066#discussion_r1866061941.
@m4gr3d  Let me know if I got something wrong.

Thanks!

Were you able to validate that the generated android_source.zip build template contains the monoLibs directory?

It does:


Only log missing key if language not English

Description
Running the app in English results in every translation key reported as missing (because there are no english translations provided). This suppresses the unhelpful warning for English.

How to test the feature:

[ ]
[ ]

Checklist - did you ...

Test your changes with

[ ] REACT_APP_COUNTRY=rbd yarn start
[ ] REACT_APP_COUNTRY=cambodia yarn start
[ ] REACT_APP_COUNTRY=mozambique yarn start
[ ] Add / update necessary tests?
[ ] Add / update outdated documentation?

Screenshot/video of feature:

The rationale was that we could have an english.json file to list all the "app related" text so that we can easily use it as a base for other languages.

Great, I do like that plan. We can remove this if statement when we have the english.json file


Atlas Checks for Australia

Hello everyone!
Our team has recently generated a number of Atlas Checks for Australia, and we would like to open up these challenges to anyone who might be interested in helping to improve map data for the region. These Atlas Checks primarily look for potential logical errors that are in OSM and take a deep dive into fixing any problems that might exist. Not every issue requires a fix, and it would be great to look over these tasks to help determine if there are any outlying issues or common problems on the map. Here is a link for those who would like to learn more about Atlas Checks: https://github.com/osmlab/atlas-checks . If you are interested in improving data quality, or wanting to investigate potential issues on the map, please feel free to check out these MapRoulette challenge links below and jump on into a challenge that you feel speaks to you:
MalformedRoundaboutCheck https://maproulette.org/browse/challenges/36423
RoundaboutConnectorCheck https://maproulette.org/browse/challenges/36424
EdgeCrossingEdgeCheck https://maproulette.org/browse/challenges/36425
FloatingEdgeCheck https://maproulette.org/browse/challenges/36426
IntersectionAtDifferentLayersCheck https://maproulette.org/browse/challenges/36427
RoundaboutValenceCheck https://maproulette.org/browse/challenges/36428
SnakeRoadCheck https://maproulette.org/browse/challenges/36429
ConnectivityCheck https://maproulette.org/browse/challenges/36430
UnusualLayerTagsCheck https://maproulette.org/browse/challenges/36432
InconsistentRoadClassificationCheck https://maproulette.org/browse/challenges/36435
ValenceOneImportantRoadCheck https://maproulette.org/browse/challenges/36436
InvalidMiniRoundaboutCheck https://maproulette.org/browse/challenges/36437
InvalidTurnLanesValueCheck https://maproulette.org/browse/challenges/36439
LevelCrossingOnRailwayCheck https://maproulette.org/browse/challenges/36440
SinkIslandCheck https://maproulette.org/browse/challenges/36441
ApproximateWayCheck https://maproulette.org/browse/challenges/36442
BuildingRoadIntersectionCheck https://maproulette.org/browse/challenges/36444
TallBuildingCheck - https://maproulette.org/browse/challenges/36445
RoundaboutHighwayTagCheck - https://maproulette.org/browse/challenges/36446
RoundaboutMissingTagCheck - https://maproulette.org/browse/challenges/36447
HighwayIntersectionCheck - https://maproulette.org/browse/challenges/36449
NodeValenceCheck - https://maproulette.org/browse/challenges/36450
ConflictingTagCombinationCheck - https://maproulette.org/browse/challenges/36451
InvalidTurnRestrictionCheck - https://maproulette.org/browse/challenges/36452
AbbreviatedAddressStreetCheck - https://maproulette.org/browse/challenges/36453
ShortNameCheck - https://maproulette.org/browse/challenges/36454
AddressStreetNameCheck - https://maproulette.org/browse/challenges/36455
HighwayMissingNameAndRefTagCheck - https://maproulette.org/browse/challenges/36456
ImproperAndUnknownRoadNameCheck - https://maproulette.org/browse/challenges/36457
InvalidCharacterNameTagCheck - https://maproulette.org/browse/challenges/36458
LongNameCheck - https://maproulette.org/browse/challenges/36459
MixedCaseNameCheck - https://maproulette.org/browse/challenges/36460
RoadNameGapCheck - https://maproulette.org/browse/challenges/36461
RoadNameSpellingConsistencyCheck - https://maproulette.org/browse/challenges/36462
StreetNameIntegersOnlyCheck - https://maproulette.org/browse/challenges/36463
If you happen to miss out on these challenges, do not worry. Our team will likely have tasks like these set up for future occasions as well. Lastly, if you have questions, comments, or concerns about any of these challenges, please feel free to reach out here or email the team at openmaps(at)Microsoft.com and we will be happy to get back to you as soon as we can. Thanks, and happy mapping!
Kyle

Thanks for the heads up


Revert "[integration_test] Add a run method for proper reporting of test results"

Reverts flutter/flutter#70075
This is failing on the windows shard: https://ci.chromium.org/p/flutter/builders/prod/Windows framework_tests/1055
specifically:
00:12 +0: C:\b\s\w\ir\k\flutter\packages\integration_test\test\binding_test.dart: Test Integration binding Run Integration app                                                                         Shell: CreateProcessW failed 2

00:12 +0 -1: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\legacy_reporter_test.dart: When multiple tests pass [E]
  ProcessException: The system cannot find the file specified.

    Command: flutter test --machine test/reporter/data/pass_test_script.dart
  dart:io                                   Process.start
  reporter\legacy_reporter_test.dart 48:41  _runTest
  reporter\legacy_reporter_test.dart 20:48  main.<fn>
  reporter\legacy_reporter_test.dart 19:36  main.<fn>

Shell: CreateProcessW failed 2

00:12 +0 -2: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\legacy_reporter_test.dart: When multiple tests fail [E]
  ProcessException: The system cannot find the file specified.

    Command: flutter test --machine test/reporter/data/fail_test_script.dart
  dart:io                                   Process.start
  reporter\legacy_reporter_test.dart 48:41  _runTest
  reporter\legacy_reporter_test.dart 28:48  main.<fn>
  reporter\legacy_reporter_test.dart 27:36  main.<fn>

Shell: CreateProcessW failed 2

00:12 +0 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\legacy_reporter_test.dart: When one test passes, then another fails [E]
  ProcessException: The system cannot find the file specified.

    Command: flutter test --machine test/reporter/data/pass_then_fail_test_script.dart
  dart:io                                   Process.start
  reporter\legacy_reporter_test.dart 48:41  _runTest
  reporter\legacy_reporter_test.dart 36:48  main.<fn>
  reporter\legacy_reporter_test.dart 35:52  main.<fn>

00:12 +0 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\binding_test.dart: Test Integration binding Run Integration app
00:12 +1 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_fail_test.dart: When multiple tests fail
00:12 +1 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_fail_test.dart: When multiple tests fail
Using the legacy test result reporter, which will not catch all errors thrown in declared tests. Consider wrapping tests with https://api.flutter.dev/flutter/integration_test/run.html instead.

00:12 +2 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_fail_test.dart: When multiple tests fail
00:12 +3 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_fail_test.dart: When multiple tests fail
00:12 +4 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_fail_test.dart: When multiple tests fail
00:12 +4 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\binding_test.dart: Test Integration binding (tearDownAll)
Test execution completed: {Run Integration app: Instance of 'Success', setSurfaceSize works: Instance of 'Success', Test traceAction: Instance of 'Success'}
Warning: integration_test test plugin was not detected.

00:12 +4 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_fail_test.dart: When multiple tests fail                                                                     Shell: (The following exception is now available via WidgetTester.takeException:)
Shell: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
Shell: The following TestFailure object was thrown running a test:
Shell:   Expected: <true>
Shell:   Actual: <false>
Shell:
Shell: When the exception was thrown, this was the stack:
Shell: #4      _testMain.<anonymous closure> (file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/multiple_tests_fail_test.dart:23:5)
Shell: #5      _testMain.<anonymous closure> (file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/multiple_tests_fail_test.dart:22:40)
Shell: #6      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:144:29)
Shell: <asynchronous suspension>
Shell: <asynchronous suspension>
Shell: (elided one frame from package:stack_trace)
Shell:
Shell: This was caught by the test expectation on the following line:
Shell:   file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/multiple_tests_fail_test.dart line 23
Shell: The test description was:
Shell:   Failing testWidgets()
Shell: ════════════════════════════════════════════════════════════════════════════════════════════════════
Shell: (If WidgetTester.takeException is called, the above exception will be ignored. If it is not, then the above exception will be dumped when another exception is caught by the framework or when the test ends, whichever happens first, and then the test will fail due to having not caught or expected the exception.)

00:12 +4 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_fail_test.dart: When multiple tests fail
Test execution completed: {Failing testWidgets(): {"methodName":"Failing testWidgets()","error":"Test Failing testWidgets() failed: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════\nThe following TestFailure object was thrown running a test:\n  Expected: <true>\n  Actual: <false>\n\nWhen the exception was thrown, this was the stack:\n#4      _testMain.<anonymous closure> (file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/multiple_tests_fail_test.dart:23:5)\n#5      _testMain.<anonymous closure> (file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/multiple_tests_fail_test.dart:22:40)\n#6      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:144:29)\n<asynchronous suspension>\n<asynchronous suspension>\n(elided one frame from package:stack_trace)\n\nThis was caught by the test expectation on the following line:\n  file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/multiple_tests_fail_test.dart line 23\nThe test description was:\n  Failing testWidgets()\n═════════════════════════════════════════════════════════════════\n","details":"===== asynchronous gap ===========================\ndart:async/zone.dart 1126:19                                   _CustomZone.registerBinaryCallback\ndart:async-patch/async_patch.dart 51:8                         _asyncErrorWrapperHelper\ndart:async/zone.dart 1218:13                                   _rootRunBinary\ndart:async/zone.dart 1104:19                                   _CustomZone.runBinary\npackage:flutter_test/src/binding.dart 777:14                   TestWidgetsFlutterBinding._runTest\npackage:flutter_test/src/binding.dart 1631:12                  LiveTestWidgetsFlutterBinding.runTest\npackage:integration_test/integration_test.dart 272:17          IntegrationTestWidgetsFlutterBinding.runTest\npackage:flutter_test/src/widget_tester.dart 136:24             testWidgets.<fn>\npackage:test_api/src/backend/declarer.dart 200:19              Declarer.test.<fn>.<fn>\n===== asynchronous gap ===========================\ndart:async/zone.dart 1118:19                                   _CustomZone.registerUnaryCallback\ndart:async-patch/async_patch.dart 40:23                        _asyncThenWrapperHelper\npackage:test_api/src/backend/declarer.dart                     Declarer.test.<fn>.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:test_api/src/backend/declarer.dart 198:13              Declarer.test.<fn>\npackage:test_api/src/backend/declarer.dart 181:48              Declarer.test.<fn>\npackage:test_api/src/backend/invoker.dart 231:15               Invoker.waitForOutstandingCallbacks.<fn>\npackage:test_api/src/backend/invoker.dart 228:14               Invoker.waitForOutstandingCallbacks.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:test_api/src/backend/invoker.dart 228:5                Invoker.waitForOutstandingCallbacks\npackage:test_api/src/backend/invoker.dart 383:17               Invoker._onRun.<fn>.<fn>.<fn>\n===== asynchronous gap ===========================\ndart:async/zone.dart 1118:19                                   _CustomZone.registerUnaryCallback\ndart:async-patch/async_patch.dart 40:23                        _asyncThenWrapperHelper\npackage:test_api/src/backend/invoker.dart                      Invoker._onRun.<fn>.<fn>.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:test_api/src/backend/invoker.dart 370:9                Invoker._onRun.<fn>.<fn>\npackage:test_api/src/backend/invoker.dart 415:15               Invoker._guardIfGuarded\npackage:test_api/src/backend/invoker.dart 369:7                Invoker._onRun.<fn>\npackage:stack_trace/src/chain.dart 94:24                       Chain.capture.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:stack_trace/src/chain.dart 92:12                       Chain.capture\npackage:test_api/src/backend/invoker.dart 368:11               Invoker._onRun\npackage:test_api/src/backend/live_test_controller.dart 153:11  LiveTestController.run\ndart:async/future.dart 201:37                                  new Future.microtask.<fn>\npackage:stack_trace/src/stack_zone_specification.dart 208:15   StackZoneSpecification._run\npackage:stack_trace/src/stack_zone_specification.dart 116:48   StackZoneSpecification._registerCallback.<fn>\ndart:async/zone.dart 1178:47                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 994:7                                     _CustomZone.runGuarded\ndart:async/zone.dart 1034:23                                   _CustomZone.bindCallbackGuarded.<fn>\npackage:stack_trace/src/stack_zone_specification.dart 208:15   StackZoneSpecification._run\npackage:stack_trace/src/stack_zone_specification.dart 116:48   StackZoneSpecification._registerCallback.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 994:7                                     _CustomZone.runGuarded\ndart:async/zone.dart 1034:23                                   _CustomZone.bindCallbackGuarded.<fn>\ndart:async/schedule_microtask.dart 41:21                       _microtaskLoop\ndart:async/schedule_microtask.dart 50:5                        _startMicrotaskLoop\n"}, Failing test(): {"methodName":"Failing test()","error":"Expected: <true>\n  Actual: <false>\n","details":"package:test_api/src/frontend/expect.dart 155:31               fail\npackage:test_api/src/frontend/expect.dart 150:3                _expect\npackage:test_api/src/frontend/expect.dart 59:3                 expect\npackage:flutter_test/src/widget_tester.dart 429:3              expect\nreporter\\multiple_tests_fail_test.dart 27:5                    _testMain.<fn>\npackage:test_api/src/backend/declarer.dart 200:19              Declarer.test.<fn>.<fn>\n===== asynchronous gap ===========================\ndart:async/zone.dart 1126:19                                   _CustomZone.registerBinaryCallback\ndart:async-patch/async_patch.dart 51:8                         _asyncErrorWrapperHelper\npackage:test_api/src/backend/invoker.dart                      Invoker.waitForOutstandingCallbacks.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:test_api/src/backend/invoker.dart 228:5                Invoker.waitForOutstandingCallbacks\npackage:test_api/src/backend/invoker.dart 383:17               Invoker._onRun.<fn>.<fn>.<fn>\n===== asynchronous gap ===========================\ndart:async/zone.dart 1118:19                                   _CustomZone.registerUnaryCallback\ndart:async-patch/async_patch.dart 40:23                        _asyncThenWrapperHelper\npackage:test_api/src/backend/invoker.dart                      Invoker._onRun.<fn>.<fn>.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:test_api/src/backend/invoker.dart 370:9                Invoker._onRun.<fn>.<fn>\npackage:test_api/src/backend/invoker.dart 415:15               Invoker._guardIfGuarded\npackage:test_api/src/backend/invoker.dart 369:7                Invoker._onRun.<fn>\npackage:stack_trace/src/chain.dart 94:24                       Chain.capture.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:stack_trace/src/chain.dart 92:12                       Chain.capture\npackage:test_api/src/backend/invoker.dart 368:11               Invoker._onRun\npackage:test_api/src/backend/live_test_controller.dart 153:11  LiveTestController.run\ndart:async/future.dart 201:37                                  new Future.microtask.<fn>\npackage:stack_trace/src/stack_zone_specification.dart 208:15   StackZoneSpecification._run\npackage:stack_trace/src/stack_zone_specification.dart 116:48   StackZoneSpecification._registerCallback.<fn>\ndart:async/zone.dart 1178:47                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 994:7                                     _CustomZone.runGuarded\ndart:async/zone.dart 1034:23                                   _CustomZone.bindCallbackGuarded.<fn>\npackage:stack_trace/src/stack_zone_specification.dart 208:15   StackZoneSpecification._run\npackage:stack_trace/src/stack_zone_specification.dart 116:48   StackZoneSpecification._registerCallback.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 994:7                                     _CustomZone.runGuarded\ndart:async/zone.dart 1034:23                                   _CustomZone.bindCallbackGuarded.<fn>\ndart:async/schedule_microtask.dart 41:21                       _microtaskLoop\ndart:async/schedule_microtask.dart 50:5                        _startMicrotaskLoop\n"}}

00:12 +5 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_pass_test.dart: When multiple tests pass
00:12 +5 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_pass_test.dart: When multiple tests pass
Using the legacy test result reporter, which will not catch all errors thrown in declared tests. Consider wrapping tests with https://api.flutter.dev/flutter/integration_test/run.html instead.

00:13 +5 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\pass_then_fail_test.dart: when one test passes, then another fails
Using the legacy test result reporter, which will not catch all errors thrown in declared tests. Consider wrapping tests with https://api.flutter.dev/flutter/integration_test/run.html instead.

00:13 +5 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\multiple_tests_pass_test.dart: When multiple tests pass
Test execution completed: {Passing testWidgets(): Instance of 'Success', Passing test(): Instance of 'Success'}

00:13 +6 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\pass_then_fail_test.dart: when one test passes, then another fails
00:13 +7 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\pass_then_fail_test.dart: when one test passes, then another fails
00:13 +8 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\pass_then_fail_test.dart: when one test passes, then another fails                                                          Shell: (The following exception is now available via WidgetTester.takeException:)
Shell: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
Shell: The following TestFailure object was thrown running a test:
Shell:   Expected: <true>
Shell:   Actual: <false>
Shell:
Shell: When the exception was thrown, this was the stack:
Shell: #4      _testMain.<anonymous closure> (file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/pass_then_fail_test.dart:27:5)
Shell: #5      _testMain.<anonymous closure> (file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/pass_then_fail_test.dart:26:31)
Shell: #6      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:144:29)
Shell: <asynchronous suspension>
Shell: <asynchronous suspension>
Shell: (elided one frame from package:stack_trace)
Shell:
Shell: This was caught by the test expectation on the following line:
Shell:   file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/pass_then_fail_test.dart line 27
Shell: The test description was:
Shell:   Failing test
Shell: ════════════════════════════════════════════════════════════════════════════════════════════════════
Shell: (If WidgetTester.takeException is called, the above exception will be ignored. If it is not, then the above exception will be dumped when another exception is caught by the framework or when the test ends, whichever happens first, and then the test will fail due to having not caught or expected the exception.)

00:13 +8 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\pass_then_fail_test.dart: when one test passes, then another fails
Test execution completed: {Passing test: Instance of 'Success', Failing test: {"methodName":"Failing test","error":"Test Failing test failed: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════\nThe following TestFailure object was thrown running a test:\n  Expected: <true>\n  Actual: <false>\n\nWhen the exception was thrown, this was the stack:\n#4      _testMain.<anonymous closure> (file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/pass_then_fail_test.dart:27:5)\n#5      _testMain.<anonymous closure> (file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/pass_then_fail_test.dart:26:31)\n#6      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:144:29)\n<asynchronous suspension>\n<asynchronous suspension>\n(elided one frame from package:stack_trace)\n\nThis was caught by the test expectation on the following line:\n  file:///C:/b/s/w/ir/k/flutter/packages/integration_test/test/reporter/pass_then_fail_test.dart line 27\nThe test description was:\n  Failing test\n═════════════════════════════════════════════════════════════════\n","details":"===== asynchronous gap ===========================\ndart:async/zone.dart 1126:19                                   _CustomZone.registerBinaryCallback\ndart:async-patch/async_patch.dart 51:8                         _asyncErrorWrapperHelper\ndart:async/zone.dart 1218:13                                   _rootRunBinary\ndart:async/zone.dart 1104:19                                   _CustomZone.runBinary\npackage:flutter_test/src/binding.dart 777:14                   TestWidgetsFlutterBinding._runTest\npackage:flutter_test/src/binding.dart 1631:12                  LiveTestWidgetsFlutterBinding.runTest\npackage:integration_test/integration_test.dart 272:17          IntegrationTestWidgetsFlutterBinding.runTest\npackage:flutter_test/src/widget_tester.dart 136:24             testWidgets.<fn>\npackage:test_api/src/backend/declarer.dart 200:19              Declarer.test.<fn>.<fn>\n===== asynchronous gap ===========================\ndart:async/zone.dart 1118:19                                   _CustomZone.registerUnaryCallback\ndart:async-patch/async_patch.dart 40:23                        _asyncThenWrapperHelper\npackage:test_api/src/backend/declarer.dart                     Declarer.test.<fn>.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:test_api/src/backend/declarer.dart 198:13              Declarer.test.<fn>\npackage:test_api/src/backend/declarer.dart 181:48              Declarer.test.<fn>\npackage:test_api/src/backend/invoker.dart 231:15               Invoker.waitForOutstandingCallbacks.<fn>\npackage:test_api/src/backend/invoker.dart 228:14               Invoker.waitForOutstandingCallbacks.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:test_api/src/backend/invoker.dart 228:5                Invoker.waitForOutstandingCallbacks\npackage:test_api/src/backend/invoker.dart 383:17               Invoker._onRun.<fn>.<fn>.<fn>\n===== asynchronous gap ===========================\ndart:async/zone.dart 1118:19                                   _CustomZone.registerUnaryCallback\ndart:async-patch/async_patch.dart 40:23                        _asyncThenWrapperHelper\npackage:test_api/src/backend/invoker.dart                      Invoker._onRun.<fn>.<fn>.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:test_api/src/backend/invoker.dart 370:9                Invoker._onRun.<fn>.<fn>\npackage:test_api/src/backend/invoker.dart 415:15               Invoker._guardIfGuarded\npackage:test_api/src/backend/invoker.dart 369:7                Invoker._onRun.<fn>\npackage:stack_trace/src/chain.dart 94:24                       Chain.capture.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 1626:10                                   _runZoned\ndart:async/zone.dart 1546:10                                   runZoned\npackage:stack_trace/src/chain.dart 92:12                       Chain.capture\npackage:test_api/src/backend/invoker.dart 368:11               Invoker._onRun\npackage:test_api/src/backend/live_test_controller.dart 153:11  LiveTestController.run\ndart:async/future.dart 201:37                                  new Future.microtask.<fn>\npackage:stack_trace/src/stack_zone_specification.dart 208:15   StackZoneSpecification._run\npackage:stack_trace/src/stack_zone_specification.dart 116:48   StackZoneSpecification._registerCallback.<fn>\ndart:async/zone.dart 1178:47                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 994:7                                     _CustomZone.runGuarded\ndart:async/zone.dart 1034:23                                   _CustomZone.bindCallbackGuarded.<fn>\npackage:stack_trace/src/stack_zone_specification.dart 208:15   StackZoneSpecification._run\npackage:stack_trace/src/stack_zone_specification.dart 116:48   StackZoneSpecification._registerCallback.<fn>\ndart:async/zone.dart 1186:13                                   _rootRun\ndart:async/zone.dart 1090:19                                   _CustomZone.run\ndart:async/zone.dart 994:7                                     _CustomZone.runGuarded\ndart:async/zone.dart 1034:23                                   _CustomZone.bindCallbackGuarded.<fn>\ndart:async/schedule_microtask.dart 41:21                       _microtaskLoop\ndart:async/schedule_microtask.dart 50:5                        _startMicrotaskLoop\n"}}

00:13 +9 -3: C:\b\s\w\ir\k\flutter\packages\integration_test\test\reporter\pass_then_fail_test.dart: when one test passes, then another fails
00:13 +9 -3: Some tests failed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ERROR: Last command exited with 1 (expected: zero).
Command: ..\..\bin\flutter.bat test
Relative working directory: packages\integration_test
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

LGTM.
@jiahaog - we probably need some path.join logic instead of raw paths in there, and use flutter.bat on Windows instead of flutter.

Yeah, I accidentally clobbered the changes you made to test/binding_fail_test.dart. Sorry for the trouble!


[WIP] internet-analyzer updates

Automation for azure-sdk-for-go

Automation for azure-sdk-for-python

Can one of the admins verify this patch?

Hi, @zikalino. The PR has be closed for a long time and it's related branch still exist. If no further used for over 14 days, I will delete this related branch. Please tell me if you still need this branch.

Hi, @zikalino. The PR has be closed for a long time and it's related branch still exist. Please tell me if you still need this branch or i will delete it in 14 days.


Send email and password to RainLoop via post method

Hello
I would like to send email and password to rainloop via post method, bypassing the rainloop login. Is it possible?
Thank you.

Doesn't work for me :(

Did not work. Of course, I enabled allow_external_login in the configuration.
My code:
<form method="POST" action="https://domain.com/index.php?ExternalLogin">
  <input type="email" name="email">
  <input type="password" name="password">
  <input type="submit">
</form>

Hello, any updates? Still not working. :(

The above example is not working because of the parameters case. You must capitalize it.
Here is an working example
Go to:
.../rainloop/data/_data_/_default_/configs/application.ini
Set:
allow_external_login = On
<form method="POST" action="https://yourdomain.com/rainloop directory/index.php?ExternalLogin">
   <input type="email" name="Email" placeholder="your email">
   <input type="password" name="Password" placeholder="your password">
   <button type="submit">Submit</button>
</form>

The above example is not working because of the parameters case. You must capitalize it.
Here is an working example
Go to:
.../rainloop/data/_data_/_default_/configs/application.ini

Set:
allow_external_login = On

Using Html Form
<form method="POST" action="https://yourdomain.com/rainloop directory/index.php?ExternalLogin">
   <input type="email" name="Email" placeholder="your email">
   <input type="password" name="Password" placeholder="your password">
   <button type="submit">Submit</button>
</form>

Using Javascrip:
Request:
@param Output default is Redirect
  function params(inputs) {
	let param = [], index;
	for(index in inputs) {
	  param.push(`${encodeURIComponent(index)}=${encodeURIComponent(inputs[index])}`);
	}
	return param.join('&');
  }

  (async () => {
	const rawResponse = await fetch('https://1q0.de/rain/index.php?ExternalLogin', {
	  method: 'POST',
	  headers: {'Content-Type': "application/x-www-form-urlencoded"},
	  body: params({Email<EMAIL_ADDRESS>Password: "Mw7J7kL7HUXqJPUux", Output: 'json'})
	});
	const content = await rawResponse.json();

	console.log(content);
  })();

Success Response
{
  Action: "ExternalLogin",
  Result: true,
  ErrorCode: 0
}

Error Response
{
  Action: "ExternalLogin",
  Result: false,
  ErrorCode: 102
}

The above example is not working because of the parameters case. You must capitalize it.
Here is an working example
Go to:
.../rainloop/data/_data_/_default_/configs/application.ini

Set:
allow_external_login = On

Using Html Form
<form method="POST" action="https://yourdomain.com/rainloop directory/index.php?ExternalLogin">
   <input type="email" name="Email" placeholder="your email">
   <input type="password" name="Password" placeholder="your password">
   <button type="submit">Submit</button>
</form>

Using Javascrip:
Request:
@param Output default is Redirect
  function params(inputs) {
	let param = [], index;
	for(index in inputs) {
	  param.push(`${encodeURIComponent(index)}=${encodeURIComponent(inputs[index])}`);
	}
	return param.join('&');
  }

  (async () => {
	const rawResponse = await fetch('https://1q0.de/rain/index.php?ExternalLogin', {
	  method: 'POST',
	  headers: {'Content-Type': "application/x-www-form-urlencoded"},
	  body: params({Email: "your email", Password: "your password", Output: 'json'})
	});
	const content = await rawResponse.json();

	console.log(content);
  })();

Success Response
{
  Action: "ExternalLogin",
  Result: true,
  ErrorCode: 0
}

Error Response
{
  Action: "ExternalLogin",
  Result: false,
  ErrorCode: 102
}

The above example is not working because of the parameters case. You must capitalize it.
Here is an working example
Go to:
.../rainloop/data/_data_/_default_/configs/application.ini

Set:
allow_external_login = On

Using Html Form
<form method="POST" action="https://yourdomain.com/rainloop directory/index.php?ExternalLogin">
   <input type="email" name="Email" placeholder="your email">
   <input type="password" name="Password" placeholder="your password">
   <button type="submit">Submit</button>
</form>

Using Javascrip:
Request:
@param Output default is Redirect
  function params(inputs) {
	let param = [], index;
	for(index in inputs) {
	  param.push(`${encodeURIComponent(index)}=${encodeURIComponent(inputs[index])}`);
	}
	return param.join('&');
  }

  (async () => {
	const rawResponse = await fetch('https://yourdomain.com/rainloop directory/index.php?ExternalLogin', {
	  method: 'POST',
	  headers: {'Content-Type': "application/x-www-form-urlencoded"},
	  body: params({Email: "your email", Password: "your password", Output: 'json'})
	});
	const content = await rawResponse.json();

	console.log(content);
  })();

Success Response
{
  Action: "ExternalLogin",
  Result: true,
  ErrorCode: 0
}

Error Response
{
  Action: "ExternalLogin",
  Result: false,
  ErrorCode: 102
}


Release v7.0.0 [skip pd_pr]

Codecov Report

:exclamation: No coverage uploaded for pull request base (release@ea2cab7). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             release    #1509   +/-   ##
==========================================
  Coverage           ?   27.24%
==========================================
  Files              ?       93
  Lines              ?    10097
  Branches           ?        0
==========================================
  Hits               ?     2751
  Misses             ?     7166
  Partials           ?      180

Flag
Coverage Δ

backend_ut
27.24% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report in Codecov by Sentry.

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


Dosent post on Telegram Channel

I have added my telegram channel ID and my bot I'd in config.yml
And even my bot is admin in channel why dosent it post in my channel?
Help please
It shows like this

But dosent post on telegram channel
Help please

@bottest123
I don't know what means "channel id".
For Telegram notifications you need to create a bot and then get an api token.
My token and chat_id into config.yml looks like this:
token: 662318103:AAHOchZ3Egq2clOC88GEqnUSHxxxxxxxxx
chat_id: 20739000
Best

I have the same issue. I've managed to get the token for my bot and the chat_id of my test group. I invited the bot into the group as well.
Ran the docker in a Ubuntu 19.04 VM, analysis runs fine. But somehow the bot doesn't post the update to the telegram group. Is it because I'm running it in a VM?
config.yml:
notifiers:
    telegram:
        required:
            token: 726148:AAG[REDACTED]4f-2CCc
            chat_id: -378006
        optional:
            parse_mode: html
            template: "[{{analysis.config.candle_period}} / {{analysis.config.period_count}}] {{exchange}}-{{market}}-{{indicator}}-{{indicator_number}} is {{status}}! ({{values}}){{ '\n' -}}"

Found the chat_id via https://api.telegram.org/bot<BOT_TOKEN>/getUpdates API call:
{
  "chat": {
    "id": -378006,
    "title": "test signal bot",
    "type": "group",
    "all_members_are_administrators": true
  }
}

What did I do wrong?


Document dependency-specific macro settings

Document https://github.com/fortran-lang/fpm/pull/952.

Thank you @minhqdao.


How should plugins tell what type of pioreactor they should be installed on?

Some plugins might only work on the leader, or worker on leaders and workers. Not all plugins make sense to work on leader. How should plugins tell us?

Options:

A flag-file in the .whl
a no-op in the __init__. Ex:

from pioreactor.whoami import am_I_leader

if am_I_leader():
  from .... import ....


Add --snapshot-tag flag: only output items with the specified tag

This proved easier for (my) image promotion process, where I want to
extract out the latest images by tag for promotion.

I would prefer to have it more general, such as: --snapshot-filter=PATTERN and have the output be filtered by only those images that match the pattern (so it can be tag or image name or some combination of the two), but I think this is a good start for now.
/lgtm

/approve


Use Spring advanced API make design more clearer

Describe what this PR does / why we need it
We can use the more advanced Spring API provided to us to make the code clearer and more readable.
Does this pull request fix one issue?

Describe how you did it
Describe how to verify it
Special notes for reviews

thanks for your contribution.


Update React components support for the US Core Gender Identity ValueSet

Description
Currently, some React components render the code instead of the display value when using the US Core Gender Identity ValueSet.
For example:

Resources

Related issue: #4831
US Core Gender Identity Extension: http://hl7.org/fhir/us/core/StructureDefinition/us-core-genderIdentity
Gender Identity ValueSet: https://vsac.nlm.nih.gov/valueset/2.16.840.1.1137<IP_ADDRESS>1.32/expansion

@pamella - do you have a sample Patient resource that demonstrates this behavior?
My guess here is that the Patient has a CodeableConcept with code and no display.  Arguably, the server should be able to add the display dynamically.  But that would be a new feature request vs a display bug.
Thanks!

Hey @codyebberson -  Yes, you're right indeed. Looking at this again, I believe the limitation lies in Patient.gender accepting a code rather than a CodeableConcept or Coding.
For additional context, I bumped into this when I started using the http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.1137<IP_ADDRESS>1.32 ValueSet for the gender identity (source #4831).
CC @rahul1 - Given this, do you think it might make sense to revert to using the https://hl7.org/fhir/R4/valueset-administrative-gender.html in the Patient Intake Sample?

Closing - we'll update this in the example app! Thanks @pamella


[Feature Request] Support for json formatted messages

Support using raw json text as an alternative to minimessage in at least some capacity

Probably not happening


variable submitBlock root length.

Provide the ability for an operator to submit more than one block header at a time by appending them together.
Also updating truffle/ganache-cli versions in travis

Coverage decreased (-0.1%) to 91.925% when pulling 2f9bc87987b67b5091c508c13bdf2101cf040f3c on hamdi/submitblock-length into f72e692562912cf440107cf425ac80ac072fb7ef on master.


Unable to reference existing resource group due to location "value cannot be null"

Bicep version
0.22.6
Describe the bug
Unable to reference an existing resource group. When defining the location property I get:
The property "location" cannot be used in an existing resource declaration.bicep (BCP173)
However, when deploying without the location property, I get:
InvalidTemplate - Deployment template validation failed: 'Value cannot be null. Parameter name: location'.
To Reproduce
Steps to reproduce the behavior:
targetScope='subscription' resource testRg 'Microsoft.Resources/resourceGroups@2023-07-01' existing = {   name: rgName }
Additional context
A work-around is to remove the existing keyword, but I want to enforce referencing an existing resource group rather than creating them.

Closing as duplicate of #11914


[$500] Compose box does not shrinks when content is deleted if it was previously expanded

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

issue found when executing #31483
Version Number: 1.4.33-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:
Pre-requisite: user must be logged in.

Go to any chat.
Enter a lot of lines in the compose box until a scroll bar is displayed on the right side.
Click on "Expand" button.
Delete all the content in compose box.

Expected Result:
The compose box should automatically shrink if it has no content.
Actual Result:
The compose box does not shrinks when content is deleted if it was previously expanded.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/43996225/8335e695-0b23-4521-8429-ee36948ad3f9

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~017aedeabc77efe5c8
Upwork Job ID:<PHONE_NUMBER>760284672
Last Price Increase: 2024-01-30
Automatic offers:

dukenv0307 | Contributor | 28141989

@thesahindia bump for review

thanks for bump @dukenv0307 - looking into payment now

Payment Summary:
Contributor: @dukenv0307 $500 payment issued in Upwork
C+: @thesahindia $500 please request payment in newdot
@thesahindia can you confirm any checklist steps here before we close thanks

$500 approved for @thesahindia


Security alert in Google Play Console: Vulnerable WebView to Cross App Scripting

When using this library and uploading an apk to the Google Play Console there is an alert that the app includes a WebView that is vulnerable to cross app scripting. More info can be found under https://support.google.com/faqs/answer/9084685
The vulnerable class is:
com.kakao.auth.authorization.authcode.KakaoWebViewActivity->initUi

We also have an app that is written in Java that is using the Kakao sdk but there the is no alert. We are using version 1.1.28 in the Java app so it might be dependent on the version.

@FlorianBergmann Yeah. Then we can upgrade kakao sdk later.

I've released new kakaosdk just now with 1.15.1 try this.


Update homepage for 9 Casks

Update homepage for 19 Casks.
Ping @victorpopkov - these are all the ones on your updated list that are not bare_slash warnings.

Thanks again for your contribution!


nonsensical wording in docs for watch

in the docs for the watch function, specifically under the definition for "step",
it says "time to wait for new changes in milliseconds, if no changes are detected in this time, and at least one change has been detected, the changes are yielded."
I am specifically talking about the "if no changes are detected in this time, and at least one change has been detected" part,
it makes no sense, it's basically saying, "if no changes have been made, and a change has been made"which makes 0 sense.
I'm assuming you wrote those docs but if you didn't idk lol
It'd make more sense for it to just simply say "if at least one change has been detected"
making it be "time to wait for new changes in milliseconds, if at least one change has been detected, the changes are yielded."
which is a lot clearer and actually makes sense
it's possible I'm just misunderstanding what it's suppose to say but idk

PR welcome to improve the docs.


upgrade cennznet api to alhpa version

Changed all the relevant file that are affected when updating CENNZnet API version to 1.5.0-alpha.0
Building fine now
Next step -
test on UI with governance branch(node)

with this branch and adding
{
  "ProposalId": "u64",
  "ProposalStatusInfo": {
    "_enum": {
      "Deliberation": null,
      "ApprovedWaitingEnactment": null,
      "ApprovedEnacted": "bool",
      "ApprovedEnactmentCancelled": null,
      "Disapproved": null
    }
  },
  "ProposalVoteInfo": {
    "voteBits": "(u128, u128)",
    "activeBits": "(u128, u128)"
  }
}

to developer settings, we can interact with governance module


Apply .page-leave when same component is used but (dynamic) route changes

Not sure how to best handle this, especially keeping in mind nested routing.
My case is that on /en/test (pages/_lang/test.vue), if I do
this.$router.push({params: {lang: 'ru'}})

the page content changes without transition.

As a possible solution, you can add a watcher inside your page component:
export default {
    watch: {
        $route() {
            // replicate transition here
        }
    },
}

But I hope there is a better way of handling this

Thank you, I have done that where critical, since css wasn't enough there anyway (numeric 'counter' transition was involved).
Good that you posted that here for others, until this is resolved.

So how to solve it? Transitions doesn't work on dynamic routes.

@OlzhasAlexandrov how to replicate transition? What does it mean?

@kodekrendel you can write JS where I left a comment // to achieve any transition effect

@OlzhasAlexandrov really? Thanks for the tip. I though I need to write Chineese there.

@kodekrendel it's strange to expect to get a complete solution or examples of finished work. I believe that I left more than enough for anyone to write their own implementations. If you would like to receive a solution, tailored for your project, you are welcome to fill out the form here

@OlzhasAlexandrov you are not qualified enough for paid work, ушастик.

Lol

@OlzhasAlexandrov you should paid Nuxt for placing commercial here. I don't see your name in Backers list. Can you believe this *****?

@kodekrendel There had been more than 10 times when I personally helped you and you expressed your verbal gratitude, such as here.
Therefore, I ask you to stop being rude after a polite offer of your problem.
Best wishes and good luck with resolving your issue.

:laughing: :rofl: Thank you for this thread gentlemen.

@Atinux, closed on what basis? Is this due to a limitation in vue-router and so should not be fixed in this project?


Record instruction count across all threads created by the benched code

I think it should be possible because rustc is multithreaded and measures instruction counts for its benchmarks https://perf.rust-lang.org/?start=&end=&kind=raw&stat=instructions%3Au

I have not checked this, but it should already be possible. Can you try to call inherit()[0] on your Builder? If that does not work for you, can you share the code that fails?
This crate is probably not easy to use if you do not know how perf works. I was thinking about providing reasonable defaults, but than I am not sure what user are actually looking for.
[0] https://gz.github.io/rust-perfcnt/perfcnt/linux/struct.PerfCounterBuilderLinux.html#method.inherit

@rukai did that solve your problem?


Plot example broken in 0.6.1

The plotting-with-cartopy example from the docs: http://xray.readthedocs.org/en/stable/plotting.html
is broken with the last conda install (xray 0.6.1, linux, python 3.4, mpl 1.4.3). It used to work fine in 0.6.0:
(test_xray)mowglie@flappi ~ $ python test_xray.py
Traceback (most recent call last):
  File "test_xray.py", line 17, in <module>
    transform=ccrs.PlateCarree())
  File "/home/mowglie/.bin/conda/envs/test_xray/lib/python3.4/site-packages/xray/plot/plot.py", line 246, in __call__
    return plot(self._da, **kwargs)
  File "/home/mowglie/.bin/conda/envs/test_xray/lib/python3.4/site-packages/xray/plot/plot.py", line 124, in plot
    return plotfunc(darray, **kwargs)
  File "/home/mowglie/.bin/conda/envs/test_xray/lib/python3.4/site-packages/xray/plot/plot.py", line 417, in newplotfunc
    **kwargs)
  File "/home/mowglie/.bin/conda/envs/test_xray/lib/python3.4/site-packages/xray/plot/plot.py", line 547, in pcolormesh
    primitive = ax.pcolormesh(x, y, z, **kwargs)
  File "/home/mowglie/.bin/conda/envs/test_xray/lib/python3.4/site-packages/cartopy/mpl/geoaxes.py", line 1134, in pcolormesh
    result = self._pcolormesh_patched(*args, **kwargs)
  File "/home/mowglie/.bin/conda/envs/test_xray/lib/python3.4/site-packages/cartopy/mpl/geoaxes.py", line 1192, in _pcolormesh_patched
    antialiased=antialiased, shading=shading, **kwargs)
  File "/home/mowglie/.bin/conda/envs/test_xray/lib/python3.4/site-packages/matplotlib/collections.py", line 1683, in __init__
    Collection.__init__(self, **kwargs)
  File "/home/mowglie/.bin/conda/envs/test_xray/lib/python3.4/site-packages/matplotlib/collections.py", line 135, in __init__
    self.update(kwargs)
  File "/home/mowglie/.bin/conda/envs/test_xray/lib/python3.4/site-packages/matplotlib/artist.py", line 757, in update
    raise AttributeError('Unknown property %s' % k)
AttributeError: Unknown property origin

@fmaussion Can you post the contents of test_xray.py? I tried running a Cartopy script with

last conda install (xray 0.6.1, linux, python 3.4, mpl 1.4.3)

and everything looks good locally.

Yes sorry:
import xray
import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs

nlat = 15
nlon = 5
arr = np.random.randn(nlat, nlon)
arr[0, 0] = np.nan
atlantic = xray.DataArray(arr,
        coords = (np.linspace(50, 20, nlat), np.linspace(-60, -20, nlon)),
        dims = ('latitude', 'longitude'))

ax = plt.axes(projection=ccrs.Orthographic(-50, 30))

atlantic.plot(ax=ax, origin='upper', aspect='equal',
              transform=ccrs.PlateCarree())

ax.set_global()
ax.coastlines()

Some changes have been made to the plot functions. This one works for me:
atlantic.plot(ax=ax, transform=ccrs.PlateCarree())

The latest version of the docs has a better plot that actually uses real data: http://xray.readthedocs.org/en/latest/plotting.html#maps

Thanks. I've just tested it with my data which needed the two keywords origin='upper', aspect='equal'. Now it seems that they are set/inferred per default, which is good. So that's just the online documentation that needs a fix.

@fmaussion would you mind putting together a quick PR to fix the code in the docs? That way I don't screw up by mis-transcribing it :).

Be aware too that the latest build on readthedocs is broken so we won't see any updates right away.

But the docs on master are good? @shoyer or did you mean something about old vs new behavior?

But the docs on master are good?

No, the last successful build from master was 0.6.  We didn't update stable after the 0.6.1 release because the build was broken.  See #601.

Oops, I was confused. The docs on master do seem to fixed! Unfortunately RTD has been broken for the last month or so which has complicated making a new release.

I guess I can close this issue?

Yes, thanks.


Design and build JavaScript API for application frontends to communicate with the wallet

This should be as thin as possible a wrapper over the application's exported API, i.e. the ApplicationCall/SessionCall and Result associated types of the ServiceAbi and ContractAbi traits.

A standard for wallets now exists, and it would be good for us to be compatible with it.


Godot4 Android C#

https://github.com/RhubarbVR/LibGodotSharp/issues/4#issuecomment-1556018145

hey thanks for your interest! that repo looks really interesting, however this library is really designed for use within the Godot engine itself, which doesn't yet support C# for android (see this issue). Are you hoping to use this library within Godot or when using Godot as a library in other environments?
If you'd like something that works with the Godot 4 engine itself in the meantime, this repo is well-loved and was the motivator behind my own (as I felt I needed certain limitations/ease of use problems solved) and is quite good and battle-tested

I deploy to android phone.


anchor platform: add documentation for events

Adds the POST /event callback to the Callback API documentation. Includes a brief description of how to use event callbacks and the importance of recovering from missed events.
I think it makes sense to update the docs section once we merge SoftServe's work, since their PR (#215) changes the structure so much.

Preview is available here:http://developers-pr232.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr232.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr232.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr232.previews.kube001.services.stellar-ops.com

Can you re-run codegen task? Backtick is fixed in yaml file, but rendered version is still incorrect

Preview is available here:http://developers-pr232.previews.kube001.services.stellar-ops.com

Preview is available here:http://developers-pr232.previews.kube001.services.stellar-ops.com


replaces stream with loop to increase performance

This commit removes a stream used during expression evaluation. Removing it made a noticable performance difference. Seeing the following numbers in the performance test related to evaluation with this change.
Benchmark                                               Mode  Cnt   Score   Error   Units
AccessExpressionBenchmark.measureEvaluation            thrpt   12  20.230 ± 0.331  ops/us
AccessExpressionBenchmark.measureEvaluationAndParsing  thrpt   12   8.415 ± 0.206  ops/us

Running the same test without these changes seeing the following.
Benchmark                                               Mode  Cnt   Score   Error   Units
AccessExpressionBenchmark.measureEvaluation            thrpt   12  14.664 ± 0.937  ops/us
AccessExpressionBenchmark.measureEvaluationAndParsing  thrpt   12   6.988 ± 0.352  ops/us

Reading the description I thought that maybe the stream was complicated. But, it's not. It's actually pretty simple and the allMatch function's javadoc says that it's short-circuiting.


All-electron X2C relativistic basis sets for NMR shielding constants

Hi all,
It is possible to add below X2C relativistic basis sets for NMR calculation:
Error-consistent segmented contracted all-electron relativistic basis sets of double- and triple-zeta quality for NMR shielding constants.
https://pubs.rsc.org/en/content/articlelanding/2019/CP/C9CP02382H#!divAbstract
Links to the supporting information are (TURBOMOLE format):
http://www.rsc.org/suppdata/c9/cp/c9cp02382h/c9cp02382h2.txt
http://www.rsc.org/suppdata/c9/cp/c9cp02382h/c9cp02382h3.txt
http://www.rsc.org/suppdata/c9/cp/c9cp02382h/c9cp02382h4.txt
http://www.rsc.org/suppdata/c9/cp/c9cp02382h/c9cp02382h5.txt

Looks pretty straightforward - I have a turbomole parser already and it's all from a single reference. I will try to get it in this week

Added to the library. Should be on the website in a week or so.
Thanks for the recommendation!


Is there an option to keep the server os awake?

Need to keep macOS from entering screensaver when Android is awake.

https://github.com/Genymobile/scrcpy/blob/master/doc/window.md#disable-screensaver


Make the requested changes

Make the requested changes per the last PR review

@cdsalty I've made the requested changes.


Update search.ts DOM text reinterpreted as HTML

By using innerText, it will avoid the risk of HTML injection, as these properties automatically escape any HTML special characters in the provided text. This helps prevent cross-site scripting (XSS) vulnerabilities by treating the input as plain text rather than interpreted HTML. Always be cautious when dealing with user input or dynamic content to prevent security risks.

Hi @BobobUnicorn  Could You Please Review this PR
Thanks

Hi @BobobUnicorn Could You Please Review this PR
Thanks

Hi @google-ospo-team @BobobUnicorn  is there anything Else is Required From My Side
Could You Please Review Above PR
Thanks

Hi @BobobUnicorn Could You Please Review this PR
Thanks

Hi @BobobUnicorn Could You Please Review this PR
Thanks


Version 1.2

Orion v1.2 will come with the following changes:

[ ] default value in dictionary #230.
[ ] changes in the pages package #229.
[ ] improvements in the sidebar.

Sub-navigation is coming...


Cmake Fails to link project due to vcpkg building libs with old C++ Standards

Describe the bug
The title of this issue explains it all
Environment

OS: Linux (Manjaro x64)
Compiler: gcc version 11.1.0 (GCC)

To Reproduce
Steps to reproduce the behavior:

clone https://github.com/VelocityRa/binviz
./vcpkg install --feature-flags=manifests
Use cmake (In my case, through CLion) to build the project
See error when linking

Expected behavior
A build to succeed with no errors
Failure logs
https://gist.github.com/hYdos/26cfc0f635c89ffabb2b6512e1327cf4
Additional context
These same steps work fine on Windows x64

Hi @hYdos
Thanks for posting this issue.
I tried to build your project on my local without any errors. Have you installed g++ on your machine?

Hi @hYdos
Thanks for posting this issue.
I tried to build your project on my local without any errors. Have you installed g++ on your machine?

I do indeed have g++ on my machine.

@hYdos
Sorry for the delay.
Seems you need to link stdc++ library.
Could you please try to add the following codes to CMakeLists.txt to rebuild your project?
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -v")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")

Seems you need to link stdc++ library.

Normally, this lib is in CMAKE_CXX_IMPLICIT_LINK_LIBRARIES.
Run your build in verbose mode, and check how the linker is called.

Seems you need to link stdc++ library.

Normally, this lib is in CMAKE_CXX_IMPLICIT_LINK_LIBRARIES.
Run your build in verbose mode, and check how the linker is called.

Alright, will try when i get to my computer

@hYdos
Sorry for the delay.
Seems you need to link stdc++ library.
Could you please try to add the following codes to CMakeLists.txt to rebuild your project?
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -v")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi")

Still fails sadly

Seems you need to link stdc++ library.

Normally, this lib is in CMAKE_CXX_IMPLICIT_LINK_LIBRARIES.
Run your build in verbose mode, and check how the linker is called.

Ill attach logs here
https://hastebin.com/topipeqaga.sql - Terminal output
https://hastebin.com/coquribasu.sql - CMakeError.log
https://hastebin.com/ojozixosoz.coffeescript - CMakeOutput.log

Is there something wrong with https://hastebin.com/?
I cannot see anything from this URL now.

Is there something wrong with https://hastebin.com/?
I cannot see anything from this URL now.

Stange. ill re-upload it with pastebin i guess

From CMakeError.log,:
/usr/bin/cc CMakeFiles/cmTC_f1a1d.dir/src.c.o -o cmTC_f1a1d
/usr/bin/ld: CMakeFiles/cmTC_f1a1d.dir/src.c.o: in function `main':
src.c:(.text+0x3e): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x4a): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x56): undefined reference to `pthread_cancel'
/usr/bin/ld: src.c:(.text+0x67): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status

/usr/bin/ld: cannot find -lpthreads

Seems there is no pthreads on your machine. Could you please try to check this?

Is this still a problem for you? @hYdos


[Bug]: [1.19.2] [Log Warning]

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Hey, i had looked on other Issues, i think, there is an issue with datapacks or something, what have to do with Villages generated.
On chunkgen with Villages, it gives me allways an this Warning in the  Log
[15:11:05] [Worker-Main-1/WARN] (class_3233) Tried to access a block entity before it was created. class_2338{x=-4793, y=66, z=13249}
[15:11:05] [Worker-Main-1/WARN] (class_3233) Tried to access a block entity before it was created. class_2338{x=-4793, y=66, z=13249}

here is our modlist
https://pastebin.com/trbZbxtG
To Reproduce
Add the Waystone Mod in 1.19.2 Server
Run in new Chunks to generate with Villages
Log Warning in Console
Expected behavior
Should not Write in Log
Mod Version
v3.0.7 or newer
Minecraft Version
1.19.2
Java Version
Java 17
Fabric Version

Fabric: ex. 0.12.5-1-17-1
Fabric API: ex. 0.42.1+1.17

Relevant log output
No response
Anything else?
Other Issues:
https://github.com/LordDeatHunter/FabricWaystones/issues/78
https://github.com/LordDeatHunter/FabricWaystones/issues/117

The only Mod/Datapack we had also tested is this one ->
https://modrinth.com/datapack/dungeons-and-taverns

Tested with new Version, issue is there


Error parsing config with RemoteForward

Thanks for this - I just started using it in Neovim via nvim-treesitter.
The parser fails when dealing with RemoteForward it appears. Example:
LogLevel ERROR

Match host github.com user git
  IdentityFile ~/.ssh/id_ed25519
  IdentitiesOnly yes

Host * !github.com
  Compression yes
  IdentitiesOnly yes
  IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"

  ForwardAgent yes
  # https://carlosbecker.com/posts/pbcopy-pbpaste-open-ssh/
  # Defaults to localhost on both ends of the socket.
  RemoteForward 2224
  RemoteForward "<IP_ADDRESS>:2225" "<IP_ADDRESS>:2225"
  RemoteForward [<IP_ADDRESS>]:2226 [<IP_ADDRESS>]:2226
  ServerAliveInterval 30

I intentionally added different varieties of valid RemoteForward strings in this sample.

Thanks for the quick fix! Looks like the revision needs to be updated in https://github.com/nvim-treesitter/nvim-treesitter


Bug feedback

as shown in the figure，   When my equipment is in flight mode ， i  call "sd_setImageWithURL:" method
then will feedback a  error obout this http request . but SDWebImageManager add  this url to  "failURLs"
After that when i request the same URL ,it will be  Immediately return error， and  Not trying to network requests  。
so  i think   The following code is a bug :
{
BOOL shouldBeFailedURLAlliOSVersion = (error.code != NSURLErrorNotConnectedToInternet && error.code != NSURLErrorCancelled && error.code != NSURLErrorTimedOut);
BOOL shouldBeFailedURLiOS7 = (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1 && error.code != NSURLErrorInternationalRoamingOff && error.code != NSURLErrorCallIsActive && error.code != NSURLErrorDataNotAllowed);
}
it  Does not take into account  All possible error.code value in offline mode .

from what i see in the image you are using an older version of the library. this has been resolved if you see here

thank you very much  !  i  will update SDWebImage .and then confirm again 。


ImportError with examples/example-min.ipynb

Hello,
examples/example-min.ipynb uses
from pyglplot import plot

which raises an ImportError exception.
Kind regards

Hello, please use the examples on the main readme page.
Jupyter Notebook is not supported as it cannot deliver the required performance.


Sinytra Connector incompatibility

Using Geckolib fabric 1.20.1 - 4.2.3 with Connector-1.0.0-beta.13+1.20.1-full and soulslike-weaponry-<IP_ADDRESS>-patch-2-1.20-fabric renders some forge mod items invisible.
Mods affected are: Alex mobs (needs geckolib forge), Twilight forest (breaks with optifine, not using it but maybe is related), Ad Astra (breaks with optifine, not using it but maybe is related) and Sword in the stone.

Geckolib is incompatible with Connector currently


Does it support Authorisation mode IAM? i.e. IAM_AUTH

I'm trying to make a request in one of my lambda's which has IAM permission to access my graphql api. I don't see how to do it in the examples.

@leandrogr I figured it out. For AWS_IAM you need to sign the http request with the aws-sdk (basically add the headers the signing part spits out into your request) thats all. If you are running it in a lambda just make sure you have assigned the right permissions for the lambda. If you are running it locally it should just work fine.

@pyros2097 Hello, is it possible for you to provide some code examples on how to sign the request ?

@KwanJunWen I had done it but left the organisation. On top of my head it was like this,
use this func to sign the headers of your request,
https://docs.aws.amazon.com/sdk-for-go/api/aws/signer/v4/#Signer.Sign
Pass the body also to the func and I think the service is appsync and then the request will work only if you have authorisation through AWS_IAM enabled on the API and also added @aws_iam decorator on the type you need to query for in the schema.

In case anyone wondering. Here are some working example codes that can be used as reference
I've used aws v4 signer to sign the request as @pyros2097 mentioned.
https://docs.aws.amazon.com/sdk-for-go/api/aws/signer/v4/#Signer.Sign

// Initializes new session
sess, err := session.NewSession(&aws.Config{
	Region: aws.String("ap-southeast-1"),
})
if err != nil {
	return err
}

// Construct GraphQL request
graphqlReq := graphql.PostRequest{
	Query: `
		query foo {
			foo (
				id: "f-001"
			) {
				id
				bar
			}
		}
	`,
}

// Get GraphQL request blob
qb, err := json.Marshal(&graphqlReq)
if err != nil {
	return err
}

// Initializes new signer with credentials
signer := v4.NewSigner(sess.Config.Credentials)

// Initializes new http request for signer
r, err := http.NewRequest(http.MethodPost, "ENDPOINT", nil)
if err != nil {
	return err
}

// Set Content-Type header to application/json before signing request
r.Header.Set("Content-Type", "application/json")

// Sign http request with GraphQL request body
_, err = signer.Sign(r, bytes.NewReader(qb), "appsync", "ap-southeast-1", time.Now())
if err != nil {
	return nil, err
}

// Initializes new GraphQL client with appsync-client package
graphqlClient := appsync.NewGraphQLClient(graphql.NewClient("ENDPOINT"))

// Post request with v4 signed http request header and GraphQL request
resp, err := graphqlClient.Post(r.Header, graphqlReq)
if err != nil {
	return err
}

data := new(string)
if err := resp.DataAs(data); err != nil {
	return err
}

@pyros2097 Thanks for the quick reply !
I've managed to make it work right now. Is there anyway to call the endpoint with
// Initializes new AppSync client with appsync-client package
appsyncClient := appsync.NewClient(appsync.NewGraphQLClient(graphql.NewClient(
	"ENDPOINT",
	graphql.WithCredential(r.Header.Get("Authorization")),
)))
resp, err := appsyncClient.Post(graphqlReq)
if err != nil {
	return err
}

Apparently I still get Forbidden error even after setting graphql.WithCredential. I need to pass in the signed http request header directly into graphql client instead.

Yes I didn't use this graphql client. I directly used golang http client and assigned the headers.
The signer.Sign returns the headers and you need to do r.Header = headers and then it should work.

I see, I was able to call appsync with standard http requests as well. I was trying to use this package with v4 signed request.
Apparently we will have to create a separate http request just to get the request signed and then pass in the signed request header into graphql client to post request in order for it to work. The graphql.WithCredential does not work as intended. It will be great if we could v4 sign the graphql request directly so we won't have to setup a separate http request just for the signature.
Yes, perhaps we could open a PR to address this issue.

Thank you @KwanJunWen. Your example is very useful.

Hi @pyros2097
Sorry for our very late reply and not updating some features.
We have released v1.1.0 for IAM Authorization.
If possible, please refer to this sample.

Nice. I guess this can be closed now.


Support Arch Linux

Hi all,
I am currently trying to build S4TF natively on Arch Linux. We already have a working build for nightly Swift here: https://aur.archlinux.org/packages/swift-language-git .
I tried to build S4TF with the same PKGBUILD but it failed at:
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Analysis -I/home/fan/AUR/swift-language-git/src/llvm-project/llvm/lib/Analysis -I/usr/include/libxml2 -I/include -Iinclude -I/home/fan/AUR/swift-language-git/src/llvm-project/llvm/include -Wno-unknown-warning-option -Werror=unguarded-availability-new -fno-stack-protector -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default -Wno-class-memaccess -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color -ffunction-sections -fdata-sections -O3   -fno-exceptions -fno-rtti -UNDEBUG -std=c++14 -MD -MT lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TFUtils.cpp.o -MF lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TFUtils.cpp.o.d -o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TFUtils.cpp.o -c /home/fan/AUR/swift-language-git/src/llvm-project/llvm/lib/Analysis/TFUtils.cpp
/home/fan/AUR/swift-language-git/src/llvm-project/llvm/lib/Analysis/TFUtils.cpp:20:10: fatal error: 'tensorflow/c/c_api.h' file not found
#include "tensorflow/c/c_api.h"

I can confirm I have latest TensorFlow (2.3.1) with the C API header in /usr/include/tensorflow/tensorflow/c/c_api.h
Thanks in advance!

Its likely not finding the headers due to the layout: /usr/include/tensorflow/tensorflow/c/c_api.h would require adding -I /usr/include/tensorflow to the header search path.  The -I/include -Iinclude also seems odd.  The fact that llvm-project is trying to include the header makes me worry that you are checking out the wrong version of the branch.  Do you have the PKGBUILD file somewhere where I can see it?

@compnerd Basically what I did is taking https://aur.archlinux.org/packages/swift-language-git and changed the source URL to be git+https://github.com/apple/swift#branch=tensorflow...

Did you also change the llvm project branch to the swift fork?  The two are tied together.

Oh I didn't know that! I just changed it to use the swift/tensorflow branch, but the error is still the same.
# Maintainer<EMAIL_ADDRESS># Contributor: Theo Tosini<EMAIL_ADDRESS># Contributor: Gábor Sebestyén<EMAIL_ADDRESS># Contributor: Andrew Sun<EMAIL_ADDRESS>
pkgname=swift-language-tf-git
pkgver=swift.DEVELOPMENT.SNAPSHOT.2020.09.23.a.r4606.g9ffc1f41ad5
pkgrel=1
pkgdesc="The Swift programming language, taken directly from the Apple repository"
arch=('x86_64')
url="https://swift.org/"
license=('apache2')
depends=('icu' 'libedit' 'libxml2' 'swig' 'python' 'libbsd' 'ncurses' )
makedepends=('clang' 'cmake' 'git' 'ninja' 'python-six' 'python2' 'rsync')
provides=('swift-language-git')
source=(
    'git+https://github.com/apple/swift#branch=tensorflow'
    'cmark::git+https://github.com/apple/swift-cmark'
    'llbuild::git+https://github.com/apple/swift-llbuild'
    'swift-argument-parser::git+https://github.com/apple/swift-argument-parser'
    'swift-driver::git+https://github.com/apple/swift-driver'
    'swift-tools-support-core::git+https://github.com/apple/swift-tools-support-core'
    'swiftpm::git+https://github.com/apple/swift-package-manager'
    'swift-syntax::git+https://github.com/apple/swift-syntax'
    'swift-stress-tester::git+https://github.com/apple/swift-stress-tester'
    'swift-corelibs-xctest::git+https://github.com/apple/swift-corelibs-xctest'
    'swift-corelibs-foundation::git+https://github.com/apple/swift-corelibs-foundation'
    'swift-corelibs-libdispatch::git+https://github.com/apple/swift-corelibs-libdispatch'
    'swift-integration-tests::git+https://github.com/apple/swift-integration-tests'
    'llvm-project::git+https://github.com/apple/llvm-project#branch=swift/tensorflow'
    '0001-arch-aur-pachtes.patch'
    '0003-linux_load_commands-test-sourcekit-lsp-are-python2.patch'
    # swift src to check afterwards
    'indexstore-db::git+https://github.com/apple/indexstore-db'
#    'yams::git+https://github.com/jpsim/Yams'
    'yams::git+https://github.com/jpsim/Yams#commit=3.0.1'
    'sourcekit-lsp::git+https://github.com/apple/sourcekit-lsp'
    'swift-format::git+https://github.com/apple/swift-format'
    'swift-tools-support-core::git+https://github.com/apple/swift-tools-support-core'
    'swift-xcode-playground-support::git+https://github.com/apple/swift-xcode-playground-support'
    'tensorflow-swift-apis::git+https://github.com/tensorflow/swift-apis.git'
    'tensorflow::https://github.com/tensorflow/tensorflow.git'
)
noextract=()
md5sums=(
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
    'SKIP'
)

# By default makepkg runs strip on binaries. This seems to cause issues with the Swift REPL.
# Disable it in the PKGBUILD with:
# from https://github.com/RLovelett/swift-aur/blob/master/PKGBUILD, not sure if necessary
# termux had no trouble up to now, strip all executables and shared objects:
# https://github.com/termux/termux-packages/blob/master/scripts/build/termux_step_massage.sh#L24
#options=(!strip)

prepare () {
    ( cd swift && patch -p1 -i "$srcdir/0001-arch-aur-pachtes.patch" )
    ( cd swift-integration-tests && patch -p1 -i "$srcdir/0003-linux_load_commands-test-sourcekit-lsp-are-python2.patch" )
}

pkgver() {
    cd "$srcdir/swift"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir"
    # Fix /usr/include error
    find "$srcdir/swift/stdlib/public/SwiftShims" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g'
    find "$srcdir/llvm-project/clang" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g'
    find "$srcdir/llvm-project/clang-tools-extra" -type f -print0 | xargs -0 sed -i 's|/usr/include/x86_64-linux-gnu|/usr/include|g'

    # By default in /etc/makepkg.conf this is "-D_FORTIFY_SOURCE=2"
    # Which will break `compiler-rt`
    unset CPPFLAGS

    python swift/utils/build-script --preset=buildbot_linux,no_test install_destdir="$pkgdir"
}

package() {
#  mv /opt/swift/* $pkgdir
  pwd
  ls -la
  # mkdir -p "$pkgdir/opt" "$pkgdir/usr/bin"
  # ln -s /opt/swift/swift-linux-$CARCH/bin/{lldb-moduleimport-test,sil-extract,sil-opt,swift,swift-autolink-extract,swiftc,swift-demangle,swift-ide-test,swift-llvm-opt} "$pkgdir/usr/bin"
}

# vim:set ts=2 sw=2 et:

I tried using the newest version of the PKGBUILD, but that one seems to be based on current swift main, so the patches are not compatible with the tensorflow branch.

@ProfFan, the problem is that the PKGBUILD uses build-script so it isn't really well suited to use like this. You also need to change the build invocation in PKGBUILD beyond just the branch name so that it uses the correct preset.

The Swift builds on Arch are still under development.  Building the tensorflow branch is going to require more work in the PKGBUILD.  The best solution right now might be to build S4TF from source yourself.  Once things are more stable on Arch Linux for Swift, we could always revisit this then.  Im going to close out the issue for now.


Get file icon on Linux

Find a way to read file icon on Linux

I investigated this a bit, the algorithm looks like this:

Determine the file's MIME type.

Found a simple way here:
Execute in shell: gvfs-info -a standard::icon /full/path/to/file.txt
Output:
uri: file:///full/path/to/file.txt
attributes:
  standard::icon: text-plain, text-x-generic

The last line defines matching MIME types, in the order of priority.

Find an icon for the corresponding MIME type.

The search would be /usr/share/icons/**/text-plain.*, if not found then /usr/share/icons/**/text-x-generic.* (popular ones are png and svg files). If nothing matches, then just choose some default a use it. On my machine nothing matches for text-plain, but there are a few results for text-x-generic, in different theme folders. How to know which theme to use?

Determine a theme to use.

Found this command here:
gsettings get org.gnome.desktop.interface gtk-theme
It outputs a theme name for me: Adwaita
Therefore the search should be prioritized for /usr/share/icons/Adwaita/**/text-x-generic.*, if not found then consider all the other folders.

Determine a resolution to use.

Same rules as with icon resolutions for the apps.

Therefore, for my example with a text file, the correct icon to use is located at:
/usr/share/icons/Adwaita/256x256/mimetypes/text-x-generic.png
I wish it was simpler.

We could also use this algorithm to show default application icons, in case we didn't find any icon for the application itself. Default icon is better than no icon.

@maximbaz you shouldn't be looking at gtk-theme but icon-theme instead. + This will only work on a gnome desktop or a derivate of it, it won't work on cinnamon for example as they use  org.cinnamon.desktop.interface instead.

Thanks! updated the message.

@KELiON Hey! How can I get in touch with you about this issue? I'm currently trying to implement a simple way to find an icon on the theme. For now, the whole code is Sync (i will implement an Async version once everything works as expected).
The whole package is just one file and pretty easy to use. It has one function which is getIcon()
It takes three parameters: The icon name, the icon size, and the context of the icon (mime types here in your issue).
But as I'm not that good JS dev, I don't know how should i handle the case where the iconPath  (found by the getIcon) is an SVG icon instead of a png one?
For now, I'm thinking of converting the SVG icon to a png one and returning the buffer, this way it can be easily used using nativeImage.createFromBuffer. But i couldn't find any great package to handle svg to png conversions.
I tried my solution with a simple electron app with a tray icon, and the code I wrote works well and get the correct icon to work.
If you would like, we can get this done together (just a few tips and code review/improvements from you) and this can be used across all other electron applications. Either for using a themeable tray icon (which is requested in every icon theme out there) or for some cases like your application!
Thanks and keep up the great work!

Is it not possible to render SVG icon? Why do you want to convert it to PNG?
I'm asking because we use SVG icons for app icons, for example, without any conversion.

@maximbaz sadly, tray icons on electron can not use SVG icons.... The reason why i wanted to convert it to png's is to be able to return a base64 encoded png to be used with nativeImage.createfromBuffer. Anyway, I've already figured out how to handle all of that! You can now either get the Buffer or the absolute path of the image:+1:

Here you go : https://github.com/bil-elmoussaoui/linux-icons

Nice job @bil-elmoussaoui! Am I right to assume that your project can be used not only for file icons, but also for application icons (https://github.com/KELiON/cerebro/issues/97) ?

@maximbaz The difference between app icons and mime types is the context (the third parameter you use).
If you want to get an application icon you would do
const icons = require('linux-icons')
icons.getIcon('myicon-name', 22, icons.Context.APPLICATION, iconPath => {
  console.log(iconPath)
})

Here's the list of supported Contexts (the free desktop standards https://github.com/bil-elmoussaoui/linux-icons/blob/master/index.js#L26) which will work on every Linux distro out there!

Cool! That would be a great improvement to use your new library for both app and file icons 👍
Consider getting this integrated in Cerebro, many people will be thankful 😜
I can help out with testing or reviewing the code.
Just keep in mind, the functionality was recently extracted in separate plugins: cerebro-basic-apps and cerebro-files-nav

@maximbaz  That would be awesome, as a JS noob my code isn't perfect and it can be improved a lot. Especially the fact that I'm using svg2png to convert SVG icons to png's, this library uses PhantomJS which is not that good (huge library as dependency...);

Try to use this https://gist.github.com/PurpleBabar/b7ab56435a172b743a8f5f3b255c4cb3
@PurpleBabar

Please try:
#!/usr/bin/env gjs

const { Gio } = imports.gi;

let file = Gio.File.new_for_path(ARGV[0]);
let fileInfo = file.query_info('*', Gio.FileQueryInfoFlags.NONE, null);
let icons = fileInfo.get_icon().get_names();

print(icons[0]);

You have to send the file path in double quote as argument to this script.


Uncaught TypeError: Cannot read property 'noop' of undefined

I am attempting to use the most recent version of angular-credit-cards with Angular 1.3.15 using RequireJS (the last of which I'm admittedly a bit new to) and getting the following error when loading my app:
Uncaught TypeError: Cannot read property 'noop' of undefined

This is occurring within the following block of angular-credit-cards.js:
var nullCcExp = {
  setMonth: _angular2['default'].noop,
  setYear: _angular2['default'].noop
};

Any ideas?

Use the UMD release (available on each tag) if you're using RequireJS (AMD). I know it's a tad confusing, but the requires are Node-style requires designed for use with Browserify/Webpack and RequireJS won't play nice.

Apologies, but I'm not clear on how to do this. Right now I'm just using the bower package. Is there some alternate UMD bower package?

Ah, I know what this is. I'm guessing you're bundling with RequireJS and its picking up the require calls and screwing with them. There's a way to address this (https://github.com/calvinmetcalf/derequire) but it's going to take me some time to get my build tools updated to support it. Will keep this open until it's addressed.

Will derequire set angular-credit-cards up so that we can use it without require.js entirely?

That's unrelated. The UMD build is there on tags for people who don't want to use Browserify/Webpack. I'm never going to do a UMD build in master because there's no need for it. This is to resolve a conflict with RequireJS. I've never used RequireJS here or anywhere.

Just poking my head in here to say... don't waste your time with RequireJS.
At this point the world is moving towards SystemJS as a shim around ES6 module loading.

don't waste your time with RequireJS

Truer words have never been spoken :angel:
Hoping to get to this fix today so the UMD build is truly universal

Resolved in the latest.

I'm never going to do a UMD build in master because there's no need for it

And by never, I mean a month later :)

Apologies, but I am now getting another RequireJS error.
Uncaught TypeError: Cannot read property 'module' of undefined

on the line
module.exports = angular
  .module('credit-cards', [])

I would love to get away from RequireJS but am unfortunately stuck with it for now.

I have
shim: {
...
    'angular-credit-cards': {
      deps: ['angular']
    },
...
}

defined in my RequireJS config. I would love to get this working as it's the only dependency I'm using in my project that isn't.

Please try the latest compatibility release for AMD/window global users in release/

I am using the most recent version (2.3.5) and pulling in the release source file:
paths: {
...
'angular-credit-cards': '../plugin/angular-credit-cards/release/angular-credit-cards',
...
}


Add dependabot setup

Any reasons to use dependabot and not Renovate Bot? To be honest I only have experience with the latter one. Decided to go with it cause it's open source and can self-host for private repositories.

Opposite for me: only used dependabot so far, have it set up already in a couple of repos, public and private.


Option to delete unlinked XML files in AidStream

See https://github.com/younginnovations/aidstream-new/issues/6 for the background.
When the XML files are not linked with Registry, the user should see the delete option in the files listing in AidStream. The user should be able to delete the file.

We have the same problem: first, we had 'unsegmented' mentioned in Aidstream and IATI registry, therefore having one general activity XML file only. However, later on it turned out that we should have put it at 'segmented', having country activity files now. But, the general file XML was put at published in Aidstream, although we did not register this in IATI (making a link to that general XML file). However, we are unable to delete that XML file in Aidstream now. It does not show in My Datasets (so that is OK, I guess), but I would like to delete that file in Aidstream too. How to do that?

This feature has already been implemented into AidStream.


Proper help/usage function

Just switched from flag.Usage to fs.Usage. Now gb build -h also shows a proper help :)

Thanks for fixing the usage message but I'm sorry this is not correct.
The issue is about constructing the usage message from the registered commands, not using a dead blog of text.
If you want to peal off your other fixes we can merge those seperatly.

You mean having registerCommand() affecting the usage string? Would it be ok then to have it also take a short usage string, like "build a package" for "build"?

Yup, you can change whatever you like. We probably need to add
ShortDesc string
Desc string
to the Command struct
On Thu, Apr 30, 2015 at 4:44 PM, Daniel Martí<EMAIL_ADDRESS>wrote:

You mean having registerCommand() affecting the usage string? Would it be
ok then to have it also take a short usage string, like "build a package"
for "build"?
—
Reply to this email directly or view it on GitHub
https://github.com/constabulary/gb/pull/18#issuecomment-97679872.

ShortDesc sure, but Desc? Would that be printed in a new line after ShortDesc?
I was actually thinking of following the git --help format, which only contains a sentence (ShortDesc) per command.

If it's of no use at the moment, feel free to omit it.
On Thu, Apr 30, 2015 at 4:48 PM, Daniel Martí<EMAIL_ADDRESS>wrote:

ShortDesc sure, but Desc? Would that be printed in a new line after
ShortDesc?
I was actually thinking of following the git --help format, which only
contains a sentence (ShortDesc) per command.
—
Reply to this email directly or view it on GitHub
https://github.com/constabulary/gb/pull/18#issuecomment-97680342.

Updated. I've left a small TODO for the flags specific to commands, since I don't know how to approach that right now.

Nice. Thanks a lot, this is a great improvement.


Add support for "at"

Thanks for this polyfill, it's great and slots in perfectly. I notice the docs say that setting the centre point isn't supported. Is adding support for it likely?
Currently the use of at seems to be interpreted as a colour somehow. Gradients using the polyfill with a conic gradient which includes at do not fall back in the way I expect. I would expect that the gradient renders normally at the centre, but instead the behaviour is a bit different.
For example, the following gradient:
background: conic-gradient(at 50% 25%, yellow, lime, blue, violet, red);

It renders correctly natively in Chrome:

But renders like this in Firefox using the polyfill:

Additionally, if used with from, it throws a JS error, which prevents later conic gradients from rendering.
background: conic-gradient(from 90deg at 50% 25%, yellow, lime, blue, violet, red, yellow);

The error:
TypeError: prevStop.color.map is not a function (conic-gradient.js:184:12)

I don't have the time to work on the polyfill, but I would be glad to review and merge PRs if anyone wants to do it!

@Menardi you can look into the closed PR #13 which had this fix for some pointers.

At a quick glance, that PR correctly renders the gradient as shown in the first post. :+1: However, since the branch is 3 years old now, it has diverged quite a bit from this version. It would need a refactor to get it working with the current version (including support for from).

Yeah, that's why I just pointed to it instead of fixing it myself 😛 The diversion is mostly due to a rewrite in es6 I believe, but the core structure should be the same since the plugin hasn't changed it's architecture much.


use dat for the graph

using hyperlog now, but would be better to use dat so we can replicate graph data out in a standard way

@maxogden would it then be easier to just get the last X messages?


AB#724 Add admin and recovery section to manifest and provide keys

Adds recovery key and admin key/certificate to tools so users can perform coordinator recovery or perform updates on a running emojivoto deployment

@m1ghtym0 @Nirusu Opinions on having pregenerated private keys in samples? I dislike. And if so, what could we do instead with a good usability?

The long-term plan is to add an update and recovery step to the emojivoto demo.
The alternative would be to generate these keys on-the-fly and inject them into the manifest.
This procedure could be part of the textual walk-through.
The downside would be that we don't have a "complete" manifest to reference from the docs.
Should we instead add such to the marblerun repo as a "sample"?