add a new context manager to wrap scipy.special.seterr

TIL that scipy.special.errprint cannot be used as a context manager
In [16]: with errprint(True):
   ....:     print hyp2f1(0.5, 2/3., 1.5, 0.09j+0.75j)
   ....:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-16-c476ba18ca62> in <module>()
----> 1 with errprint(True):
      2     print hyp2f1(0.5, 2/3., 1.5, 0.09j+0.75j)
      3

AttributeError: __exit__

Granted, it's not documented as such, so I guess here's an enhancement request to have a context manager similar to numpy.errstate, https://docs.scipy.org/doc/numpy/reference/generated/numpy.errstate.html

I thought about doing this for a while, but I'm actually -1 on the idea. After doing special.errprint(True) the warnings can be controlled with the usual warnings framework.

In fact, IMO the errprint function is only still useful because if you do special.errprint(False) it skips all the code that requires grabbing the GIL.

Ugh, I see. So, to get an error, one needs to >>> errstate(True), followed by
In [23]: with warnings.catch_warnings():
    warnings.simplefilter('error', SpecialFunctionWarning)
    print hyp2f1(0.5, 2/3., 1.5, 0.09j+0.75j)
   ....:
---------------------------------------------------------------------------
SpecialFunctionWarning                    Traceback (most recent call last)
<ipython-input-23-ed30ca36cf79> in <module>()
      1 with warnings.catch_warnings():
      2     warnings.simplefilter('error', SpecialFunctionWarning)
----> 3     print hyp2f1(0.5, 2/3., 1.5, 0.09j+0.75j)
      4

SpecialFunctionWarning: scipy.special/chyp2f1: loss of precision

(to write this I had to look up an exact warning class to filter out, then of course I forgot to import it). And I guess I typed this sort of code a few times already, so I get that easier than an average user.
On a constructive note, I think there are two things here: one is documentation and another one is a request for some syntax sugar.
For the docs: it's worth it to spell out the incantation either in the scipy.special tutorial, or even at the top of https://docs.scipy.org/doc/scipy/reference/special.html, under Error handling.

In fact, IMO the errprint function is only still useful because if you do special.errprint(False) it skips all the code that requires grabbing the GIL.

And this, too!
Thanks for pointing this out, this should definitely be mentioned in the docs. (I did not know it.)
A separate bit of syntax sugar is adding a separate context manager similar to numpy's seterr and errstate. From numpy docs:

Using an instance of errstate as a context manager allows statements in that context to execute with a known error handling behavior. Upon entering the context the error handling is set with seterr and seterrcall, and upon exiting it is reset to what it was before.

Likewise, a new context manager could defer to scipy.special.errstate upon entering, and restore the state on exit.

I would be OK with a context manager, because every call to errprint(True) should be paired with errprint(False) because it's global state.
A separate issue is that errprint is iirc not thread-local.

I can see the advantages of having a seterr/errstate pair; it would be nice to be able to e.g. easily ignore underflow while raising on loss of precision. If we add such functions I would push for doing away with errprint entirely so that there's one right way to do things.
I guess the right way to do this would be to map each sf_error category to a global variable which controls how we want that category to be handled (ignore, warn, raise, ...), and if it's ignore we avoid grabbing the GIL.

@ev-br I wonder if you could comment on whether
https://github.com/person142/scipy/tree/special-seterr
fits the ticket? With that branch built here's how your session could have gone:
>>> import scipy.special as sc
>>> sc.geterr()
{'loss': 'ignore', 'arg': 'ignore', 'singular': 'ignore', 'no_result': 'ignore', 'other': 'ignore', 'overflow': 'ignore', 'slow': 'ignore', 'underflow': 'ignore', 'domain': 'ignore'}
>>> with sc.errstate(loss='raise'):
...     sc.hyp2f1(0.5, 2.0/3, 1.5, 0.09j+0.75j)
...
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
scipy.special.sf_error.SpecialFunctionError: scipy.special/chyp2f1: loss of precision
>>> sc.geterr()
{'loss': 'ignore', 'arg': 'ignore', 'singular': 'ignore', 'no_result': 'ignore', 'other': 'ignore', 'overflow': 'ignore', 'slow': 'ignore', 'underflow': 'ignore', 'domain': 'ignore'}
>>> with sc.errstate(loss='warn'):
...     sc.hyp2f1(0.5, 2.0/3, 1.5, 0.09j+0.75j)
...
__main__:2: SpecialFunctionError: scipy.special/chyp2f1: loss of precision
(0.93934867949609357+0.15593972567482395j)
>>> sc.geterr()
{'loss': 'ignore', 'arg': 'ignore', 'singular': 'ignore', 'no_result': 'ignore', 'other': 'ignore', 'overflow': 'ignore', 'slow': 'ignore', 'underflow': 'ignore', 'domain': 'ignore'}

It's still in a rudimentary state though (safety checks, tests, and documentation still to be added).

Hooking this stuff up for the ufuncs is fine, but raising on the Cython bindings is a problem. In particular they're all nogil, so when an exception is raised in sf_error there's no way to propagate it. The usual mechanism would be using Cython's except to call PyErr_Occurred if there's a bad return value, but (1) IIRC it's broken for complex return values and (2) there isn't a consistent return value that indicates an error anyway (nan would be a good one, but something like SF_ERROR_LOSS could be an error but not return a nan). The only choice would be except * (modulo being broken for complex), but that defeats the purpose of using the bindings.
Possible solution: only allow warning? (Only allow warning for just Cython bindings?) I don't like this...
Is there something better?

That, or make sf_error error handling thread-local (which probably should be done in any case), and maintain an "sf_get_errno" interface for getting the latest error code.

Actually started this over the weekend. :-) Means we have to start looking for openmp at compile time though (not fun). :-(

Alternatively, I can also see an argument for making each cython wrapper have a additional pointer return of int *errno.

In theory I like this better, but doing it would require touching every function in special...

Do you actually need openmp? gcc has intrinsics for threadlocals, and in
other cases we can fall back to Python, cf. gh-6509

By fall back do you mean that if we can't get thread local storage then we use PyGILState_Ensure() to protect the global variable?
(If I'm understanding that correctly) I think openmp might be the most portable way to do it--should be supported on icc, MSVC, gcc, and clang >= 3.8. Target use case for cython_special is code using cython.parallel, which already uses openmp under the hood.

Yes, if compiler doesn't provide TLS support, fall back to Python. Most
compilers probably do provide it (it's included also in C11).
.
I'm not sure there's guarantee that openmp threads correspond to OS threads.

I'm not sure there's guarantee that openmp threads correspond to OS threads.

Yikes. Then if we make the error state thread local using compiler directives something like this might still be screwy:
from cython cimport parallel
cimport scipy.special.cython_special as sc

cdef int n
for n in parallel.prange(10, nogil=True):
    sc.gamma(<double>n)
    if sc.get_errno() == sc.SINGULAR:
        # do something

ISTM that if we want to use cython_special with error handling + cython.parallel we're essentially forced to use openmp and tell users to not use other kinds of threading (unless they agree to put no stock in error messages).
To be clear, openmp definitely isn't needed (and shouldn't be used) for the ufuncs. Just squabbling about the Cython side because I want things to play nicely with cython.parallel. (Though there's a non-negligible chance that I'm misunderstanding something somewhere, so corrections to my perspective are welcome.)
(Aside: the difficulties here are making me think of

I can see an argument for ignoring these errors in cython wrappers altogether.

more and more fondly.)


Update user csv download to reflect new api response

See:
https://github.com/alphagov/digitalmarketplace-api/pull/748

As-is this will leave us incompatible for a short interim period. Are we happy with this? If yes and we can release at a time where users won't be affected, that's probably alright.
If not, we'll need to do this as two PRs.


[arci-speak-cmd] v0.1.0 -> v0.0.3

It should have been 0.0.1, but v0.1.0 is released.
When we release v0.1.0, we have to skip v0.1.0
for arci-speak-cmd.

refs #191


optional network create

added network creation case
master to nodes communication via private IP

@vktr-brlv , thank you for your input
If I understand correct; you want to create the cluster in an existing network.
I can support this idea, but I don't like the boolean variable create_network.
What do you think of the following logic:

if no network_id is provided, a network is created.
if no subnet_id is provided, a subnet is created.


GH-2730 fix link to REST API reference

GitHub issue resolved: #2730
Briefly describe the changes proposed in this PR:

fixed rest api link

PR Author Checklist (see the contributor guidelines for more details):

[ ] my pull request is self-contained
[ ] I've added tests for the changes I made
[ ] I've applied code formatting (you can use mvn process-resources to format from the command line)
[ ] I've squashed my commits down to one or a few meaningful commits
[ ] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change
[ ] every commit has been signed off

Closed this because I figured I'd give the OP a little more time to fix their own pull request if they want to (see #2731).


Getting "Error retrieving thread information: (ipc/send) invalid destination port" in the logs on Apple Silicon M1

When compiling the counter app I receive the following error every ~200 ms:
[ +206 ms] [VERBOSE-2:profiler_metrics_ios.mm(184)] Error retrieving thread information: (ipc/send) invalid destination port
flutter doctor and flutter run -v doesn't give any visible errors.

Hi @heyiamZer0
Can you please provide your flutter doctor -v your flutter run --verbose and a complete reproducible minimal code sample
Related https://github.com/flutter/flutter/issues/71192 https://github.com/flutter/flutter/issues/60118
Thank you

Hi @TahaTesser, the code is the one provided by the flutter example.
[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-arm, locale
    en-GB)
    • Flutter version 1.22.4 at /Users/danielivanov/Development/flutter
    • Framework revision 1aafb3a8b9 (2 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/danielivanov/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin installed
    • Dart plugin version 201.9245
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

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

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

flutter run -v: https://pastebin.com/raw/kXGmxqhH

Hi @heyiamZer0
Are you firebase or anything third party packages,
Error retrieving threadinformation: (ipc/send) invalid destination port is not specific to Apple silicon
Can you please reproduce this in a fresh project flutter create testapp
Thank you

@TahaTesser it is the testapp already

I saw this exact bug on a youtube video attempting the same thing https://youtu.be/Jo16qB6vbdc?t=240
(at 4min)

@Tofil is definitely something regarding with M1 since on my Intel is running without any issues

I can confirm this issue, replicable on my M1 Macbook Air device.
The workaround is to run in Master channel.

@Tofil  @heyiamZer0  @joniaiuser
Thanks for confirming, I don't have access to M1 yet to reproduce this issue.
This doesn't reproduce intel mac when testing on a new fresh project
run.log

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-x64, locale
    en-GB)
    • Flutter version 1.22.4 at /Users/tahatesser/Code/flutter_stable
    • Framework revision 1aafb3a8b9 (3 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (1 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E • ios • iOS 14.2

! Doctor found issues in 1 category.

@Tofil is definitely something regarding with M1 since on my Intel is running without any issues

thank you!

M1 Macbook pro. I have the same problem

Got the new MacBook Air with M1 chip today (Dec 9, 2020).
Same Issue.
I get about 5 messages every second.
Since everything seems to be working fine...
Is there a way to disable this?
flutter: ===== STARTING APP =====
flutter: 2020-12-09 19:19:33.388298: MainApp INFO: ===== STARTING APP =====
[VERBOSE-2:profiler_metrics_ios.mm(184)] Error retrieving thread information: (ipc/send) invalid destination port
[VERBOSE-2:profiler_metrics_ios.mm(184)] Error retrieving thread information: (ipc/send) invalid destination port
[VERBOSE-2:profiler_metrics_ios.mm(184)] Error retrieving thread information: (ipc/send) invalid destination port
[VERBOSE-2:profiler_metrics_ios.mm(184)] Error retrieving thread information: (ipc/send) invalid destination port
flutter: 2020-12-09 19:19:34.147637: MainApp INFO: AppNavigationObserver didPush from null to CupertinoPageRoute<dynamic>(RouteSettings("/", null), animation: AnimationController#98bbb(⏭ 1.000; paused; for CupertinoPageRoute<dynamic>(/)))

Brand new fresh setup....
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-arm, locale en-US)
    • Flutter version 1.22.4 at /Users/agautam/tools/flutter
    • Framework revision 1aafb3a8b9 (4 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/agautam/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (1 available)
    • iPhone 12 Pro Max (mobile) • 791FFAFB-CD39-4FA5-9A1B-DE42A8406147 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)

Interesting... switching to beta channel seem to have fixed it! yay 👍
flutter channel beta
flutter upgrade
flutter clean
flutter run

Then launched Android studio, ran app from there... don't see the error anymore.
(Interestingly enough... it also fixed the issue where doctor wasn't able to locate flutter plugins for Android studio!
% flutter doctor -v
[✓] Flutter (Channel beta, 1.24.0-10.2.pre, on macOS 11.0.1 20B29 darwin-arm, locale en-US)
    • Flutter version 1.24.0-10.2.pre at /Users/agautam/tools/flutter
    • Framework revision 022b333a08 (3 weeks ago), 2020-11-18 11:35:09 -0800
    • Engine revision 07c1eed46b
    • Dart version 2.12.0 (build 2.12.0-29.10.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/agautam/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (1 available)
    • iPhone 12 Pro Max (mobile) • 791FFAFB-CD39-4FA5-9A1B-DE42A8406147 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)

• No issues found!

I'm seeing this as well on stable 1.22.5 but not on the latest master 1.26.0-2.0.pre.84.

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.0.1 20B29 darwin-arm, locale en-GB)
    • Flutter version 1.22.5 at /Users/nevercode/development/flutter_stable
    • Framework revision<PHONE_NUMBER> (8 days ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/nevercode/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Users/nevercode/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
    • Android Studio at /Users/nevercode/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] Connected device (2 available)
    • Nevercode’s iPhone (mobile) • b668e524315069f3db3661ac11ff1f66afafebdb • ios • iOS 14.2
    • iPhone 12 Pro Max (mobile)  • 09D9E93F-A98D-4735-B6E6-6E57F9CD01D8     • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)

! Doctor found issues in 1 category.

Having struggled for several days with exactly the same problem, today I succeeded by following Ajay Gautam's method.
Thank you so much!!

same issue on macbook M1
• Flutter version 1.22.5 at /Users/liyuyang/development/flutter
• Framework revision<PHONE_NUMBER> (3 weeks ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn

Is there a plan to bring a fix to stable soon?

Is there a plan to bring a fix to stable soon?

I have the same issue with the M1. The error is on the Stable channel and goes away when switched to Beta.
Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision<PHONE_NUMBER> (4 weeks ago) • 2020-12-10 11:54:40 -0800
Engine • revision ae90085a84
Tools • Dart 2.10.4

I have the same issue with the M1. The error is on the Stable channel and goes away when switched to Beta.
Flutter 1.22.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision<PHONE_NUMBER> (4 weeks ago) • 2020-12-10 11:54:40 -0800
Engine • revision ae90085a84
Tools • Dart 2.10.4

I have the same issue with the M1 chip

I have the same issue with the M1 chip

same issue on m1 air on my side too!

same issue on m1 air on my side too!

Please thumbs up the original issue comment instead of commenting that you have the same issue

Please thumbs up the original issue comment instead of commenting that you have the same issue

Interesting... switching to beta channel seem to have fixed it! yay 👍
flutter channel beta
flutter upgrade
flutter clean
flutter run

Then launched Android studio, ran app from there... don't see the error anymore.
(Interestingly enough... it also fixed the issue where doctor wasn't able to locate flutter plugins for Android studio!
% flutter doctor -v
[✓] Flutter (Channel beta, 1.24.0-10.2.pre, on macOS 11.0.1 20B29 darwin-arm, locale en-US)
    • Flutter version 1.24.0-10.2.pre at /Users/agautam/tools/flutter
    • Framework revision 022b333a08 (3 weeks ago), 2020-11-18 11:35:09 -0800
    • Engine revision 07c1eed46b
    • Dart version 2.12.0 (build 2.12.0-29.10.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/agautam/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (1 available)
    • iPhone 12 Pro Max (mobile) • 791FFAFB-CD39-4FA5-9A1B-DE42A8406147 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)

• No issues found!

yes，is OK

Interesting... switching to beta channel seem to have fixed it! yay 👍
flutter channel beta
flutter upgrade
flutter clean
flutter run

Then launched Android studio, ran app from there... don't see the error anymore.
(Interestingly enough... it also fixed the issue where doctor wasn't able to locate flutter plugins for Android studio!
% flutter doctor -v
[✓] Flutter (Channel beta, 1.24.0-10.2.pre, on macOS 11.0.1 20B29 darwin-arm, locale en-US)
    • Flutter version 1.24.0-10.2.pre at /Users/agautam/tools/flutter
    • Framework revision 022b333a08 (3 weeks ago), 2020-11-18 11:35:09 -0800
    • Engine revision 07c1eed46b
    • Dart version 2.12.0 (build 2.12.0-29.10.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/agautam/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (1 available)
    • iPhone 12 Pro Max (mobile) • 791FFAFB-CD39-4FA5-9A1B-DE42A8406147 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)

• No issues found!

yes，is OK

I have the same issue with the M1, on Flutter SDK 1.22.5

I have the same issue with the M1, on Flutter SDK 1.22.5

Channel change is done?
Every channel is error plugin
Because force version nullable then other plugin is not match so im cant be change channel
Plz any other solution

Channel change is done?
Every channel is error plugin
Because force version nullable then other plugin is not match so im cant be change channel
Plz any other solution

I am also having problems with master and beta channels because it enforces null safety. Is there any other workarounds?

I am also having problems with master and beta channels because it enforces null safety. Is there any other workarounds?

Please thumbs up the original issue comment instead of commenting that you have the same issue unless you have anything unmentioned to contribute.
To be clear here, the issue is only on the stable channel and you can fix it by switching to a newer channel with the flutter channel command.

This is not working if you are already working on a big project because master and beta channels forces us to use null safety.

Please thumbs up the original issue comment instead of commenting that you have the same issue unless you have anything unmentioned to contribute.
To be clear here, the issue is only on the stable channel and you can fix it by switching to a newer channel with the flutter channel command.

This is not working if you are already working on a big project because master and beta channels forces us to use null safety.

For those who don't want to switch to the beta channel, you can just pipe flutter run to grep with the -v flag to drop the spammy lines.
flutter run | grep -v "Error retrieving thread information" works quite reliably for me, I can still use the hotkeys to hot reload/restart, etc. There are a few blank lines thrown into the terminal while the XCode build is running but once the app is running, the terminal remains tame.

For those who don't want to switch to the beta channel, you can just pipe flutter run to grep with the -v flag to drop the spammy lines.
flutter run | grep -v "Error retrieving thread information" works quite reliably for me, I can still use the hotkeys to hot reload/restart, etc. There are a few blank lines thrown into the terminal while the XCode build is running but once the app is running, the terminal remains tame.

Please thumbs up the original issue comment instead of commenting that you have the same issue unless you have anything unmentioned to contribute.
To be clear here, the issue is only on the stable channel and you can fix it by switching to a newer channel with the flutter channel command.

This isn't actually correct - you can't 'fix it' by switching to the stable channel because a lot of dependant plugins don't work on beta or dev channels. It's not as simple as just switching channels and carrying on.

Please thumbs up the original issue comment instead of commenting that you have the same issue unless you have anything unmentioned to contribute.
To be clear here, the issue is only on the stable channel and you can fix it by switching to a newer channel with the flutter channel command.

This isn't actually correct - you can't 'fix it' by switching to the stable channel because a lot of dependant plugins don't work on beta or dev channels. It's not as simple as just switching channels and carrying on.

Had same issue with M1 Mac air.
flutter channel master
flutter upgrade
flutter clean
flutter run
This worked for me.

Had same issue with M1 Mac air.
flutter channel master
flutter upgrade
flutter clean
flutter run
This worked for me.

Had same issue with M1 Mac air.
flutter channel master
flutter upgrade
flutter clean
flutter run
This worked for me.

I see these comments quite a bit. Do you realise that, by doing this, you are changing to the master branch of Flutter, and are essentially alpha-testing an unreleased version of Flutter? And that you couldn't reliably release an app built against the master branch?

Had same issue with M1 Mac air.
flutter channel master
flutter upgrade
flutter clean
flutter run
This worked for me.

I see these comments quite a bit. Do you realise that, by doing this, you are changing to the master branch of Flutter, and are essentially alpha-testing an unreleased version of Flutter? And that you couldn't reliably release an app built against the master branch?

Had same issue with M1 Mac air.
flutter channel master
flutter upgrade
flutter clean
flutter run
This worked for me.

I see these comments quite a bit. Do you realise that, by doing this, you are changing to the master branch of Flutter, and are essentially alpha-testing an unreleased version of Flutter? And that you couldn't reliably release an app built against the master branch?

Very true. Don't use the same channel for development. It was just a quick fix. As a student this doesn't bother me. Hope this gets fixed as soon as possible.

Had same issue with M1 Mac air.
flutter channel master
flutter upgrade
flutter clean
flutter run
This worked for me.

I see these comments quite a bit. Do you realise that, by doing this, you are changing to the master branch of Flutter, and are essentially alpha-testing an unreleased version of Flutter? And that you couldn't reliably release an app built against the master branch?

Very true. Don't use the same channel for development. It was just a quick fix. As a student this doesn't bother me. Hope this gets fixed as soon as possible.

this issue opened since November and the beta channel works fine, when is the beta channel released?
I don't know if deploying app using current beta channel will cause some unwanted things in the future, but no one want take a risk in the production

this issue opened since November and the beta channel works fine, when is the beta channel released?
I don't know if deploying app using current beta channel will cause some unwanted things in the future, but no one want take a risk in the production

Just to notice...
I have this issue with my IOS emulator (Iphone 12 pro) but nothing on my real device (12 pro too).

Just to notice...
I have this issue with my IOS emulator (Iphone 12 pro) but nothing on my real device (12 pro too).

I think this was a change around Apple ID.
There is no point in changing to Master, since Apple Store does not allow releasing beta or master builds.

I think this was a change around Apple ID.
There is no point in changing to Master, since Apple Store does not allow releasing beta or master builds.

I have submitted builds using beta channel to App Store that got approved before..

For those who don't want to switch to the beta channel, you can just pipe flutter run to grep with the -v flag to drop the spammy lines.
flutter run | grep -v "Error retrieving thread information" works quite reliably for me, I can still use the hotkeys to hot reload/restart, etc. There are a few blank lines thrown into the terminal while the XCode build is running but once the app is running, the terminal remains tame.

Is it possible to configure Android Studio so that the "Play" button runs flutter together with "grep"?

@geisterfurz007 Is it possible to configure Android Studio so that the "Play" button runs flutter together with "grep"?

Have a look at the Grep Console plugin for IntelliJ. I don't use Android Studio for iOS Development but it has prooven itself many times on other occasions.

Interesting... switching to beta channel seem to have fixed it! yay 👍
flutter channel beta
flutter upgrade
flutter clean
flutter run

Then launched Android studio, ran app from there... don't see the error anymore.
(Interestingly enough... it also fixed the issue where doctor wasn't able to locate flutter plugins for Android studio!
% flutter doctor -v
[✓] Flutter (Channel beta, 1.24.0-10.2.pre, on macOS 11.0.1 20B29 darwin-arm, locale en-US)
    • Flutter version 1.24.0-10.2.pre at /Users/agautam/tools/flutter
    • Framework revision 022b333a08 (3 weeks ago), 2020-11-18 11:35:09 -0800
    • Engine revision 07c1eed46b
    • Dart version 2.12.0 (build 2.12.0-29.10.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/agautam/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (1 available)
    • iPhone 12 Pro Max (mobile) • 791FFAFB-CD39-4FA5-9A1B-DE42A8406147 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)

• No issues found!

thanks a lot!

any plan to fix this in the stable channel?

When will this fix be undated to Stable?

I've had this issue since last year, and not on an M1 chip but an older iMac.
I hoped it pertained to the iPhone simulator alone & have been ignoring it for the time--
But am tossing in that the same occurs sans M1.

I'd like to mention that when the beta channel rolls into a new stable this should get fixed. I don't know when this will be though.
https://github.com/flutter/flutter/wiki/Flutter-build-release-channels#beta

I m also facing this issue in my MacBook M1.

Had same issue with M1 Mac air.
flutter channel master
flutter upgrade
flutter clean
flutter run
This worked for me.

what a scare, i had the same problem in m1 too, that solved the problem.

I'm experiencing same issue on Mac Mini M1, fixed by switching to master.

Would something break if I go to master and then back to stable before publishing to the AppStore?

Would something break if I go to master and then back to stable before publishing to the AppStore?

This is a problem only on iOS Simulator, it does not happen on the device itself

ipc/send) invalid destination port" in the logs on Apple M1 - using channel statle : 1.22.6 still error. Anybody help me!

I'm experiencing the same on my Apple M1 when using the flutter stable branch.
So far you can either switch to flutter master branch or wait until the fix gets merged into the stable branch.
As I cannot see anything harming the execution of my app, I decided to exercise patience and live with the log spam for now.
Hope this gets merged soon! 👍

I'm experiencing the same on my Apple M1 when using the flutter stable branch.
So far you can either switch to flutter master branch or wait until the fix gets merged into the stable branch.
As I cannot see anything harming the execution of my app, I decided to exercise patience and live with the log spam for now.
Hope this gets merged soon! 👍

Thanks so much

Not seeing this anymore on stable 2.0.0

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.0, on macOS 11.2 20D64 darwin-arm, locale
    en-GB)
    • Flutter version 2.0.0 at /Users/nevercode/development/flutter_stable
    • Framework revision 60bd88df91 (23 hours ago), 2021-03-03 09:13:17 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/nevercode/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Users/nevercode/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.1)
    • Android Studio at /Users/nevercode/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android
      Studio.app/Contents
    • Flutter plugin can be installed from:
      � https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      � https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] Connected device (4 available)
    • Nevercode’s iPhone (mobile) • b668e524315069f3db3661ac11ff1f66afafebdb •
      ios            • iOS 14.4
    • iPhone 12 Pro Max (mobile)  • 42B7F3DF-3053-419B-BA8F-FF1218F7A174     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
    • macOS (desktop)             • macos                                    •
      darwin-arm64   • macOS 11.2 20D64 darwin-arm
    • Chrome (web)                • chrome                                   •
      web-javascript • Google Chrome 88.0.4324.192

• No issues found!

im using m1 and getting this annoying error too. i dont fix it instead i just right click on the error dialogue and it gave some options, then select [Fold lines like this] and then click ok. then your console will look like this


Enable Neos 5

I tried - successfully - to install Neos from scratch yesterday. The installation of a skeleton-site as recommended by the neos-team did not work though because the necessary helper-package codeq/unicodenormalizer cannot be installed for Neos 5.0

Yeah, the release is pretty new. Will update the package today!

Done: https://github.com/code-q-web-factory/neos-unicodenormalizer/releases/tag/v2.2.0


work without closed source library

It would be simpler to not have to call into a closed-source library with unknown behavior - and for Linux, to have an out-of-tree kernel module. At the same time, we'd need documentation for the chip to be certain. This implementation seems fine for SPI flash at least:
https://github.com/981213/ch347-nor-prog

i'm trying

I am working on fully documenting the chip such that fully open code can be written. So far I have the SPI interface in mode 1 mostly documented (still need to push some details though). The code in the ch347-nor-prog repo does seems to contain a couple more details than I have found, I'll have to look into it more.
https://github.com/nic3-14159/CH347-Research


Init confi from Supabase

Fix: #37

IMPORTANT: Please do not create a Pull Request without creating an issue first.

Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.

🗓 Changes

Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] This change requires a documentation update

Please provide enough information so that others can review your pull request:

🧬 Details

Explain the details for making this change. What existing problem does the pull request solve?

Adds Supabase
Uses Supabase for configuration

TODO:

Migrate remaining stuff (guilds, plugins..) to Supabase from Mongodb

Checkboxes:

[X] I ran npm run lint and there were no errors
[X] I ran npm run format and there were no errors

Redone in https://github.com/en3sis/hans/pull/44


[5801] Overhaul README

Context
https://trello.com/c/k5RIs2wr/5801-various-references-to-paas-cloudfoundry-in-the-dev-docs
Changes proposed in this pull request

Overhauls the README layout and puts information in specific docs
Removes references to PaaS/CF

Guidance to review
This is a similar structure used in the https://github.com/DFE-Digital/get-into-teaching-app, and https://github.com/DFE-Digital/publish-teacher-training providing some sort of consistency across the Bat repos.

 Various references to PaaS/CloudFoundry in the dev docs


SegDataGenerator is very slow

Hello aurora95
I am trying to use SegDataGenerator. However, it is too slow.
I am running the code on TitanX and 64 GB memory.
the output of my network is    (None, 50176, 2). Therefore, I have modified SegDataGenerator by making the shape of y equals to (None, 50176, 2 ). In addition, I am using categorical cross entropy.
batch_size =64
My question is: why loading the training images is very slow?
For example, one epoch needs 151051s.
Thank you

If you set everything correctly it shouldn't be very slow since your input size is not considerably larger than the original one. Can you provide more information, for instance, your codes? And how much time exactly does the generator take to process one batch?

@aurora95
Thank you for your reply
the following is what I have added
target_size = (224,224)
dataset = 'test_dataset'
train_file_path = 'data/Seg/train.txt'
val_file_path   = 'data/Seg/val.txt'
data_dir        = 'data/Seg/train_imgs/'
label_dir       = 'data/Seg/label/'
data_suffix='.jpg'
label_suffix='.png'
classes = 2
class_weight = None
data_suffix='.jpg'
label_suffix='.png'
input_shape=(224,224,3)
batchnorm_momentum=0.9
ignore_label = None
label_cval = 0
loss_shape = (target_size[0] * target_size[1] , classes,)
model_name = 'unet'
batch_size =64
batchnorm_momentum = 0.95
epochs = 250
lr_base = 0.01 * (float(batch_size) / 16)
lr_power = 0.9

model=get_unet()

model.compile(optimizer='sgd', loss='categorical_crossentropy',metrics=['accuracy'])

train_datagen = SegDataGenerator(zoom_range=0.,
                                 zoom_maintain_shape=True,
                                 crop_mode='none',
                                 crop_size=None,
                                 rotation_range=0.,
                                 shear_range=0,
                                 horizontal_flip=False,
                                 channel_shift_range=0.,
                                 rescale=1/255.,
                                 fill_mode='constant',
                                 label_cval=0)
val_datagen = SegDataGenerator()

train_generator=  train_datagen.flow_from_directory(
        file_path=train_file_path,
        data_dir=data_dir, data_suffix=data_suffix,
        label_dir=label_dir, label_suffix=label_suffix,
        classes=classes,
        target_size=target_size, color_mode='rgb',
        batch_size=batch_size, shuffle=True,
        loss_shape=loss_shape,
        ignore_label=ignore_label,
        # save_to_dir='Images/'
    )
history = model.fit_generator(
    generator=train_generator,
    steps_per_epoch=get_file_len(train_file_path),
    epochs=epochs,
    callbacks=callbacks,
    workers=4,
    class_weight=class_weight
   )

`
I have added the following to the SegDataGenerator
def binarylab(labels, size=224, nb_class=2):
    y = np.zeros((size,size,nb_class))
    for i in range(size):
        for j in range(size):
            if labels[i,j]==0 :
                y[i,j,0]=1
            else:
                y[i,j,1]=1
    return y

if self.ignore_label:
     y[np.where(y == self.ignore_label)] = self.classes

y = binarylab (y, 224, 2)
if self.loss_shape is not None:
y = np.reshape(y, self.loss_shape)

batch_x[i] = x
batch_y[i] = y

this is example of the output
2691/38621 [=>............................] - ETA: 134460s - loss: 0.6930 - acc: 0.5071

Try using a profiling tool on both your disk and the python code to see the source of the problem and post the results. Then we can determine how to fix it.
Also are you on an HDD or SSD?

Also you will definitely need to vectorize that binary lab for loop consult google/stack overflow for details

@ahundt  thank you.
It is working fine after vectorizing binarylab for loop.
It was taking 40% of batch generation time.
Thanks again.

@hilal-t Happy to hear it, what did the improved version look like?
I'll close this since it seems your problem is solved.


Add db-writer-connection-concurrency flag back

This is a deprecated flag but we still need it for compatibility reasons.

@VineethReddy02 That docs contains valid flags, not deprecated ones. Note that this PR brings back deprecated flag that was probably missed (to make us backwards compatible)


License and copyright information of test data

What is the license and copyright information of the matrix files used for testing?

To my knowledge the matrix market collection data itself is public domain.  The website has some citation recommendations:

I would like to package pygraphblas for Debian, which requires packaging its dependencies.
This includes mmparse.
Debian is pretty strict about license and copyright, so if the test matrices are public domain, this should be written somewhere.

@DrTimothyAldenDavis do you know more about the explicit licensing about shipping matrix market files?

I've added a clarification and a license for the data itself:  CC-BY 4.0.  See https://github.com/ScottKolo/suitesparse-matrix-collection-website#license .  That will also appear at http://sparse.tamu.edu/about once the site is updated.

Thanks Tim!


Chromadb only returns the first document from persistent db

System Info

software
Version

python
3.10.11

LangChain
0.0.209

Chroma
0.3.26

Windows
11

Ubuntu
22.06

I have tried on both windows and ubuntu
Who can help?
@eyurtsev
Information

[ ] The official example notebooks/scripts
[X] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[X] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
i am having trouble adding multiple documents into a vectordb. I am using chromadb here.
The following loads, split and embed 2 text files and store them in a persistant vector database. Then it queries the database.
from langchain.document_loaders import TextLoader
from langchain.vectorstores import Chroma
from langchain.text_splitter import CharacterTextSplitter
from langchain.embeddings.openai import OpenAIEmbeddings
import os
from getpass import getpass

OPENAI_API_KEY = getpass()

os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY

embeddings = OpenAIEmbeddings()
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
persist_directory = "db"
db = Chroma(persist_directory=persist_directory, embedding_function=embeddings)

# -------------------------- Adding spacex_wiki.txt -------------------------- #
loader = TextLoader("this_has_to_work/spacex_wiki.txt", encoding="utf8")
documents = loader.load()
docs = text_splitter.split_documents(documents)
db.add_documents(docs)

# ------------------------- Adding imploson_wiki.txt ------------------------- #
loader = TextLoader("this_has_to_work/implosion_wiki.txt", encoding="utf8")
documents = loader.load()
docs = text_splitter.split_documents(documents)
db.add_documents(docs)

db.persist()

# --------------------------- querying the vectordb -------------------------- #
db = None

db = Chroma(persist_directory=persist_directory, embedding_function=embeddings)

retriever = db.as_retriever(search_type="mmr")

query = "What is implosion?"
print(query)
print(retriever.get_relevant_documents(query)[0])
print("\n\n")

query = "Who is elon?"
print(query)
print(retriever.get_relevant_documents(query)[0])
print("\n\n")

The above code runs without a problem and is able to retreive from both text file. The problem starts with the following code.
The following code only loads the vectordb from the persistant location.
from langchain.document_loaders import TextLoader
from langchain.vectorstores import Chroma
from langchain.text_splitter import CharacterTextSplitter
from langchain.embeddings.openai import OpenAIEmbeddings
import os
from getpass import getpass

OPENAI_API_KEY = getpass()

os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY

embeddings = OpenAIEmbeddings()
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
persist_directory = "db"
db = Chroma(persist_directory=persist_directory, embedding_function=embeddings)

# --------------------------- querying the vectordb -------------------------- #
retriever = db.as_retriever(search_type="mmr")

query = "What is implosion?"
print(query)
print(retriever.get_relevant_documents(query)[0])
print("\n\n")

query = "Who is elon?"
print(query)
print(retriever.get_relevant_documents(query)[0])
print("\n\n")

The above code will only return from the first document stored in the vectordb (spacex_wiki.txt), no matter what the prompt is.
The following are the text files used.
implosion_wiki.txt
spacex_wiki.txt
Expected behavior
It is expected that information from both documents can be retreived when the vectordb is loaded from persistant location.
However, only the first embedded document can be retreived.

Similar problem here. The last 30 hrs I calculated embeddings and stored everything in Chroma, was able to query/ask questions. Today I wanted to pick up working on that point, and it seems like stuff is just gone. Only 200 documents are left, no source when I query, too.

based on the your question:
I can suggest you some steps to check for the root cause of the issue:
1a.Check for collections in the vectordb and check whether the both files you added are in the same collection(when you create chromadb without mentioning any collection, it will automatically goes to the default collection named "langchain")
1b.Check the page_content of each documented stored in the vectordb
2.from the above step you get the idea in which collection the both files are stored , now call the same collection inside the retrival method like db = Chroma(persist_directory=persist_directory, embedding_function=embeddings,collection_name=collection_name_where_both_files_reside)
3.If above steps doesnot help then you have to start looking at the embeddings function you used
always mention the embedding model you want to use inside the  openai embeddings() like embeddings = OpenAIEmbeddings(model="text-embeddings-ada-002") to make sure the embeddings of the all documents of the vectordb have same embedding model , it even helps you to maintain the consistent embeddings system across your RAG method .
Hope your issue resolves.


Add status in HTTPRoute when Ratelimit is disabled

Signed-off-by: Arko Dasgupta<EMAIL_ADDRESS>

apiVersion: v1
items:
- apiVersion: gateway.networking.k8s.io/v1beta1
  kind: HTTPRoute
  metadata:
    annotations:
      kubectl.kubernetes.io/last-applied-configuration: |
        {"apiVersion":"gateway.networking.k8s.io/v1beta1","kind":"HTTPRoute","metadata":{"annotations":{},"name":"backend","namespace":"default"},"spec":{"hostnames":["www.example.com"],"parentRefs":[{"name":"eg"}],"rules":[{"backendRefs":[{"group":"","kind":"Service","name":"backend","port":3000,"weight":1}],"filters":[{"extensionRef":{"group":"gateway.envoyproxy.io","kind":"RateLimitFilter","name":"ratelimit-specific-user"},"type":"ExtensionRef"}],"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]}}
    creationTimestamp: "2023-02-04T02:23:14Z"
    generation: 2
    name: backend
    namespace: default
    resourceVersion: "1049"
    uid: eaa7aa0f-518b-47fc-b71c-a5f80dbb30ca
  spec:
    hostnames:
    - www.example.com
    parentRefs:
    - group: gateway.networking.k8s.io
      kind: Gateway
      name: eg
    rules:
    - backendRefs:
      - group: ""
        kind: Service
        name: backend
        port: 3000
        weight: 1
      filters:
      - extensionRef:
          group: gateway.envoyproxy.io
          kind: RateLimitFilter
          name: ratelimit-specific-user
        type: ExtensionRef
      matches:
      - path:
          type: PathPrefix
          value: /
  status:
    parents:
    - conditions:
      - lastTransitionTime: "2023-02-04T02:31:22Z"
        message: 'Enable Ratelimit in the EnvoyGateway config to configure RateLimitFilter:
          default/ratelimit-specific-user'
        observedGeneration: 2
        reason: UnsupportedValue
        status: "False"
        type: Accepted
      - lastTransitionTime: "2023-02-04T02:31:22Z"
        message: 'Enable Ratelimit in the EnvoyGateway config to configure RateLimitFilter:
          default/ratelimit-specific-user'
        observedGeneration: 2
        reason: BackendNotFound
        status: "False"
        type: ResolvedRefs
      controllerName: gateway.envoyproxy.io/gatewayclass-controller
      parentRef:
        group: gateway.networking.k8s.io
        kind: Gateway
        name: eg
kind: List
metadata:
  resourceVersion: ""

Codecov Report

Merging #982 (cc1a685) into main (82e7672) will decrease coverage by 0.09%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main     #982      +/-   ##
==========================================
- Coverage   62.24%   62.16%   -0.09%
==========================================
  Files          55       55
  Lines        8778     8785       +7
==========================================
- Hits         5464     5461       -3
- Misses       2946     2955       +9
- Partials      368      369       +1

Impacted Files
Coverage Δ

internal/gatewayapi/filters.go
79.57% <0.00%> (-0.79%)
:arrow_down:

internal/gatewayapi/runner/runner.go
28.26% <0.00%> (-0.32%)
:arrow_down:

internal/gatewayapi/translator.go
97.10% <ø> (ø)

internal/provider/kubernetes/helpers.go
83.10% <0.00%> (-2.03%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


No error pops up when renaming one ADLS Gen2 folder with an existing folder name

Storage Explorer Version: 1.11.1
Build: 20191121.1
Branch: hotfix/1.11.1
Platform/OS: Windows 10/ Linux Ubuntu 18.04/macOS High Sierra
Architecture: ia32/x64
Regression From: Not a regression
Steps to reproduce:

Launch Storage Explorer.
Expand one ADLS Gen2 account -> Blob Containers.
Create a new blob container -> Upload two folders with blobs.
Try to rename one folder using another folder name.
Check the result.

Expect Experience:
An error pops up.

Actual Experience:

No error pops up.
The renamed folder displays under the exists folder.

More Info:
This issue doesn't reproduce for one folder under a regular blob container.

Related to #2103. Fix at same time. Rename should not let you move. Move should only be available via move.

Verified this issue on build main/20200904.2. Fixed.
When trying to rename one folder using an existing folder name, show a failed activity log.


Can't install last version

pip install python-whois==0.8.2 leads to:
ERROR: Could not find a version that satisfies the requirement python-whois==0.8.2 (from versions: 0.2, 0.3, 0.3.1, 0.4, 0.5, 0.5.1, 0.5.2, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.7, 0.6.8, 0.6.9, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0)
ERROR: No matching distribution found for python-whois==0.8.2

I suggest changing your dependency to python-whois==0.9.0


gcc: Backport fix of GCC Issue 80431 from version 12

Description of changes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80431
This bug annoys me because I hit it when working on Nix. It causes miscompilations in such a way that I am hard-pressed to think how a program could inadvertainly rely on the bug (such that it would be broken by the fix).
The bug is longstanding, and the (quite small) applies without modification to many older GCCs. I have confirmed by running the test in that commit that does indeed fix the bug with the backports too.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=de31f5445b12fd9ab9969dc536d821fe6f0edad0 is the underlying patch (can get from the PR diff too) it is quite small!


Added Sign-in/Sign-up button in navbar

Can I get an example of any site or something

like this

use button bg color ( --color-text: #81AFDD )


changing the process name works only partially in Linux

Version: Since https://github.com/libuv/libuv/commit/7b28d36056d947e74e2c3347ee9bb04a1f5388c6#diff-061ff4a1f558b9316c85e332cfe90b66b3b5b612455249bfc1bb19a24e7f28e1
Platform: Linux

There are two "process titles" in Linux

one is the so-called command line that you see when you do ps uaxw, it comes from /proc/<pid>/cmdline and this one is still modified by process.title
the other one is the thread name that you see when you do ps -p <pid>, that one comes from /proc/<pid>/comm and it was broken by libuv 1.35.0 that was added in Node 12.17

#3019
https://github.com/nodejs/node/issues/35503

It's also wrong in /proc/pid/status, but I guess that may be a pointer to /proc/pid/comm.
$ cat /proc/28032/cmdline
myname
$ cat /proc/28032/comm
node
$ cat /proc/28032/status | head -1
Name: node

Some more info on this in https://stackoverflow.com/a/14176059/808699


Sync to<EMAIL_ADDRESS>

Closes #6
Closes #7
Closes #8
This pull request seeks to sync @testing-library/preact-hooks to be brought in line with the latest @testing-library/react-hooks (v3.4.1).
Specifically, this includes:
v3.4.1

The wait async util has been deprecated and replaced with waitFor (https://github.com/testing-library/react-hooks-testing-library/pull/408)
waitFor and waitForValueToChange async utils can now test their conditions periodically, even if the hook has not rerendered, using the new interval option (https://github.com/testing-library/react-hooks-testing-library/pull/408)

v3.3.0

wrapper component can now access the initialProps and new props from rerender calls when creating providers (https://github.com/testing-library/react-hooks-testing-library/issues/322, https://github.com/testing-library/react-hooks-testing-library/pull/381)

v3.2.0

Introduced /pure inmport as alternative to skip auto cleanup

Thanks @aduth for these updates!


WIP: Tail loop emission

Work in progress. Will address #1688

I think the problem with this code (the reason it's failing the simple test anyway) is that it's not strict enough about when we should be expecting the data to be packed in a sum type or not.

Entry to the whole thing should expect #I, #X
Entry to the loop should also expect #I, #X
The loop body should return Sum(#I + #O), #X
The postprocessing step should then unpack the data and call either the "continue" branch or "break" branch. Hence it expects the Sum(#I + #O), #X emitted by the loop body
Hence, the "continue" branch should expect #I, #X
And the "break" branch should expect #O, #X
The exit from the whole tail loop should be #O, #X
I.e. the signature of the tail loop is #I, #X -> #O, #X

(Using terminology from the spec)


Fix #39 - respect dataClone and deepClone options

Adds test coverage to prove the bug and a fix for issue #39 - child data is always cloned.

@yapapaya this PR proves - and fixes - the reported issue.
I also found that the preserveChildCount option has been relying on the broken previous behaviour where data values were being copied regardless of the deepClone/dataClone options. I have fixed that code so that it fetches the initial count from the original element, rather than assuming that it will have been cloned to the new one.
That highlights that although this is a bugfix, it will break BC for anyone else who has been relying on the old behaviour of the plugin.
It might be worth changing the defaults for dataClone and deepClone to true? That will mean the plugin keeps working as it has been for anyone using default options, but will work properly for anyone who has set their own values.
It could still break BC for end-users who have been specifying dataClone=false but elsewhere relying on cloned data, but I can't think of a way round that and anyway at the moment their code is not working how they think it is.


Add class to handler elements

Add a class to the resize handler container div to allow easy styling with pseudo-selectors.

After further investigation this is not necessary.


Validate test / code-block configuration

It seems like some combinations of code-block tags are non-sensical. I've thought of:

ignore with compile_fail, no_run, or should_panic
compile_fail with  no_run or should_panic
no_run with should_panic

It'd be nice to detect these surprising combinations. Offhand, I see two options:

Fail when parsing, but there's no way to handle an error per se (at a glance?)
During handle_test, returning TestResult::Invalid (or something like that)

My intuition is to that the  handle_test is cleaner. However, I think we'd need to generalize a bit from Output or rework the control flow in print_results or something like that.

Cool that you're looking at this! 🙂

It'd be nice to detect these surprising combinations.

Would it make sense to align with what mdbook test does (or doesn't do) here?
I think mdbook-keeper doesn't aim for compatibility and so it can decide to be stricter. Compatibility would mean something like "if mdbook test passes, then mdbook-keeper will also pass".

Based on a skim of librustdoc (used by mdbook test) and some testing, it seems that there's no validation of code block options. Instead, there's some implicit precedence. I also did a quick search for RFCs and T-rustdoc issues. The closest thing I found is rust-lang/rust#71347 (Emit a warning when a codeblock is using "compile-fail" instead of "compile_fail"). For lack of a clearer place to start, I'll try making a topic in the rustdoc Zulip stream (later).

Thanks for looking into this -- let me know if there's anything I can do to help.


Please do this

Feature Description
I want ios 17.5.1 support ipad air 3 on palera1n please
Start going into detail..
No response

This is not gonna happen as the iPad Air 3 has an A12+ SoC, palera1n will only support A11 and below.


Feature/react refetch

Codecov Report

Merging #362 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master    #362      +/-   ##
=========================================
- Coverage    3.34%   3.32%   -0.03%
=========================================
  Files          49      50       +1
  Lines        1045    1052       +7
  Branches      203     206       +3
=========================================
  Hits           35      35
- Misses       1010    1017       +7

Impacted Files
Coverage Δ

...er-problems-frontend/src/pages/TablePage/index.tsx
0% <ø> (ø)
:arrow_up:

...problems-frontend/src/components/NavigationBar.tsx
0% <ø> (ø)
:arrow_up:

...blems-frontend/src/pages/InternalDashboardPage.tsx
0% <0%> (ø)

...ontend/src/pages/TablePage/AtCoderRegularTable.tsx
0% <0%> (ø)
:arrow_up:

atcoder-problems-frontend/src/App.tsx
0% <0%> (ø)
:arrow_up:

...lems-frontend/src/pages/TablePage/ContestTable.tsx
0% <0%> (ø)
:arrow_up:

...der-problems-frontend/src/utils/CachedApiClient.ts
0% <0%> (ø)
: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 7470dbf...b3f9e5b. Read the comment docs.


Add ProteomIQon MzMLToMzLite

This tool allows to convert mzML files to mzLite files.
This is my first galaxy tool contribution, so if I made any mistakes, please let me know!

@bgruening Thanks a lot for the in depth help! I took all of your suggestions into consideration and applied the corresponding changes.
For now, I have added one test. If you need more, please let me know, and I will see what I can do.

Cool, thanks. The more tests the better :)
This seems to be a complicated tool, can you utilize in a few tests the different conditionals? Most errors happening in conditionals :)
Also it it possible to reduce the size of your test data significantly?

@bgruening We reduced the size of the testfile to 9 mb and I added 3 more testcases to test the other parameters. I actually found a small bug aswell, so theres that hehe 👍🏻
Anything else to be done?

@ZimmerA any chance we get the test data below 1MB? To not kill this repo with too much data?

@bgruening We reduced the test file to a 1.2 KB dummy file, added the option to output the generated parameter file and now run the tests on that file

Nice!! Tanks a lot. Step 3 now: https://galaxyproject.eu/posts/2020/08/22/three-steps-to-galaxify-your-tool/

Yay! Thanks a lot for the help!


Update s3, sdk-core, sqs to 2.16.52

Updates

software.amazon.awssdk:s3
software.amazon.awssdk:sdk-core
software.amazon.awssdk:sqs

from 2.16.26 to 2.16.52.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, semver-patch

Superseded by #166.


[OFFICIAL] Generated Issue: InvalidArgumentException

Please fill out the details below.
Summary:
Steps to reproduce:
Additional Details
Jikan Parser Version: v2.19.4@b1d5326cce6a483ded253d29116b3a816fe50e88
PHP: 7.4.23
Redis: Connected
Exception: InvalidArgumentException
Code: 0
Message: Status code must be an integer value between 1xx and 5xx.
Trace: /var/www/jikan/vendor/guzzlehttp/psr7/src/Response.php on line 152
Request: GET /v3/character/174151/pictures

v3 is no longer supported and will be discontinued next month. Please upgrade to v4.


Add TCP Transport

Added a TCP transport, use it by adding the TCP tag to logback.xml.
Updated build to java 8.

Thanks! I'd like to add TCP support, but I'd like to keep the JVM target at 1.6. Users shouldn't be required to upgrade their JVM to use logback-gelf. Any chance of a solution that doesn't use java 8 features?

+1 on this request

Okay, I went and actually read the graylog spec this time :)
The TCP input prefers null-terminated messages so gzipping them isn't an option (as there will almost certainly be null characters somewhere in a binary blob). So I had to add a different AppenderExecutor for TCP messages.
Re-targetted 1.6 although I don't have that version installed myself, hopefully it should be fine.
I've tested this against graylog1.0.0 and it seems to be working fine. Should be good to go.

The more I think about it, the more it makes sense to start Configuring the Transport in its own way. UDP and TCP have fundamentally different configuration, so deserve their own configuration sections within the logback.xml
TCP

socket timeout
keepalive?

UDP

checkThreshold

Also, TCP doesn't need to chunk, so only one a single send arity is required.
I'm kind of inspired by your PR, so if you don't mind, I might take a stab at the above

I agree that some of the methods don't make as much sense for the TCP transport. I left the general shape of the API intact because I'm not hugely familiar with logback and I didn't want to embark on a large change that might be harder to merge in. Feel free to use or not use any of it :)

FYI, here's the approach I'm taking. Just finishing up the edges now. https://github.com/Moocar/logback-gelf/tree/the-great-appender-rejig

That's great! Much better than my hacky changes.
On 25 Mar 2015 05:26, "Anthony Marcar"<EMAIL_ADDRESS>wrote:

FYI, here's the approach I'm taking. Just finishing up the edges now.
https://github.com/Moocar/logback-gelf/tree/the-great-appender-rejig
—
Reply to this email directly or view it on GitHub
https://github.com/Moocar/logback-gelf/pull/46#issuecomment-85848322.

Thanks :). I just finished the branch, any chance you'd be interested in testing it? I've done a fair bit, but it would be great to get some feedback on the new approach. You'll need to build both socket-encoder-appender and logback-gelf from scratch as they're not on maven central yet
https://github.com/Moocar/socket-encoder-appender
https://github.com/Moocar/logback-gelf/tree/the-great-appender-rejig

version 2.0beta is now live (whenever maven central updates anyway). so I'm going to close this PR. Would appreciate any feedback on it. Thanks for the inspiration :)


Upgrade to a more recent AWS Java SDK version

AWS Java SDK v2.16.72 was released 7 months ago (on 2021-05-26).
Upgrade to a newer version.

hi, thank you for your PR. Unfortunately the build is failing because of a security test. A transitive dependency (jackson-databind) has a vulnability. I've taken this opportunity to update all of the dependencies to latest in this PR. I hope you don't mind if I close this one. Thanks.

Superseded by https://github.com/d2a4u/meteor/pull/180


jsPsych.addNodeToEndOfTimeline() bug

Just noticed a bug in the code for this function on line 312 of jspsych.js (version 6.1.0). The word "undefined" is misspelled, leading to the function making a callback function a mandatory second argument.

Duplicate of https://github.com/jspsych/jsPsych/issues/688

Thanks @bjmeagher ! We will patch this in 6.2


Consume and Create HTML in a Costum List

This project contains sample Client-Side Web Parts built on the SharePoint Framework illustrating how to GET and POST RichText data.

Hi @jtlivio, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@jtlivio, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, MSBOT;


[stdlib] StaticBigInt

Can this proposal be considered for Swift 5.7, or should it wait for _const compile-time constant values?

We haven't quite fit this into the review schedule yet, but I'll be acting as the review manager, and I need to do the review-manager review of the pitch thread first anyway.
As for whether we can get this into 5.7 (assuming it's accepted), I'm not sure.  It's certainly possible, but I don't want to promise anything.

Things from the review thread that I think ought to be addressed in the proposal:

Please discuss in Alternatives Considered about how it's an intentional decision that the model is the mathematical integers and not the textual representation of literals in source.  For example, we have explicitly decided not to distinguish literals written in different bases, with different leading zeroes, and so on.  This seems like an obviously justifiable decision to me, but you should take the time to justify it.
Please discuss in Alternatives Considered the possibility of unifying this with the handling of floating-point literals.  Again, I think it shouldn't be difficult to justify this — there's a lot of expressive complexity for floating-point literals that would be an unnecessary burden on integer types — but it does need to be justified in the document.
Please discuss somewhere in the document (briefly is fine) why this type cannot conform to any of the numeric protocols.
Please discuss in Alternatives Considered the prior designs that exposed the words as arrays.
Please discuss in Future Directions the possibility of diagnosing overflow in literals using static evaluation, if the language ever provides that.

@rjmccall I still need to update the implementation.

This seems like an obviously justifiable decision to me, but you should take the time to justify it.

I can try to justify the design of Builtin.IntLiteral, but the honest answer is that I'm not offering to re-design the existing ABI.

Would it be more useful if there was a way to get the (infinitely-sign-extended) value of an arbitrary word of the representation?

I've removed the words collection, and added indices and subscript(_:) APIs. This is similar to the design of SIMD types.
Can the infinite sign extension be implemented by the subscript, rather than by the Builtin.wordAtIndex function?

Should there be a way to construct an arbitrary ExpressibleByIntegerLiteral type from a StaticBigInt?

I don't think this is possible, because a default implementation needs to use Self-typed literals, which would trigger infinite recursion.
The proposal now has an init(exactly:) example, which shows how third-party types could become convertible from a StaticBigInt.

Thanks for these changes, this is looking a lot better.
The biggest problem I see now is that Alternatives Considered needs to actually argue against the alternatives that were considered in favor of what's being proposed.  Just citing the pitch thread isn't really enough.
I want to make it clear that I was just asking a question about infinite extension, not specifically requesting the change.  It seems like it makes using StaticBigInt easier when building a fixed-width type, and it dodges the question about how many words the literal has.  However, those things together mean you can't have a Collection of words, and if you think it would be better to have a Collection, then by all means, let's stick with that.  Ultimately, this is your proposal, and you should feel confident to defend the decisions you've made.
I'm happy to write the Alternatives Considered section about different literals, since that's really my design (among others) being reflected here.  But you should write the response to the words collection (if you do want to make that change) and the response to the pitch-thread commentary about interchange types.
Here's suggested text for the literals item, combining your first two bullet points:

Modeling the original source text instead of a mathematical value would allow this type to support a wide range of use cases, such as fractional values, decimal values, and other things such as arbitrary binary strings expressed in hexadecimal.  However, it is not a goal of Swift's integer literals design to support these use cases.  Supporting them would burden integer types with significant code size, dynamic performance, and complexity overheads.  For example, either the emitted code would need to contain both the original source text and a more optimized representation used by ordinary integer types, or ordinary integer types would need to fall back on parsing numeric values from source at runtime.
Along similar lines, it is intentional that StaticBigInt cannot represent fractional values.  Integer types should not be constructible with fractional literals, and allowing that simply adds unnecessary costs and introduces a new way for construction to fail.  It is still a language goal for Swift to someday support dynamically flexible floating-point literals the way it does for integer literals, but that is a separable project from introducing StaticBigInt.

Can the infinite sign extension be implemented by the subscript, rather than by the Builtin.wordAtIndex function?

Either way is fine by me.

Should there be a way to construct an arbitrary ExpressibleByIntegerLiteral type from a StaticBigInt?

I don't think this is possible, because a default implementation needs to use Self-typed literals, which would trigger infinite recursion.

Does the following not work?
extension ExpressibleByIntegerLiteral {
  init(dynamicIntegerLiteral value: StaticBigInt) {
    self.init(integerLiteral: IntegerLiteralType(_builtinIntegerLiteral: value.value))
  }
}

I want to make it clear that I was just asking a question about infinite extension, not specifically requesting the change.

Understood. I added it to the proposal because I like the idea. I wasn't sure of an "infinite" collection, so I chose this simpler design.

I'm happy to write the Alternatives Considered section about different literals, since that's really my design (among others) being reflected here.

Thank you. I feel guilty about you rewriting so much of the proposal.

But you should write the response to the words collection (if you do want to make that change) and the response to the pitch-thread commentary about interchange types.

I'll update these alternatives. I think a words collection can be derived from x.indices.lazy.map { x[$0] } if needed. A wrapper type could provide a choice of UInt8, UInt16, UInt32, UInt64, or UInt elements.

Does the following not work?

An init?(exactly: StaticBigInt) and init(truncatingIfNeeded: StaticBigInt) on fixed-width integers may be more versatile (than a trapping initializer).

Does the following not work?

An init?(exactly: StaticBigInt) and init(truncatingIfNeeded: StaticBigInt) on fixed-width integers may be more versatile (than a trapping initializer).

But those aren't possible to write in general, because arbitrary literal-constructible types don't offer those operations.  This init would simply be a way to invoke the standard literal-initialization path for the given literal on a dynamically-chosen literal-constructible type, which is otherwise unimplementable.

Your init(dynamicIntegerLiteral:) suggestion works, but should the argument label be omitted?
Other conversions described by BinaryInteger documentation would require FixedWidthInteger.
extension FixedWidthInteger {

  public init?(exactly source: StaticBigInt) {
    if Self.isSigned {
      guard source.bitWidth <= Self.bitWidth else { return nil }
    } else {
      guard source.bitWidth <= Self.bitWidth + 1 else { return nil }
      guard source.signum() >= 0 else { return nil }
    }
    self.init(source)
  }

  public init(clamping source: StaticBigInt) {
    self = Self(exactly: source) ?? (source.signum() < 0 ? Self.min : Self.max)
  }

  public init(truncatingIfNeeded source: StaticBigInt) {
    self = Self(_truncatingBits: source[0])
    if Self.bitWidth > UInt.bitWidth {
      let endIndex = (Self.bitWidth + UInt.bitWidth - 1) / UInt.bitWidth
      for index in 1..<endIndex {
        self |= Self(_truncatingBits: source[index]) &<< (index * UInt.bitWidth)
      }
    }
  }
}

Actually, it doesn't work as expected, because dynamic overflow results in a zero-initialized value, without a runtime error. Related issue: Negative integer literal converted to generic unsigned integer type without warning.

Hmm.  Well, we should definitely fix whatever bug this is, but if we're seeing it when creating literals generically, then it makes sense that we see the same behavior here.

I've updated the design.

The subscript now has a generic return type, which can be any fixed-width unsigned integer (from the standard library).

The indices property is removed. Alternatives considered mentions the need for a replacement API.


settingsLinks icon is broken on SharePoint Online

On SharePoint Online, when the Chrome control is used with settings links configured, all that shows up is a gray box with a dropdown. The gear that used to show up is gone, and when I trace the image link when examining the constructed HTML, it leads to a SharePoint error page.
I tried to bring this issue up with Office 365 Support but they refused to address the problem :/

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d14641c6-8ce6-8838-ab9a-8e6ea90aed50
Version Independent ID: 9b7fcbf8-4fc6-ade9-62ef-a1d4345827f8
Content: Give your provider-hosted add-in the SharePoint look-and-feel
Content Source: docs/sp-add-ins/give-your-provider-hosted-add-in-the-sharepoint-look-and-feel.md
Service: unspecified
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Some weeks ago we also started experiencing this - I am not sure why this is being classified as "docs"?

reviewing old comments to the docs with no activity...
Is this issue still present? If so, can you provide a screenshot of what's not showing up? Is it limited to one site? Can you provide additional context (SharePoint environment, browsers tested, etc)?

@MMThornberg said:

I am not sure why this is only being classified as "docs"?

All comments left in the SharePoint developer documentation pages were initially tagged with area:docs by default. We've now broken it out to area:docs-comment as a comment left in the docs while area:docs is used for documentation related issues.


RGBD frames

Hello,
Do you plan to, or could you provide raw images for the Query Sequences ? I noticed that the depth values were mapped from 0 to 255 and you didn't include the real distance values (in mm) for the Query Sequence frames.
Indeed, it is hard to make 3D reconstructions for the Query Sequences with mapped distance values.
Thanking you in advance for your response.

In cloud_to_img.py line230 it becomes clear that the maximum depth is 50 meters. You can use this to map the normalized values back to real distances.
However, the depth images seem to have banding artifacts that make an accurate 3D reconstruction difficult (see the attached depth image + side-view onto the reconstruction). Also, I wasn't able to consistently align the single images using the given poses.


add joinCommunity button, update title and heading in pair page

Hey Adam, we usually do not use the dev branch for merge targets since it can change at anytime - it's only for deployment. Do you want to target this PR at main?

@kkennis - this is good to go.

Yep looks good!
@kkennis this one seems to be merged on your end. I don't have permission to handle this.


Deploy Checklist: New Expensify 2023-05-04

Release Version: 1.3.10-3
Compare Changes: https://github.com/Expensify/App/compare/production...staging
This release contains changes from the following pull requests:

[ ] https://github.com/Expensify/App/pull/16065
[ ] https://github.com/Expensify/App/pull/17633
[ ] https://github.com/Expensify/App/pull/17719
[ ] https://github.com/Expensify/App/pull/17903
[x] https://github.com/Expensify/App/pull/17940
[ ] https://github.com/Expensify/App/pull/17968
[ ] https://github.com/Expensify/App/pull/18024
[ ] https://github.com/Expensify/App/pull/18190
[ ] https://github.com/Expensify/App/pull/18191
[ ] https://github.com/Expensify/App/pull/18254
[ ] https://github.com/Expensify/App/pull/18258
[ ] https://github.com/Expensify/App/pull/18259
[ ] https://github.com/Expensify/App/pull/18273
[ ] https://github.com/Expensify/App/pull/18285
[x] https://github.com/Expensify/App/pull/18329
[x] https://github.com/Expensify/App/pull/18336
[ ] https://github.com/Expensify/App/pull/18347
[ ] https://github.com/Expensify/App/pull/18352
[ ] https://github.com/Expensify/App/pull/18360
[x] https://github.com/Expensify/App/pull/18361
[x] https://github.com/Expensify/App/pull/18369
[x] https://github.com/Expensify/App/pull/18380
[x] https://github.com/Expensify/App/pull/18395
[x] https://github.com/Expensify/App/pull/18400
[ ] https://github.com/Expensify/App/pull/18430

Deploy Blockers:

[ ] https://github.com/Expensify/App/issues/18420

Deployer verifications:

[ ] I checked the App Timing Dashboard and verified this release does not cause a noticeable performance regression.
[ ] I checked Firebase Crashlytics and verified that this release does not introduce any new crashes. More detailed instructions on this verification can be found here.
[ ] I checked GitHub Status and verified there is no reported incident with Actions.

cc @Expensify/applauseleads

:rocket: All staging deploys are complete, @Expensify/applauseleads please begin QA on version https://github.com/Expensify/App/releases/tag/1.3.10-2 :rocket:

:clap: Heads up @Expensify/applauseleads :clap:
A new pull request has been :cherries: cherry-picked :cherries: to staging, and will be deployed to staging in version 1.3.10-3 :rocket:

:clap: Heads up @Expensify/applauseleads :clap:
A new pull request has been :cherries: cherry-picked :cherries: to staging, and will be deployed to staging in version 1.3.10-4 :rocket:

:tada: All set?…You bet! @Expensify/applauseleads https://github.com/Expensify/App/releases/tag/1.3.10-3 has been deployed to staging :tada:

:tada: All set?…You bet! @Expensify/applauseleads https://github.com/Expensify/App/releases/tag/1.3.10-4 has been deployed to staging :tada:

Checking off #18457 as it is a Web (not App) deploy blocker.

@marcaaron Regression sis completed
PR https://github.com/Expensify/App/pull/16065 is big :) We just pending Desktop validation, and also found issue https://github.com/Expensify/App/issues/18476 repro on prod.
PR https://github.com/Expensify/App/pull/18024 - still testing as steps were not clear.

https://github.com/Expensify/App/issues/18476 checked this one off because the issue was closed
https://github.com/Expensify/App/pull/17903 seems minor so I think we can fix that as a follow up cc @PauloGasparSv

checking off https://github.com/Expensify/App/pull/18024

:shipit:


Add option IgnoreLackOfReferencedObject to Publish task

As discussed here: https://github.com/SQLPlayer/azure.datafactory.tools/discussions/197

Released in ver 1.12
https://github.com/SQLPlayer/azure.datafactory.devops/releases/tag/v.1.12


Fix null-morph-to-association branch with rebase

This fix will allow for a clean rebase instead of the merge I used to update the null-morph-to-association branch. This will mean I have to overwrite this current branch. However, I will store a backup before I perform this push, and will check if it breaks any projects before deleting this old fix branch.
This rebase will also make it much easier to get your PR reviewed and possibly merged into Bookshelf (now that I'm a contributor :wink:).

@patbenatar It's golden! Seems the overwrite worked great. I was able to maintain your commit without breaking any of the functionality you added. Hope this is OK with you!

@jadengore :+1: thanks!

@patbenatar Gah! I just looked at your PR to Bookshelf and it seems 32 files have been changed. Darn! Will have to look into fixing this later.

@jadengore :(


Send Tokens: symbol precision mismatch

I just tried to send some IQ token to bitfinex and got this error message:

tried with and without 4 digit decimal (x.0000), both failed.

@jemekite I'm also trying and my google search led me here.
I only see EOS in the token list dropdown - do you see more than just EOS?

Version 0.3.3 should resolve this issue. Let us know if it doesn't for you - but that was the bug we specifically tried to fix with that release.


Building a project under a folder with escaped spaces skips scripts

SqlPackage or DacFx Version: Build SDK 0.1.14-preview
.NET Framework (Windows-only) or .NET Core: .NET Core
Environment (local platform and source/target platforms):

Steps to Reproduce:

Unzip attached demo folder
Run dotnet build in both of the contained folders with the projects (which are the same aside from the name)

For the NoSpaces one it builds as expected (verified through Model.xml that objects are included).
For the With Spaces one it seemingly builds fine, but then the Model.xml doesn't have any of the objects - so it seems like it's completely skipping over them.
Demo.zip

A related but worse version of this is building a project in a folder with escaped spaces in 0.2.0-preview results in a failed build
/usr/local/share/dotnet/sdk/8.0.303/Microsoft.Common.CurrentVersion.targets(1248,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.6 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [/Users/drewsk/Documents/CodeRepos/dzsquared/App%20Demo/SQLDatabase/MessagesDB.sqlproj]

This might be related to a widely reported issue with .NET itself - https://github.com/dotnet/msbuild/issues/2178
The symptoms I observe with Microsoft.Build.Sql are:

<= 0.1.14-preview: globbing patterns (any) don't work. Only workaround is to include each file like old-style sqlproj.
> 0.1.14-preview: error NETSDK1004: Assets file '...\With Escaped Spaces\obj\project.assets.json' not found. Likely due to direct reference to Microsoft.NET.Sdk.targets introduced in 0.1.15-preview. This error is exactly same as the dotnet one, from the comments it seems to be coming from Nuget.

I will do more investigation, but the core problem seems to reside within the .NET/Nuget.

The issue lies in .NET with no known workarounds at this time. Please avoid using escaped spaces in the project path.


Authenticate method with certificate validates the certificate validity dates against UTC

Hi,
I've found a bug when authenticating with certificate right after it has been created.
I mean UserAccountService.Authenticate(TAccount account, X509Certificate2 certificate). There is a validation of validity dates (NotBefore, NotAfter) against UtcNow property, which is not correct, because NotBefore and NotAfter properties are in local time. So the user with a newly created certificated is not able to login when he is not in the UTC timezone.
if (!(certificate.NotBefore < UtcNow && UtcNow < certificate.NotAfter))
{
	Tracing.Error("[UserAccountService.Authenticate] failed -- invalid certificate dates");
	this.AddEvent(new InvalidCertificateEvent<TAccount> { Account = account, Certificate = certificate });
	return false;
}

Submit a PR please to dev.


Unity 2018.1.0b12: Can't create empty Texture (not allowed, needs to be subclass)

This line causes projects to fail compilation:
https://github.com/thestonefox/VRTK/blob/e43089a4dbefba55af2716d22de31458e0b615ca/Assets/VRTK/Scripts/Interactions/Highlighters/VRTK_MaterialColorSwapHighlighter.cs#L152
This can be fixed by replacing the line above with:
renderer.material.SetTexture("_MainTex", new Texture2D(0,0));
Cheers!

This is addressed in https://github.com/thestonefox/VRTK/pull/1730

I assumed Texture2D.whiteTexture would be a shared texture already in
memory as opposed t created at call time. Wouldn't that texture be around
for the entire run anyway? Are we assuming it created it the first time
it's called then keeps it around forever? I didn't expect a leaked
reference on every call.
On Fri, Apr 6, 2018, 5:20 AM The Stonefox<EMAIL_ADDRESS>wrote:

@kristianpd https://github.com/kristianpd I wonder if the proposed fix
of new Texture2D(0,0) is actually better than Texture2D.whiteTexture
Then at least the new texture should be garbage collected in scope.
Thoughts?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/thestonefox/VRTK/issues/1758#issuecomment-379197919,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAXEtl6MGP6iHobSgIMhPZGz0Ed0ORrcks5tlzNqgaJpZM4S-zDS
.

I assumed that Texture2D.whiteTexture would be a 1x1 (ish) white pixel. Since it's a class attribute, I was under the impression it would be garbage collected as part of Texture2D's internals and assumed it was a reference to a single texture in memory.
If it was creating a new texture every time, wouldn't the old ones be GC'd when the new material texture is set and no longer referencing the object? If it is a shared texture then I would assume nothing is going to be cleaning it up for as long as unity is running. If it is a new instance of a texture, no longer referencing it via the material texture should allow it to be GC'd, no?
Am I missing something obvious here?

You may be totally right, it would just be nice to know what Unity is doing!
Have you ever seen what they do with Camera.main? it will blow your mind :p

GC is of no interest: A texture(2D) is a unity object and as such you need to call Destroy on it.
The actual asset of the texture is unloaded with a call to that method Unity has to unload unused assets.
The recompiled source shows all the methods of interest (texture getters and constructors) are just calling into their native C++ layer, so can't see what it's doing. Docs don't tell anything either.
Quick test would be to just access .whiteTexture in an update method and keep looking at the GPU/Rendering profiler in the Editor - one of them lists the number of textures in use.
I'd expect that one to not increase, but the constructor call to create multiple textures except when you call Destroy on them.

Can confirm Texture2D.whiteTexture does not increase texture count whereas new Texture2D does.
Texture2D text = new Texture2D(0, 0);

vs
Texture2D text = Texture2D.whiteTexture;

so whiteTexture is the solution imho

Cool, TIL. I'll update the PR


Roll Flutter Engine from 77349dc8e27b to 42952d9a50f4 (1 revision)

https://github.com/flutter/engine/compare/77349dc8e27b...42952d9a50f4
2023-11-10<EMAIL_ADDRESS>Roll Skia from 5df579e87784 to 384f047aa0b6 (4 revisions) (flutter/engine#47912)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC bdero@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Translation issues with the "释放数" in Chinese

Dev Home version
0.1601.561.0
🌐 Language
Chinese
❌ Actual phrase(s)

The text "释放数" in the widget is incorrect.
✔ Expected phrase(s)
I guess "Releases" is the original English phrase and if that it is, the right translation should be "发行版"
Why is the current translation wrong

In Chinese, "release" has several meanings. When "release" is translated into 释放, it usually means

(verb) to give freedom or free movement to someone or something
(noun) an occasion when someone is allowed to leave prison, etc.

When translated into 发行, it has the following meanings:

(verb) to allow something to be shown in public or to be available for use
(noun) the act of making something public or available for use

According to the usages of "Releases" on GitHub, I'm pretty sure that 释放 is incorrect and that 发行 should be taken as the correction translation.
2. 发行版 can be closely translated as "release version", which is closed to the original meaning of "Releases"
3. There is already a translation that is used on GitHub mobile app which aligns with the original meaning of "Releases" and is accepted by Chinese developers, as evidenced by the following images. It would be preferable to reuse a widely accepted translation.

Note: There isn't a language switch option in devhome so I'm not quite sure the original English phrase and just guess according to other GitHub related widgets.

Same wit #2856. Closed.