[Feature request] Add an option to untrash an e-mail

Expected behavior
After moving the message to trash, there should be an easy way to undo it
Actual behavior
The only way is to use move after entering the trash folder, which often fails because the folder is not synchronized with the remote one. (i.e. no way to untrash when being offline)
Environment
K-9 Mail version: 5.600
Android version: LOS 14.1
Account type: IMAP

See #624


Task Distribution

Hi @LinxuanHu and @Mosaddeq107, for this homework, I am hoping that I can take the algorithm task because I have done documentation and unit test already and now I am willing to do the algorithm. So let's define our task.

Prof Tim said we don't need to develop any algorithm for this homework. We will use any algorithm from our previous two assignments. All we need to do is to make documentation, lint, and unit testing. Please, correct me if I'm wrong.

@reshnashrestha

Yes @Mosaddeq107 thanks for clarifying. So I'll do linting. Is it fine?

Have you decided on the task distribution? @LinxuanHu @Mosaddeq107

I can make documentations

Sure

@Mosaddeq107 @LinxuanHu I have imported the hw3 algorithm we are going to work on and created the GitHub actions for it including the unit test and yml file for the unit test. I am hoping as @LinxuanHu voted for documentation, @Mosaddeq107 you can go for linting and pytest on the unit test


[Bug] Renaming an application to have the same name as an existing application raises a Sentry issue

Even though the UI shows a clean error, the backend seems to log this error externally. This error should be part of the internally logged errors.

@trishaanand Assigning this to you since you were taking a look at server side exceptions.

@trishaanand Assigning this to you since you were taking a look at server side exceptions.

If the problem here is that the error shouldn't be reported to Sentry (presumably because this is a user-error), will #2351 fix this?

If the problem here is that the error shouldn't be reported to Sentry (presumably because this is a user-error), will #2351 fix this?

The error I am talking about is not an AppsmithPluginException, neither is it wrapped by an AppsmithException (ref: Sentry issue). We should ideally wrap this into an AppsmithException @sharat87

The error I am talking about is not an AppsmithPluginException, neither is it wrapped by an AppsmithException (ref: Sentry issue). We should ideally wrap this into an AppsmithException @sharat87

@sharat87 Was this resolved in another issue? I see that the Sentry issue associated to this has been marked as resolved.

Sorry @nidhi-nair, not in the loop for this issue to have context. I'm not aware if it's fixed already.

Ah okay, I saw your user as the one that marked the Sentry issue as resolved, so asked. I'll test this on prod and triage again. :)

Ohh I see. I think I misunderstood, this is my bad. The issue I fixed was with a clash in organization names, not application names. I mistakenly linked that PR (which was fixing org names) to the issue (which was about app names). Sorry for the confusion. 🤦♂

Verified that this does not happen anymore, closing the issue.


rename autogen to AG2 in website

Why are these changes needed?
rename autogen to AG2 in website

Related issue number

Checks

[x] I've included any doc changes needed for https://ag2ai.github.io/autogen/. See https://ag2ai.github.io/ag2/docs/Contribute#documentation to build and test documentation locally.
[x] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[x] I've made sure all auto checks have passed.

@sonichi we can merge this one to fix urgent issues. Fix others in later PR.


chore: experiment with sonar

Ticket Link

Related Links

Description

Steps to Reproduce / Test

Request

Response

Codecov Report

Merging #100 (39508a5) into master (e74c649) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #100   +/-   ##
=======================================
  Coverage   80.90%   80.90%
=======================================
  Files          27       27
  Lines        1016     1016
=======================================
  Hits          822      822
  Misses        150      150
  Partials       44       44


Fix JSX string props quote convention

Not sure if I misunderstand the previous JSX convention. But I found that in JSX string props, double-quote is preferred instead.
https://github.com/facebook/react-native/blob/master/.eslintrc#L182

By analyzing the blame information on this pull request, we identified @zxcpoiu and @mxstbr to be potential reviewers.

@facebook-github-bot shipit

Thanks for importing. If you are an FB employee go to Phabricator to review internal test results.


[Perf]: Reduce objectnode unnecessary metadata operation.

Describe the problem
1、Objectnode deletes object by unlinking and evicting inode. But evicting inode is unnecessary.
2、Objectnode complete multipart by processing the redundant metadata synchronously.
Environment
version 3.2.1

Can you attach the corresponding code and briefly describe the solution?

version 3.2.1

does it exist in versions lower than 3.2.1 ?

Can you attach the corresponding code and briefly describe the solution?
For example, the code related to the first question：
https://github.com/cubefs/cubefs/blob/54608a6016b752cd73d8fa24507bbd55a8a184f2/objectnode/fs_volume.go#L915C21-L915C21
Deleting object through objnode will cause the following things：

The object dentry will be deleted by OpMetaDeleteDentry, which will delete obj dentry.
The object inode  will be deleted by OpMetaUnlinkInode, which will unlink inode and add inode to freelist when nlink is 0.
The object inode will be evicted by OpMetaEvictInode, which will set inode deleted marker.
But the step3 is unneccessry, the object becomes invisible after step1. And data space will be freed asynchronously through step2.

version 3.2.1

does it exist in versions lower than 3.2.1 ?

yes，it is an old problem.


Android: Fix context menu not showing

This PR fixes the Android context menu issue and additionally sets the app category to Productivity.
Context Menu will appear after a long press on Android.

Thanks!


BulkDelete attempts to read non-EF properties

Hi folks,
we have identified an issue with BulkExtensions which we cannot work properly around. It seems that bulk delete attempts to read non- EF properties. This is an issue for us because certain properties (navigation/ logical properties) cannot be read from a slim object which subsequently leads to a crash. We attempted to exclude these properties through a bulk configuration, but this just leads to an InvalidOperationException that the property is not in all-properties (which is correct).
Example:
Lets say we have an alert which has none or multiple state transitions:
class Alert
{
  IEnumerable<StateTransition> AlertStateTransitions {get;set;}
  StateTransition LatestStateTransition => AlertStateTransitions.OrderBy(t=> CreatedOn).FirstOrDefault();
}

--> the property LatestStateTransition is calculated. In case we want to delete the alert, we use a slim object. these don't have/load navigation properties, i.e. AlertStateTransitions is null and leads to some exception (correctly).
The db context is properly understanding:
public void DbContext_Experiment()
{
   var dbContext = GetService<MyDbContext>();
   var entityType= dbContext.Model.FindEntityType(typeof(Alert));

   var entityProperties = entityType.GetProperties();

   entityProperties.Should().NotContain(ep => ep.Name == nameof(Alert.LatestStateTransition ), because: "this is a calculated property not visible to EF");
}

Excluding the property leads to an exception similar to this:

Not excluding leads to an exception similar to this:

(it seems that GenericsHelpers is operating on an invalid instance of the model (i.e. newly created, not passed by us) -so basically all properties are unpopulated (outside of the default constructor?).
The only mitigation we have in the moment is to not let any logical property run into any exception which ain't fine for the reason being that BulkExtension wants always to read them (on delete).
Is there another trick we can apply?
Aron

Can you write a test where the issue would be reproducible.

Hi Boris,
doesn't work; it seems the check is too late; field.GetValue is called before the tableInfo is checked:
if (field.GetIndexParameters().Any()) // Skip Indexer: public string this[string pPropertyName] => string.Empty;
            {
                continue;
            }
            var name = field.Name;
            **var temp = field.GetValue(value);**
            object? defaultValue = null;

            if (!tableInfo.PropertyColumnNamesDict.ContainsKey(name)) // skip non-EF properties
            {
                continue;
            }

Cheers,
Aron

Fixed with latest v.


Adds contract tests for mysqlclient with current behavior

Issue #, if available:
N/A
Description of changes:
Adding contract tests for mysqlclient adapter. Similar to the psycopg2 and pymysql adapters. Mysqlclient adapter is not fully supported in the upstream repository for OTEL, so we are adding assertions for the current behavior.
Contract tests running successfully:
$ ./scripts/build_and_install_distro.sh
...
$ ./scripts/set-up-contract-tests.sh
...
$ pytest contract-tests/tests
2024-06-26 16:57:13 [    INFO] Waiting to be ready... (waiting_utils.py:46)
============================= test session starts ==============================
platform linux -- Python 3.8.11, pytest-7.1.3, pluggy-1.5.0
rootdir: /local/home/gbochile/aws-otel-python-instrumentation/contract-tests/tests, configfile: pyproject.toml
plugins: cov-4.1.0, flaky-3.7.0
collected 42 items
...

contract-tests/tests/test/amazon/mysqlclient/mysqlclient_test.py::MysqlClientTest::test_create_database_succeeds
-------------------------------- live log setup --------------------------------
2024-06-26 16:56:02 [    INFO] Pulling image aws-application-signals-mock-collector-python (container.py:53)
2024-06-26 16:56:03 [    INFO] Container started: 452136cdf3a2 (container.py:64)
2024-06-26 16:56:04 [    INFO] Pulling image mysql:latest (container.py:53)
2024-06-26 16:56:04 [    INFO] Container started: 68a6851341d0 (container.py:64)
2024-06-26 16:56:04 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:04 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:05 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:06 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:07 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:08 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:09 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:10 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:11 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:12 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:13 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:14 [    INFO] Waiting to be ready... (waiting_utils.py:46)
-------------------------------- live log call ---------------------------------
2024-06-26 16:56:14 [    INFO] Pulling image aws-application-signals-tests-mysqlclient-app (container.py:53)
2024-06-26 16:56:15 [    INFO] Container started: 75a9b9c3d8db (container.py:64)
2024-06-26 16:56:21 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:21 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:21 [    INFO] Application stdout (contract_test_base.py:118)
2024-06-26 16:56:21 [    INFO] Ready
 (contract_test_base.py:119)
2024-06-26 16:56:21 [    INFO] Application stderr (contract_test_base.py:120)
2024-06-26 16:56:21 [    INFO] Failed to get k8s token: [Errno 2] No such file or directory: '/var/run/secrets/kubernetes.io/serviceaccount/token'
AwsEksResourceDetector failed: [Errno 2] No such file or directory: '/var/run/secrets/kubernetes.io/serviceaccount/token'
AwsEcsResourceDetector failed: Missing ECS_CONTAINER_METADATA_URI therefore process is not on ECS.
Exception  in detector <opentelemetry.sdk.extension.aws.resource.ec2.AwsEc2ResourceDetector object at 0x7f7b60d8fa90>, ignoring
AwsEc2ResourceDetector failed: timed out
Configuration of configurator not loaded, aws_configurator already loaded
 (contract_test_base.py:121)
PASSED
contract-tests/tests/test/amazon/mysqlclient/mysqlclient_test.py::MysqlClientTest::test_drop_table_succeeds
-------------------------------- live log call ---------------------------------
2024-06-26 16:56:22 [    INFO] Pulling image aws-application-signals-tests-mysqlclient-app (container.py:53)
2024-06-26 16:56:22 [    INFO] Container started: 2ecce860cd73 (container.py:64)
2024-06-26 16:56:28 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:29 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:29 [    INFO] Application stdout (contract_test_base.py:118)
2024-06-26 16:56:29 [    INFO] Ready
 (contract_test_base.py:119)
2024-06-26 16:56:29 [    INFO] Application stderr (contract_test_base.py:120)
2024-06-26 16:56:29 [    INFO] Failed to get k8s token: [Errno 2] No such file or directory: '/var/run/secrets/kubernetes.io/serviceaccount/token'
AwsEcsResourceDetector failed: Missing ECS_CONTAINER_METADATA_URI therefore process is not on ECS.
AwsEksResourceDetector failed: [Errno 2] No such file or directory: '/var/run/secrets/kubernetes.io/serviceaccount/token'
Exception  in detector <opentelemetry.sdk.extension.aws.resource.ec2.AwsEc2ResourceDetector object at 0x7f7d566d7a00>, ignoring
AwsEc2ResourceDetector failed: timed out
Configuration of configurator not loaded, aws_configurator already loaded
 (contract_test_base.py:121)
PASSED                                                                   [ 69%]
contract-tests/tests/test/amazon/mysqlclient/mysqlclient_test.py::MysqlClientTest::test_fault
-------------------------------- live log call ---------------------------------
2024-06-26 16:56:29 [    INFO] Pulling image aws-application-signals-tests-mysqlclient-app (container.py:53)
2024-06-26 16:56:30 [    INFO] Container started: 20446879f214 (container.py:64)
2024-06-26 16:56:36 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:36 [    INFO] Waiting to be ready... (waiting_utils.py:46)
2024-06-26 16:56:36 [    INFO] Application stdout (contract_test_base.py:118)
2024-06-26 16:56:36 [    INFO] Ready
Expected Exception with Invalid SQL occurred: (1146, "Table 'testdb.invalid_table' doesn't exist")
 (contract_test_base.py:119)
2024-06-26 16:56:36 [    INFO] Application stderr (contract_test_base.py:120)
2024-06-26 16:56:36 [    INFO] Failed to get k8s token: [Errno 2] No such file or directory: '/var/run/secrets/kubernetes.io/serviceaccount/token'
AwsEcsResourceDetector failed: Missing ECS_CONTAINER_METADATA_URI therefore process is not on ECS.
AwsEksResourceDetector failed: [Errno 2] No such file or directory: '/var/run/secrets/kubernetes.io/serviceaccount/token'
Exception  in detector <opentelemetry.sdk.extension.aws.resource.ec2.AwsEc2ResourceDetector object at 0x7efc2e775450>, ignoring
AwsEc2ResourceDetector failed: timed out
Configuration of configurator not loaded, aws_configurator already loaded
 (contract_test_base.py:121)
PASSED
...

PASSED                                                                   [100%]
------------------------------ live log teardown -------------------------------
2024-06-26 16:58:30 [    INFO] MockCollector stdout (contract_test_base.py:71)
2024-06-26 16:58:30 [    INFO] Ready
 (contract_test_base.py:72)
2024-06-26 16:58:30 [    INFO] MockCollector stderr (contract_test_base.py:73)
2024-06-26 16:58:30 [    INFO]  (contract_test_base.py:74)

======================== 42 passed in 407.01s (0:06:47) ========================

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please check failed test at https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/9844477453/job/27177952205?pr=219


Stop dns monitoring over dns servers containers

This PR detaches the dns tracer from dns servers to avoid cpu throttling.

Don't merge this until my review tomorrow please
On Sun, Aug 25, 2024, 13:45 github-actions[bot] @.***>
wrote:

Summary:

License scan: success
Credentials scan: failure
Vulnerabilities scan: failure
Unit test: success
Go linting: success

—
Reply to this email directly, view it on GitHub
https://github.com/kubescape/node-agent/pull/348#issuecomment-2308796283,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE5ZVEPQK7QB7CWGRC4ZSXTZTG7T3AVCNFSM6AAAAABNCLK3I2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYG44TMMRYGM
.
You are receiving this because your review was requested.Message ID:
@.***>

@matthyx Looks like it didn't work, don't merge I am still investigating.


TextEditingController: Range start  is out of text of length 0

Steps to Reproduce
Started occurring when upgraded to Flutter 3.3.x
This is how I reproduce it in my app:

Focus into text input box
Press a submit button that removes the text input box from the widget tree
Error appears in console. Range Start XX is out of text of length 0, where XX is whatever the cursor position was before the text inbox is removed form the widget tree.

Expected results:
Actual results:

Code sample

Logs

                    ══╡ EXCEPTION CAUGHT BY FOUNDATION LIBRARY
                    ╞════════════════════════════════════════════════════════
                    The following assertion was thrown while dispatching notifications for
                    TextEditingControllerWithCursorPosition:
                    Range start 39 is out of text of length 0
                    'package:flutter/src/services/text_input.dart':
                    Failed assertion: line 968 pos 12: 'range.start >= 0 && range.start <=
text.length'

                    Either the assertion indicates an error in the framework itself, or we should
provide
                    substantially
                    more information in this error message to help you determine and fix the
underlying cause.
                    In either case, please report this assertion by filing a bug on GitHub:
                      https://github.com/flutter/flutter/issues/new?template=2_bug.md

                    When the exception was thrown, this was the stack:
                    #2      TextEditingValue._textRangeIsValid
(package:flutter/src/services/text_input.dart:968:12)
                    #3      TextEditingValue.toJSON
(package:flutter/src/services/text_input.dart:923:12)
                    #4      TextInput._setEditingState
(package:flutter/src/services/text_input.dart:1889:13)
                    #5      TextInputConnection.setEditingState
                    (package:flutter/src/services/text_input.dart:1336:25)
                    #6      EditableTextState._updateRemoteEditingValueIfNeeded
                    (package:flutter/src/widgets/editable_text.dart:2347:27)
                    #7      EditableTextState._didChangeTextEditingValue
                    (package:flutter/src/widgets/editable_text.dart:2880:5)
                    #8      ChangeNotifier.notifyListeners
                    (package:flutter/src/foundation/change_notifier.dart:351:24)
                    #9      ValueNotifier.value=
(package:flutter/src/foundation/change_notifier.dart:456:5)
                    #10     TextEditingController.value=
(package:flutter/src/widgets/editable_text.dart:156:11)
                    #11     TextEditingControllerWithCursorPosition.text=
                    (package:app/widgets/forms/text_editing_controller_with_cursor.dart:8:5)
                    #12     _TextModeBarState._send.<anonymous closure>
                    (package:app/screens/chat_detail/text/text_mode_bar.dart:84:25)
                    #13     State.setState (package:flutter/src/widgets/framework.dart:1114:30)
                    #14     _TextModeBarState._send
(package:app/screens/chat_detail/text/text_mode_bar.dart:83:7)
                    #15     _InkResponseState.handleTap
(package:flutter/src/material/ink_well.dart:1072:21)
                    #16     GestureRecognizer.invokeCallback
(package:flutter/src/gestures/recognizer.dart:253:24)
                    #17     TapGestureRecognizer.handleTapUp
(package:flutter/src/gestures/tap.dart:627:11)
                    #18     BaseTapGestureRecognizer._checkUp
(package:flutter/src/gestures/tap.dart:306:5)
                    #19     BaseTapGestureRecognizer.acceptGesture
(package:flutter/src/gestures/tap.dart:276:7)
                    #20     GestureArenaManager.sweep
(package:flutter/src/gestures/arena.dart:163:27)
                    #21     GestureBinding.handleEvent
(package:flutter/src/gestures/binding.dart:464:20)
                    #22     GestureBinding.dispatchEvent
(package:flutter/src/gestures/binding.dart:440:22)
                    #23     RendererBinding.dispatchEvent
(package:flutter/src/rendering/binding.dart:337:11)
                    #24     GestureBinding._handlePointerEventImmediately
                    (package:flutter/src/gestures/binding.dart:395:7)
                    #25     GestureBinding.handlePointerEvent
(package:flutter/src/gestures/binding.dart:357:5)
                    #26     GestureBinding._flushPointerEventQueue
(package:flutter/src/gestures/binding.dart:314:7)
                    #27     GestureBinding._handlePointerDataPacket
(package:flutter/src/gestures/binding.dart:295:7)
                    #31     _invoke1 (dart:ui/hooks.dart:169:10)
                    #32     PlatformDispatcher._dispatchPointerDataPacket
(dart:ui/platform_dispatcher.dart:341:7)
                    #33     _dispatchPointerDataPacket (dart:ui/hooks.dart:94:31)
                    (elided 5 frames from class _AssertionError and dart:async)

                    The TextEditingControllerWithCursorPosition sending notification was:
                      TextEditingControllerWithCursorPosition#6a129(TextEditingValue(text: ┤├,
selection:
                      TextSelection.collapsed(offset: 39, affinity: TextAffinity.downstream,
isDirectional: false),
                      composing: TextRange(start: -1, end: -1)))

Analyzing app...

   info • 'Future.value' shouldn't be called with a null argument for the non-nullable type argument
          'UploadResult' • lib/services/storage.dart:33:27 • null_argument_to_non_null_type

[✓] Flutter (Channel stable, 3.3.2, on macOS 12.5.1 21G83 darwin-arm, locale en-US)
    • Flutter version 3.3.2 on channel stable at /Users/erica/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e3c29ec00c (5 days ago), 2022-09-14 08:46:55 -0500
    • Engine revision a4ff2c53d8
    • Dart version 2.18.1
    • DevTools version 2.15.0

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] VS Code (version 1.71.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.48.0

[✓] Connected device (3 available)
    • Jen’s Old iPhone 7 (mobile) • 60d15d94cd727467d0e36789c68aa5beac3b62ca • ios            • iOS 15.6.1
      19G82
    • macOS (desktop)             • macos                                    • darwin-arm64   • macOS 12.5.1
      21G83 darwin-arm
    • Chrome (web)                • chrome                                   • web-javascript • Google Chrome
      105.0.5195.125

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

Hello @ericadu. Thank you for filing this issue. Can you please provide the following information?

A complete and minimal, reproducible example.
The output of flutter doctor -v
The output of flutter run-v

We found the hotfix that looks like it will be released in 3.4, so am closing this. Thanks!


Bioconda installation is confusing to call (ThermoRawFileParser.sh)

If installed with bioconda, the package's binary is called ThermoRawFileParser.sh, which means the program can only be started by calling ThermoRawFileParser.sh, which seems like a pretty confusing name to me. I would definitely remove the .sh extension, and maybe add a second binary called thermorawfileparser, so lower case also works.
❯ thermorawfileparser
zsh: command not found: thermorawfileparser
❯ ThermoRawFileParser
zsh: command not found: ThermoRawFileParser
❯ thermorawfileparser.sh
zsh: command not found: thermorawfileparser.sh
❯ ThermoRawFileParser.sh
-i, --input or -d, --input_directory: specify an input file or an input directory
...

@RalfG if you like you can add here a symlink: https://github.com/bioconda/bioconda-recipes/blob/master/recipes/thermorawfileparser/meta.yaml#L15

Symlink for the lowercase sounds good. I guess no one would be against a secondary name. But what about the .sh extension? Any opinions?

thermorawfileparser

I think this is fine.

Just wonder, can this issue be closed? Was it solved?

Since you know about all this conda stuff, do you have any suggestions for #85 ?

@caetera, yes, this has been merged in bioconda/bioconda-recipes#23142, so this can be closed.
I definitely don't know all 😛 But I'll take a look.


FR: Support Omnisearch

Omnisearch is still in Beta, but would appreciate support

A PR has already been created for this by @chrisgrieser , will pull when i have time to review

PR is merged, and released for latest supercharged links version (only on the insider release).


Dead on delivery: unknown locale

Be sure to check the existing issues, both open and closed.
Describe the issue briefly here.
Describe your environment
$ uname -a
Linux linux-il-wvxvw 4.10.0-37-generic #41-Ubuntu SMP Fri Oct 6 20:20:37 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release
No LSB modules are available.

(it's Ubuntu 17)
$ dpkg -s python3-pip | grep Version:
Version: 9.0.1-2

$ python --version
Python 2.7.13

$ pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)

After setting locale to en_US.UTF-8, I can also run this:
$ pipenv --version
pipenv, version 8.3.2

Expected result
pipenv runs using whatever locale it wants.
Actual result
$ pipenv --three
Creating a virtualenv for this project…
Using /usr/bin/python3 to create virtualenv…
⠋Traceback (most recent call last):
  File "/usr/local/bin/pew", line 7, in <module>
    from pew.pew import pew
  File "/usr/local/lib/python3.5/dist-packages/pew/__init__.py", line 11, in <module>
    from . import pew
  File "/usr/local/lib/python3.5/dist-packages/pew/pew.py", line 42, in <module>
    from pew._utils import (check_call, invoke, expandpath, own, env_bin_dir,
  File "/usr/local/lib/python3.5/dist-packages/pew/_utils.py", line 22, in <module>
    encoding = locale.getlocale()[1] or 'ascii'
  File "/usr/lib/python3.5/locale.py", line 577, in getlocale
    return _parse_localename(localename)
  File "/usr/lib/python3.5/locale.py", line 486, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: en_IL

Virtualenv location:
Creating a Pipfile for this project…
Traceback (most recent call last):
  File "/usr/local/bin/pipenv", line 11, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 1043, in invoke
    return Command.invoke(self, ctx)
  File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/pipenv/cli.py", line 1728, in cli
    ensure_project(three=three, python=python, warn=True, site_packages=site_packages)
  File "/usr/local/lib/python3.5/dist-packages/pipenv/cli.py", line 630, in ensure_project
    ensure_pipfile(validate=validate)
  File "/usr/local/lib/python3.5/dist-packages/pipenv/cli.py", line 334, in ensure_pipfile
    project.create_pipfile(python=python)
  File "/usr/local/lib/python3.5/dist-packages/pipenv/project.py", line 388, in create_pipfile
    data[u'requires'] = {'python_version': python_version(python)[:len('2.7')]}
TypeError: 'NoneType' object is not subscriptable

Steps to replicate
Set your locale to something pipenv doesn't recognize, for example:
export LANG=en_IL

then run any command.

Hi @Germione thanks for the report, sorry about the issue! I think this might relate to not having a Unicode specifier on your locale. If you run locale -ais there an en_IL.UTF-8? If so, does that work?

@techalchemy well, this is what this ticket is about... Of course virtually everything else written in Python works with this locale (I've been working with several Python projects on this machine for at least two months with these same settings).
Of course (as I already pointed out), I can change my environment to match `pipenv' requirements, but... what if I don't want to / cannot do it?

@wvxvw that wasn’t what I asked though, I just asked if you can add .UTF-8 to the locale you’re using. Pipenv is a command line application written in python 3 and it (unlike most day to day python software) requires you to configure your shell properly to support Unicode. If you don’t want to do that I’m not really sure what your options are... I’m not asking you to change your locale, I don’t know of any reason why you wouldn’t configure your shell with a locale that is UTF-8?

I'll leave my 2cents here since you also opened this issue against pyenv initially.
python 3.5 is not recognizing your locale, they have a list that they keep in sync with a specific version of glibc: https://github.com/python/cpython/blob/28ab3ce92402d86aa400960d38f0d69f498bb677/Lib/locale.py#L844
It was updated very recently to glibc 2.18, but that is still not the highest version. You could open a bug on python's tracker to ask for another update HOWEVER this will only help with new python versions (e.g. 3.7.0 when it comes out). I'd suggest setting LC_ALL="en_US.utf8" in your environment, or a similar (and compatible) locale.
If you look closely at the stacktrace, you will see that the error comes from pew:
...
  File "/usr/local/lib/python3.5/dist-packages/pew/_utils.py", line 22, in <module>
    encoding = locale.getlocale()[1] or 'ascii'
  File "/usr/lib/python3.5/locale.py", line 577, in getlocale
    return _parse_localename(localename)
  File "/usr/lib/python3.5/locale.py", line 486, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: en_IL

their _utils module assumes incorrectly that locale.getlocale() will return None if your locale is not recognized, instead, it throws ValueError.

@joshfriend thanks for digging into that and clearing it up! @wvxvw unfortunately we can't do much about locales that are not supported by pyenv, python, or glibc.  Digging into this it seems like glibc only added the locale in version 2.24, see here: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=146ffc146fe3bf97cd3bc1a649f1ffa8acfa4a0d
So unfortunately this fairly new locale isn't compatible.  I'm sympathetic to the frustration this must cause but I don't think there's much we can do here.  You can raise an issue with pyenv to properly handle getlocale() in the interim, but other than that I am going to go ahead and close this for now.  Sorry we can't be of more help!

The development branch for python 3.7 was just updated to glibc 2.18 (which is from 2013) a month ago, who knows how long it will take to get up to 2.24!

OK guys... you don't understand what this ticket is about. Should I file a new one, or will you re-read the description?
I'll rephrase, with some more explanation.
Whatever the value of LANG environment variable is you should not fail!.  At most, give a warning about the output of your program may be not readable to the user.  Understand that the value of this variable is advisory only.  So, how does it work?  Suppose your program can only output UTF-16 and ASCII in Latin1 but the user asked you for UTF-8 by setting this variable to C.UTF-8.  What do you do then?  You send a warning message to stderr saying something to the effect of "We apologize for not being able to conform to your locale specification, and will print our output assuming you can reinterpet Latin1, you can also force the output to be printed using UTF-16 encoding by providing this command-line option..."
Under no circumstance you should fail if you cannot find an exact match to user's locale!  The locale is there to inform a program about the user's choice, but it's understood that it's not possible to satisfy it precisely all the time.  In fact, if you ever had to deal with i18n, you'd know that there are rules and logistics about how to suggest from available locales to match the desired locale.

@wvxvw, let's take a step back and review the thread.
You made a couple hyperbolic statements about "virtually everything" in Python working fine with your locale, and the others have taken the time to explain why that statement isn't true.
This is failure in the standard library from a call in a third party library that happens at import time. None of this is our code other than the import line. The fix really needs to be raised in the pew repository.
In the meantime, the best we can do is wrap the import of pew in a try/except and print a prettier message. The exception is pretty clear though and passing a default locale message for any ValueError raised here is likely to mask other issues.

As I had to return here one more time, why don't I spend some more time trying to explain this issue.  I don't use pipenv anymore, but it still may be useful to others.
So, here we go.

LOCALE environment variable means not what you think it means.  It tells you what the user's preference is.  It doesn't mean that if you cannot satisfy that preference exactly, you should give up on doing any work at all.  Furthermore, it tells you absolutely nothing about the actual encoding used by the shell in which the program is invoked, or the encoding used by another program which, say, pipes its output into your program's input.  Whatever it is set to should be at best taken as a hint, not as a mandatory requirement.

Python 3 has no real problems running in locales other than some UTF-8.  The problem is in the way it interprets what it reads from stdin.  Well, it was a bad decision by the Python core dev team to automatically treat that as if it was UTF-8, and so you need to use some strong magic to treat stdin correctly, as a stream of bytes (not impossible, just unnecessarily hard).  Furthermore, even if Python interpreter decided to treat input as UTF-8 encoded, there is a way to deal with bytes that don't translate into UTF-8 (remember those question marks inside rhombus? - that's the right way to do it).

An alleged virtualization tool should minimize its dependencies on external factors, be as forgiving as possible to the external world, while creating sanitized environment for the programs that run in this virtual environment.  You did the opposite: you require from me, to create a virtual environment for you.  What's the point then for me to use your program, if I am already forced to do your work for you?

Hey again @wvxvw, thanks for taking the time to reiterate your thoughts. We don’t have any major disagreements on what you’ve said. There is no good reason a user should have to muck with their LOCALE variable.
As said above though, we have very little we can do in pipenv itself other than rewriting pew, a third party library we do not own, in its entirety. That’s a significant amount of work that we’ve previously lacked the resources to do. Portions of the pew library are currently being rewritten and this may eventually get better. However, this is people’s free time doing a service to the community. We all have normal jobs and can’t give these projects we maintain all of our remaining time.
Hopefully we’ll be in a better state soon, but until that time comes, these are the constraints we are stuck with.


Integrate with real backend

See all @backend comments in code, and all calls to connection (MongoDB). (See also @production comments that aren't really related to the backend.)
Notable changes to make:

For all search endpoints:

Use ElasticSearch to support matching the full document with the q parameter (not just the name or description).
Accept a location descriptor from the user, submit it to the Google Maps API to get its coordinates, and submit the coordinates to the API to do a radius search with PostGIS.

For organization detail, person detail, and search endpoints, the backend must be able to export data as text and CSVs (zipped). For the country-level files, a cron job should create them daily or hourly.
/events/:id

organizations_nearby: Use PostGIS to determine areas and sites within a 2km radius of event.

/organizations/:id/map

events_nearby: Use PostGIS to determine events within a 2km radius of all sites over all time.

/organizations/:id

events_nearby: Use PostGIS to determine events within a 2km radius of all sites over all time.

/people/:id

events: Get events related to an organization during the membership of the person.
events_nearby: Get events near an organization during the membership of the person.

/countries/:id/search/events

sites_nearby: May need to do a radius search for each result in PostGIS (expensive?).

/countries/:id/search/people

events_count: Equal to the events related to an organization during the membership of the person.

The backend may want to store events_count as a calculated field to reduce the number of queries necessary to build the API response. To filter people by events_count, the current implementation requires a events_count calculated field on the Person class.

Changes based on POC v2 #28:

[ ] People can have names in multiple languages https://github.com/opennorth/sfm-proxy/issues/28#issuecomment-152226008
[ ] Organizations can have names in multiple languages https://github.com/opennorth/sfm-proxy/issues/28#issuecomment-152241335
[ ] Event organization_classification means a SFM staffer can enter a Classification or multiple Classifications and that the system can find the nearby (within 20km) Organizations with that Classification and tag their dossiers with Nearby Events


Add accounting for locked tokens

SG-721 has to account for locked tokens, preventing them from being transferred.

Store a map of locked token ids
Override send and transfer to disallow working for locked tokens

I think this will be handled with #22.


fix(core): ensure ngx.ctx.host_port is a number (and not a string)

Summary
It turns out that ngx.ctx.host_port may be a string in some cases, which leads to bugs elsewhere where it may be expected to be a number. This adds tonumber call to ensure that it is a number.
This bug affects for example PDK function kong.request.get_forwarded_port().
Checklist

[x] The Pull Request has tests
[x] A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
[ ] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference
https://konghq.atlassian.net/browse/KAG-4158

We won't backport this further than 3.4


The cf r2 error header can be missing sometimes

Rather than asserting, use an unspecified error

Maybe @Frederik-Baetens @OilyLime from the R2 team should comment on whether this is the right thing to do?

I think so, but we probably want to fix this on the gateway worker side. Would it be possible to log these to sentry with some more context about what the specific status code was + some other info, perhaps the accountid & object name? Would be happy to add that logging to the PR if someone can point me in the right direction on how to log to sentry in workerd.

specific status code was + some other info

We certainly can. Part of the goal here is to reduce sentry logging so maybe we can only log periodically or once per process?


Bad math for sample display

The display project doesn't actually show all the items because their width is /5 meanwhile you're using a %7 for the x position. The .gif in the readme (which looks like it just came from the sample project) doesn't actually display all the options.

Good catch. Will fix it.


libavcoded.so being only 24 bytes ?

Hello,
I'm trying to build FFMPEG for android and use the generated shared libraries to then build a side library.
I did use your script with no parameters: it did download ffmpeg 7.1, and then build everything with no visible error.
At the end, i do see everything in the output directory, but looking at libavcodec.so as well as libavformat.so, they are only 24 bytes in size, which seems odd.
To test and compare, I downloaded prebuilt versions of those .so libraries.
They are, as well as the .dylib that i built for macOS, around 12MB.
When linking these .so to my side lib, I end up with an "unkown file type" ld.lld error.
The prebuilt versions do work fine.
Do you have any idea of what could be the issue here ?
Is there a config parameter that i'm missing ?

Interesting, never faced such an issue.
Have you modified any script anyhow? Or just executed the ./ffmpeg-android-maker.sh right after the clone?
What OS and NDK version did you use?
Have you tried to, well, execute the script again?
I've just tried building it on macos and the results are pretty usual:


Document agg pushdown on ORC file limitation [skip ci]

closes #4950
Signed-off-by: Ahmed Hussein (amahussein<EMAIL_ADDRESS>

document the expected failure caused by Spark-3.3.0 assumption that all ORC files must have file statistics.

document the usage of new spark-3.3.0 feature introduced in SPARK-34960

the limitations with RAPIDS while enabling this feature
how to avoid the SparkException

build

build

build

build

build

build

build

The PR has [skip ci] in the title. Why do you expect it to run ci?

The PR has [skip ci] in the title. Why do you expect it to run ci?
I could not build previous PRs couple of weeks ago.
I wanted to get the authentication fixed. Skipping CI is fine so that I won't consume resources just for testing my authentication.


Docs: Remove incorrect mention of .left- and .right- utilities from migration guide

Description
There are no classes in Bootstrap 4.x beginning with .left- or .right-.
(You can do a CTRL+F on<EMAIL_ADDRESS>to check)
Motivation & Context
Make the migration guide easier to follow. :-)
Type of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Refactoring (non-breaking change)
[ ] Breaking change (fix or feature that would change existing functionality)

Checklist

[x] I have read the contributing guidelines
[ ] My code follows the code style of the project (using npm run lint)
[x] My change introduces changes to the documentation
[x] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] All new and existing tests passed

Live previews

https://deploy-preview-39054--twbs-bootstrap.netlify.app/

Related issues

The CSS you are linking is from v5.3.1.
The message probably should read: - Renamed .-leftand.-rightto.-startand.-end.
But if we list all of the renames, we might not need that sentence.

The CSS you are linking is from v5.3.1.

Oops, I edited my post. Bootstrap 4.x doesn't have any classes beginning with .left- or .right- so I think that sentence can be removed altogether.


Emitting OpenAPI parser warnings

Documenting initial investigatory work for integrating better error messages from OpenAPIParser
Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

[x] I acknowledge that all my contributions will be made under the project's license.

Codecov Report

Merging #625 into master will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #625      +/-   ##
==========================================
+ Coverage   80.67%   80.75%   +0.07%
==========================================
  Files          78       78
  Lines        5041     5051      +10
  Branches      143      153      +10
==========================================
+ Hits         4067     4079      +12
+ Misses        974      972       -2

Impacted Files
Coverage Δ

.../main/scala/com/twilio/guardrail/ReadSwagger.scala
80.00% <100.00%> (+5.00%)
:arrow_up:

...o/guardrail/generators/Java/JacksonGenerator.scala
91.52% <0.00%> (+0.01%)
:arrow_up:

...om/twilio/guardrail/generators/JavaGenerator.scala
74.74% <0.00%> (+2.01%)
:arrow_up:

Continue to review full report at Codecov.

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

As mentioned in https://github.com/twilio/guardrail/issues/741 would be really great if we could fail when some messages happen.
Not sure if there are messages which do not matter.

This is likely better than nothing, as you mention.

It would be nice to be able to pass these out to the plugins so they can use their own logging facility, but that'd require a bit more work and for now it's good to just get this in.


Nested objects defaults not working/Nested Errors are flattened into an array of strings

Thanks for the great module, I'm a bit new so not sure if this is a superforms issue or a zod issue but, I have the following types:
If there are validation issues on the ListingProject (which is a nested zod object), the errors show up as [error1, error2, error3] so in the form it's a bit difficult to show the error on the nested object.
Plus I assumed that superforms assumes the defaults based on the object type, for the ListingProject object, there's a couple of fields that are arrays of strings or objects, when trying to build forms that use these fields you get "cannot read attribute of undefined (reading length).
so what I do is in the nested object definition I put .default({ array1: [], array2: []} is this the best way to go about it?
Thanks for the great work!
import { z } from 'zod';

export const SocialNetworks = z.enum([
	'twitter',
	'discord',
	'telegram',
	'facebook',
	'instagram',
	'others'
]);

const SocialData = z.object({
	network: SocialNetworks,
	handle: z.string().min(1).max(100),
	members: z.number().min(0)
});

export type ListingType = z.infer<typeof Listing>;

export const ProjectTypes = ['NFT', 'DeFi', 'DAO', 'DEX', 'Games', 'Others'];

export const ListingProject = z.object({
	name: z.string().min(1).max(100),
	helloMoonCollectionId: z
		.string()
		.min(1)
		.max(50)
		// .optional()
		.default('040de757c0d2b75dcee999ddd47689c4'),
	collectionName: z.string().min(1).max(100),
	launchDate: z.date(),
	launchPrice: z.number().min(0),
	socials: z.record(SocialData).default({}),
	links: z.record(z.string().url()),
	floorPriceAtListing: z.number().min(0),
	listingsAtListing: z.number().min(0),
	volumeAtListing: z.number().min(0),
	ownersAtListing: z.number().min(0),
	supply: z.number().min(1),
	description: z.string().min(1).max(500),
	image: z.string().url(),
	website: z.string().url(),
	categories: z.array(z.enum(ProjectTypes)).default([]),
	network: z
		.enum(['Solana', 'Ethereum', 'Binance Smart Chain', 'Polygon', 'Solana', 'Others'])
		.default('Solana')
});

export const ProjectAddressTypes = z.nativeEnum({
	royalty: 'Royalty',
	treasury: 'Treasury',
	creatorAddress: 'Creator Address',
	updateAuthority: 'Update Authority',
	mintAuthority: 'Mint Authority',
	freezeAuthority: 'Freeze Authority',
	claimAuthority: 'Claim Authority',
	others: 'Others'
});

export const ProjectAddress = z.object({
	network: z.enum(['Solana', 'Ethereum', 'Binance Smart Chain', 'Polygon', 'Solana', 'Others']),
	address: z.string().min(1).max(100),
	balance: z.number().min(0).optional(),
	type: ProjectAddressTypes,
	note: z.string().min(1).max(100)
});

const ProjectFinancials = z.object({
	// item
	item: z.string().min(1).max(100),
	// item value
	value: z.number().min(0),
	// item value unit
	unit: z.enum(['SOL', 'USD', 'ETH', 'BNB', 'MATIC', 'others']).default('SOL')
});

export const TechStackItem = z.object({
	name: z.string().min(1).max(100),
	description: z.string().min(1).max(1000),
	type: z.enum(['backend', 'frontend', 'database', 'others']),
	url: z.string().url(),
	technology: z.string().min(1).max(100),
	version: z.string().min(1).max(100).default('latest')
});

export enum ListingPurpose {
	takeoverFull = 'takeoverFull',
	takeoverPartial = 'takeoverPartial',
	funding = 'funding',
	others = 'others'
}

export const PricingUnits = ['SOL', 'USD', 'ETH', 'BNB', 'MATIC'];

export const ListingPurposes = z.enum(['takeoverFull', 'takeoverPartial', 'funding', 'others']);

export const Listing = z.object({
	id: z.string().uuid(),
	user: z.string().min(1).max(50),
	created: z.date().default(() => new Date()),
	updated: z.date().nullable(),
	financials: ProjectFinancials,
	techStack: z.array(TechStackItem),
	project: ListingProject.default({ socials: {}, network: 'Solana', categories: [] }),
	headline: z.string().min(1).max(100),
	reason: z.string().min(1).max(1000),
	// purpose options ['takeover-full', 'takeover-partial', 'funding', 'others'] array
	purpose: z.array(ListingPurposes),
	partialTakeoverPercentage: z.number().min(0).max(100).optional(),
	overview: z.string().min(1).max(1000),
	addresses: z.array(ProjectAddress),
	price: z.number(),

	priceUnit: z.enum(PricingUnits).default('SOL'),
	priceIncludes: z.array(z.string().min(1).max(100)),
	type: z.enum(['auction', 'fixedPrice', 'others']).default('fixedPrice')
});

Glad you like the library. :) I haven't looked at errors for nested objects, only the top level is really supported currently, but it may be remedied in version 0.6.0.
The "default value" generator may also have some cases where it can't determine what to do. Where exactly is the schema part that you have problems with?

Glad you like the library. :) I haven't looked at errors for nested objects, only the top level is really supported currently, but it may be remedied in version 0.6.0.
The "default value" generator may also have some cases where it can't determine what to do. Where exactly is the schema part that you have problems with?

Thanks! mainly the ListingProject.socials, which is a nested object, so i'd add to it like ListingProject.socials.discord = {x,y,z} then you get "cannot read property of undefined" so You gotta instantiate it in the default like ListingProject.default( {socials: {} } )

Actually after some meddling, I found that the contents of form.project (A nested object) doesn't get sent along with the form at all, so it will always return a parsing error :(

Have you set options.dataType = 'json' in superForm? Without that, you cannot send any nested structures at all.

Have you set options.dataType = 'json' in superForm? Without that, you cannot send any nested structures at all.

Just before you sent that, I switched the data type to json and now it works :O magic
To have more detailed error messages in nested objects, I wrote it like this:
import type { ServerLoadEvent, Actions } from '@sveltejs/kit/types';
import type { PageServerLoad } from './$types';
import { fail } from '@sveltejs/kit';
import { superValidate, type SuperValidateOptions } from 'sveltekit-superforms/server';
import {
	Listing,
	ListingProject,
	ProjectAddress,
	SocialData,
	TechStackItem
} from 'src/types/listing';
import z from 'zod';
import { error, redirect } from '@sveltejs/kit';

const listingCrudSchema = Listing.extend({
	id: Listing.shape.id.optional()
});

const listingId = () => String(Math.random()).slice(2);

export const load = (async ({ url }) => {
	// READ listing
	// For simplicity, use the id query parameter instead of a route.
	const id = url.searchParams.get('id');
	// const listing = id ? listings.find((l) => l.id === id) : null;
	const listing = listings[0];
	console.log(listings);

	if (id && !listing) throw error(404, 'Listing not found');

	// If we're editing a listing, prefill the form with the listing data.
	const form = await superValidate(listing, listingCrudSchema, { id: 'listing-form' });
	const projectForm = await superValidate(listing?.project, ListingProject, { id: 'project-form' });
	const socialsForm = await superValidate(listing?.project.socials, SocialData, {
		id: 'socials-form'
	});
	const techStackForm = await superValidate(listing?.techStack, TechStackItem, {
		id: 'tech-stack-form'
	});
	const addressesForm = await superValidate(listing?.addresses, ProjectAddress, {
		id: 'addresses-form'
	});

	// Always return { form } in load and form actions.
	return {
		form: form,
		projectForm: projectForm,
		socialsForm: socialsForm,
		techStackForm: techStackForm,
		addressesForm: addressesForm
	};
}) satisfies PageServerLoad;

export const actions = {
	default: async (event) => {
		console.log('event', event);
		const form = await superValidate(event, listingCrudSchema);
		console.log('form', form);
		const projectForm = await superValidate(form.data.project, ListingProject);
		const socialsForm = await superValidate(form.data.project.socials, SocialData);
		const techStackForm = await superValidate(form.data.techStack, TechStackItem);
		const addressesForm = await superValidate(form.data.addresses, ProjectAddress);

		if (!form.valid) {
			console.log('form invalid');
			console.log('errors', form.errors);
			console.log('project errors', projectForm.errors);
			console.log('socials errors', socialsForm.errors);
			console.log('tech stack errors', techStackForm.errors);
			console.log('addresses errors', addressesForm.errors);
			console.log('message', form.message);
			return fail(400, {
				form: form,
				projectForm: projectForm,
				socialsForm: socialsForm,
				techStackForm: techStackForm,
				addressesForm: addressesForm
			});
		}

		if (!form.data.id) {
			// CREATE user
			const listing = { ...form.data, id: listingId() };
			listings.push(listing);

			console.log('listing id', listing.id);
			throw redirect(303, '?id=' + listing.id);
		} else {
			// UPDATE user
			const listing = listings.find((u) => u.id == form.data.id);
			if (!listing) throw error(404, 'Listing not found.');

			listings[listings.indexOf(listing)] = { ...form.data, id: listing.id };

			form.message = 'Listing updated!';
			console.log(form.message);
			return {
				form: form,
				projectForm: projectForm,
				socialsForm: socialsForm,
				techStackForm: techStackForm,
				addressesForm: addressesForm
			};
		}
	}
} satisfies Actions;

// A simple listing "database"
const listings: z.infer<typeof Listing>[] = [];

Getting somewhere, form posts fine now, now i'm trying to get the errors.
then in each field of a nested object, i set it to the errors of that object, but not sure if i'm validating the other parts properly...

I realize that not knowing about dataType can cause trouble like this, so in the next version, 0.6.0, there will be an error thrown if it detects nested objects and dataType is not set.
I understand that the nested errors are problematic for you, but I'll see what can be done for 0.6.0. Hopefully I can keep the current simple way of checking for errors, while also support nested ones.

I realize that not knowing about dataType can cause trouble like this, so in the next version, 0.6.0, there will be an error thrown if it detects nested objects and dataType is not set.
I understand that the nested errors are problematic for you, but I'll see what can be done for 0.6.0. Hopefully I can keep the current simple way of checking for errors, while also support nested ones.

Thank you, can you help me with this:
const socialsForm = await superValidate(form.data.project.socials, SocialData); i want it to validate an array of SocialData instead, but if i put z.array(SocialData) it fails with a _keyof error
TypeError: schema.keyof is not a function
    at _mapSchema (/node_modules/sveltekit-superforms/dist/server/entity.js:221:25)
    at typeInfo (/node_modules/sveltekit-superforms/dist/server/entity.js:82:12)
    at Module.entityData (/node_modules/sveltekit-superforms/dist/server/entity.js:22:23)
    at Module.superValidate (/node_modules/sveltekit-superforms/dist/server/index.js:141:23)
    at load (/home/bewinxed/Downloads/GuardianGeckoBot/templates/SolMarket/src/routes/list/+page.server.ts:37:29)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Module.load_server_data (/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:43:17)
    at async eval (/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:166:13)

It should not be possible to pass an array to superValidate, this will be fixed in 0.6.0.

@ciscoheat probably related: by default form returned by the superForm(data.form, { dataType: 'json' }) is empty. When I try to bind a nested value to an input field (let's say foo.bar), I instantly get an error telling me that I can't read property bar of undefined, which is understandable since there's no foo in the initial form. However, I noticed that if I just drop all the binds for the moment and submit, the form object (now returned from the action) contains all the default fields of the form, including nested fields.
So, my question is: can we receive such default object by the superForm function?

@teenjuna I think I understand, but just to be sure: Is the form returned from superForm a completely empty object, or does it have the default values for the top-level fields of the object?

@ciscoheat it's just {}
Also, I just noticed that both errors and constraints can't reach nested objects. You probably already know this, just noting.

That's strange, since this test works:
test.only('Deeply nested objects', async () => {
  const schema = z.object({
    id: z.number().positive(),
    user: z.object({
      name: z.string().min(2),
      posts: z.object({ subject: z.string().min(1) }).array()
    })
  });

  const data = new FormData();
  data.set('id', '123');

  const form = await superValidate(data, schema);

  expect(form.data).toStrictEqual({
    id: 123,
    user: {}
  });
});

Which means at least you'll get the top-level fields set when calling superValidate (and passing it on to the client). Would this be expected, or do you want all nested fields to have default values as well?

That's strange, since this test works:

But you use form.data from superValidate, while I'm talking about { form } from superForm! I mentioned that after submitting the form gets populated by the default values (inherited from schema.default() it seems). But in order to use bind:value={$form.foo.bar} on the first render, I need the fields to be initialized by superForm

or do you want all nested fields to have default values as well

What would happen I have an object with 3 level deepness? Like foo.bar.baz. If the default value will be { foo: {}}, it will erorr on foo.bar being undefined

If you return { form } on the server, form.data will be used on the client when you call superForm(data.form), so when you say you get a completely empty object, I'm not sure what's the problem, since according to the test at least a top-level populated object should exist on the client. Can you post the code for when you get an empty object?
Yes, defaults for nested objects aren't supported, but should be in the next version. Unfortunately nested objects complicate the API quite a bit, so I have to find a difficult balance between simplicity and flexibility.

part of +page.svelte:
export let data: PageServerData;
const { form, enhance } = superForm(data.form, { dataType: 'json' });

+page.server.ts:
import type { Actions } from '@sveltejs/kit';
import { superValidate } from 'sveltekit-superforms/server';
import type { PageServerLoad } from './$types';
import schema from './schema';

export const load = (async (event) => {
	const form = await superValidate(event, schema);
	return { form };
}) satisfies PageServerLoad;

export const actions = {
	default: async (event) => {
		const form = await superValidate(event, schema);
		return { form };
	}
} satisfies Actions;

I understand that nested objects complicate things a lot. I wouldn't use them, but they make it easier to talk to backend which expects the data in this form. I hope you'll be able to find the right balance ✊

Sorry, data.form.data on the client.

Omg, data: PageServerData in +page.svelte doesn't contain form at all. Besides +page.server.ts I also have +page.ts (there I reuse await parent() to get data that isn't available in +page.server.ts). Looks like the +page.server.ts just gets ignored. I just started with SvelteKit, so forgive me this noob moment. Do you know if it's possible to merge them?

Default values for deeply nested objects was a simple fix, so it will be added in the next 0.5.x update. Thank you for noticing this. :)

Nested errors will work in 0.6.0, and maybe I can figure out a way to do the same thing for constraints as well. Those data structure must change to handle nested objects, while still keeping it simple for top level-only objects, which are the majority, so for that reason I want to keep things simple.

Yeah, supporting this with a good TS experience will result in some type witchcraft. Just looks at the code of felte: https://github.com/pablo-abc/felte/blob/main/packages/common/src/types.ts

@teenjuna and @Bewinxed maybe you can give some feedback on the nested error structure I have in mind for 0.6.0. It's a slight rewrite of the Zod structure:
Given this schema:
const schema = z.object({
  id: z.number().positive(),
  users: z
    .object({
      name: z.string().min(2).regex(/X/),
      posts: z
        .object({ subject: z.string().min(1) })
        .array()
       .min(2)
        .optional()
    })
    .array()
});

An error structure like this can be the result:
{
  id: ['Required'],
  users: {
    '0': {
      name: ['String must contain at least 2 character(s)', 'Invalid'],
      posts: {
        '0': { subject: ['String must contain at least 1 character(s)'] },
        _errors: ['Array must contain at least 2 element(s)']
      }
    }
  }
}

This means that the top-level error handling is still the same, and if you have a nested object, you're sure to be aware of that, and have to use the other syntax. And maybe the same can be done with constraints. What do you think?

I think it's very good!

Implemented now in v0.6, check out the announcement: https://github.com/ciscoheat/sveltekit-superforms/discussions/41


OLS-622: Provider specific parameters take precedence over regular parameters

Description
Provider specific parameters take precedence over regular parameters
Type of change

[ ] Refactor
[x] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue #OLS-622
Closes #

Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

/lgtm

/approve

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.86%. Comparing base (ed679d4) to head (64ef129).
Report is 20 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #977      +/-   ##
==========================================
+ Coverage   95.18%   95.86%   +0.67%
==========================================
  Files          54       54
  Lines        2120     2370     +250
==========================================
+ Hits         2018     2272     +254
+ Misses        102       98       -4

Files
Coverage Δ

ols/src/llms/providers/azure_openai.py
100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes


Instances of string overflow

Bug
Various instances of string overflow.

Re-post » Long channel name causes the "new channel name" field to go off screen. (the screenshot below show it's still within the dialog, but I've seen instances where it's off screen due to super long channel-name)

Comments that are too long and without any spaces in the sentence causes the "Edit | Delete" button to not be visible.

Expected behavior
Need to either reflow or truncate with ellipsis or something.
System Configuration
v0.46.0-rc.11

Thanks for the issue. These are filed under https://github.com/lbryio/lbry-desktop/issues/3930 https://github.com/lbryio/lbry-desktop/issues/3697


Support ITC events

They use memberzone which has ical for individual events but not all events?
http://idahotechcouncil.memberzone.com/events/search?from=8/1/2017&to=9/30/2017

memberzone support pointed me to:
http://idahotechcouncil.memberzone.com/events/calendarsync/allevents.ics
Which appears to be useful.

PR'd and merged but waiting for this to go live before closing.

Idaho Tech Council has since moved away from memberzone, it appears. We're now using the calendar they're publishing using the Modern Tribe WP plugin directly on their site, see 0a628d9c6b9a2e54a8bfea8b8c2fe9a3160b8e1c


webdav OSStatus error -50

Hello everyone.
When reverse proxy webdav server and use ssl.
I can access and create and delete files normally.
But I can't rename files and folders.
It returns the error OStatus error -50.
There is no such problem with http direct connection.
How do I fix it?

A solution was found:
location / {
set $destination $http_destination;
if ($destination ~* ^https(.+)$) {
set $destination http$1;
}
proxy_set_header Destination $destination;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://XXX.XXX.XXX.XXX:5005;
}


Issues with: inference/cross-region-inference/Getting_started_with_Cross-region_Inference.ipynb

After installing:
!pip install --quiet langchain_aws langchain_community

Then, running:
from langchain_aws import ChatBedrockConverse

messages = [
    (
        "system",
        "You are a helpful assistant that shapes sentences into poetic form. Translate the user sentence.",
    ),
    ("human", "I love programming."),
]

llm = ChatBedrockConverse(
    model='us.anthropic.claude-3-sonnet-20240229-v1:0',
    temperature=0,
    max_tokens=None,
    client=bedrock_runtime,
)

print(llm.invoke(messages).content)

I am getting the error:
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[5], line 1
----> 1 from langchain_aws import ChatBedrockConverse
      3 messages = [
      4     (
      5         "system",
   (...)
      8     ("human", "I love programming."),
      9 ]
     11 llm = ChatBedrockConverse(
     12     model='us.anthropic.claude-3-sonnet-20240229-v1:0',
     13     temperature=0,
     14     max_tokens=None,
     15     client=bedrock_runtime,
     16 )

ImportError: cannot import name 'ChatBedrockConverse' from 'langchain_aws' ([/opt/conda/lib/python3.10/site-packages/langchain_aws/__init__.py](https://x4kaivqtuvti2g3.studio.us-east-1.sagemaker.aws/opt/conda/lib/python3.10/site-packages/langchain_aws/__init__.py))

https://github.com/aws-samples/amazon-bedrock-samples/blob/main/inference/cross-region-inference/Getting_started_with_Cross-region_Inference.ipynb
This file was linked from the AWS Blog post https://aws.amazon.com/blogs/machine-learning/getting-started-with-cross-region-inference-in-amazon-bedrock/, but now it gives 404 error.


Result.get_data()['unitary'] differs from Result.get_unitary()

Informations

Qiskit Terra version: Latest Master (assuming post https://github.com/Qiskit/qiskit-terra/pull/1360 )
Python version: 3.7
Operating system: Linux

What is the current behavior?
When running a simulation with the unitary_simulator locally the result from Result.get_data()['unitary'] isn't the expected data format.
I have a script which running a GHZ test circuit through the unitary simulator I use for testing some visualizations and this started failing post #1360 when taking the dot product of an 8 entry array with the unitary from result.get_data()['unitary'] because of a size mismatch so I started investigating.
It looks like the to_dict method at https://github.com/Qiskit/qiskit-terra/blob/master/qiskit/result/result.py#L84 doesn't know how to handle the complex numbers properly and is splitting them up into a list with each component .
Steps to reproduce the problem
My test script is:
import qiskit
n = 3  # number of qubits
q = qiskit.QuantumRegister(n)
c = qiskit.ClassicalRegister(n, 'c')
ghz = qiskit.QuantumCircuit(q, c, name='ghz')
ghz.h(q[0])
ghz.cx(q[0], q[1])
ghz.cx(q[0], q[2])
ghz.s(q[0])
ghz.measure(q[0], c[0])
ghz.measure(q[1], c[1])
ghz.measure(q[2], c[2])
sim = 'unitary_simulator'
backend = qiskit.Aer.get_backend(sim)
result = qiskit.execute(ghz, backend, shots=1000).result()
unitary = result.get_unitary('ghz')

But it looks like anyone accessing the unitary from get_data()['unitary'] will hit this issue.

I would expect result['unitary'] and unitary to have the same data.
Suggested solutions
Investigate the cause of what's transforming the complex numbers into a list and then adjust it to not do that.

After some offline discussion this was an intentional change for improvements being made to Results object so the fix here is to better document the different format which is done in #1375


Testing, please ignore. (rdujli)

This is a bug bounty test.. Please DO NOT APPROVE THIS! (rdujli)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.rdujli yjahn seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Minor edits: text fix, icon change

Fixed text in overview. Changed overview icon.

Made the changes we discussed.


All answers are already set.

Not sure if this is the write way to submit this but all the answers are already filled in on the last 6 tests

@taylerRamsay thanks.
Which challenges are we talking about? Please do fill the Issue Template that was presented when you opened this issue.

Is this shared computer, and someone already solved the challenges? We store the solutions in cookies which is why it may be filled.
Have you visited someone's solution page? In that case, it may be filled.

Try cleaning up your cache and cookies for FreeCodeCamp.com on your browser. This may resolve your issue.

@raisedadead thanks for closing this. I was literally about to do so myself :)
@taylerRamsay if you can't figure it out, you can manually fix your browser by deleting the solution from your browser's local storage: http://forum.freecodecamp.com/t/clear-specific-values-from-your-browser-local-storage/19128


OverflowError: string longer than<PHONE_NUMBER> bytes

Hi, though I see this issue has been fixed, I still experience it. It happens while doing drive add_remote I would appreciate an advice.
 File "/home/dima/drive-cli/drive_cli/actions.py", line 178, in create_remote     utils.push_content(child_cwd, child_id)   File "/home/dima/drive-cli/drive_cli/utils.py", line 492, in push_content     upload_file(item, item_path, fid)   File "/home/dima/drive-cli/drive_cli/utils.py", line 375, in upload_file     fields='id').execute()   File "/home/dima/anaconda3/lib/python3.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper     return wrapped(*args, **kwargs)   File "/home/dima/anaconda3/lib/python3.7/site-packages/googleapiclient/http.py", line 846, in execute     method=str(self.method), body=self.body, headers=self.headers)   File "/home/dima/anaconda3/lib/python3.7/site-packages/googleapiclient/http.py", line 164, in _retry_request     resp, content = http.request(uri, method, *args, **kwargs)   File "/home/dima/anaconda3/lib/python3.7/site-packages/oauth2client/transport.py", line 175, in new_request     redirections, connection_type)   File "/home/dima/anaconda3/lib/python3.7/site-packages/oauth2client/transport.py", line 282, in request     connection_type=connection_type)   File "/home/dima/anaconda3/lib/python3.7/site-packages/httplib2/__init__.py", line 1926, in request     cachekey,   File "/home/dima/anaconda3/lib/python3.7/site-packages/httplib2/__init__.py", line 1595, in _request     conn, request_uri, method, body, headers   File "/home/dima/anaconda3/lib/python3.7/site-packages/httplib2/__init__.py", line 1502, in _conn_request     conn.request(method, request_uri, body, headers)   File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 1244, in request     self._send_request(method, url, body, headers, encode_chunked)   File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 1290, in _send_request     self.endheaders(body, encode_chunked=encode_chunked)   File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 1239, in endheaders     self._send_output(message_body, encode_chunked=encode_chunked)   File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 1065, in _send_output     self.send(chunk)   File "/home/dima/anaconda3/lib/python3.7/http/client.py", line 987, in send     self.sock.sendall(data)   File "/home/dima/anaconda3/lib/python3.7/ssl.py", line 1034, in sendall     v = self.send(byte_view[count:])   File "/home/dima/anaconda3/lib/python3.7/ssl.py", line 1003, in send     return self._sslobj.write(data) OverflowError: string longer than<PHONE_NUMBER> bytes

Hey @DmitriyG228 !
How did you solve it?

Hey @DmitriyG228 !
How did you solve it?

Hi, cabhijith, gave up quickly solving it.

Oh cool @DmitriyG228!
For anyone in the future, the way I used it by splliting my txt files to approx. 1.2 GBs and pushing them individually. Did it using linux's split function.


Fix typo

Opening a PR in case this is a typo.

Coverage remained the same at 99.14% when pulling a54d111d60a3df48a9bbcc463a483ddd0e75fede on parthea:patch-1 into 34b69dca822fa5688294a4c5a633be97ed4c60b7 on eerimoq:master.

Thanks!


Secrets exe script/daniel.bright

Contribution Type
Script
Description
This is a how-to guide on creating a Python-based EXE file in Windows that can fetch secrets from an Azure KeyVault
Value Add / Motivation
This is to help partners and customers who are integrating the Datadog Agent with Windows VM's in an environment that uses Azure KeyVault for secrets storage
Sources

Python guide from Azure: https://docs.microsoft.com/en-us/azure/key-vault/secrets/quick-create-python, this was used as a way to quickly get going with this, I ended up changing quite a bit, but the basic bits are still there (no deletion or creation of keys though)

Testing Strategy

There is no "script" other than what's embedded in the readme, when the directions are followed, you can test the script locally to verify that it works properly.

:wave: Hey @danielcbright IMO this might be better suited for the https://github.com/DataDog/Miscellany repo unless this somehow specifically applies to DPN members. If it is meant more generally for any DD customer then I think we shouldn't fragment scripts and tools and it should go in Miscellany instead. That said, @chrisluekermann is ultimately the authority on what should be in the DPN repo though, so his call.

@ckelner it's a really good point, and it's a useful script for both partners and customers alike. This is my dilemma, while driving engagements with customers via Adoption Services, we're also working on creating partner certifications and repeatable patterns for our offerings, the plan from an AS perspective is to start putting useful content into this repo as we work with customers; e.g. 1) help a customer with fetching secrets from Azure KeyVault by writing a script 2) sanitize the script, and write a proper guide on how to implement it. Maybe the answer is to have the how-to guide live here, but the script (along with a smaller readme) should live in miscellany? I'm open to whatever just want to make sure it goes to the right place @chrisluekermann @estib what do you think?

@ckelner @danielcbright Yes, this is probably going to be a constant discussion, whether things go into the one or the other repo. I'm happy for it to be part of DPN but also don't mind it going into Miscellany.
Daniel, we could consider putting it into Miscellany but reference it from an "Azure Collection" we build in DPN?


Installation is broken

After npm install when I run gulp it says:
import bg from 'gulp-bg';
^^^^^^

SyntaxError: Unexpected token import
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Liftoff.handleArguments (/usr/local/lib/node_modules/gulp/bin/gulp.js:116:3)
    at Liftoff.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/liftoff/index.js:192:16)
    at module.exports (/usr/local/lib/node_modules/gulp/node_modules/liftoff/node_modules/flagged-respawn/index.js:17:3)

It has something to do with babel probably...
I tried it wit node v 4.2.2, 5.0, 5.3

Is your gulp up to date? Because it seems to struggle to read the es2015 syntax.

Update gulp pls.

Related to https://github.com/este/este/issues/652


PHP namespaced trait breaks syntax highlighting

VSCode Version: Code 1.14.0 (b8cd5b9556d8b70ea560d35b903422363f6c5c40, 2017-07-10T18:36:31.751Z)
OS Version: Windows_NT ia32 10.0.15063

Steps to Reproduce:

Make a PHP class that uses a namespaced trait

Example:
<?php
class Foo {
	use Some\Thing;

	// Comment
	public $name = 'foo';

	public function __construct() {
		$this->doStuff();
	}
}

Reproduces without extensions: Yes

I'm having same problem.
Using 'use' inside a class breaks syntax highlighting.

Yep, same here. It's worth noting that it only happens on traits that go deeper than the base namespace; single-level traits work normally. What I mean is: use Thing; works normally, but use Some\Thing; breaks syntax highlighting.
Here's a screenshot for those curious about this:

Erm...  me too ?

The syntax highlighter breaks after the second use \Yard\Lib\JsConvert

Maybe related to https://github.com/Microsoft/vscode-textmate/issues/50

I am seeing syntax highlighting being broken when a multiline use statement is in a class (regardless of namespace concerns). Randomly down the file it corrects itself.

Is is the same as this issue, or is a different issue specific to a multiline use statement? Can you post an example?

I am seeing the issue that this issue is pointing out and additionally what I mentioned.
First screenshot is the issue as described by the OP.

Second screenshot is correct highlighting in regards to not having the use across multiple lines.

Third is multiline breaking the highlighting.

Sorry can create a new issue if needed.

This is a better representation of the OP's issue (without the multiline, to not confuse the issues)

I've found a workaround until this gets fixed:
Add // } on a new line after the use. This fixes the formatting again.
So the original example would be:
<?php
class Foo {
	use Some\Thing;
	// }

	// Comment
	public $name = 'foo';

	public function __construct() {
		$this->doStuff();
	}
}

use \Yard\Lib\JsConvert as JsConvert;
use Some\Thing as Thing;

class Foo {
	    use JsConvert;
            use Thing;
	// }

	// Comment
	public $name = 'foo';

	public function __construct() {
		$this->doStuff();
	}
}```
This above code doesn't break any syntax highlighting.

This was broken in the release so surely they know the fix if they look at this issue? Expected it to be in the first round of bug fixes.

The highlighting of a PHP file is broken for this case:
<?php

namespace Foo;

class Bar
{
    use \Foo\Bar\Baz;

    public function baz()
    {
    }
}

It produces the following highlight:

VSCode Version: 1.14.2
OS Version: macOS 10.12.6

Steps to Reproduce:

Use class with fully qualified namespace like use \Foo\Bar\Baz;

Reproduces without extensions: Yes
The issue has been resolved in https://github.com/atom/language-php/pull/249 so I wonder when the PHP grammar will be synced.
Thanks!

Please try it out in today's Insiders build, it's fixed there.

I'll try tomorrow. Thanks!
Le 3 août 2017 5:14 PM, "Rob Lourens"<EMAIL_ADDRESS>a écrit :

Please try it out in today's Insiders build, it's fixed there.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/30448#issuecomment-319999559,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZlBi5B03lR2IlaohRLH_usBTEaLeMxks5sUePpgaJpZM4OVADr
.

Still broken after latest release (1.15.0)

Works for me, can you post an example that shows the problem?

The problem is fixed in the insider build

Also in the 1.15.0

@roblourens will break my issue off into its own issue. The multi-line use statement is still broken.

Still needs work (#8074)

Same issue is happening with me, only this time it happens when I rename a trait method.

@pbarnum Are you on stable or insiders? Seems to work fine for me on the insiders build (updated sometime yesterday afternoon).

Whoops, sorry! I should be running the stable release. I'm running linux mint, and this is taken from the "About" window.
Version 1.17.2
Commit b813d12980308015bcd2b3a2f6efa5c810c33ba5
Date 2017-10-16T13:57:00.652Z
Shell 1.7.7
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64


⚠ Bofrost.de has degraded performance

In f8808ed, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1073 ms

Resolved: Bofrost.de performance has improved in 04a86d4 after 6 minutes.


Bugfix: visibility RecordWorkflowExecutionClosed API should use query…

… timestamp > RecordWorkflowExecutionStarted API query timestamp for the same workflow ID & run ID combination

Or we could just use default Cassandra WriteTimeStamp instead of explicit setting it. What do you think @samarabbas ?

Or we could just use default Cassandra WriteTimeStamp instead of explicit setting it. What do you think @samarabbas ?

probably due to #155


Update clustermgr.js

Network error not passed to callback (in case of ECONNREFUSED for example)

Hey @openhoat ,
Would you be able to sign the CLA as mentioned above?  I would love to pull this directly from you into Gerrit 👍
Cheers, Brett


Generated docs not handling event listeners correctly

When documenting the event listeners in my controllers I ran into the following issue. I try to document an event listener like this:
	/**
	 * Changes the current [navAttr] route to the controller supplied in el's
	 * data-controller attribute.
	 *
	 * @param {HTMLElement} el the element this event fired on
	 */
	'li click': function(el) {
		$.route.attr(this.options.navAttr, el.data('controller'));
	}

Running the app/scripts/docs.js command on this runs fine. Howerver, when I look at the generated results, the documentation to this method is "unclickable" (i.e. nothing happens when I click on the item, except for an error in the JS console. See http://ge.tt/8dBpTZ9?c ). The problem seems to be related to the whitespace used in the definition, causing the link in the generated documentation to break.

hmm, a bug, this used to work.  Thanks!

By the way, I recently noticed a separate but similar issue when using a dot character (.) in a controller function: it gets over-escaped in the generated code. For example,
    '.classname click': function() { ... }

Translates to ".classname click" in the sidebar of the generated docs.html.

So, this should be fixed with the most recent change to $.route:
https://github.com/jupiterjs/jquerymx/commit/04b152a908fd03df5dead975b1f729b5dea8ac8c
You'd probably have to re-build documentjs but it works in dev mode.


AWS Lambda SDK: Ensure to not error continuously on internal error.

When internal error happened, due to flaw in logic the next invocation was also destined to crash. This patch ensures that state for the next invocation should be properly cleared

Nice find 👍 is this related to the issue Eslam posted about or is this something different?

@Danwakeem it's about one reported by @rudeluv

Ahh okay got it, thanks for the clarification @medikoo.


About sitespeed.io integration

I have a suggestion - I'm aware that the collector for appdynamics is being developed... but that is a paid product... and ofcourse there would be companies using the product... but there are lot of companies using open source products as well e.g. sitespeed.io...
Sitespeed.io already has a plugin for Jenkins and it gives great length of details related to web page performance... we should see the hygieia publisher plugin can push this data directly to the performance widget...

See: https://github.com/capitalone/Hygieia/issues/438
Keeping both together.


API Usage clarification

Hi,
I want to get some clarification that my project is allowed per the API agreement. I have created a tumblr client for webOS, but wanted to get clarification on this section from the API Agreement:

Don't re-implement the Dashboard, and don't recreate complete Tumblr functions or clients on a platform where Tumblr already has an official client (like web, iPhone, Android, or Windows Phone 8).

Would doing something like this, where the user logs in and shows their dashboard, be classified as 're-implementing the Dashboard'?

Thanks for asking about usage, but this isn't a good place to handle that request. Will you please contact Tumblr Support?
https://www.tumblr.com/support


[Get Familiar] Add schema validation for template configuration

Right now, OMRChecker does not handle invalid template.json files. It simply tries to process the file and throws an errors.
We want to extend that an do a json schema validation for the file.
Steps:

Study current structure of the Template file
Create a json schema for the same.
Use python-jsonschema or similar library to throw validation errors when the input file doesn't match with the schema.

Resources:

https://python-jsonschema.readthedocs.io/en/stable/
https://github.com/python-jsonschema/jsonschema
https://github.com/Udayraj123/OMRChecker/wiki/About-Templates
https://github.com/Udayraj123/OMRChecker/wiki/User-Guide

Note: this issue is marked with the hacktoberfest label. Follow #hacktoberfest-discussions on Discord for further details .

Hi @Udayraj123 , should the schema be created exactly for the template file mentioned here: Template File ?

That's correct. The same schema can also be found for all template.json files in samples folder

But the samples have additional things mentioned as well right? For eg: they all have detailed concatenations wheras this template does not give any specifications for it.

You can create incorrect template.json files by removing some of the mandatory keys, or changing their camelCase to TitleCase for keys(in which case validation error should mention that).
Setting 3rd dimension worked as code can run fine because it is written gracefully. Still we need the validation error to be thrown as a caution for future changes.

Have generated a draft PR, do let me know if this is what you were expecting.

@SpyzzVVarun discussed on discord. Let me know once all changes done..

Merged https://github.com/Udayraj123/OMRChecker/pull/60

extended in https://github.com/Udayraj123/OMRChecker/issues/65


Contribution

Describe the bug:

Expected behaviour:

Steps to reproduce the issue:

Technical details:

Host Machine OS (Windows/Linux/Mac):
Browser (Chrome/Firefox/Safari):

Possible Fix:

Additional context:

Describe the bug:
Expected behaviour:
Steps to reproduce the issue:
Technical details:
* Host Machine OS (Windows/Linux/Mac):

* Browser (Chrome/Firefox/Safari):

Possible Fix:
Additional context:

any bobd


Evaluate Outlook voting through ComObject Outlook.Application

This issue is to see if ComObject Outlook.Application is something that can be used instead of the
Strawpoll API for the voting.
Suggestion and code courtesy of David Granlund via PowerShell User Group Sweden:
$ol = New-Object -ComObject Outlook.Application
$mail = $ol.CreateItem(0)
$mail.To =<EMAIL_ADDRESS>$mail.Subject = 'An important decision needs to be taken'
$mail.Body = 'Where would you like to go for lunch' #also, links to restaurants and metadata to help make qualified decisions
$mail.VotingOptions = "Sushi;Burgers;Grass"
$mail.Send()
$ol.quit()

The voting options do indeed work, planning to implement this as an option in Send-LunchEmail.ps1.


file path issue #90 through #99 recurring again

This commit: https://github.com/MicrosoftLearning/PL-300-Microsoft-Power-BI-Data-Analyst.ko-kr/commit/958402abf6c4d8f6a91c2ee58e91d6ada22b6d0b has made the issues #90 through #99 happening again because it changed the location of the Linked_images_Files folder.
Could you please revert back to the https://github.com/MicrosoftLearning/PL-300-Microsoft-Power-BI-Data-Analyst.ko-kr/commit/cd198afd2b0e002ca0cd3f26a8834182515d8cca version?

I have fixed the issue.
thank you!


What do the numbers represent in the marked parts of the visualized tire-hard picture？

I have read this article many times, but I don't quite understand the meaning of the numbers marked in the picture. Can you help explain it? Please

This is also confusing me. Seems like an incorrect translation from binary to decimal to me.

Whoops! That's exactly what it is. The bits on the left are the mask for each node showing which bytes are present. The number on the right were supposed to be the decimal representations. I just didn't double check. I'll fix them if I can, but they aren't meaningful. I was just trying to make it clear that the ones and zeros in the left are the bits of an integer.


Remove Array field

Array field type is like accordion but more complicated. It was already removed from the cookbook examples by Juliano. I put it back so we can make a good decision.

removed in 38b80e6


Odroid N2+

Sorry, that i ask  here, but i use a Odroid N2+ for the first time an i don't know how to manage my problem. I want to install Home Assistant supervised an I tried the tutorial for that. But I only find a version for installing os-agent for arm64 which is a tar.gz file not a deb file. How can I install the tar.gz file? Can you please help me?

See https://github.com/home-assistant/os-agent/issues/110.
For Debian on arm64, just use os-agent_1.4.1_linux_aarch64.deb.
Also: This is an issue tracker, not a community forum.


Docs: Broken links in react suspense guide

Describe the bug
Links to dedicated hooks in react suspense guide do not have correct urls.
Your minimal, reproducible example
https://tanstack.com/query/latest/docs/framework/react/guides/suspense
Steps to reproduce

Go to https://tanstack.com/query/latest/docs/framework/react/guides/suspense
Click on any of the three links in the top to the dedicated hooks.
Observe 404.

Expected behavior
Links should work.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
OS: MacOS
Browser: Brave
Tanstack Query adapter
None
TanStack Query version
v5.29.1
TypeScript version
No response
Additional context
No response

known issue, we're working on it. All links that go between react and core are broken since we introduced that distinction.

this has been fixed.


Server Components useRoute not updating

Environment

Operating System: Darwin
Node Version:     v20.10.0
Nuxt Version:     3.12.2
CLI Version:      3.12.0
Nitro Version:    2.9.6
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:   typescript,

Reproduction
https://codesandbox.io/p/devbox/server-components-style-forked-cp78pt
Describe the bug
Within a server component the useRoute composable doesn't seem to be updated.
Is this expected?
Additional context
No response
Logs
No response

Yes. Server components don't react to anything except changes to their props, by design.

Thanks for responding @danielroe and sorry for the ping

Server components/islands can support all the features of normal components, including shared state, access to the current route, and more. Because they behave just like normal components, you can nest them within server components or just sprinkle them through the rest of your code.

(https://roe.dev/blog/nuxt-server-components)
Can you clear up for me what you meant by ‘access to current route’?


Proposal: setting flag to disable js native interfaces

Native interfaces like such:

always get in the way when I want to use snippets. There should be an option to turn them off or filter them.

I believe this is a duplicate of https://github.com/Microsoft/TypeScript/issues/15750 We are planning to look into this next month

@mjbvz do you know if this is still being looked into, or did it not make the list?

This was shipped with ts 2.4, which was included in VS Code 1.14. Please file a new issue if you are still seeing unexpected suggestions

@mattbierner Thanks. Just for clarification before I create an issue, did it ship as a flag that can be set, or is it turned on by default?

No setting, it is always enabled in TS 2.4


feat(step-generation, protocol-designer): 96-channel partial tip support

closes RAUT-785, RAUT-845, RAUT-846
Overview
This adds partial tip support (column pick up) in Protocol designer and step-generation and adds collision warnings.
Test Plan
Create a flex protocol and add a 96-channel pipette. Mess around with pipetting with full vs column nozzles. There are several states where a warning will appear:

pipetting without a tip rack adapter and one is needed
pipetting with a tip rack adapter and one is NOT needed
pipetting where the tip has a labware that is too tall to the left
pipetting where aspirate/dispense or mix source labware has a labware that is too tall to the left
picking up tip where the tiprack has a labware that is too tall to the left
make sure the collision errors don't appear when interacting with the trash bin or waste chute

Finally, export the protocol and examine the configureNozzleLayout commands. See that one is emitted whenever the pipette configuration changes between full vs column and that one is emitted at the end of switching between full vs volume to make sure it is always set back to full.
Changelog

extend pipetteTemporalProperties to include nozzle and prevNozzle
create new Configure96ChannelField for dropdown for nozzles
create new atomic command for configureNozzleLayout and test
wire up nozzles arg to pipetting compound commands and replaceTip
refactor logic for getting next tiprack to branch depending on 96-channel full tips since an adapter is needed to be under full pick up of 96 tips
create several error creators for missingAdapter, removeAdapter and collision with west labware
create collision util getIsTallLabwareWestOf96Channel
add test coverage

Review requests
see test plan
Risk assessment
low

TODOs:

[ ] fix merge conflicts
[ ] fix configureNozzleLayout params (need to add pipetteId)
[ ] add configureNozzleLayout ts types


chore: switch to commitlint

Relates to ngageoint/opensphere#705

:tada: This PR is included in version 2.2.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add composer vendor and composer.lock to gitignore

Prevent accidental stage / commit of composer.lock or vendor files.

Thanks!


Rebuild for ppc64le libhwy 1.1 and lcms2

Closes #16
Closes #17
Hi! This is the friendly automated conda-forge-webservice.
I've started rerendering the recipe as instructed in #17.
If I find any needed changes to the recipe, I'll push them to this PR shortly. Thank you for waiting!
Here's a checklist to do before merging.

[ ] Bump the build number if needed.

@conda-forge-admin please rerender

Happy to help maintain long term if you want

Thanks for the high quality recipe!!!

Why is life never easy with all these configurations.
I haven’t seen ppc64le errors like this in a while

Interesting that jpegxl manages to ICE[^1] GCC 12... First remedy is to try GCC 13:
c_compiler_version:            # [linux]
  - 13                         # [linux]
cxx_compiler_version:          # [linux]
  - 13                         # [linux]

[^1]: internal compiler error

@conda-forge-admin please rerender

@conda-forge-admin please rerender

@conda-forge-admin please rerender

I’m having trouble linking to this package on windows in imagecodecs-feedstock
it complains about not finding a symbol even though it is in the .lib file.
Has anybody successfully linked to this package on windows?

@conda-forge-admin please rerender

@conda-forge-admin please rerender

Can I merge this? @hmaarrfk

Yes


Subject should not have unique name

Users with the same name may come from different institutions.
Closes #26.