[Autofill] TextInput.finishAutofillContext() doesn't bring up the system prompt

I do have the autofill service setup in my flutter app on iOS (including associated domains).
The api doesn't seem to work as it's explained in the docs.  See below:
Steps to Reproduce

Fill email input field
Fill password input field
Press the "Next" button which calls TextInput.finishAutofillContext()

Expected results:
iOS prompt to save the password should appear
Actual results:
iOS prompt to save the password appears after the password input loses the focus (i.e pressing the done button on the keyboard).
Pressing the "Next" button does not do anything.

Code sample
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() => runApp(const MyApp());

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

  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      home: Scaffold(
        appBar: AppBar(
          title: const Text(_title),
        ),
        body: const MyStatefulWidget(),
      ),
    );
  }
}

class MyStatefulWidget extends StatefulWidget {
  const MyStatefulWidget({super.key});

  @override
  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
}

class _MyStatefulWidgetState extends State<MyStatefulWidget> {
  final TextEditingController email = TextEditingController();
  final TextEditingController password = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return ListView(
      children: <Widget>[
        AutofillGroup(
          onDisposeAction: AutofillContextAction.cancel,
          child: Column(
            children: <Widget>[
              TextField(
                controller: email,
                autofillHints: const <String>[AutofillHints.email],
                keyboardType: TextInputType.emailAddress,
              ),
              TextField(
                controller: password,
                autofillHints: const <String>[AutofillHints.password],
                keyboardType: TextInputType.visiblePassword,
              ),
              ElevatedButton(
                onPressed: () {
                  TextInput.finishAutofillContext(shouldSave: true);
                },
                child: const Text('Next'),
              ),
              ElevatedButton(
                onPressed: () {
                  FocusScope.of(context).unfocus();
                },
                child: const Text('Unfocus'),
              ),
            ],
          ),
        ),
      ],
    );
  }
}

flutter doctor -v
rni-mobile % flutter doctor -v
[✓] Flutter (Channel stable, 3.3.9, on macOS 12.6 21G115 darwin-arm, locale en-US)
    • Flutter version 3.3.9 on channel stable at /Users/lukaszdebowski/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f7f1f986 (3 weeks ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/lukaszdebowski/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

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

[✓] Android Studio (version 2021.2)
    • 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 11.0.12+0-b1504.28-7817840)

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

See attached video (it shows another bug, which is the fact that the prompt did not show up at the first time at all)
https://user-images.githubusercontent.com/39137870/207063984-94eaca81-5836-47f5-8cd5-963c06fe6993.mp4
App running on iOS 16.1.2

Thanks for the report @lukaszdebowski
I used the code sample provided and ran it on latest stable and beta using iOS  device running on 15.3.1, and was able to see the system prompt upon tapping next button as expected:
https://user-images.githubusercontent.com/67046386/207249183-f2a7476f-5623-4b36-a83f-50cfb66948e7.MP4
In your video, I see that after inputing email and password each, you are tapping on done button and then on next button, but I didn't try that way, as the natural thing is to tap in next input field to make it active and then tapping on next button. This is something you can try and see if it shows the expected behavior or not.

So you did exactly the thing I described as "iOS prompt to save the password appears after the password input loses the focus".
The point of the bug is that the prompt should be shown upon calling TextInput.finishAutofillContext(), and that is not the case - the prompt is not shown when someone calls that method, and instead it is only shown after the password input loses focus

Thanks for the update.

 stable, master flutter doctor -v
[✓] Flutter (Channel stable, 3.3.10, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.3.10 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (15 hours ago), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

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

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.7.0-13.0.pre.138, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.7.0-13.0.pre.138 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b938dc13df (18 hours ago), 2023-01-02 05:47:23 -0500
    • Engine revision 472e34cbbc
    • Dart version 3.0.0 (build 3.0.0-76.0.dev)
    • DevTools version 2.20.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

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

! Doctor found issues in 1 category.

After some research of this issue, I discover once we using GestureDetecter or/and keyboardDismissBehavior: ScrollViewKeyboardDismissBehavior.onDrag in ListView/CustomScrollView also if we lose TextField's focus, which will cause system prompt not shown in iOS neither password suggestion. Android will work, except for password suggestion.

Same problem here,  on iOSthe save prompt appears on focus lost.
Has someone found a solution?

Same issue here. Android works fine on both emulators & real devices. But iOS real device is not working

I don't know if we have the exact same problem but in our application the question for saving login credentials always shows up after the login, so this might be related to the disposal of the text fields.
Additonally we have the problem that the user credentials are saved but not reassociated to the text fields (This seems to be shown in the video but I'm not quite sure if this is the same problem) see #135948

facing same issues , any latest solutions for this issue

@jsc57x I'm facing the same two issues on iOS that you described in your ticket. The request to save password is always presented (even though the credentials are already saved) and the user is forced to tap "Passwords" to manually select their credentials (it even shows unassociated domains).
I'm using the developer alternative mode and have correctly hosted the associated domains file according to the documentation.

Can confirm that AutofillContextAction.cancel is not working at all, it just brings up the save password prompt when the autofillgroup is destroyed.

Flutter 3.19.3 focus issue still ocuring:
using code:
Form(
  key: _formKey,
  child: AutofillGroup(
    onDisposeAction: AutofillContextAction.cancel,
    child: ... (TextField with AutofillHints.email and another for AutofillHints.password)

Everytime when pressing on the background for unfocus after using the first TextField it triggers commit, but when using the second field after a unfocus event it stops doing it even if the button has "TextInput.finishAutofillContext();" action on it.
https://github.com/flutter/flutter/assets/60786797/61be6dbe-914c-4ee4-babf-671e5c8f60e1

I have the same issue.
I have done all the necessary configuration but I cannot display the popup asking to save the password.

I'm having the same problem ☹

Any updates? Can somebody fix it on iOS?

Can confirm that AutofillContextAction.cancel is not working at all, it just brings up the save password prompt when the autofillgroup is destroyed.

Confirming this issue still exists in Flutter 3.19.6 on iOS 17.4.1 on multiple devices (physical and simulators). It also happens when the form loses focus.

@darshankawar
Tested on Flutter version v.3.24.0, it works well for Japanese clients on both the emulator and the actual device, but in China, the same iOS version of the emulator and the actual device do not work well.

So you did exactly the thing I described as "iOS prompt to save the password appears after the password input loses the focus".
The point of the bug is that the prompt should be shown upon calling TextInput.finishAutofillContext(), and that is not the case - the prompt is not shown when someone calls that method, and instead it is only shown after the password input loses focus

My case is exactly the same, with latest Flutter SDK version 3.24.1


Log bot "version" on error handling

When logging an exception also log the number of commits on current branch, will allow to easily identify if reporter is on master and updated.
TESTING STAGE
in progress
Types of changes

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

Checklist:

[x] I have read CONTRIBUTING.md
[x] I fully understand Github Flow.
[x] My code adheres to the code style of this project.
[n/a] I have updated the documentation in /docs if I have changed the config, arguments, logic in how the bot works, or anything that understandably needs a documentation change.
[n/a] I have updated the config file accordingly if my change requires a new configuration setting or changes an existing one.
[ ] I have tested the bot with no issues for 24 continuous hours. If issues were experienced, they have been patched and tested again.

Good idea, we definitely need this.
Was just thinking there, we could add a second place to look up the version number if it's not a git repo. Then we can at least manually update that every once in a while, it could be the actual release version.

@Evanito If the git command doesn't return a number a default version number '3.0.0' will be returned. We can update this number from time to time, so we have some indication of the bot version.
I currently don't have time to include the CLI command, can I merge without?


HeapSort program in C++

What does the program do ?
Program sorts a given array using HeapSort in nlog(n).
In what programming language it is written?
It is written in C++.

Thank you for participating  in hacktoberfest ❣ if you liked working on this repo you can share it with friends and star this project for helping others


Deprecate Conda Environment task

We've decided to deprecate this in favor of using the conda CLI directly from script.  We have a guide with YAML snippets at https://aka.ms/pipelines-anaconda-guide
Designer UX:

YAML UX:

@brcrista  sorry for jumping in, but may i know the reason why Conda Environment task is deprecate?
thanks.

@nbcsm see the comment here: https://github.com/Microsoft/azure-pipelines-tasks/issues/9120#issuecomment-463656413

The task didn't grow up well to more complex environment setups, like installing from channels or from environments.yml
The task was trying to hide the way a pipeline runs its steps in separate processes and make it appear that an environment would be activated for all steps.  This turns out to be too hard to fight.  It's a documented feature of pipelines that the steps run in separate tasks.
The task was made before we released YAML definitions.  With YAML, it's not hard to use script to work with the conda CLI directly and avoid these issues


Its reporting a virus now 8(((

something called emaili...
could you check please...
latest version btw

likely a false positive again.
Checking..

windows defender
roguekiller

same

Submitted for manual review by Microsofts Malware Analysts over their webportal yet again.
It will take some time for them to respond.
Personally I am not afraid having Chia Plot Status with its dependency on the avalonia ui library installed and running on my system, just massively annoyed as Chia Plot Status or one of its dependencies falsely getting flagged and then marked as safe/clean/clear by Microsofts Malware Analysts after a manual checkup happens way too often. I guess its their AI that goes rogue.
Submission:
Company name
none, open source dev
Do you have a Microsoft support case number?
NoSupport case number
No information provided
Product
Microsoft Defender Antivirus (Windows 10)
Submission priority
Regular
File
Avalonia.Win32.dll (352 KB)
Removal date
June 03, 2026
What do you believe this file is?
Incorrectly detected as malware/malicious
Detection name
Trojan:Win32/Emali.A!cl
Definition version
1.339.1937.0
Additional information
Part of avalonia ui library https://avaloniaui.net/ version 0.10.5 Avalonia dll files got repeatedly detected by windows defender and then given clear status by you guys basically every 3 to 5 days over the last three weeks. Almost everytime with a different detection name.
I submitted avalonia.themes.fluent.dll too, as it got flagged on my system as well.

I added a note to the download section to inform users about this.

One of two files marked as clean again.
Submission details
avalonia.win32.dll
Submission ID: 91833e65-8d89-4c11-8960-8e1a0c501c19
Status: Completed
Submitted: Jun 3, 2021 12:20:18
User Opinion: Incorrect detection
Analyst comments:
We have removed the detection. Please follow the steps below to clear cached detection and obtain the latest malware definitions.

Open command prompt as administrator and change directory to c:\Program Files\Windows Defender
Run “MpCmdRun.exe -removedefinitions -dynamicsignatures”
Run "MpCmdRun.exe -SignatureUpdate"

Alternatively, the latest definition is available for download here: https://www.microsoft.com/en-us/wdsi/definitions

Avalonia.Themes.Fluent.dll is no longer detected on my system or VirusTotal as well. I did not receive the result of the submission yet.

avalonia.controls.datagrid.dll
Submission ID: 49cbc87f-29e2-4e24-8439-e569f48cdefd
Status: Completed
Submitted: Jun 3, 2021 20:01:01
User Opinion: Incorrect detection
Analyst comments:
We have removed the detection. Please follow the steps below to clear cached detection and obtain the latest malware definitions.

Open command prompt as administrator and change directory to c:\Program Files\Windows Defender
Run “MpCmdRun.exe -removedefinitions -dynamicsignatures”
Run "MpCmdRun.exe -SignatureUpdate"

Alternatively, the latest definition is available for download here: https://www.microsoft.com/en-us/wdsi/definitions
Thank you for contacting Microsoft.

So, all files are safe, considered safe by Windows Defender with the latest updates. Closing this.


window bind:scrollY not working

Describe the bug
I'm trying to bind the scrollY value like shown in the tutorials solution: https://svelte.dev/tutorial/svelte-window-bindings
But the variable to which I bind the scrollY value, does not change on scroll. The code I used is shown below.
Reproduction
Make a svelte route component with the following code:

<svelte:window bind:scrollY={y}/>

{y}

The displayed ydoes not change as expected.
Logs
No response
System Info
  System:
    OS: Linux 5.16 undefined
    CPU: (4) x64 Intel(R) Core(TM) i3-6100T CPU @ 3.20GHz
    Memory: 21.62 GB / 31.24 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    npm: 8.3.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
  Browsers:
    Chromium: 99.0.4844.84
    Firefox: 98.0.2
  npmPackages:
    @sveltejs/adapter-node: ^1.0.0-next.73 => 1.0.0-next.73
    @sveltejs/kit: ^1.0.0-next.303 => 1.0.0-next.303
    svelte: ^3.46.4 => 3.46.4

Severity
annoyance
Additional Information
No response

I cannot reproduce this in StackBlitz or the Svelte REPL. Please provide a reproduction in StackBlitz or in a GitHub repo, or the issue will be closed.

I figured it out. 'm using a CSS framework and this causes the problem.

I figured it out. 'm using a CSS framework and this causes the problem.

Can you elaborate on this? I am running into an issue where this is randomly working and not working and I am curious if it is the same issue.

I was using the Drawer component from DaisyUI. This caused the problem. To solve this, I had to bind the div with the drawer-content to get the information I was looking for.
  let drawercontent;

I was having the same issue than @jaads
thanks for the tip :)
I'll add here a bit more info about how to get the scorll position then
either

 {
    console.log(event.currentTarget.scrollTop) // 👈
  }}
>
  <slot />

or

  <slot />

Anyway, <svelte:window bind:scrollY={y}/> doesn't seem to work if body has height: 100% set

Anyway, <svelte:window bind:scrollY={y}/> doesn't seem to work if body has height: 100% set

Was breaking my head with this, thank you.


Bluetooth: host: Retry failed auto-initiated phy request

An auto-initiated phy request may fail and consequently the correct
phy is not set, and the auto-initiation is stalled. This is preventing
the DLE procedure from being executed.
This commit introduces a limited retry mechanism which handles the
following error cases:

An error occurs when preparing the link layer request. Phy update
is not sent. This is typically a BT_HCI_ERR_CMD_DISALLOWED error due
to LLCP state machine busy.

Central rejects phy update request with a "Different Transaction
Collision".

In both cases a delayed retry is needed to request phy update when
ongoing procedure is completed.
Fixes #31473.
Signed-off-by: Morten Priess<EMAIL_ADDRESS>

Btw, I'm surprised it's the responsibility of the host to do this extra work. I'd have expected the controller to handle it.

Btw, I'm surprised it's the responsibility of the host to do this extra work. I'd have expected the controller to handle it.

Btw, I'm surprised it's the responsibility of the host to do this extra work. I'd have expected the controller to handle it.

Well i might also seem counter-intuitive that the host should do this, especially in this case where both host and controller are Zephyr, but what about the the case where the controller is just another blackbox, what would be the logic then? Would it make sense to stall the auto-initiation just because an "unexpected" BT_HCI_ERR_CMD_DISALLOWED was received.

Btw, I'm surprised it's the responsibility of the host to do this extra work. I'd have expected the controller to handle it.

Well i might also seem counter-intuitive that the host should do this, especially in this case where both host and controller are Zephyr, but what about the the case where the controller is just another blackbox, what would be the logic then? Would it make sense to stall the auto-initiation just because an "unexpected" BT_HCI_ERR_CMD_DISALLOWED was received.

I think we maybe should look at this as two use cases. One is where the interface function returns an error. As the auto-initiate feature is implemented in the host, this is where we have to deal with that error.
The other is where the phy update initiates without error. Here you could argue that the controller should do any necessary retry, and just delay the "complete" notification to host.

I think we maybe should look at this as two use cases. One is where the interface function returns an error. As the auto-initiate feature is implemented in the host, this is where we have to deal with that error.
The other is where the phy update initiates without error. Here you could argue that the controller should do any necessary retry, and just delay the "complete" notification to host.

@mtpr-ot Is the problem that the DLE procedures is not done, or that the auto-phy update does not end up with the PHY that you wanted?
I think the solution to the problem of the DLE procedure is to remove this initiation of the procedures one at a time and submit them all to the controller insetad (like DLE and conn-param-update-request). The controller should be able to handle them all as pending now AFAIK.

@mtpr-ot Is the problem that the DLE procedures is not done, or that the auto-phy update does not end up with the PHY that you wanted?
I think the solution to the problem of the DLE procedure is to remove this initiation of the procedures one at a time and submit them all to the controller insetad (like DLE and conn-param-update-request). The controller should be able to handle them all as pending now AFAIK.

@mtpr-ot Is the problem that the DLE procedures is not done, or that the auto-phy update does not end up with the PHY that you wanted?
See #31473. Both are problems causing instrument malfunction for us. There are workarounds to be implemented at app level, but until convinced of otherwise, I think the issues should fixed within the host- and/or controller.

@mtpr-ot Is the problem that the DLE procedures is not done, or that the auto-phy update does not end up with the PHY that you wanted?
See #31473. Both are problems causing instrument malfunction for us. There are workarounds to be implemented at app level, but until convinced of otherwise, I think the issues should fixed within the host- and/or controller.

@mtpr Can you please check if the issue you described is actually happening on current master, there has been many changes to the LLCP procedures since 2.2.1 I think. BT_HCI_ERR_CMD_DISALLOWED should not happen anymore, if it does it should be handled in the controller in my opinion.
Since the controller can handle multiple LLCP procedures pending the sequential initiation of the control procedures could be removed.

@mtpr Can you please check if the issue you described is actually happening on current master, there has been many changes to the LLCP procedures since 2.2.1 I think. BT_HCI_ERR_CMD_DISALLOWED should not happen anymore, if it does it should be handled in the controller in my opinion.
Since the controller can handle multiple LLCP procedures pending the sequential initiation of the control procedures could be removed.

@mtpr Can you please check if the issue you described is actually happening on current master
It does. It can be observed with this commit in simulation test basic_conn_split.sh. The test as is has a "Different Transaction Collision", and retry fails a couple of times with "disallowed" after that.
@cvinayak, what is your comment to changing the controller to defer instead of returning "disallowed"?

@mtpr Can you please check if the issue you described is actually happening on current master
It does. It can be observed with this commit in simulation test basic_conn_split.sh. The test as is has a "Different Transaction Collision", and retry fails a couple of times with "disallowed" after that.
@cvinayak, what is your comment to changing the controller to defer instead of returning "disallowed"?

@mtpr-ot

what is your comment to changing the controller to defer instead of returning "disallowed"?

Identified a bug in controller that prevented PHY update from being cached. Have no sent https://github.com/zephyrproject-rtos/zephyr/pull/31570 to remove returning disallowed.

@mtpr-ot

what is your comment to changing the controller to defer instead of returning "disallowed"?

Identified a bug in controller that prevented PHY update from being cached. Have no sent https://github.com/zephyrproject-rtos/zephyr/pull/31570 to remove returning disallowed.

@mtpr-ot

what is your comment to changing the controller to defer instead of returning "disallowed"?

Identified a bug in controller that prevented PHY update from being cached. Have now sent #31570 to remove returning disallowed.

With that merged, can we close #31473 ?

@mtpr-ot

what is your comment to changing the controller to defer instead of returning "disallowed"?

Identified a bug in controller that prevented PHY update from being cached. Have now sent #31570 to remove returning disallowed.

With that merged, can we close #31473 ?

With that merged, can we close #31473 ?

We still need a fix for the "Different Collision Procedure".

With that merged, can we close #31473 ?

We still need a fix for the "Different Collision Procedure".

@mtpr-ot will you follow-up with this PR so we can close  #31473?

@mtpr-ot will you follow-up with this PR so we can close #31473?

With the solution deemed outside of host responsibility, we need a controller solution. This PR will not cover that, so I'm closing this PR.


Error when Clicking on a Textbox

Hey Michael,
I finally got time to use this life-saving extension and I encountered an error I don't understand. 🤔
When I click in one of my text boxes I get this error:
############################################################################################
ERROR in
action number 1
of Create Event
for object obj_global_3:

Unbalanced surface stack. You MUST use surface_reset_target() for each set.############################################################################################

I looked everywhere in the included obj_emu_demo for surface_reset_target() and it is never referenced so I don't know what's happening.
This is how I'm adding the textbox, if it helps:
tab_newtask.AddContent([
	new EmuText(32, EMU_AUTO, 512, 32, "New Task"),
	new EmuTextbox_H(32, EMU_AUTO, 512, 32, "Title:", task_new.title, "Empty", 32, E_InputTypes.STRING, function()
		{ task_new.title = value })
]);

Hope you can help me with this. I'm enjoying this extension so far! 😄
Cheers,
Posho

Interesting. The input rectangles are each their own surface (this makes it easier to do things like keep text from spilling out-of-bounds and looking bad), but they should handle themselves without any outside interference. Does this happen when you do something specific, or for any and all input boxes?

Any input box. I've been using EmuTextbox_H just as you use them in the demo. They draw fine but as soon as I click it it crashes.

Poked around a bit, nothing stood out. Could you send an example project?

Oh, I see what's going on. The callback methods run in the scope of the instance they've been attached to, which in this case would be the text box. I'm not sure why yours was complaining about the surface stack (I just got Variable EmuTextbox_H.task_new(100408, -2147483648) not set before reading it), but the variable task_new doesn't exist in the scope of the function because that's already the struct that's running the code - imagine using the with() statement on an instance in old GameMaker.
GameMaker allows you to define instance variables anywhere so you can always just attach your own variables to the text box:
// New Task Tab
var textbox = new EmuTextbox_H(32, EMU_AUTO, 512, 32, "Title:", task_new.title, "Empty", 32, E_InputTypes.STRING, function() { task.title = value; });
textbox.task = task_new;

tab_newtask.AddContent([
    new EmuText(32, EMU_AUTO, 512, 32, "New Task"),
    textbox,
]);

There are some other things you can do like making task_new globally accessible but that's probably the most straightforward.

Ooh, it makes sense. Thank you so much for your troubles!


v1 auth has been disabled

The v1 authentication has been disabled, and now only v2 is usable. http://help.clarifai.com/api/transitioning-from-our-v1-to-our-v2-api
Would love to use this gem, it has by far the best documentation. Will you be updating the gem to support v2?

Howdy there cool cat! We will be taking this library down now with the deprecation. I'd love for you to however see another community Ruby Gem that was made here. I think that it can be better equipped for your needs as supports API Keys! Hope this helps @gregschwartz!


Fix #4131 - [DO NOT MERGE] - JSON Connection - Add required fields

Describe your changes :

Fix #4131
As most dbs support some sort of passwordless connection, I just added hostPort and username by default.
Please, take a look and check if I am not missing any important fields for snowflake or bigquery, which are a bit different than the rest.
Thanks

Type of change :

[x] Bug fix
[x] Improvement
[x] New feature
[] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[] Documentation

Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

Checking py-tests issues 🤔

Configs being all detected as metadata.generated.schema.entity.services.connections.database.deltaLakeConnection.DeltaLakeConnection. Checking


Update sonarcloud properties file

Hi mitreattack-python team!
Please review a small PR aiming to update sonarcloud properties file:

Remove Python versions 3.6, 3.7 (deprecated versions)
Add Python 3.11

Thank you!

Thanks for the contribution!


Using multi stage build to keep the docker image clean

https://docs.docker.com/develop/develop-images/multistage-build/

Pull Request Test Coverage Report for Build 514

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.348%

Totals

Change from base Build 512:
0.0%

Covered Lines:
5793

Relevant Lines:
5831

💛  - Coveralls


[Bug]: Cannot import name 'ServiceContext' from 'llama_index.core' (unknown location)

Bug Description
I installed llamaIndex 0.10.7 and followed the quick start tutorial, but it cannot import any modules from llama_index or llama_index.core.
ImportError: cannot import name 'VectorStoreIndex' from 'llama_index' (unknown location)
Version
0.10.7
Steps to Reproduce
import step
Relevant Logs/Tracbacks
No response

@dosu-bot. It works after I upgraded llama-index to 0.10.10, but another Error raised if I want to import NebulaGraphStore as follow:
from llama_index.graph_stores.nebula import NebulaGraphStore
ModuleNotFoundError: No module named 'llama_index.graph_stores'

Do you have a file or folder named "llama_index" ? If so, rename it.
If not, please start with a fresh venv
In a new terminal
pip uninstall llama-index  # ensure any global install is removed
python -m venv my_venv
source my_venv/bin/activate
pip install llama-index

@SuperYG1991 Also, you can install nebula
pip install llama-index-graph-stores-nebula

from llama_index.graph_stores.nebula import NebulaGraphStore

Its mentioned in the docs here
https://docs.llamaindex.ai/en/stable/examples/index_structs/knowledge_graph/NebulaGraphKGIndexDemo.html
As part of v0.10.x all integrations are their own pip packages
You can find specific packages on https://llamahub.ai

Do you have a file or folder named "llama_index" ? If so, rename it.
If not, please start with a fresh venv
In a new terminal
pip uninstall llama-index  # ensure any global install is removed
python -m venv my_venv
source my_venv/bin/activate
pip install llama-index

Tried this but does not work.

@AI-Aether this has worked for every other person so far 😅
The upgrade to v0.10.x introduces namepsaced packages. Any remnants of the previous install may cause issues.
Please double check you followed that exactly. Furthermore, import paths have changed slightly if you have old code.
https://pretty-sodium-5e0.notion.site/v0-10-0-Migration-Guide-6ede431dcb8841b09ea171e7f133bd77
All our notebooks and docs are updated. It works in a fresh google colab as well.
If there is a more specific error I'm happy to help.

🤖
Hey @SuperYG1991, fancy seeing you here again! Hope you're doing well.
Based on the information you've provided and the similar issues I found in the LlamaIndex repository, it seems like you might be encountering an import error due to a missing or improperly installed package.
One of the common solutions to this problem, as suggested in the import error issue, is to uninstall and then reinstall the llama-index package. You can do this by running the following commands in your terminal:
pip3 uninstall llama-index
pip3 install llama-index --upgrade --no-cache-dir --force-reinstall

This solution has received a high number of positive reactions and has been confirmed to resolve similar issues by multiple users.
Another possible reason for the import error could be the absence of the 'langchain' module. The 'llama_index' or 'llama_index.core' modules are trying to import 'langchain', and if it's not found, an ImportError is raised. To resolve this issue, you should install the 'langchain' module by running the following command in your terminal:
pip install llama_index[langchain]

This command tells pip to install the 'llama_index' package and also the optional 'langchain' dependency. After running this command, you should be able to import modules from 'llama_index' or 'llama_index.core' without any issues. You can find more information about this in the llama-index-core/llama_index/core/langchain_helpers/init.py file.
If these solutions do not resolve your issue, could you please provide more information about your environment? Specifically, the Python version you're using, your operating system, and any other relevant details would be helpful.
Sources
* [[Question]: import error](https://github.com/run-llama/llama_index/issues/10621)

* [[Bug]: ImportError: cannot import name 'VectorStoreIndex' from 'llama_index.core'](https://github.com/run-llama/llama_index/issues/10928)

* [ImportError: cannot import name 'SQLDatabase' from 'llama_index.core' (unknown location)[Bug]: ](https://github.com/run-llama/llama_index/issues/10646)

* [llama-index-core/llama_index/core/langchain_helpers/**init**.py](https://github.com/run-llama/llama_index/blob/main/llama-index-core/llama_index/core/langchain_helpers/__init__.py)

About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.

I am running llama_index version 0.10.18 and getting the error  `ImportError: cannot import name 'ServiceContext' from 'llama_index' (unknown location)
Traceback:
File "C:\Users\shahs10\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in _run_script
exec(code, module.dict)
File "D:\family stuff\neculai ifantana fiverr\ChatGPT-RAG-Chatbot\ChatGPT-RAG-Chatbot-main\app.py", line 3, in
from llama_index import ServiceContext, Document`
Tried many times uninstalling and reinstalling but not resolved. and there is no other file or folder with same name.

I encountered the same error but then I changed from llama_index import ServiceContext to from llama_index.core.indices.service_context import ServiceContext and now it works!

@Nela62 this also solved the problem for me. Thanks!

pydantic.errors.PydanticUserError: If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. Note that @root_validator is deprecated and should be replaced with @model_validator.
how to solve this problem?

same issue arise : ImportError: cannot import name 'ServiceContext' from 'llama_index' (unknown location)
llama version - 0.10.65
python version - 3.12.4
running in vscode and using conda environment for package management.
code below
from llama_index import ServiceContext, LLMPredictor, OpenAIEmbedding, PromptHelper
from llama_index.llms import OpenAI
from llama_index.text_splitter import TokenTextSplitter
from llama_index.node_parser import SimpleNodeParser
from llama_index.core import ServiceContext
import tiktoken
llm = OpenAI(model='gpt-3.5-turbo', temperature=0, max_tokens=256)
embed_model = OpenAIEmbedding()
text_splitter = TokenTextSplitter(
separator=" ",
chunk_size=1024,
chunk_overlap=20,
backup_separators=["\n"],
tokenizer=tiktoken.encoding_for_model("gpt-3.5-turbo").encode
)
node_parser = SimpleNodeParser.from_defaults(
text_splitter=text_splitter
)
prompt_helper = PromptHelper(
context_window=4096,
num_output=256,
chunk_overlap_ratio=0.1,
chunk_size_limit=None
)
service_context = ServiceContext.from_defaults(
llm=llm,
embed_model=embed_model,
node_parser=node_parser,
prompt_helper=prompt_helper
)
documents = SimpleDirectoryReader(input_dir='C:/Users/LaksmanP/A_myfolder/LlamaIndex/project_1/data').load_data()
index = VectorStoreIndex.from_documents(
documents,
service_context = service_context
)
index.storage_context.persist()
query_engine = index.as_query_engine(service_context=service_context)
response = query_engine.query("What is HNSW?")
print(response)

@LaksLaksman your imports are all out of date my friend
V0.10.x switched to every integration being a namespaced package
from llama_index.core import ServiceContext, LLMPredictor, OpenAIEmbedding, PromptHelper
from llama_index.llms.openai import OpenAI
from llama_index.core.text_splitter import TokenTextSplitter
from llama_index.core.node_parser import SimpleNodeParser

Please do read the latest docs for latest usage. SimpleNodeParser hasn't been used for ages (its an alias for SentenceSplitter now), and both LLMPredictor and ServiceContext are deprecated for a few months now.

Hello,
i have swited to started using Gpt 4o Mini, and when i am trying to switch to llama index 0.10 and above, error
ImportError: cannot import name 'ServiceContext' from 'llama_index' (unknown location)
Now, when i went trough the migration code , but seems incomplete,
https://docs.llamaindex.ai/en/stable/module_guides/supporting_modules/service_context_migration/#complete-migration
can you please help me with this? How should i migrate,
my cod looks like below
def get_vector_index(self):
    llama_vector_store = self._get_llama_vector_store()

    logger.info("initializing retrievers")
    # ----- Initialize azure openai and LLM´s -----
    llm_gpt3 = get_lang_llm_gpt3()
    embedding_engine = get_lang_embeddingobject()
    # ----- Set up the ServiceContext for the Llama index -----
    logger.info("Setting service context for the Llama index")
    service_context = ServiceContext.from_defaults(
        llm=LangChainLLM(llm_gpt3),
        embed_model=LangchainEmbedding(embedding_engine),
    )
    set_global_service_context(service_context)
    # ----- Initialize retriever  -----
    vector_index = VectorStoreIndex.from_vector_store(llama_vector_store, service_context=service_context)

    return vector_index


Expose isAudioMuted

Useful for checking for checking the state of microphone

Hey @moham96, thanks for your PR.
Two notes:

From the name of the variable it is not clear which audio track is muted (microphone or screen share audio). So if we include it, it should be more descriptive e.g. isMicrophoneMuted.
Did you know that you could achive the same result if you use the returned microphone publication and call isMuted() on it?

const { microphonePublication } = useParticipant(participant);
const isMicrophoneMuted = microphonePublication.isMuted();

Link to the docs
I would argue not to include it also because we will be deprecating the package in the not-too-distant future in favor of the new LiveKit Components package.

@moham96 if the solution outlined by @Ocupe doesn't work for you, let us now! closing as not planned for now


Return PortId information in query_channels

Closes: #840
Description
Before:
$ hermes query channels ibc-0
Success: [
    ChannelId(
        "channel-0",
    ),
]

After:

$ hermes query channels ibc-0
Success: [
    (
        ChannelId(
            "channel-0",
        ),
        PortId(
            "transfer",
        ),
    ),
]

_
For contributor use:

[ ] Updated the Unreleased section of CHANGELOG.md with the issue.
[ ] If applicable: Unit tests written, added test to CI.
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[x] Updated relevant documentation (docs/) and code comments.
[x] Re-reviewed Files changed in the Github PR explorer.

This change is

Codecov Report

Merging #861 (bdae0ab) into master (615649a) will decrease coverage by 0.0%.
The diff coverage is 0.0%.

:exclamation: Current head bdae0ab differs from pull request most recent head dfb2e1d. Consider uploading reports for the commit dfb2e1d to get more accurate results

@@           Coverage Diff            @@
##           master    #861     +/-   ##
========================================
- Coverage    43.5%   43.5%   -0.1%
========================================
  Files         170     170
  Lines       12641   12644      +3
========================================
  Hits         5507    5507
- Misses       7134    7137      +3

Impacted Files
Coverage Δ

relayer/src/chain.rs
0.0% <ø> (ø)

relayer/src/chain/cosmos.rs
0.0% <0.0%> (ø)

relayer/src/chain/mock.rs
63.9% <0.0%> (ø)

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 615649a...dfb2e1d. Read the comment docs.

I have added a PortChannelId type to bundle together PortId and ChannelId and have its own JSON serialization. I will create a separate PR to work on #745 to refactor other uses of (PortId, ChannelId) to PortChannelId.


It is signed

Check out this link: https://docs.github.com/authentication/managing-commit-signature-verification/about-commit-signature-verification You'll notice that this commit does not have the "Verified" tag.

Your contributing guide says I need to "sign-off" commits, not GPG-sign them. Are you sure you are not confusing those?


Remove unused import in chield config

The unused import from chield config will break the the build script.
How to reproduce the error.

yarn create adonis-ts-app hello-world

Select the project structure -> web
For the rest options simple ENTER

cd hello-world
yarn build

Types of changes
What types of changes does your code introduce?

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[x] I have read the CONTRIBUTING doc
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have added necessary documentation (if appropriate)

ping @thetutlage
fixes #39

Thanks!


OS: Window 10, Internet Explorer 11 heatmap not rendering at all.

On OS: Window 10 in browser: Internet Explorer 11
heatmap is not rendering at all.

Fixed with adding babel-polyfill as a dependencie in project package.json.

Hey, I've added PR with that change #70

This might be due to the use of ES6 Array.from which doesn't seem to be supported by IE. If this bit of code is switched to use ES5 or lodash.range or just-range, I suspect that IE11 will work again. Need to test  out this hypothesis though.

This should be fixed with v1.8.1 - I've verified in IE11/Win8 with VirtualBox at https://www.kevinqi.com/react-calendar-heatmap. Please reopen if there's still an issue.


[2267] Temporarily remove course counts from organisations page

Remove counts to avoid confusing users with incorrect numbers.
We should fix this properly in the backend:
https://trello.com/c/9EcGLugq/2267-course-counts-on-organisation-list-show-the-wrong-number-of-courses

 Course counts on organisation list show the wrong number of courses


Setup project configuration

Added setup.py for package configuration and installation.
Added setup.cfg with metadata and configuration options.
Added .gitignore to exclude unnecessary files and directories from the repository.

recheck


Pin cudf dependencies during build

Closes #1666.  This restores the changes from #1877 and updates the rapids-cmake version to avoid the issue reported in NVIDIA/spark-rapids#10627.

build

Verified RAPIDS Accelerator zstd tests pass with this build.

Does this mean we always pin, and we have to manually upgrade after a while?

No.  There's two modes to the build.  The default is to use the pinned versions, but the submodule sync build, which automatically runs every few hours, will build in a mode that updates the pinned versions file to whatever versions it finds when it moves to the updated cudf version.  See https://github.com/NVIDIA/spark-rapids-jni/pull/1901/files#diff-a4b52f1881e34609ce5cd5e0722da2f2f708d1eef03334723a5628082fe94d31

I just realized I should update this PR to refresh the pin versions, since it's been almost a week since those were updated in this PR.  Should have that updated shortly.

build

@jlowe This is awesome! I'm really glad this approach worked out.

Thank @bdice, but all the credit goes to @robertmaynard for the idea and implementation.


fix: ignore failing tests for the moment

Codecov Report

Merging #171 (d9da1a9) into master (ee7bc7f) will decrease coverage by 8.99%.
The diff coverage is 90.28%.

@@            Coverage Diff             @@
##           master     #171      +/-   ##
==========================================
- Coverage   93.84%   84.85%   -8.98%
==========================================
  Files          16       23       +7
  Lines         146      231      +85
  Branches        1        7       +6
==========================================
+ Hits          137      196      +59
- Misses          9       35      +26

Impacted Files
Coverage Δ

...3/org/apache/spark/SparkContextCompatibility.scala
0.00% <0.00%> (ø)

core/src/main/scala/zio/spark/rdd/package.scala
50.00% <0.00%> (-50.00%)
:arrow_down:

.../src/main/scala-2.13/zio/spark/sql/implicits.scala
35.00% <75.00%> (ø)

...e/src/main/scala/zio/spark/effect/CircuitTap.scala
88.89% <88.89%> (ø)

...ain/scala/zio/spark/effect/CancellableEffect.scala
91.67% <91.67%> (ø)

...n/scala-2.13/org/apache/spark/sql/Sniffer213.scala
100.00% <100.00%> (ø)

...scala-2.13/zio/spark/sql/ExtraDatasetFeature.scala
100.00% <100.00%> (ø)

...-2.13/zio/spark/sql/ExtraSparkSessionFeature.scala
100.00% <100.00%> (ø)

...rc/main/scala/zio/spark/effect/MapWithEffect.scala
100.00% <100.00%> (ø)

core/src/main/scala/zio/spark/rdd/RDD.scala
100.00% <100.00%> (ø)

... and 7 more

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 f552e09...d9da1a9. Read the comment docs.


Bug: transloco-keys-manager find cannot process files with new control flow (angular 17)

Is there an existing issue for this?

[X] I have searched the existing issues

Is this a regression?
No
Current behavior
Angular v17 introduces a new built-in control flow syntax that isn't recognized by the transloco-keys-manager find method.
Expected behavior
@if (a > b) {
  {{ t('a') }}
}

shoud not be handled as missing key.
as soon as the new control flow is added to a file, the entire file is processed wrongly (all keys are ignored) and not just the part in the new control flow. my guess is the code crashes with the new syntax but could not locate the issue in the code
Please provide a link to a minimal reproduction of the bug
N/A
Transloco Config
No response
Debug Logs
No response
Please provide the environment you discovered this bug in
Transloco: 6.0.4
Transloco Keys Manager: 3.8.0
Angular: 17.3.4
Node: 20.10.0
Package Manager: npm 10.2.3
OS: Windows 10 (22H2)

Additional context
No response
I would like to make a pull request for this bug
No

@lkuendig you are not using the latest version.
Please update your dependency to @jsverse/transloco-keys-manager


Update permissions to allow non-main push access from the public

Individuals can't create reviewable pull requests without this access

To contribute we will be using the fork and pull method. You can fork the repository, make your changes, and submit a pull request. We will review and merge your changes as soon as possible. You can also comment on other people's pull requests or submit issues. For further information on how to contribute please refer to the contributing guidelines document that will be on GitHub later today.


Docs improvements

Rectify typographical inaccuracies
This PR addresses several typographical errors across various files in the project. The changes improve readability and maintain the professional standard of the documentation and code comments.
Justification
Typographical errors, while minor, can detract from the overall quality of the project. Correcting these errors ensures clarity and professionalism, making the project more accessible and understandable for current and future contributors.

Hi, per the README please redo these changes against https://github.com/AztecProtocol/aztec-packages

done


Rakefile and irbrc ruby matching (and remove Gemfile.lock)

Interestingly it has tests to match Rakefile and has a Rakefile sample but it's not in the ruby's filenames list. And .irbrc (like .pryrc) is better suited as a filename than a file extension

Examples of .irbrc: https://github.com/search?q=irbrc&ref=searchresults&type=Commits&utf8=✓
Examples of .pryrc: https://github.com/search?utf8=✓&q=pryrc&type=Commits&ref=searchresults
Gemfile.lock has its own format https://github.com/search?utf8=✓&q=Gemfile.lock&type=Commits&ref=searchresults

@arfon @pchaigno What do you think?


[5.1] Optimize loading of relationships

Related issue #5289
For certain results it's pretty easy to tell that they will and should not yield any results. For example a BelongsTo relationship where the foreign key value is null. This PR adds a mustBeEmpty flag which is set when the constraints make it clear that there's no result to expect. If that's the case the DB will not be hit but null or an empty Collection is returned directly.

:+1:

:+1:

Holding off on this.

+1
This breaks the database when UUIDs are used for primary keys since it triggers the bad string representation error (where id in (0)) is created.

+1
Why wasn't this accepted?


Missing code examples - share ETA pls

Looking for code examples to do CRUD functionality using operationType: 2
Documentation is missing this. When can we expect that?
The below comment says we can do that but I see only 0 & 1 examples for Action & Function respectively.
operationType: 1, // This is a function. Use '0' for actions and '2' for CRUD

Any update on this? I am looking to do a N-N linking and I guess the only way to do is to use this option (2-CRUD). Does it even work? If yes how to use it.


Add WHOIS data

Add WHOIS server data for all IP ranges, ASNs and domains.

TLDs are done as of https://github.com/bitcynth/whois-v2/commit/e1ee42d87f360f5978404f2b241193dfade8cedb


Revamped Key Vault Administration Javadocs

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-security-keyvault-administration

Merging blocked until https://github.com/Azure/autorest.java/issues/2321 is resolved.
We could also merge all the changes other than those for the package-info.java... What do you think @g2vinay?

/azp run java - keyvault - ci


Speeding up secure training with non-linear computation in linear networks

See here for context.
The basic idea here is to try to train a deep linear network with evolutionary strategies, similarly to how it's done in the post above. Clearly, the experiments there leave much to be desired, but having some code for the approach seems like a reasonable first step. The nonlinearity should be derived from Pond's fixed-point representation instead of the float32 mentioned in the post, which means the scalar will need to be tweaked to ensure activations end up in the proper nonlinearity range.

Cool post, but I doubt it may be only useful in plaintext?
After all, the secret-shared values contain no information of whether the plaintext value is near "min" or not :/

The secret-shared tensors don't (e.g. PondTensor), but the underlying fixed-point precision tensors do (e.g. Int64Tensor). min can be determined from the parameters specified in FixedPointConfig


[CRASH] (Enter your description here)

Please confirm these before moving forward.

[X] I have tried deleting a folder named UniGetUI under %UserProfile%\AppData\Local\UniGetUI.
[X] I have tried reinstalling UniGetUI.
[X] I have tested that this issue has not been fixed in the latest (beta or stable) release.

Describe your crash
BOOTING UP THE PC
Logs (if possible)
OS: Win32NT
                   Version: Microsoft Windows NT 10.0.19045.0
           OS Architecture: True
          APP Architecture: True
                  Language: Unknown
               APP Version: 3.1.2
                Executable: C:\Users\NEW PC\AppData\Local\Programs\UniGetUI\UniGetUI.exe

Crash Message: The text associated with this error code could not be found.

Failed to assign to property 'UniGetUI.Interface.Widgets.TranslatedTextBlock.Text'. [Line: 0 Position: 0]

Crash Traceback:
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|38_0(Int32 hr)
   at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.LoadComponent(IObjectReference _obj, Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
   at Microsoft.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
   at UniGetUI.Interface.MainWindow.InitializeComponent() in C:\SomePrograms\WingetUI-Store\src\UniGetUI\obj\x64\Release\net8.0-windows10.0.22621.0\win-x64\MainWindow.g.i.cs:line 71
   at UniGetUI.Interface.MainWindow..ctor() in C:\SomePrograms\WingetUI-Store\src\UniGetUI\MainWindow.xaml.cs:line 57
   at UniGetUI.MainApp.InitializeMainWindow() in C:\SomePrograms\WingetUI-Store\src\UniGetUI\App.xaml.cs:line 169
   at UniGetUI.MainApp..ctor() in C:\SomePrograms\WingetUI-Store\src\UniGetUI\App

More details
NOPE

Please upgrade to version 3.1.3


Syntax Error during amplify add function

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
20,9.0
Amplify CLI Version
12.8.2
What operating system are you using?
Ubuntu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
When adding a function, I get the error:  🛑 Syntax Error: Expected Name, found ")".
vscode ➜ /workspaces/gene-panel-api/project  $ amplify add function
? Select which capability you want to add: Lambda function (serverless function)
? Provide an AWS Lambda function name: lockPanelTranscripts
? Choose the runtime that you want to use: Python
Only one template found - using Hello World by default.
✅ Available advanced settings:

Resource access permissions
Scheduled recurring invocation
Lambda layers configuration
Environment variables configuration
Secret values configuration

? Do you want to configure advanced settings? Yes
? Do you want to access other resources in this project from your Lambda function? Yes
? Select the categories you want this function to have access to. storage
🛑 Syntax Error: Expected Name, found ")".
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
Session Identifier: f7c6b1db-7017-40ca-9bf7-cd79df1f6643
✅ Report saved: /tmp/genepanelapi/report-1701123281320.zip
✔ Done
Project Identifier: 936a978c6db7613db2c7925c5142c3e6
Expected behavior
amplify add function works as expected OR Syntax Error gives an indication of where the error occurs.
Reproduction steps
I haven't tried a minimal reproduction.
Project Identifier
936a978c6db7613db2c7925c5142c3e6
Log output

# Put your logs below this line

Additional information
No response
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Found the syntax error about two seconds after I posted the issue.


[Core] Support watchOS lifecycle notifications

Context
Lifecycle notifications have not been observed on watchOS so watchOS heartbeats are not created.
The WKApplicationDidBecomeActiveNotification notification that is being observed it only available on watchOS 7.0+.
Our SPM distribution has watchOS 7.0 as the minimum version but our CocoaPods specs have 6.0.
In an effort to maintain compatibility with watchOS 6.0, this PR adds support for the following behavior:

On watchOS 7.0+, heartbeats are captured when the WKApplicationDidBecomeActiveNotification is fired.
On watchOS 6.0, heartbeats are captured on app configuration. This is triggered by the already existing kFIRAppReadyToConfigureSDKNotification notification.

#no-changelog

I'm going to do a round of manual testing in an actual app before merging. Just to double check everything is as expected.

I manually tested the following cases:

WKApplicationDidBecomeActiveNotification was available and used
WKApplicationDidBecomeActiveNotification was not available and kFIRAppReadyToConfigureSDKNotification was used instead

Both cases successfully triggered the logging of a heartbeat.


package.json

updates the react and react-dom version to latest version of react.

kindly update the react and react-dom version to ^16.2.0.


Reference ranges show the text in the scripture viewer

When a reference range in TSV7 refers to multiple verses it needs to display the text of all of those verses.  Notes with reference ranges should function as normal - editing the range to be a single verse reference, editing a single reference to be a range, creating a new note with a reference range, and highlighting.
A spike was done on this #718
DoD:
If there is a reference range in the reference field then all the verses in the range should be displayed and the note should have all of the functionality of a single reference note.
Details
Here's the mockup for gatewayEdit. tC Create should be similar.

There is a JSON file with the verses per chapter per book in tc-create.
See /src/core/bcv.json

This is blocked by #1438

translationCore Create - v1.8 build 192-d709261. Works fine and looks good. Tested also with #1438 where user can enter a verse range.


Rename README.md to T M-pkg-README.md

Termux-Megapackage

      All In One Package For Termux

This is official repository maintained by us
 @Bhavik_Tutorials ❤
 You can check youtube✌

What is Megapackage??
Its Hard to Install Every Huge Tool like Metasploit, Kali Nethunter Rootless and Other Neccesarry Tools Together in Click. So We Thought to Build a Package where you Guys Can Install all this Just in Click But thats not only Feature of this Megapackage. We guys also have include a GodeMode(Termux-Black) Which Slightly reduce the error of unlocated package because of little change in sources.list Which make this Termux-Megapackage as Good as Heaven for Termux User.
Installation Termux-Megapackage

Commands for termux

$ termux-setup-storage

$ pkg update && pkg upgrade && pkg install git -y

$ git clone https://github.com/Bhaviktutorials/Termux-Megapackage

$ ls

$ cd Termux-Megapackage

Passed Review


Enhance open api capabilities

Add get single item interface
Allow passing the appendNamespacePrefix flag when creating public namespaces

Codecov Report

Merging #1704 into master will decrease coverage by 0.01%.
The diff coverage is 44.44%.

@@             Coverage Diff              @@
##             master    #1704      +/-   ##
============================================
- Coverage     48.72%   48.71%   -0.02%
- Complexity     1909     1911       +2
============================================
  Files           392      392
  Lines         11551    11576      +25
  Branches       1210     1214       +4
============================================
+ Hits           5628     5639      +11
- Misses         5480     5490      +10
- Partials        443      447       +4

Impacted Files
Coverage Δ
Complexity Δ

...ork/apollo/openapi/client/ApolloOpenApiClient.java
52.94% <0%> (-1.06%)
4 <0> (ø)

...k/apollo/openapi/v1/controller/ItemController.java
2.38% <0%> (-0.12%)
1 <0> (ø)

...llo/openapi/v1/controller/NamespaceController.java
3.33% <0%> (ø)
1 <0> (ø)
:arrow_down:

...enapi/client/exception/ApolloOpenApiException.java
100% <100%> (ø)
2 <1> (+1)
:arrow_up:

...mework/apollo/openapi/dto/OpenAppNamespaceDTO.java
55% <25%> (-7.5%)
7 <0> (ø)

...llo/openapi/client/service/ItemOpenApiService.java
67.41% <50%> (-3.82%)
6 <1> (+1)

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 5d67ce6...aee5f9b. Read the comment docs.

Coverage increased (+0.02%) to 52.574% when pulling aee5f9b4a472be2a11f895eb686cfb6c3a971138 on nobodyiam:open-api-enhancement into 5d67ce64a354869096c38989c68b02b165204b60 on ctripcorp:master.


Cannot add integration to HA using Fox Cloud

Description
Getting error message "Error - please check username and password" when trying to add the integration to HA using HACS at the Fox Cloud credential step.
(No configuration is saved because the failure happens during the wizard, so cannot provide the configuration - but the error is reproducible easily.)
Attempted to add this config to get debug logs, but did not seem to be very effective:
logger:
  default: info
  logs:
    custom_components.foxess_em: debug

Version of the custom_component
v1.7.6n2
Configuration
#(Yaml configuration not applicable - cannot get this far to have any configuration as it fails during adding the integration)

Describe the bug
When adding the integration after HACS has downloaded it, the wizard loads, asking for Solcast API key.  The next selection is made: Fox Cloud.  All good so far, then after entering the credentials for Fox Cloud, it skips back to the credential screen saying that an error occurred.
In the HA > System > Logs section, this items appears at the top of the screen:
Logger: custom_components.foxess_em.config_flow
Source: custom_components/foxess_em/config_flow.py:287
Integration: FoxESS - Energy Management ([documentation](https://github.com/nathanmarlor/foxess_em), [issues](https://github.com/nathanmarlor/foxess_em/issues))
First occurred: 09:34:00 (1 occurrences)
Last logged: 09:34:00

'NoneType' object is not subscriptable

There are two other errors that only show up on the larger screen when you expand it.
Debug log

2023-05-14 09:33:47.524 DEBUG (MainThread) [custom_components.foxess_em.forecast] Retrieving available sites
2023-05-14 09:33:59.478 DEBUG (MainThread) [custom_components.foxess_em.fox] Logging into Fox Cloud
2023-05-14 09:33:59.478 DEBUG (MainThread) [custom_components.foxess_em.fox] Issuing request to (https://www.foxesscloud.com/c/v0/user/login) with params: {'user': '[redacted]', 'password': '[redacted]'}
2023-05-14 09:34:00.615 WARNING (MainThread) [custom_components.foxess_em.config_flow] 'NoneType' object is not subscriptable

Thanks, I think Fox have changed something relating to the login procedure. I'll have a look next week.


Enabling Duration Sorting in Admin

Annotates duration to the queryset that can be used for ordering within the admin. Will close issue #86. Further improvements can probably be made to use this field for the DurationFilter class, but this is just a simple change to allowing ordering.

Coverage decreased (-0.8%) to 90.417% when pulling 446fee9bed01be85b2a0275ae27bf368c780173d on msopko81:86-admin-sort-duration into 7fa5c2d2835520d8c920f3c103937ab292d9e545 on Tivix:master.


Remove CrystalIrc and add Crirc

CrystalIrc is now depreciated, because we rebuilt it from scratch (breaking changes) and named the new project Crirc.

Have you thought about building it on top of fast_irc.cr? I put a lot of work into that parser implementation, and you have put a lot of work into the semantics, perhaps putting both the projects together would benefit your project to get faster parsing, and my project to get more users to battle-test it.

I'll see

Ok it looks very interesting. Because of the last change (crystal_irc  -> crirc) the architecture could fit well with your lib.

@Nephos i'd write a PR myself but if you want to do it, it'd be a good test of the fast_irc documentation.

@hugoabonizio travis looks fine to me.

Ok I try fast_irc soon and ping you


A few missing steps

Hi there, when you uninstall it leaves behind 'Data' and 'MaData' in the install directory and these should be deleted (I assume...)
Also, should consider the scenario when you want SSO or a subset of the directory synchronised and hence an Express installation is not, on the face of it, sufficient

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

ID: 21e6e33d-deb6-268d-9e4d-cefe45ba82ca
Version Independent ID: 5238537b-7b91-ba1b-28f7-aad7882bf14e
Content: Move Azure AD Connect database from SQL Server Express to SQL Server.
Content Source: articles/active-directory/hybrid/how-to-connect-install-move-db.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@MCFHTAGENTS, Thanks for the feedback! We're taking a look into this and will get back to you soon.

@MCFHTAGENTS yes, once after u-installation you may need to remove the folders manually.  I do not understand your second concern why you feel express installation is not sufficient for SSO or directory synchronization ? I don't think these two are dependent on express installation.

I think it was having read https://docs.microsoft.com/en-gb/azure/security/azure-ad-choose-authn consciously choosing those settings was front of mind and being asked to do an express install sounded wrong. Having got this working now I realise a lot of that was stored on the database so didn't matter - would be reasuring to be told this.

@MCFHTAGENTS Thanks.  We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Fix installation on Debian distribution - e.g. unbound option auto-trust-anchor-file is provided two times

Unbound package on Debian provide two configuration file into path /etc/unbound/unbound.conf:
# cat /etc/unbound/unbound.conf.d/root-auto-trust-anchor-file.conf /etc/unbound/unbound.conf.d/qname-minimisation.conf
server:
    # The following line will configure unbound to perform cryptographic
    # DNSSEC validation using the root trust anchor.
    auto-trust-anchor-file: "/var/lib/unbound/root.key"
server:
    # Send minimum amount of information to upstream servers to enhance
    # privacy. Only sends minimum required labels of the QNAME and sets
    # QTYPE to NS when possible.

    # See RFC 7816 "DNS Query Name Minimisation to Improve Privacy" for
    # details.

    qname-minimisation: yes

Configuration files are provided on Stretch and Buster code-names.
I create additional files in this folder therefore i include all configuration files from it. Furthermore it would be unclear for maintainers when some configuration files aren't use.
Unbound linter is failing that the option is provided two times.
Info: Computing checksum on file /etc/unbound/unbound.conf
Info: /Stage[main]/Unbound/Concat[/etc/unbound/unbound.conf]/File[/etc/unbound/unbound.conf]: Filebucketed /etc/unbound/unbound.conf to puppet with sum 7b9cf83ef566e394b3f259ae7b0efc7d
Error: Execution of '/usr/sbin/unbound-checkconf /etc/unbound/unbound.conf20200207-19370-19euxcc' returned 1: [1581070261] unbound-checkconf[21052:0] error: trust anchor presented twice
[1581070261] unbound-checkconf[21052:0] error: could not parse auto-trust-anchor-file /var/lib/unbound/root.key line 2
[1581070261] unbound-checkconf[21052:0] error: error reading auto-trust-anchor-file: /var/lib/unbound/root.key
[1581070261] unbound-checkconf[21052:0] error: validator: error in trustanchors config
[1581070261] unbound-checkconf[21052:0] error: validator: could not apply configuration settings.
[1581070261] unbound-checkconf[21052:0] fatal error: bad config for validator module
Error: /Stage[main]/Unbound/Concat[/etc/unbound/unbound.conf]/File[/etc/unbound/unbound.conf]/content: change from '{md5}7b9cf83ef566e394b3f259ae7b0efc7d' to '{md5}022ad60bf8e6964d0a6fec9203cd205b' failed: Execution of '/usr/sbin/unbound-checkconf /etc/unbound/unbound.conf20200207-19370-19euxcc' returned 1: [1581070261] unbound-checkconf[21052:0] error: trust anchor presented twice
[1581070261] unbound-checkconf[21052:0] error: could not parse auto-trust-anchor-file /var/lib/unbound/root.key line 2
[1581070261] unbound-checkconf[21052:0] error: error reading auto-trust-anchor-file: /var/lib/unbound/root.key
[1581070261] unbound-checkconf[21052:0] error: validator: error in trustanchors config
[1581070261] unbound-checkconf[21052:0] error: validator: could not apply configuration settings.
[1581070261] unbound-checkconf[21052:0] fatal error: bad config for validator module

The issue is that option auto-trust-anchor-file is required see here. My idea is to make it optional then create additional configuration file which overrides the one from package. Alternative approach would be to purge unmanaged configuration files.

@b4ldr and / or @xaque208 please review #225.

i think this is fixed with you pr please re-open if not

Hi @b4ldr ,
Can you deploy a new version on forge.puppet.com pls?
BR

@findmyname666 2.6.0 has now been released to forge

@b4ldr i don't see it there :( could you double check pls?

@findmyname666
Version 2.6.0 released Feb 12th 2020
https://forge.puppet.com/puppet/unbound

@b4ldr oh sorry i was confused by https://forge.puppet.com/zleslie/unbound.

no worries https://github.com/xaque208/puppet-unbound/ has now been moved to voxpupuli.  xaque208 is also a member of voxpupli  and i think has moved some of there other modules to this project.


Fixing api.intersection() in apiutils.py

Fixing the problem of storing the results of intersection of two DRSs in the first DRS -- I use a temporary object to store the intersection without overwriting the original objects

Thanks for the fix. Did you check if the provenance remains after the change? Example:
Assume I have two DRS that come from two different search calls:
drsX = api.search("X")
drsY = api.search("Y")
Now I take the intersection:
drsIntersection = drsX.intersection(drsY)
Now, if I want to ask "why" or "how" (i.e., api.why(), api.how()) on the output of drsIntersection, I should see the origin is two different DRS that are intersected at some point, leading to the output.
The way it looks, I think it'll only show one of them, but I may be wrong. Could you verify please? Of course, ideally we'd do that new "unit test" in test_algebra.py

I can see the updated PR, but it comes with two unrelated commits on the function "from_metadata".

Will merge this pull with another one to update the drs.intersection(), drs.union() and drs.set_difference()


Failed to start backend with error 'table _alembic_tmp_apikey already exists'

Describe the bug
Hi Team, I have 2 different version of langflow installed (I have created 2 separate environments).
I have first created a v0.6.2 environment (through pip install) and that could run normally, and then I created another v0.5.12 environment (from local file with branch tag v0.5.12) and try to test on that version.
The v0.5.12 can work normally, but now the v0.6.2 cannot start the backend, either using command "langflow run", or directly "make backend".
The error seems happened during Alembic DB migration in code src/backend/langflow/alembic/env.py.
I have also tried to refetch the latest code (repo dev & v0.6.3) and rebuild, but the error still happens.
Browser and Version

Operation system: macOS 14.2 (23C64)
Browser: Chrome
Version: v0.6.2, v0.6.3

To Reproduce
I'm not sure how to reproduce that, as now on my local machine, even I clone a new repo and create a new python environment, the error can always happens (for v0.6.2, v0.6.3, dev)
Screenshots
The detailed error message is shown below:
Additional context
Detailed error messages have been attached as a file. Here is a part of the messages:

make install_backend
poetry install --extras deploy
Installing dependencies from lock file

No dependencies to install or update

Installing the current project: langflow (0.6.3)
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
make: [backend] Error 1 (ignored)
Running backend with autologin
LANGFLOW_AUTO_LOGIN=True poetry run langflow run --backend-only --port 7860 --host <IP_ADDRESS> --no-open-browser --env-file .env
[2023-12-26 14:46:56 +0800] [6745] [INFO] Starting gunicorn 21.2.0
[2023-12-26 14:46:56 +0800] [6745] [INFO] Listening at: http://<IP_ADDRESS>:7860 (6745)
[2023-12-26 14:46:56 +0800] [6745] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2023-12-26 14:46:56 +0800] [6746] [INFO] Booting worker with pid: 6746
[2023-12-26 14:46:56 +0800] [6746] [INFO] Started server process [6746]
[2023-12-26 14:46:56 +0800] [6746] [INFO] Waiting for application startup.
[12/26/23 14:46:56] INFO     2023-12-26 14:46:56 - INFO     - service - Alembic already initialized                                                                                service.py:142
                    INFO     2023-12-26 14:46:56 - INFO     - service - Running DB migrations in /Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic                                                                                service.py:144
(sqlite3.OperationalError) no such table: component
[SQL:
DROP TABLE component]
(Background on this error at: https://sqlalche.me/e/20/e3q8)
                    ERROR    2023-12-26 14:46:56 - ERROR    - utils - (sqlite3.OperationalError) table _alembic_tmp_apikey already exists                                                                                utils.py:205
                             [SQL:
                             CREATE TABLE _alembic_tmp_apikey (
                                     name VARCHAR NOT NULL,
                                     created_at DATETIME NOT NULL,
                                     last_used_at DATETIME,
                                     total_uses INTEGER NOT NULL,
                                     is_active BOOLEAN NOT NULL,
                                     id CHAR(32) NOT NULL,
                                     api_key VARCHAR NOT NULL,
                                     user_id CHAR(32) NOT NULL,
                                     PRIMARY KEY (id),
                                     CONSTRAINT uq_apikey_id UNIQUE (id),
                                     FOREIGN KEY(user_id) REFERENCES user (id)
                             )

                             ]
                             (Background on this error at: https://sqlalche.me/e/20/e3q8)Traceback (most recent call last):

                               File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/services/database/service.py", line 149, in run_migrations
                                 command.check(alembic_cfg)
                                 |       |     -> <alembic.config.Config object at 0x16ee31460>
                                 |       -> <function check at 0x16ee0fc10>
                                 -> <module 'alembic.command' from '/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/comma...

                               File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/command.py", line 290, in check
                                 script_directory.run_env()
                                 |                -> <function ScriptDirectory.run_env at 0x14ef6a940>
                                 -> <alembic.script.base.ScriptDirectory object at 0x16ee80850>
                               File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/script/base.py", line 583, in run_env
                                 util.load_python_file(self.dir, "env.py")
                                 |    |                |    -> '/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic'
                                 |    |                -> <alembic.script.base.ScriptDirectory object at 0x16ee80850>
                                 |    -> <function load_python_file at 0x14ee61e50>
                                 -> <module 'alembic.util' from '/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/util/__i...
                               File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 95, in load_python_file
                                 module = load_module_py(module_id, path)
                                          |              |          -> '/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic/env.py'
                                          |              -> 'env_py'
                                          -> <function load_module_py at 0x14ee61ee0>
                               File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 113, in load_module_py
                                 spec.loader.exec_module(module)  # type: ignore
                                 |    |      |           -> <module 'env_py' from '/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic/env.py'>
                                 |    |      -> <function _LoaderBasics.exec_module at 0x10268d550>
                                 |    -> <_frozen_importlib_external.SourceFileLoader object at 0x16ee80e80>
                                 -> ModuleSpec(name='env_py', loader=<_frozen_importlib_external.SourceFileLoader object at 0x16ee80e80>, origin='/Users/zitzhang...
                               File "<frozen importlib._bootstrap_external>", line 850, in exec_module
                               File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed

                               File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic/env.py", line 81, in <module>
                                 run_migrations_online()
                                 -> <function run_migrations_online at 0x16ee78550>

                               File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic/env.py", line 75, in run_migrations_online
                                 context.run_migrations()
                                 |       -> <function run_migrations at 0x14ef74550>
                                 -> <module 'alembic.context' from '/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/conte...

                               File "<string>", line 8, in run_migrations
                               File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/runtime/environment.py", line 948, in run_migrations
                                 self.get_context().run_migrations(**kw)
                                 |    |                              -> {}
                                 |    -> <function EnvironmentContext.get_context at 0x14ef6db80>
                                 -> <alembic.runtime.environment.EnvironmentContext object at 0x16ee809a0>
                               File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/runtime/migration.py", line 615, in run_migrations
                                 for step in self._migrations_fn(heads, self):
                                             |    |              |      -> <alembic.runtime.migration.MigrationContext object at 0x16ee80160>
                                             |    |              -> ('f5ee9749d1a6',)
                                             |    -> <function check.<locals>.retrieve_migrations at 0x16ee78670>
                                             -> <alembic.runtime.migration.MigrationContext object at 0x16ee80160>
                               File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/command.py", line 279, in retrieve_migrations
                                 revision_context.run_autogenerate(rev, context)
                                 |                |                |    -> <alembic.runtime.migration.MigrationContext object at 0x16ee80160>
                                 |                |                -> ('f5ee9749d1a6',)
                                 |                -> <function RevisionContext.run_autogenerate at 0x14ef2bd30>
                                 -> <alembic.autogenerate.api.RevisionContext object at 0x16ee809d0>
                               File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/autogenerate/api.py", line 570, in run_autogenerate
                                 self._run_environment(rev, migration_context, True)
                                 |    |                |    -> <alembic.runtime.migration.MigrationContext object at 0x16ee80160>
                                 |    |                -> ('f5ee9749d1a6',)
                                 |    -> <function RevisionContext._run_environment at 0x14ef2be50>
                                 -> <alembic.autogenerate.api.RevisionContext object at 0x16ee809d0>
                               File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/autogenerate/api.py", line 591, in _run_environment
                                 raise util.CommandError("Target database is not up to date.")
                                       |    -> <class 'alembic.util.exc.CommandError'>
                                       -> <module 'alembic.util' from '/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/util/__i...

                             alembic.util.exc.CommandError: Target database is not up to date.

                             During handling of the above exception, another exception occurred:

......

                             OperationalError: (sqlite3.OperationalError) table _alembic_tmp_apikey already exists
                             [SQL:
                             CREATE TABLE _alembic_tmp_apikey (
                                     name VARCHAR NOT NULL,
                                     created_at DATETIME NOT NULL,
                                     last_used_at DATETIME,
                                     total_uses INTEGER NOT NULL,
                                     is_active BOOLEAN NOT NULL,
                                     id CHAR(32) NOT NULL,
                                     api_key VARCHAR NOT NULL,
                                     user_id CHAR(32) NOT NULL,
                                     PRIMARY KEY (id),
                                     CONSTRAINT uq_apikey_id UNIQUE (id),
                                     FOREIGN KEY(user_id) REFERENCES user (id)
                             )

                             ]
                             (Background on this error at: https://sqlalche.me/e/20/e3q8)
[2023-12-26 14:46:57 +0800] [6746] [ERROR] Traceback (most recent call last):
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/services/database/service.py", line 149, in run_migrations
    command.check(alembic_cfg)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/command.py", line 290, in check
    script_directory.run_env()
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/script/base.py", line 583, in run_env
    util.load_python_file(self.dir, "env.py")
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 95, in load_python_file
    module = load_module_py(module_id, path)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 113, in load_module_py
    spec.loader.exec_module(module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic/env.py", line 81, in <module>
    run_migrations_online()
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic/env.py", line 75, in run_migrations_online
    context.run_migrations()
  File "<string>", line 8, in run_migrations
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/runtime/environment.py", line 948, in run_migrations
    self.get_context().run_migrations(**kw)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/runtime/migration.py", line 615, in run_migrations
    for step in self._migrations_fn(heads, self):
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/command.py", line 279, in retrieve_migrations
    revision_context.run_autogenerate(rev, context)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/autogenerate/api.py", line 570, in run_autogenerate
    self._run_environment(rev, migration_context, True)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/autogenerate/api.py", line 591, in _run_environment
    raise util.CommandError("Target database is not up to date.")
alembic.util.exc.CommandError: Target database is not up to date.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1969, in _exec_single_context
    self.dialect.do_execute(
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 922, in do_execute
    cursor.execute(statement, parameters)
sqlite3.OperationalError: table _alembic_tmp_apikey already exists

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/starlette/routing.py", line 677, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/contextlib.py", line 181, in __aenter__
    return await self.gen.__anext__()
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/main.py", line 19, in lifespan
    initialize_services()
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/services/utils.py", line 206, in initialize_services
    raise exc
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/services/utils.py", line 203, in initialize_services
    initialize_database(fix_migration=fix_migration)
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/services/database/utils.py", line 52, in initialize_database
    raise exc
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/services/database/utils.py", line 32, in initialize_database
    database_service.run_migrations(fix=fix_migration)
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/services/database/service.py", line 152, in run_migrations
    command.upgrade(alembic_cfg, "head")
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/command.py", line 403, in upgrade
    script.run_env()
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/script/base.py", line 583, in run_env
    util.load_python_file(self.dir, "env.py")
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 95, in load_python_file
    module = load_module_py(module_id, path)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 113, in load_module_py
    spec.loader.exec_module(module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic/env.py", line 81, in <module>
    run_migrations_online()
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic/env.py", line 75, in run_migrations_online
    context.run_migrations()
  File "<string>", line 8, in run_migrations
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/runtime/environment.py", line 948, in run_migrations
    self.get_context().run_migrations(**kw)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/runtime/migration.py", line 627, in run_migrations
    step.migration_fn(**kw)
  File "/Users/zitzhang/PycharmProjects_new/langflow_latest/src/backend/langflow/alembic/versions/7d2162acc8b2_adds_updated_at_and_folder_cols.py", line 33, in upgrade
    batch_op.alter_column('name',
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/contextlib.py", line 126, in __exit__
    next(self.gen)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/operations/base.py", line 398, in batch_alter_table
    impl.flush()
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/operations/batch.py", line 164, in flush
    batch_impl._create(self.impl)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/operations/batch.py", line 448, in _create
    op_impl.create_table(self.new_table)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/ddl/impl.py", line 366, in create_table
    self._exec(schema.CreateTable(table))
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/alembic/ddl/impl.py", line 207, in _exec
    return conn.execute(construct, multiparams)
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1416, in execute
    return meth(
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/sqlalchemy/sql/ddl.py", line 181, in _execute_on_connection
    return connection._execute_ddl(
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1528, in _execute_ddl
    ret = self._execute_context(
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1848, in _execute_context
    return self._exec_single_context(
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1988, in _exec_single_context
    self._handle_dbapi_exception(
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2343, in _handle_dbapi_exception
    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1969, in _exec_single_context
    self.dialect.do_execute(
  File "/Users/zitzhang/miniconda3/envs/langflow_phx_latest/l
[error_msg.txt](https://github.com/logspace-ai/langflow/files/13769359/error_msg.txt)
[error_msg.txt](https://github.com/logspace-ai/langflow/files/13769365/error_msg.txt)
ib/python3.9/site-packages/sqlalchemy/engine/default.py", line 922, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) table _alembic_tmp_apikey already exists
[SQL:
CREATE TABLE _alembic_tmp_apikey (
        name VARCHAR NOT NULL,
        created_at DATETIME NOT NULL,
        last_used_at DATETIME,
        total_uses INTEGER NOT NULL,
        is_active BOOLEAN NOT NULL,
        id CHAR(32) NOT NULL,
        api_key VARCHAR NOT NULL,
        user_id CHAR(32) NOT NULL,
        PRIMARY KEY (id),
        CONSTRAINT uq_apikey_id UNIQUE (id),
        FOREIGN KEY(user_id) REFERENCES user (id)
)

]
(Background on this error at: https://sqlalche.me/e/20/e3q8)

[2023-12-26 14:46:57 +0800] [6746] [ERROR] Application startup failed. Exiting.
[2023-12-26 14:46:57 +0800] [6746] [INFO] Worker exiting (pid: 6746)
[2023-12-26 14:46:57 +0800] [6745] [ERROR] Worker (pid:6746) exited with code 3
[2023-12-26 14:46:57 +0800] [6745] [ERROR] Shutting down: Master
[2023-12-26 14:46:57 +0800] [6745] [ERROR] Reason: Worker failed to boot.

error_msg.txt

Hi, @crazybullet28
Thanks for the thorough description of your problem.
This occurs because Langflow updates the database to what it needs when it runs the server. When you reverted the version something might have gone wrong in the migration that broke the database. Could you try running langflow migrations --test?  Does your database have data you want to keep?

Hi @ogabrielluiz , I tried to run langflow migration --test, but it still threw a similar error table _alembic_tmp_apikey already exists.
For the database, is that designed to save all the flows I have created? If that's correct, as I haven't created much flows, so the data can be removed.

If you remove or backup the database, that problem should be fixed.

Hi @ogabrielluiz , thanks for your reply. Now I could managed to remove the database and make new version runnable.
But I also found that as soon as I ran the older version, the error would happens again. So I guess there might be some bugs with migration? Are you going to fix the problem in future?

@crazybullet28 How can i remove the database, what files should I delete in new project?