Use log/slog instead of log

Go added log/slog to the standard library in Go 1.21.  It provides a leveled logging API that allows for structured logging. If this package had existed in the standard library when we started azd, we would have used it over log.
This change moves us from log to log/slog.
To do so, I've replaced all the calls to log.Print, log.Printf and log.Println with calls to slog.InfoContext.  If a context.Context object was available in the method, I used it, otherwise I used context.TODO() so we can go back and thread the context parameter.  Passing the context object like this should allow us to tie these log messages to tracing spans at some point.  In practice, slog.InfoContext(context.TODO, ....) behaves slog.Info(...) (since context.TODO() is like context.Background() and slog.Info calls slog.InfoContext with context.Background().
While slog does have levels, for the first pass, I chose to always use slog.InfoContext even if slog.ErrorContext or slog.WarningContext may have made more sense based on the log message.  We can evolve this over time.

Since slog does structured logging, it is expected that insead of intermixing the logging message with the data to be logged, that you pass these as separate values, I did light editing of the logging messages when it made sense.

Calls to log.Panic and log.Panicf were replaced with direct calls to panic (perhaps with a call to fmt.Sprintf to produce the message to pass to panic) since slog doesn't have helpers like Panic or Fatal.  This does mean we no longer log a message in these cases, but from inspection it felt like this would be OK.
The --debug output of azd is slightly different after this change, since we now have a level printed for the log message and the data is printed after the message:
Before:
matell@Matts-Work-MacBook azd % azd version --debug
2024/12/16 20:20:55 main.go:56: azd version: 0.0.0-dev.0 (commit<PHONE_NUMBER>000000000000000000000000000000)
2024/12/16 20:20:55 main.go:214: using cached latest version: 1.11.0 (expires on: 2024-12-18T02:28:37Z)
2024/12/16 20:20:55 middleware.go:108: running middleware 'debug'
2024/12/16 20:20:55 middleware.go:108: running middleware 'ux'
azd version 0.0.0-dev.0 (commit<PHONE_NUMBER>000000000000000000000000000000)
2024/12/16 20:20:55 main.go:88: eliding update message for dev build

After:
matell@Matts-Work-MacBook azd % azd version --debug
2024/12/16 20:21:24 main.go:57: INFO azd version version="0.0.0-dev.0 (commit<PHONE_NUMBER>000000000000000000000000000000)"
2024/12/16 20:21:24 main.go:215: INFO using cached latest version version=1.11.0 expiresOn=2024-12-18T02:28:37Z
2024/12/16 20:21:24 middleware.go:108: INFO running middleware name=debug
2024/12/16 20:21:24 middleware.go:108: INFO running middleware name=ux
azd version 0.0.0-dev.0 (commit<PHONE_NUMBER>000000000000000000000000000000)
2024/12/16 20:21:24 main.go:89: INFO eliding update message for dev build

Azure Dev CLI Install Instructions
Install scripts
MacOS/Linux

May elevate using sudo on some platforms and configurations

bash:
curl -fsSL https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/uninstall-azd.sh | bash;
curl -fsSL https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/install-azd.sh | bash -s -- --base-url https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635 --version '' --verbose --skip-verify

pwsh:
Invoke-RestMethod 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/uninstall-azd.ps1' -OutFile uninstall-azd.ps1; ./uninstall-azd.ps1
Invoke-RestMethod 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/install-azd.ps1' -OutFile install-azd.ps1; ./install-azd.ps1 -BaseUrl 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635' -Version '' -SkipVerify -Verbose

Windows
PowerShell install
powershell -c "Set-ExecutionPolicy Bypass Process; irm 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/uninstall-azd.ps1' > uninstall-azd.ps1; ./uninstall-azd.ps1;"
powershell -c "Set-ExecutionPolicy Bypass Process; irm 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/install-azd.ps1' > install-azd.ps1; ./install-azd.ps1 -BaseUrl 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635' -Version '' -SkipVerify -Verbose;"

MSI install
powershell -c "irm 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/azd-windows-amd64.msi' -OutFile azd-windows-amd64.msi; msiexec /i azd-windows-amd64.msi /qn"

Standalone Binary

Linux -

x86_64 - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/azd-linux-amd64.tar.gz
ARM64 - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/azd-linux-arm64.tar.gz

MacOS -

x86_64 - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/azd-darwin-amd64.zip
ARM64 - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/azd-darwin-arm64.zip

Windows -

x86_64 - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/azd-windows-amd64.zip
ARM64 - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/azd-windows-arm64-alpha.zip

MSI

x86_64 - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/4635/azd-windows-amd64.msi

Documentation

learn.microsoft.com documentation

title: Azure Developer CLI reference
description: This article explains the syntax and parameters for the various Azure Developer CLI commands.
author: alexwolfmsft
ms.author: alexwolf
ms.date: 12/17/2024
ms.service: azure-dev-cli
ms.topic: conceptual
ms.custom: devx-track-azdevcli
Azure Developer CLI reference
This article explains the syntax and parameters for the various Azure Developer CLI commands.
azd
The Azure Developer CLI (azd) is an open-source tool that helps onboard and manage your application on Azure
Options
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --docs         Opens the documentation for azd in your web browser.
  -h, --help         Gets help for azd.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd add: Add a component to your project. (Alpha)
azd auth: Authenticate with Azure.
azd config: Manage azd configurations (ex: default Azure subscription, location).
azd deploy: Deploy the application's code to Azure.
azd down: Delete Azure resources for an application.
azd env: Manage environments.
azd hooks: Develop, test and run hooks for an application. (Beta)
azd infra: Manage your Azure infrastructure.
azd init: Initialize a new application.
azd monitor: Monitor a deployed application. (Beta)
azd package: Packages the application's code to be deployed to Azure. (Beta)
azd pipeline: Manage and configure your deployment pipelines. (Beta)
azd provision: Provision the Azure resources for an application.
azd restore: Restores the application's dependencies. (Beta)
azd show: Display information about your app and its resources.
azd template: Find and view template details. (Beta)
azd up: Provision Azure resources, and deploy your project with a single command.
azd version: Print the version number of Azure Developer CLI.

azd add
Add a component to your project. (Alpha)
azd add [flags]

Options
      --docs   Opens the documentation for azd add in your web browser.
  -h, --help   Gets help for add.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd auth
Authenticate with Azure.
Options
      --docs   Opens the documentation for azd auth in your web browser.
  -h, --help   Gets help for auth.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd auth login: Log in to Azure.
azd auth logout: Log out of Azure.
Back to top

azd auth login
Log in to Azure.
Synopsis
Log in to Azure.
When run without any arguments, log in interactively using a browser. To log in using a device code, pass
--use-device-code.
To log in as a service principal, pass --client-id and --tenant-id as well as one of: --client-secret,
--client-certificate, or --federated-credential-provider.
To log in using a managed identity, pass --managed-identity, which will use the system assigned managed identity.
To use a user assigned managed identity, pass --client-id in addition to --managed-identity with the client id of
the user assigned managed identity you wish to use.
azd auth login [flags]

Options
      --check-status                           Checks the log-in status instead of logging in.
      --client-certificate string              The path to the client certificate for the service principal to authenticate with.
      --client-id string                       The client id for the service principal to authenticate with.
      --client-secret string                   The client secret for the service principal to authenticate with. Set to the empty string to read the value from the console.
      --docs                                   Opens the documentation for azd auth login in your web browser.
      --federated-credential-provider string   The provider to use to acquire a federated token to authenticate with.
  -h, --help                                   Gets help for login.
      --managed-identity                       Use a managed identity to authenticate.
      --redirect-port int                      Choose the port to be used as part of the redirect URI during interactive login.
      --tenant-id string                       The tenant id or domain name to authenticate with.
      --use-device-code[=true]                 When true, log in by using a device code instead of a browser.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd auth: Authenticate with Azure.
Back to top

azd auth logout
Log out of Azure.
Synopsis
Log out of Azure
azd auth logout [flags]

Options
      --docs   Opens the documentation for azd auth logout in your web browser.
  -h, --help   Gets help for logout.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd auth: Authenticate with Azure.
Back to top

azd config
Manage azd configurations (ex: default Azure subscription, location).
Synopsis
Manage the Azure Developer CLI user configuration, which includes your default Azure subscription and location.
Available since azure-dev-cli_0.4.0-beta.1.
The easiest way to configure azd for the first time is to run azd init. The subscription and location you select will be stored in the config.json file located in the config directory. To configure azd anytime afterwards, you'll use azd config set.
The default value of the config directory is:

$HOME/.azd on Linux and macOS
%USERPROFILE%.azd on Windows

The configuration directory can be overridden by specifying a path in the AZD_CONFIG_DIR environment variable.
Options
      --docs   Opens the documentation for azd config in your web browser.
  -h, --help   Gets help for config.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd config get: Gets a configuration.
azd config list-alpha: Display the list of available features in alpha stage.
azd config reset: Resets configuration to default.
azd config set: Sets a configuration.
azd config show: Show all the configuration values.
azd config unset: Unsets a configuration.
Back to top

azd config get
Gets a configuration.
Synopsis
Gets a configuration in the configuration path.
The default value of the config directory is:

$HOME/.azd on Linux and macOS
%USERPROFILE%\.azd on Windows

The configuration directory can be overridden by specifying a path in the AZD_CONFIG_DIR environment variable.
azd config get <path> [flags]

Options
      --docs   Opens the documentation for azd config get in your web browser.
  -h, --help   Gets help for get.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd config: Manage azd configurations (ex: default Azure subscription, location).
Back to top

azd config list-alpha
Display the list of available features in alpha stage.
azd config list-alpha [flags]

Options
      --docs   Opens the documentation for azd config list-alpha in your web browser.
  -h, --help   Gets help for list-alpha.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd config: Manage azd configurations (ex: default Azure subscription, location).
Back to top

azd config reset
Resets configuration to default.
Synopsis
Resets all configuration in the configuration path.
The default value of the config directory is:

$HOME/.azd on Linux and macOS
%USERPROFILE%\.azd on Windows

The configuration directory can be overridden by specifying a path in the AZD_CONFIG_DIR environment variable to the default.
azd config reset [flags]

Options
      --docs    Opens the documentation for azd config reset in your web browser.
  -f, --force   Force reset without confirmation.
  -h, --help    Gets help for reset.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd config: Manage azd configurations (ex: default Azure subscription, location).
Back to top

azd config set
Sets a configuration.
Synopsis
Sets a configuration in the configuration path.
The default value of the config directory is:

$HOME/.azd on Linux and macOS
%USERPROFILE%\.azd on Windows

The configuration directory can be overridden by specifying a path in the AZD_CONFIG_DIR environment variable.
azd config set <path> <value> [flags]

Examples
azd config set defaults.subscription <yourSubscriptionID>
azd config set defaults.location eastus

Options
      --docs   Opens the documentation for azd config set in your web browser.
  -h, --help   Gets help for set.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd config: Manage azd configurations (ex: default Azure subscription, location).
Back to top

azd config show
Show all the configuration values.
Synopsis
Show all configuration values in the configuration path.
The default value of the config directory is:

$HOME/.azd on Linux and macOS
%USERPROFILE%\.azd on Windows

The configuration directory can be overridden by specifying a path in the AZD_CONFIG_DIR environment variable.
azd config show [flags]

Options
      --docs   Opens the documentation for azd config show in your web browser.
  -h, --help   Gets help for show.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd config: Manage azd configurations (ex: default Azure subscription, location).
Back to top

azd config unset
Unsets a configuration.
Synopsis
Removes a configuration in the configuration path.
The default value of the config directory is:

$HOME/.azd on Linux and macOS
%USERPROFILE%\.azd on Windows

The configuration directory can be overridden by specifying a path in the AZD_CONFIG_DIR environment variable.
azd config unset <path> [flags]

Examples
azd config unset defaults.location

Options
      --docs   Opens the documentation for azd config unset in your web browser.
  -h, --help   Gets help for unset.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd config: Manage azd configurations (ex: default Azure subscription, location).
Back to top

azd deploy
Deploy the application's code to Azure.
azd deploy <service> [flags]

Options
      --all                   Deploys all services that are listed in azure.yaml
      --docs                  Opens the documentation for azd deploy in your web browser.
  -e, --environment string    The name of the environment to use.
      --from-package string   Deploys the application from an existing package.
  -h, --help                  Gets help for deploy.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd down
Delete Azure resources for an application.
azd down [flags]

Options
      --docs                 Opens the documentation for azd down in your web browser.
  -e, --environment string   The name of the environment to use.
      --force                Does not require confirmation before it deletes resources.
  -h, --help                 Gets help for down.
      --purge                Does not require confirmation before it permanently deletes resources that are soft-deleted by default (for example, key vaults).

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd env
Manage environments.
Options
      --docs   Opens the documentation for azd env in your web browser.
  -h, --help   Gets help for env.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

Back to top

azd env get-value
Get specific environment value.
azd env get-value <keyName> [flags]

Options
      --docs                 Opens the documentation for azd env get-value in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for get-value.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd env: Manage environments.
Back to top

azd env get-values
Get all environment values.
azd env get-values [flags]

Options
      --docs                 Opens the documentation for azd env get-values in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for get-values.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd env: Manage environments.
Back to top

azd env list
List environments.
azd env list [flags]

Options
      --docs   Opens the documentation for azd env list in your web browser.
  -h, --help   Gets help for list.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd env: Manage environments.
Back to top

azd env new
Create a new environment and set it as the default.
azd env new <environment> [flags]

Options
      --docs                  Opens the documentation for azd env new in your web browser.
  -h, --help                  Gets help for new.
  -l, --location string       Azure location for the new environment
      --subscription string   Name or ID of an Azure subscription to use for the new environment

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd env: Manage environments.
Back to top

azd env refresh
Refresh environment settings by using information from a previous infrastructure provision.
azd env refresh <environment> [flags]

Options
      --docs                 Opens the documentation for azd env refresh in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for refresh.
      --hint string          Hint to help identify the environment to refresh

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd env: Manage environments.
Back to top

azd env select
Set the default environment.
azd env select <environment> [flags]

Options
      --docs   Opens the documentation for azd env select in your web browser.
  -h, --help   Gets help for select.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd env: Manage environments.
Back to top

azd env set
Manage your environment settings.
azd env set <key> <value> [flags]

Options
      --docs                 Opens the documentation for azd env set in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for set.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd env: Manage environments.
Back to top

azd hooks
Develop, test and run hooks for an application. (Beta)
Options
      --docs   Opens the documentation for azd hooks in your web browser.
  -h, --help   Gets help for hooks.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd hooks run: Runs the specified hook for the project and services
Back to top

azd hooks run
Runs the specified hook for the project and services
azd hooks run <name> [flags]

Options
      --docs                 Opens the documentation for azd hooks run in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for run.
      --platform string      Forces hooks to run for the specified platform.
      --service string       Only runs hooks for the specified service.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd hooks: Develop, test and run hooks for an application. (Beta)
Back to top

azd infra
Manage your Azure infrastructure.
Options
      --docs   Opens the documentation for azd infra in your web browser.
  -h, --help   Gets help for infra.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd infra synth: Write IaC for your project to disk, allowing you to manage it by hand. (Alpha)
Back to top

azd infra synth
Write IaC for your project to disk, allowing you to manage it by hand. (Alpha)
azd infra synth [flags]

Options
      --docs                 Opens the documentation for azd infra synth in your web browser.
  -e, --environment string   The name of the environment to use.
      --force                Overwrite any existing files without prompting
  -h, --help                 Gets help for synth.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd infra: Manage your Azure infrastructure.
Back to top

azd init
Initialize a new application.
azd init [flags]

Options
  -b, --branch string         The template branch to initialize from. Must be used with a template argument (--template or -t).
      --docs                  Opens the documentation for azd init in your web browser.
  -e, --environment string    The name of the environment to use.
  -f, --filter strings        The tag(s) used to filter template results. Supports comma-separated values.
      --from-code             Initializes a new application from your existing code.
  -h, --help                  Gets help for init.
  -l, --location string       Azure location for the new environment
  -s, --subscription string   Name or ID of an Azure subscription to use for the new environment
  -t, --template string       Initializes a new application from a template. You can use Full URI, <owner>/<repository>, or <repository> if it's part of the azure-samples organization.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd monitor
Monitor a deployed application. (Beta)
azd monitor [flags]

Options
      --docs                 Opens the documentation for azd monitor in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for monitor.
      --live                 Open a browser to Application Insights Live Metrics. Live Metrics is currently not supported for Python apps.
      --logs                 Open a browser to Application Insights Logs.
      --overview             Open a browser to Application Insights Overview Dashboard.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd package
Packages the application's code to be deployed to Azure. (Beta)
azd package <service> [flags]

Options
      --all                  Packages all services that are listed in azure.yaml
      --docs                 Opens the documentation for azd package in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for package.
      --output-path string   File or folder path where the generated packages will be saved.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd pipeline
Manage and configure your deployment pipelines. (Beta)
Options
      --docs   Opens the documentation for azd pipeline in your web browser.
  -h, --help   Gets help for pipeline.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd pipeline config: Configure your deployment pipeline to connect securely to Azure. (Beta)
Back to top

azd pipeline config
Configure your deployment pipeline to connect securely to Azure. (Beta)
azd pipeline config [flags]

Options
  -m, --applicationServiceManagementReference string   Service Management Reference. References application or service contact information from a Service or Asset Management database. This value must be a Universally Unique Identifier (UUID). You can set this value globally by running azd config set pipeline.config.applicationServiceManagementReference <UUID>.
      --auth-type string                               The authentication type used between the pipeline provider and Azure for deployment (Only valid for GitHub provider). Valid values: federated, client-credentials.
      --docs                                           Opens the documentation for azd pipeline config in your web browser.
  -e, --environment string                             The name of the environment to use.
  -h, --help                                           Gets help for config.
      --principal-id string                            The client id of the service principal to use to grant access to Azure resources as part of the pipeline.
      --principal-name string                          The name of the service principal to use to grant access to Azure resources as part of the pipeline.
      --principal-role stringArray                     The roles to assign to the service principal. By default the service principal will be granted the Contributor and User Access Administrator roles. (default [Contributor,User Access Administrator])
      --provider string                                The pipeline provider to use (github for Github Actions and azdo for Azure Pipelines).
      --remote-name string                             The name of the git remote to configure the pipeline to run on. (default "origin")

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd pipeline: Manage and configure your deployment pipelines. (Beta)
Back to top

azd provision
Provision the Azure resources for an application.
azd provision [flags]

Options
      --docs                 Opens the documentation for azd provision in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for provision.
      --no-state             Do not use latest Deployment State (bicep only).
      --preview              Preview changes to Azure resources.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd restore
Restores the application's dependencies. (Beta)
azd restore <service> [flags]

Options
      --all                  Restores all services that are listed in azure.yaml
      --docs                 Opens the documentation for azd restore in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for restore.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd show
Display information about your app and its resources.
azd show [flags]

Options
      --docs                 Opens the documentation for azd show in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for show.
      --show-secrets         Unmask secrets in output.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd template
Find and view template details. (Beta)
Options
      --docs   Opens the documentation for azd template in your web browser.
  -h, --help   Gets help for template.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd template list: Show list of sample azd templates. (Beta)
azd template show: Show details for a given template. (Beta)
azd template source: View and manage template sources. (Beta)
Back to top

azd template list
Show list of sample azd templates. (Beta)
azd template list [flags]

Options
      --docs             Opens the documentation for azd template list in your web browser.
  -f, --filter strings   The tag(s) used to filter template results. Supports comma-separated values.
  -h, --help             Gets help for list.
  -s, --source string    Filters templates by source.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd template: Find and view template details. (Beta)
Back to top

azd template show
Show details for a given template. (Beta)
azd template show <template> [flags]

Options
      --docs   Opens the documentation for azd template show in your web browser.
  -h, --help   Gets help for show.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd template: Find and view template details. (Beta)
Back to top

azd template source
View and manage template sources. (Beta)
Options
      --docs   Opens the documentation for azd template source in your web browser.
  -h, --help   Gets help for source.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd template: Find and view template details. (Beta)
azd template source add: Adds an azd template source with the specified key. (Beta)
azd template source list: Lists the configured azd template sources. (Beta)
azd template source remove: Removes the specified azd template source (Beta)
Back to top

azd template source add
Adds an azd template source with the specified key. (Beta)
Synopsis
The key can be any value that uniquely identifies the template source, with well-known values being:
・default: Default templates
・awesome-azd: Templates from https://aka.ms/awesome-azd
azd template source add <key> [flags]

Options
      --docs              Opens the documentation for azd template source add in your web browser.
  -h, --help              Gets help for add.
  -l, --location string   Location of the template source. Required when using type flag.
  -n, --name string       Display name of the template source.
  -t, --type string       Kind of the template source. Supported types are 'file', 'url' and 'gh'.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd template source: View and manage template sources. (Beta)
Back to top

azd template source list
Lists the configured azd template sources. (Beta)
azd template source list [flags]

Options
      --docs   Opens the documentation for azd template source list in your web browser.
  -h, --help   Gets help for list.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd template source: View and manage template sources. (Beta)
Back to top

azd template source remove
Removes the specified azd template source (Beta)
azd template source remove <key> [flags]

Options
      --docs   Opens the documentation for azd template source remove in your web browser.
  -h, --help   Gets help for remove.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

azd template source: View and manage template sources. (Beta)
Back to top

azd up
Provision Azure resources, and deploy your project with a single command.
azd up [flags]

Options
      --docs                 Opens the documentation for azd up in your web browser.
  -e, --environment string   The name of the environment to use.
  -h, --help                 Gets help for up.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top

azd version
Print the version number of Azure Developer CLI.
azd version [flags]

Options
      --docs   Opens the documentation for azd version in your web browser.
  -h, --help   Gets help for version.

Options inherited from parent commands
  -C, --cwd string   Sets the current working directory.
      --debug        Enables debugging and diagnostics logging.
      --no-prompt    Accepts the default value instead of prompting, or it fails if there is no default.

See also

Back to top


Invalid output for deletion / insertion conflict

Consider the following merge scenario:
Ancestor
{
    int a = 2;
}

Ours
{
}

Theirs
{
    int a = 2;
    int b = 3;
}

Current diffy merge output
Successful merge without any conflict:
{
}

Expected merge output
Conflicting merge:
{
<<<<<<< ours
||||||| ancestor
    int a = 2;
=======
    int a = 2;
    int b = 3;
>>>>>>> theirs
}

One can check that git merge-file -p /tmp/ours /tmp/ancestor /tmp/theirs indeed produces the output above.

Thanks for the bug report! I'll try to dig into the root cause.

Fixed by #30


"Unexpected end of JSON input" error seen when deploying a GKE v2 cluster through API

What kind of request is this (question/bug/enhancement/feature request): bug
Steps to reproduce (least amount of steps as possible):

Deploy a GKE v2 cluster using Rancher API -- /v3/clusters --> create
Give in the follwing in gkeConfig, a cluster name and deploy

gke.json.zip
gke.json 2.zip

GKE-operator throws error

time="2021-04-07T00:41:02Z" level=error msg="error syncing 'cattle-global-data/c-hlt2g': handler gke-controller: unexpected end of JSON input, requeuing"
time="2021-04-07T00:43:46Z" level=error msg="error syncing 'cattle-global-data/c-hlt2g': handler gke-controller: unexpected end of JSON input, requeuing"
time="2021-04-07T00:49:14Z" level=error msg="error syncing 'cattle-global-data/c-hlt2g': handler gke-controller: unexpected end of JSON input, requeuing"

Cluster is stuck in provisioning with error Unexpected end of JSON input

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.5-head commit id: 4115dee and rancher/gke-operator:v1.0.1-rc4
Installation option (single install/HA): Single

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): Hosted GKEv2

Can you check what version of gke-operator is running:
kubectl -n cattle-system get deploy gke-config-operator -o jsonpath='{.spec.template.spec.containers[0].image}'

Tested on Rancher v2.5-head version 7426ba8
GKE operator: v1.0.1-rc6
Deploy a GKE v2 cluster using Rancher API -- /v3/clusters --> create
Give in the following in gkeConfig, a cluster name and deploy hosted GKE v2 cluster
gke 4.json.zip
For imported GKE cluster, provide the following in gkeConfig:
{
  "clusterName": "aaron-test",
  "displayName": "aaron-test",
  "googleCredentialSecret": "cattle-global-data:cc-dg229",
  "imported": true,
  "projectID": "rancher-qa",
  "region": "us-central1-c"
}

Errors from Rancher server while provisioning both imported and hosted cluster:
2021/04/08 00:22:38 [INFO] waiting for cluster GKE [c-bh5cl] pre-create failure to be resolved
W0408 00:22:39.589838      10 warnings.go:80] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
2021/04/08 00:22:39 [INFO] waiting for cluster create [c-b7bzq] to start
2021/04/08 00:22:39 [INFO] waiting for cluster GKE [c-b7bzq] pre-create failure to be resolved
2021/04/08 00:22:43 [INFO] waiting for cluster import [c-bh5cl] to start
2021/04/08 00:22:43 [INFO] waiting for cluster GKE [c-bh5cl] pre-create failure to be resolved
2021/04/08 00:22:44 [INFO] waiting for cluster create [c-b7bzq] to start

Tested on Rancher master-head version f5393c2. GKE operator version v1.0.1-rc6
Ran the same steps as above for hosted and imported GKE v2 cluster. And saw different results.
The imported cluster was provisioned successfully, but became stuck in updating state: Waiting for nodes
The hosted cluster errors with: Field [management] cannot be nil for nodepool [example-node-pool] in non-nil cluster [aaron-gke] (cluster id: c-w4rqk)
Rancher server logs:
2021/04/08 00:37:24 [INFO] waiting for cluster GKE [c-w4rqk] pre-create failure to be resolved
I0408 00:37:28.433628      28 topology_manager.go:221] [topologymanager] RemoveContainer - Container ID: 3d03b042dd68bad367cbdd2f84dca560d81e477e9272f225912bc8354ac924e6
2021/04/08 00:37:29 [INFO] waiting for cluster create [c-w4rqk] to start
2021/04/08 00:37:29 [INFO] waiting for cluster GKE [c-w4rqk] pre-create failure to be resolved
W0408 00:37:34.105321      11 warnings.go:80] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
2021/04/08 00:37:34 [INFO] waiting for cluster create [c-w4rqk] to start
2021/04/08 00:37:34 [INFO] waiting for cluster GKE [c-w4rqk] pre-create failure to be resolved
2021/04/08 00:37:39 [INFO] waiting for cluster create [c-w4rqk] to start
2021/04/08 00:37:39 [INFO] waiting for cluster GKE [c-w4rqk] pre-create failure to be resolved
I0408 00:37:44.733064      28 request.go:645] Throttling request took 1.041176253s, request: GET:https://<IP_ADDRESS>:6444/apis/management.cattle.io/v3?timeout=32s
2021/04/08 00:37:44 [INFO] waiting for cluster create [c-w4rqk] to start
2021/04/08 00:37:44 [INFO] waiting for cluster GKE [c-w4rqk] pre-create failure to be resolved
2021/04/08 00:37:49 [INFO] waiting for cluster create [c-w4rqk] to start
2021/04/08 00:37:49 [INFO] waiting for cluster GKE [c-w4rqk] pre-create failure to be resolved

GKE operator logs:
time="2021-04-08T00:32:55Z" level=error msg="error syncing 'cattle-global-data/c-w4rqk': handler gke-controller: field [management] cannot be nil for nodepool [example-node-pool] in non-nil cluster [aaron-gke], requeuing"
time="2021-04-08T00:33:36Z" level=error msg="error syncing 'cattle-global-data/c-w4rqk': handler gke-controller: field [management] cannot be nil for nodepool [example-node-pool] in non-nil cluster [aaron-gke], requeuing"
time="2021-04-08T00:34:58Z" level=error msg="error syncing 'cattle-global-data/c-w4rqk': handler gke-controller: field [management] cannot be nil for nodepool [example-node-pool] in non-nil cluster [aaron-gke], requeuing"
time="2021-04-08T00:37:42Z" level=error msg="error syncing 'cattle-global-data/c-w4rqk': handler gke-controller: field [management] cannot be nil for nodepool [example-node-pool] in non-nil cluster [aaron-gke], requeuing"

@aaronRancher this is expected as per discussion with @cmurphy because the json file (gkeConfig) has to be updated.

This issue was caused by the way Google cloud credentials were being created. In 2.5-head, Google cloud credential was not available because of this issue: https://github.com/rancher/rancher/issues/31983
Creating a Google cloud credential through the API UI would result in this behavior. This issue is no longer seen when using Google cloud credentials created through the UI form.
Closing issue.


Is this project umaintained?

I see that the current WPE version for this project is 2.38.3, while WPE has released 2.40.5. I'm experiencing frequent crashes in my current setup and was hoping for bugfixes.
Did your priorities shift somewhere else?

Okay, thanks a lot!

Closed


Update Connery Tool and Toolkit

Summary
In this update, I've migrated the Connery Action Tool From Tool to StructuredTool.
This significantly improves the quality of action identification by agents compared to the custom instructions.
TODOs

[x] Use StructuredTool

[x] Update tool
[x] Update toolkit

[x] Clean up code
[x] Update docs and examples

[x] Use OpenAI Functions agent
[x] Add links to the LangSmith traces

[x] Linting
[x] Formatting

Connery

GitHub repository: https://github.com/connery-io/connery-platform
Documentation: https://docs.connery.io
Twitter: https://twitter.com/connery_io

@bracesproul may I ask you to review the PR again, please?

I can't push to your branch, can you resolve merge conflicts?

@jacoblee93 the conflicts are resolved

Thanks for waiting - wasn't able to push to your branch but opened #3896 with a few small nits and will merge that tonight.

Live in the latest @langchain/community

@jacoblee93 thank you, I appreciate this!


Error on calling names() on Custom Tag

I am trying to create a model with two types of tags associated with companies and topics and followed the documentation at django-taggit for making Custom Tags to facilitate having two Taggable Manager in one model.
My models.py
from django.db import models
from taggit.managers import TaggableManager
from taggit.models import GenericTaggedItemBase, TagBase

# Create your models here.
class TopicTag(TagBase):
    class Meta:
        verbose_name = "TopicTag"
        verbose_name_plural = "TopicTags"

class CompanyTag(TagBase):
    class Meta:
        verbose_name = "CompanyTag"
        verbose_name_plural = "CompanyTags"

class ThroughTopicTag(GenericTaggedItemBase):
    tag = models.ForeignKey(TopicTag, on_delete=models.CASCADE)

class ThroughCompanyTag(GenericTaggedItemBase):
    tag = models.ForeignKey(CompanyTag, on_delete= models.CASCADE)

class Questions(models.Model):
    name = models.CharField(max_length=255)
    path = models.CharField(max_length=500)
    company_tags = TaggableManager(blank = True, through=ThroughCompanyTag, related_name="company_tags")
    topic_tags = TaggableManager(blank = True, through=ThroughTopicTag, related_name="topic_tags")

Now, when I try to running the following commands in django shell
from QuestionBank.models import Questions
Questions.objects.first().company_tags.names()

I get the following error:
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/taggit/utils.py", line 124, in inner
    return func(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/taggit/managers.py", line 248, in names
    return self.get_queryset().values_list("name", flat=True)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/taggit/managers.py", line 74, in get_queryset
    return self.through.tags_for(self.model, self.instance, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/taggit/models.py", line 155, in tags_for
    return cls.tag_model().objects.filter(**kwargs).distinct()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/query.py", line 904, in filter
    return self._filter_or_exclude(False, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/query.py", line 923, in _filter_or_exclude
    clone.query.add_q(Q(*args, **kwargs))
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/sql/query.py", line 1350, in add_q
    clause, _ = self._add_q(q_object, self.used_aliases)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/sql/query.py", line 1377, in _add_q
    child_clause, needed_inner = self.build_filter(
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/sql/query.py", line 1250, in build_filter
    lookups, parts, reffed_expression = self.solve_lookup_type(arg)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/sql/query.py", line 1087, in solve_lookup_type
    _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/django/db/models/sql/query.py", line 1482, in names_to_path
    raise FieldError("Cannot resolve keyword '%s' into field. "
django.core.exceptions.FieldError: Cannot resolve keyword 'None' into field. Choices are: company_tags, id, name, slug, throughcompanytag

You need to add a related_name to the tag field as described in the example documentation
class TaggedWhatever(GenericTaggedItemBase):
    ...
    # Here is where you provide your custom Tag class.
    tag = models.ForeignKey(
        MyCustomTag,
        on_delete=models.CASCADE,
        related_name="%(app_label)s_%(class)s_items",
    )

@utkarsh2827 could you confirm whether adding the related_name fixed your issue here? Though to be honest I feel like we should have a less obtuse error here...

(note to anyone wanting to fix this: we should add some assertion to code relying on related_name for cases where it's not set up)

This seems similar to #189 , though the use case is different, we really need to specialize the error on related_name issues


abi-metadata and conversion to ethabi.contract (#193)_97

Motivation

Add a cli to generate metadata from ABIMoveSignature
Convert ABIMoveSignature to ethabi::Contract

Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
CI/CD tests are covered.

:sunny: Canary successful

/land


Completed Assignment 2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
What did you learn from the changes you have made?
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[ ] I can confirm that my changes are working as intended

You have unfortunately made a pull request to the wrong repo. You shouldn't be making a pull request to UofT-DSI/production, but rather your own forked production repo. Please read the instructions on your onboarding Assignment Submission Guide more carefully.

That was a mistake on my part, sorry about that.
On Mon, 11 Nov 2024, 09:19 Daniel Razavi, @.***> wrote:

You have unfortunately made a pull request to the wrong repo. You
shouldn't be making a pull request to UofT-DSI/production, but rather your
own forked production repo. Please read the instructions on your onboarding Assignment
Submission Guide
https://github.com/UofT-DSI/onboarding/blob/main/onboarding_documents/submissions.md
more carefully.
—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/production/pull/77#issuecomment-2468290139,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKTYE42NUAGQDGYFCL7RB5T2AC4G7AVCNFSM6AAAAABRQ3MNC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRYGI4TAMJTHE
.
You are receiving this because you authored the thread.Message ID:
@.***>


Enhance Circuit package functionality to support sub_circuit_identification

Primarily need to support subcircuit identification & creation utilities.
Will work on actual integration with CellFabric, placer, router etc. in separate pull request.

Ready for review.
test_subckt_matching in test_combined.py demonstrates telescopic_ota circuit matching.
Would like to get this merged before attempting a larger rewrite of existing code.

Looks good. We might need some more features to add for some example test circuits

Values can be a function of parameters.
Need a hierarchical isomorphism match.
Separate feature to reduce stacked transistors.

Can you point me to some concrete examples for these that I can add to the tests?


jetbrains-mono: 2.210 -> 2.221

Motivation for this change
https://github.com/JetBrains/JetBrainsMono/releases/tag/v2.221
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 107803 run on x86_64-linux 1

1 package built:

jetbrains-mono


Exiting under Windows is strange

I find it annoying that I can't easily quit SITL under windows. When I press Ctrl+C the signal handler SIGINT is called correctly but then it doesn't shutdown cleanly but hands and you need to press either Enter or Ctrl+D. Presumably, the pxh shell is hanging at getchar.
FYI: @MaEtUgR

Related: https://github.com/PX4/Firmware/issues/10098#issuecomment-415426790
My issue with less explanation for the same issue: https://github.com/PX4/windows-toolchain/issues/3
I have to deal with this problem every day... so I would be greatful to have a solution given it cannot be that complicated. The shutdown command works just fine now. Can we not do the same thing on Ctrl+C?

I believe the shutdown command works because you won't call getchar anymore afterwards. However, when you catch the SIGINT signal and try to exit it still hangs at getchar.

I just encountered a case on Linux where the first Ctrl+C didn't exit but also got stuck and the second Ctrl+C then then killed it:
pxh> INFO  [ecl/EKF] EKF aligned, (pressure height, IMU buf: 22, OBS buf: 14)
INFO  [ekf2] Mag sensor ID changed to 196616
INFO  [ecl/EKF] EKF GPS checks passed (WGS-84 origin set)
INFO  [ecl/EKF] EKF commencing GPS fusion
pxh> INFO  [mavlink] partner IP: <IP_ADDRESS>
INFO  [commander] Takeoff detected

Exiting...
^C
Exiting...
pxh> Shutting down
ninja: build stopped: interrupted by user.
Makefile:190: recipe for target 'px4_sitl_default' failed
make: *** [px4_sitl_default] Interrupt

maetugr@ubuntuvm:~/Firmware$

It's not one more SIGINT for the simulator the px4 binary processes both as can be seen from the two Exiting.... This might give a hint.

I'm still relying on the hotfix https://github.com/PX4/Firmware/pull/11305 and Ctrl+C works as expected. Not sure how to track down why the normal way it gets stuck.

Still a problem

True, this is related: https://github.com/PX4/Firmware/pull/11654 It fixed the shutdown command in my tests.


Cannot specify specific version of cpprestsdk in cmake.

We are not able to specify the specific version of cpprestsdk required for our build.
e.g.
find_package(cpprestsdk 2.10.9 EXACT REQUIRED)

From https://cmake.org/cmake/help/v3.12/command/find_package.html

For a candidate package configuration file .cmake the corresponding version file is located >next to it and named either -version.cmake or Version.cmake. If no such version >file is available then the configuration file is assumed to not be compatible with any requested version.

Thanks for posting this issue. Closed as duplicate of #5040.


docs: fix various spelling issues in kata gsg

Signed-off-by: Daniel Borkmann<EMAIL_ADDRESS>

This change is

test-docs-please

test-docs-please

Coverage decreased (-0.03%) to 41.664% when pulling e46f5f213b0d776ca65a63bd4421dfca7fc5bb31 on pr/docs-fixes into d1b812acaff3cb4ad24eb16a3593794998a5edf8 on master.


[Bug] Phone Auth timeout is being called immediately after code sent even though phoneAuthTimeoutMs is set to 60 * 1000

[REQUIRED] Please fill in the following fields:

Unity editor version: 2020.2.6f1
Firebase Unity SDK version: 7.1.0
Source you installed the SDK: UPM
Problematic Firebase Component: Auth
Other Firebase Components in use: Auth
Additional SDKs you are using: Nothing
Platform you are using the Unity editor on: Mac
Platform you are targeting: Android
Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
Phone Auth is not waiting for code auto retrieval, timeout is being called almost immediately even if timeout is set to 60 * 1000
2021-02-25 13:29:13.670 9331 19612 Info Unity Phone Auth, code sent
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.Sample.Auth.UIHandler:DebugLog(String)
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.Auth.CodeSent:Invoke(String, ForceResendingToken)
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.Auth.<CodeSentHandler>c__AnonStorey2:<>m__0()
2021-02-25 13:29:13.670 9331 19612 Info Unity System.Action:Invoke()
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.ExceptionAggregator:Wrap(Action)
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.AppUtilPINVOKE:PollCallbacks()
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.AppUtil:PollCallbacks()
2021-02-25 13:29:13.670 9331 19612 Info Unity Firebase.Platform.FirebaseHandler:Update()
2021-02-25 13:29:13.670 9331 19612 Info Unity
2021-02-25 13:29:14.939 9331 20322 Warn FirebaseAuth [SmsRetrieverHelper] Timed out waiting for SMS.
2021-02-25 13:29:14.950 9331 19612 Info Unity Phone Auth, auto-verification timed out
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.Sample.Auth.UIHandler:DebugLog(String)
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.Auth.CodeAutoRetrievalTimeOut:Invoke(String)
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.Auth.<TimeOutHandler>c__AnonStorey3:<>m__0()
2021-02-25 13:29:14.950 9331 19612 Info Unity System.Action:Invoke()
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.ExceptionAggregator:Wrap(Action)
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.AppUtilPINVOKE:PollCallbacks()
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.AppUtil:PollCallbacks()
2021-02-25 13:29:14.950 9331 19612 Info Unity Firebase.Platform.FirebaseHandler:Update()
2021-02-25 13:29:14.950 9331 19612 Info Unity

Steps to reproduce:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
Yes
What's the issue repro rate? (eg 100%, 1/5 etc)
100%
What happened? How can we make the problem occur?
Check for Phone Auth and see that timeout is ignored everytime
This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
// TODO(you): code here to reproduce the problem

I just want to make sure: when you ran the sample app, did you first follow the directions in the readme file including the directions for running the sample? If the console is not properly configured to handle phone auth that could cause it to fail.

yes I have read and made sure to check with quickstart app and our production app as well which uses Play Store signed SHA keys.

Just to clarify, did you enable Phone as sign-in method on your Firebase console?
I was trying quickstart and I did notice that it timed out immediately as well.  I'm not sure what changed.  Will need to consult with the team.

Just to clarify, did you enable Phone as sign-in method on your Firebase console?
I was trying quickstart and I did notice that it timed out immediately as well. I'm not sure what changed. Will need to consult with the team.

Yes Phone is enabled and users are able to enter OTP normally and sign in.

Alrighty. I'll ping the team to look into this.


min and negative numbers

Follow up from #834
Min currently does some offsetting which limits it's range to 32 bit. As a result the follow program doesn't print a thing:
sudo bpftrace -e 'i:ms:1 { @=min(4294967298); @=min(4294967297); exit() }'
Attaching 1 probe...

This behaviours doesn't appear to be documented either.
Would be good if we can fix this.

This works now as expected.


⚠ Bofrost.fr has degraded performance

In b27739c, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1036 ms

Resolved: Bofrost.fr performance has improved in 51f5ca8.


✏add EIP712.sol

Description
EIP-712: Typed structured data hashing and signing - https://eips.ethereum.org/EIPS/eip-712
Checklist
Ensure you completed all of the steps below before submitting your pull request:

[x] Ran forge snapshot?
[x] Ran npm run lint?
[x] Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

TODO:

add EIP712 to readme
comments, comment dividers


Minor performance improvement

PR Details

Minor performance improvement in the game engine.
Description

Dictionary.ContainsKey then Dictionary[indexer] is slower than Dictionary.TryGetValue since it'll go through twice to get the value so code is changed to single retrieval.
UIBatch has a static readonly PrimitiveTypeToIndices which doesn't need to be a List since it's only set up once.
Repeated array access code cleaned up to be declared once. There shouldn't be any performance gain or loss from this, only cleaner code (in my opinion).
Deeper array access (eg. elementToStripDefinitions[dim][element][i]) might see some performance gain (don't know how smart the Jitter is for this type of code).
Use Matrix methods with ref/out parameters to reduce the number of struct copies when doing calculations.
Introduce LightPointShadowMapRendererCubeMap.ViewFaceRotationMatrices to cache a matrix calculation to be used and avoid the switch statement (ie. a branching logic).
Motivation and Context

Hopefully gain a little bit more fps.
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] 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

[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

I quickly reviewed the ContainsKey versus TryGetValue cases. I'm OK with those.
I'm not familiar with the ref implications so I will let that part for someone else to review.

LGTM, thanks again @Basewq

LGTM to me too, merging. Thanks for those small numerous improvements!


Rule suggestion: consistent usage of <React.Fragment> vs <>

Would be nice to have a rule for preferring <React.Fragment> over <>. Would love to try tackling this myself if I have the time.

I dont have much of an opinion here. One other advantage of <React.Fragment> vs <> is that <> cannot have attributes so for keyed fragments you need to use <React.Fragment> (https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html#keyed-fragments)
Instead of preferring React.Fragment over <>, I think that it could be valuable to be enforce the usage of either one for consistency.

Closing due to deprecation timeline, see #210


Example fails with ORM 5.4.24

Example of one of the logs using org.hibernate:hibernate-core:5.5.0-SNAPSHOT:20201117.201048-196:
Feersum Endjinn is a great book!
[ERROR] failed to execute statement [select author0_.id as id1_0_0_, author0_.name as name2_0_0_ from authors author0_ where author0_.id in (?,?)]
[ERROR] could not load an entity batch: [org.hibernate.example.reactive.Author#<1, 3>]
java.util.concurrent.CompletionException: org.hibernate.LazyInitializationException: Collection cannot be initialized: org.hibernate.example.reactive.Author.books
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_275]
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_275]
	at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:673) ~[?:1.8.0_275]
	at java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:683) ~[?:1.8.0_275]
	at java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2010) ~[?:1.8.0_275]
	at java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:110) ~[?:1.8.0_275]
	at org.hibernate.reactive.loader.ReactiveLoaderBasedResultSetProcessor.reactiveInitializeEntitiesAndCollections(ReactiveLoaderBasedResultSetProcessor.java:150) ~[hibernate-reactive-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
	at org.hibernate.reactive.loader.ReactiveLoaderBasedResultSetProcessor.reactiveExtractResults(ReactiveLoaderBasedResultSetProcessor.java:83) ~[hibernate-reactive-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
Error: Exception in thread "main" java.util.concurrent.CompletionException: org.hibernate.LazyInitializationException: Collection cannot be initialized: org.hibernate.example.reactive.Author.books
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at org.hibernate.reactive.loader.ReactiveLoader.reactiveProcessResultSet(ReactiveLoader.java:123) ~[hibernate-reactive-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
	at org.hibernate.reactive.loader.ReactiveLoader.lambda$doReactiveQueryAndInitializeNonLazyCollections$0(ReactiveLoader.java:71) ~[hibernate-reactive-core-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:966) ~[?:1.8.0_275]
	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940) ~[?:1.8.0_275]
	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488) ~[?:1.8.0_275]
	at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1975) ~[?:1.8.0_275]

...

Caused by: org.hibernate.LazyInitializationException: Collection cannot be initialized: org.hibernate.example.reactive.Author.books
	at org.hibernate.reactive.session.impl.ReactiveSessionImpl.initializeCollection(ReactiveSessionImpl.java:320)
	at org.hibernate.collection.internal.AbstractPersistentCollection$4.doWork(AbstractPersistentCollection.java:589)
	at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:264)
	at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:585)
	at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:149)

Goops, you're right: @Sanne and I both missed this because of other spurious failures in the CI.

I hazard a guess that this is related to #443.

Is that issue related to DirtyChecking?
I think that problem is related to this: https://github.com/hibernate/hibernate-reactive/issues/447
In fact, in the examples we have the ByteCode enhancements enabled

Is that issue related to DirtyChecking?

Well, I figured that the bug is related to batch loading. I might be wrong though.

Is that issue related to DirtyChecking?

Well, I figured that the bug is related to batch loading. I might be wrong though.

Oh well, it looks like I'm wrong and the problem is indeed elsewhere.

I'm working on a test case. Hopefully I will be able to confirm this soon enough.
It makes sense though because only the example fails and it is the only place where we enable the bytecode enhancements

OK, great.

So, yes. The problem is the dirty checking of the collection when byte code enhancements are enabled. I don't know why it was working before. Probably, this bug in ORM was hiding the problem and now that it's fixed we see it.

Uff, what a PITA.

OTOH, why does collection dirty checking even matter when we don't even have CollectionPersisters yet?

This is the issue:
The enhanced method $$_hibernate_hasDirtyAttributes has changed, from
    public boolean $$_hibernate_hasDirtyAttributes() {
        boolean var1 = false;
        var1 = this.$$_hibernate_tracker != null && !this.$$_hibernate_tracker.isEmpty();
        return var1;
    }

to
    public boolean $$_hibernate_hasDirtyAttributes() {
        boolean var1 = false;
        var1 = this.$$_hibernate_tracker != null && !this.$$_hibernate_tracker.isEmpty() || this.$$_hibernate_areCollectionFieldsDirty();
        return var1;
    }

    public boolean $$_hibernate_areCollectionFieldsDirty() {
        boolean var1 = false;
        if (!var1 && this.$$_hibernate_collectionTracker != null) {
            if (this.movies == null && this.$$_hibernate_collectionTracker.getSize("movies") != -1) {
                var1 = true;
            } else if (this.movies != null && this.$$_hibernate_collectionTracker.getSize("movies") != this.movies.size()) {
                var1 = true;
            }
        }

        return var1;
    }

the call to this.movies.size() causes a LazyInitializationException

movies is the name of the collection inside the test I've created

@DavideD so do you think that what is going on here is just that we don't have transparent lazy init (i.e. it is missing a call to fetch()), or is it something deeper?

@DavideD I've commented on https://github.com/hibernate/hibernate-orm/pull/3645, because that call to size() doesn't look right to me. (But I could easily be missing something.)

@DavideD so do you think that what is going on here is just that we don't have transparent lazy init (i.e. it is missing a call to fetch()), or is it something deeper?

I think that's the issue. I'm trying to see if I can fetch the collection somewhere so that it is already fetched.
By the way, everything works if I set the association for EAGER fetching.

I'm trying to see if I can fetch the collection somewhere so that it is already fetched.

OK, but don't kill yourself on that right now because it still feels wrong to me that we're fetching an un fetched association mappedBy just to dirty check its elements. Let's see what @beikov and @Sanne have to say.
(OTOH, even if core isn't doing the right thing in this particular case, we still might need the fix your working on in other cases.)

For additional info, this is branch with the test case (still a work in progress): https://github.com/DavideD/hibernate-reactive/tree/447-dirtychecking
Test:
https://github.com/DavideD/hibernate-reactive/blob/447-dirtychecking/it-bytecode-enhancements/src/test/java/org/hibernate/reactive/it/bytecodeenhancements/BytecodeTest.java
Entities:
https://github.com/DavideD/hibernate-reactive/tree/447-dirtychecking/it-bytecode-enhancements/src/main/java/org/hibernate/reactive/it/bytecodenhancements

Thanks @gavinking

Why is the movies collection != null? I tried to reproduce this in core, but couldn't because such a collection should never be non-null if lazy.

Well I recall that there was a kinda long discussion somewhere. An issue I opened where I argued that this "double-laziness" or collections was at least arguably bad in Hibernate ORM, and a much worse problem for HR,  where fetching isn't transparent. We need to let you obtain a reference to the collection to call fetch() on it.

OK found it. So could this be related to #374?

And https://github.com/hibernate/hibernate-orm/pull/3558

Is collectionsInDefaultFetchGroupEnabled always true in RX?

Hmm, if I set it to true, the collection is eagerly initialized.

Is collectionsInDefaultFetchGroupEnabled always true in RX?

Yup, it is.

Hmm, if I set it to true, the collection is eagerly initialized.

Ummmm ... really? That wasn't the intention!

collectionsInDefaultFetchGroupEnabled is supposed to just include the collection proxy in the default fetch group. It's not supposed to actually fetch the collection itself.
So either I totally screwed up, or something has changed since I wrote that code.

I'm with you that the current approach to enhancement is not ideal and that the field should be initialized to a persistent collection, but I think that the issue you are having in RX might be caused by something else. When I set the flag to true, I see the collection being initialized through this trace:
org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:585)
org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:149)
org.hibernate.collection.internal.AbstractPersistentCollection$1.doWork(AbstractPersistentCollection.java:178)
org.hibernate.collection.internal.AbstractPersistentCollection$1.doWork(AbstractPersistentCollection.java:163)
org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:264)
org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:162)
org.hibernate.collection.internal.PersistentBag.size(PersistentBag.java:371)
org.hibernate.test.bytecode.enhancement.dirty.DirtyTrackingCollectionTest$StringsEntity.$$_hibernate_removeDirtyFields(DirtyTrackingCollectionTest.java)
org.hibernate.test.bytecode.enhancement.dirty.DirtyTrackingCollectionTest$StringsEntity.$$_hibernate_clearDirtyCollectionNames(DirtyTrackingCollectionTest.java)
org.hibernate.test.bytecode.enhancement.dirty.DirtyTrackingCollectionTest$StringsEntity.$$_hibernate_clearDirtyAttributes(DirtyTrackingCollectionTest.java)
org.hibernate.tuple.entity.PojoEntityTuplizer.afterInitialize(PojoEntityTuplizer.java:228)
org.hibernate.persister.entity.AbstractEntityPersister.afterInitialize(AbstractEntityPersister.java:5093)
org.hibernate.engine.internal.TwoPhaseLoad.afterInitialize(TwoPhaseLoad.java:405)
org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.afterInitialize(AbstractRowReader.java:271)
org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.finishUp(AbstractRowReader.java:214)
org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:96)
org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:105)
org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:285)
org.hibernate.persister.entity.AbstractEntityPersister.doLoad(AbstractEntityPersister.java:4441)
org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4431)
org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:569)
org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:537)
org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:208)
org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:332)
org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:108)
org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:74)
org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:121)
org.hibernate.internal.SessionImpl.fireLoadNoChecks(SessionImpl.java:1186)
org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1175)
org.hibernate.internal.SessionImpl.access$2100(SessionImpl.java:193)
org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.doLoad(SessionImpl.java:2786)
org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.lambda$load$1(SessionImpl.java:2767)
org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.perform(SessionImpl.java:2723)
org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2767)
org.hibernate.internal.SessionImpl.find(SessionImpl.java:3322)
org.hibernate.internal.SessionImpl.find(SessionImpl.java:3284)
org.hibernate.test.bytecode.enhancement.dirty.DirtyTrackingCollectionTest.lambda$test$1(DirtyTrackingCollectionTest.java:57)
org.hibernate.testing.transaction.TransactionUtil.doInJPA(TransactionUtil.java:235)
org.hibernate.testing.transaction.TransactionUtil.doInJPA(TransactionUtil.java:276)
org.hibernate.test.bytecode.enhancement.dirty.DirtyTrackingCollectionTest.test(DirtyTrackingCollectionTest.java:56)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:45)
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
java.util.concurrent.FutureTask.run(FutureTask.java:266)
java.lang.Thread.run(Thread.java:748)

So $$_hibernate_removeDirtyFields() is calling size() on an uninitialized collection. Should it be?

I'm with you that the current approach to enhancement is not ideal and that the field should be initialized to a persistent collection, but I think that the issue you are having in RX might be caused by something else. When I set the flag to true, I see the collection being initialized through this trace:

I'm probably missing something, but isn't this the same issue?
It's still calling size() but from a different method

You are right. Apparently the collections aren't registered as being lazy which causes this problem. I'm investigating now.

Here a PR that should fix these issues: https://github.com/hibernate/hibernate-orm/pull/3664

Thanks @beikov, the test seems to work using that branch

@beikov excellent, thanks

Thanks @beikov, the test seems to work using that branch

@DavideD can you retest now, @beikov just updated the PR, let's see if it still fixes the problem.

Here a PR that should fix these issues: hibernate/hibernate-orm#3664

Confirmed, we just need a release of hibernate-core.

Fixed by #463
Thanks all


Add string fallback for image src

If providing a string (instead of the complex object) to image src, we should treat is as a URL automatically.

@wyozi I would like to work on this issue. Please assign this to me.

@malavshah9 I'll assign it once there's a PR :) Let me know if there are any questions

fixed by #695


Box for DragonFly BSD

Could we get a box for DragonFly BSD as well? I tried a handful of boxes from Vagrant Cloud, but they're so out of date that they can't pkg update, or else they stink at shared folder support with rsync. Would be great to see a DragonFly box that "just works" for /vagrant shared folders.

Having a quick research DragonFly BSD seems not to support VirtualBox Guest Additions for now.  Any of alternative solutions such as rsync, NFS, and SMB is required for shared folders functionality.


A typo on AEA downloader.

There is a typo on the documentation here. Instead of aea_benchmark_dataset_downloader, it should be aea_dataset_downloader that is used everywhere else.

@georgegu1997 thank you for pointing out the typo! It has been fixed in https://github.com/facebookresearch/projectaria_tools/commit/1784868636914fd5b92e687bfdccb215a88f05f1


aursync -s: allow to bump pkgrel with setconf

An alternative to cleaning cached packages, see #85. The numeric increment used should be left to the user.

Perhaps better to pick a different switch than -s, since that will likely be used for package signing.

Looks like upstream isn't interested in implementing this, so I guess I'll need to come up with a less ugly implementation of find_cached_packages in commitpkg.

Packages are now kept in a pacman CacheDir, so there's no real need anymore to implement this. It's also very simple to implement locally.


instructions re: bower

I was able to register it with Bower's registry and pull it down.  This adds instructions for both users and maintainers

Can you change https://github.com/propublica/stateface/blob/master/reference/reference.mdown instead of index.html? And then run make doc to make the index.html file?

Oops, didn't see that.  Updated…

:+1:


Update tdr-generated-graphql to 0.0.234

Updates uk.gov.nationalarchives:tdr-generated-graphql from 0.0.233 to 0.0.234.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "uk.gov.nationalarchives", artifactId = "tdr-generated-graphql" } ]

labels: library-update, early-semver-major, semver-spec-patch, commit-count:1

Changes already merged


updating dead link

updated dead link with a photo of the group

The link is from the facebook group page.


fix: Weekly and Daily views not rendering schedule in few months (clo…

…se #330)

Please check if the PR fulfills these requirements

[ ] It's submitted to right branch according to our branching model
[ ] It's right issue type on title
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[ ] The commit message follows our guidelines
[ ] Tests for the changes have been added (for bug fixes/features)
[ ] Docs have been added/updated (for bug fixes/features)
[ ] It does not introduce a breaking change or has description for the breaking change

Description
wrong date calculation
date.setFullYear(y);
date.setMonth(m - 1);
date.setDate(d);

To-Be
date.setFullYear(y, m - 1, d);

Thank you for your contribution to TOAST UI product. 🎉 😘 ✨

[5/31] 코드 확인했습니다. :)


(Feature) #1906 Categorize showdialog errors

Description

add log error for places where it missed and an error dialog is shown.
add dialogShown extra value for sentry and amplitude where error logs stay with an error dialog.
add category extra value for sentry and amplitude
send sentry report with info level if the error category is human type
categorize error logs

About #1906
Checklist:

[x] PR title matches follow: (Feature|Bug|Chore) Task Name
[x] My code follows the style guidelines of this project
[x] I have followed all the instructions described in the initial task (check Definitions of Done)
[x] I have performed a self-review of my own code
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I have added reference to a related issue in the repository
[x] I have added a detailed description of the changes proposed in the pull request. I am as descriptive as possible, assisting reviewers as much as possible.
[ ] I have added screenshots related to my pull request (for frontend tasks)
[ ] I have pasted a gif showing the feature.
[x] @mentions of the person or team responsible for reviewing proposed changes

I didn't use the 'network' error category as there is only one log about connection failed in src/components/common/connectionDialog/internetConnection.js
and it is logged with warning level - so it won't be reported to the bug tracking systems.


get download statistic for my organization packages with API

Hi!
Marketing team in my organization is wondering if there is a way to get download statistic automatically?
We push packages to nuget.org using your API, do you have any method to get package info, including download statistic?
For package we need:

Total downloads
Unique IP Address Downloads

You can use the search API to get a package's downloads. The nuget.org search service lets you filter to just a single package by writing a query like packageid:Newtonsoft.Json.
Here are some resources that may be helpful:

Search API documentation: https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#search-result
Example search API request to get just Newtonsoft.Json's metadata: https://azuresearch-usnc.nuget.org/query?q=packageid:newtonsoft.json&prerelease=true&semVerLevel=2.0.0&take=1
C# SDK to search for NuGet packages: https://docs.microsoft.com/en-us/nuget/reference/nuget-client-sdk#search-packages

Sadly, we don't have a way to determine how many unique IP addresses have downloaded a package. Please let us know if you have any additional questions!

You can use the search API to get a package's downloads. The nuget.org search service lets you filter to just a single package by writing a query like packageid:Newtonsoft.Json.
Here are some resources that may be helpful:

Search API documentation: https://docs.microsoft.com/en-us/nuget/api/search-query-service-resource#search-result
Example search API request to get just Newtonsoft.Json's metadata: https://azuresearch-usnc.nuget.org/query?q=packageid:newtonsoft.json&prerelease=true&semVerLevel=2.0.0&take=1
C# SDK to search for NuGet packages: https://docs.microsoft.com/en-us/nuget/reference/nuget-client-sdk#search-packages

Sadly, we don't have a way to determine how many unique IP addresses have downloaded a package. Please let us know if you have any additional questions!


Add, Edit or Update Front End Related Questions for FrontEndTrivia.com - JS, CSS, HTML, React, Git

Help us to Add, Edit or Update questions and answers related to the main issues a new Front End Developer should know / consider -  here  - submit pull request.

are you looking for questions and answers in specific format?


Bump jQuery.Validate version up

From @peterblazejewicz on February 3, 2017 20:53
E.g.:
https://github.com/dotnet/templating/blob/master/template_feed/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-FSharp/bower.json#L7
The 1.15.0 version works just fine with scaffolded content:
https://github.com/OmniSharp/generator-aspnet/blob/master/templates/projects/web/bower.json#L7
Copied from original issue: dotnet/templating#250

@sayedihashimi @phenning should we get these updated & updated in aspnet/templates as well?

Hi. Thanks for contacting us.
We're closing this issue as there was no much community interest in this ask for quite a while now.


update updated on for user role update

As of now SetOrganizationMemberRole is only called when we change role of an existing user from cli not sure what you mean by

I'm not sure it makes sense to update the users table when an org gets a new member.

And as per our discussion and issue Admin: When changing a user's role, update updated_at in the many-to-many table we wanted to update this on role change ?


⚠ Heritage of Faith Christian Church - Gold Coast has degraded performance

In de76757, Heritage of Faith Christian Church - Gold Coast (https://heritageoffaith.com.au) experienced degraded performance:

HTTP code: 200
Response time: 9593 ms

Resolved: Heritage of Faith Christian Church - Gold Coast performance has improved in 8ff150e.


[Bug] Rename ai.lua to AI.lua but it says AI.lua already exists.

As title. Can reproduce it by title.

Notice: there are case-sensitive and case-insensitive file systems.
I also use case-sensitive fs to store the code base and AI.lua & ai.lua are different names in this case.

I don't have this problem on linux. Could it be that there was a hidden file called AI.lua or maybe some other plugin causing the error?

macOS X default file system is case-insentive.
https://www.macworld.com/article/233319/how-to-convert-a-case-sensitive-mac-hfs-partition-into-a-case-insensitive-one.html

I recently added these options:
vim.opt.ignorecase = true
vim.opt.smartcase = true

not sure whether or not related.

Sorry to not respond for so long. I don't think there is anything I can do here. Neo-tree just relays your desired actions to whatever file system you are using. If the underlying file system is case insensitive, neo-tree can't do anything to change that.

@cseickel Thanks for your response. Maybe you're right but on my macOS if I have a file named ai.lua, then I can do:
mv ai.lua AI.lua

without the error saying that AI.lua already exists:


Error on major version

Console file log. machine is on 10.14.6, requested major version 10.15.6.
2020-06-04 12:49:47.856 Python[13322:43913] [Nudge] Target OS version: 10.15.6
2020-06-04 12:49:47.857 Python[13322:43913] [Nudge] Dismissal count threshold: 10
2020-06-04 12:49:47.869 Python[13322:43913] [Nudge] OS version is below the minimum threshold: 10.14.6
Traceback (most recent call last):
File “./nudge”, line 53, in
main()
File “./nudge”, line 42, in main
logic = NudgeLogic(nudge_prefs)
File “/Library/nudge/Resources/nudgelib/nudgelogic.py”, line 26, in init
self.local_url = nudge_prefs[‘local_url_for_upgrade’]
KeyError: ‘local_url_for_upgrade’

Hi @jfuchtm,
I'll try to replicate that.
Are the other issues related to this one? if so, can you add them to this one and close them?
Thanks !

Hi @jfuchtm,
I couldn't replicate this. Can you share your json or profile with your preferences?


convert gerbers to nc drill and vice versa

I've been receiving more and more drills represented as Gerbers and not NC Drill files. Would be great to add a API and command line support to convert a drill Gerber file to NC Drill file and vice versa.

Haven't seen much of that yet... are holes just represented as flashed circles?


[RFC] Removing noPermissions/ checkPermissions

checkPermissions tagged as remove later in comments
would remove the need to add new commands to allCommands
would remove the permissions DM and remove the DM message channel
remove the users.json file

removed in #117


Listening to incoming SMS not working

I cloned the repo, built it using Android Studio and installed the app on my OnePlus 9 Pro and when I send a text message to my phone it doesn't receive it in the app.  Permissions where accepted on first launch.  What is the issue?

I have the same problem.

@shounakmulay any insight or things we can try to see what the issue is?

Hey @bzark  seems like this could be a battery optimization issue.
Have a look at #115

I tried it on three different phone all running different versions of Android.  Also I'm not even testing background, this is not working when the app is actively the foreground app.

I turned battery optimization off for the example app and then ran it.  Still not receiving notifications in the app when it is foreground.

@shounakmulay @karlreginaldo
I figured out the issue, has nothing to do with battery optimization.  It has to do with what SMS client has the highest priority and it looks like Google has been maxing out that value so you cannot override their default messaging client.  I even set MySmsReceiver to the same priority value 214748364 but Googles app still shows up as receiver #0.
C:\tmp\code\Telephony>adb shell cmd package query-receivers --brief -a android.provider.Telephony.SMS_RECEIVED
5 receivers found:
Receiver #0:
priority=2147483647 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false
com.google.android.apps.messaging/.shared.receiver.ConfigSmsReceiver
Receiver #1:
priority=9999999 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false
com.example.smsreceiver/.MySmsReceiver
Receiver #2:
priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false
com.google.android.gms/.chimera.GmsIntentOperationService$GmsExternalReceiver
Receiver #3:
priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false
com.lge.email/.receiver.SmsReceiver
Receiver #4:
priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false
com.example.sms/com.shounakmulay.telephony.sms.IncomingSmsReceiver

the reason it diesn't work is because google messenger, which is default for android, doesn't send forward the messages. i downloaded and set Textra as default messaging app, and now it works


Help

Hello author! My statement has been unable to download 'from wavetf import WaveTFFactory'. How did you download it?

Hello,
Have you seen this GitHub repository? We used this repo to install wavetf.
https://github.com/fversaci/WaveTF


Added more methods and bugfix

Hey :)
I added two wallet methods, split_integrated_address, and get_bulk_payments.
There was also a small bug with the method get_transfers. Unfortunately, the method returned an error, when searching for outgoing payments. I added  :destinations to attr_accessor in the class IncomingTransfer to fix this.
Thank you for this gem. I will make a donation as well as soon as our business is profitable :)

love to hear that there are real world usecases for this gem.
i'll merge it and update the ruby-gem soon(tm)

Thank you :)
I would be happy to work further on this project. Let me know if there is any more I can do.
I'm happy with being a contributor. But I can take over if you do not want to maintain it anymore.

Thank you for inviting me :)


Make fmeum the BCR maintainer

By also making me the fixedReleaser, BCR release automation should work as it will use my fork.

@stefanbucur I believe that with this setup BCR releases should work once you cut a regular release.


Update to spack-stack-v1/skylab-3.0.0

Description
Updates the build to use spack-stack-v1/skylab-3.0.0 modules on Cheyenne.  Currently this only works for GNU, but intel builds are broken with the previous version of spack-stack too.  So this does not remove any functionality.
Issue closed
Closes #206
Tests completed

[x] 3dvar_OIE120km_WarmStart
[x] 3denvar_OIE120km_WarmStart
[x] 3dvar_OIE120km_ColdStart
[x] 3dvar_O30kmIE60km_ColdStart
[x] 3denvar_O30kmIE60km_WarmStart
[x] eda_OIE120km_WarmStart

Hi @jjguerrette, thanks for this PR. A quick question, the CMakeLists.txt used for this new build is the same included in the the build folder, there was no need to update the tagged versions, correct?

A quick question, the CMakeLists.txt used for this new build is the same included in the the build folder, there was no need to update the tagged versions, correct?

Nice catch.  build/CMakeLists.txt is only updated when we create a new tagged release in the MPAS-Workflow repo.  The group has not established how often or under what criteria that tag creation will be performed.  That's open for discussion.  Either way, that updating of build/CMakeLists.txt would be done in a standalone PR.

I am just not sure you will need to merge this into #202 's feature branch or will change the base branch to 'develop' after #202 is merged. Whatever order of merges is Ok with me.


[zh] Translate common-definitions/local-object-reference page into Chinese

Fixes: https://github.com/kubernetes/website/issues/32248
Do not have chinese docs: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/local-object-reference/
so need to translate common-definitions/local-object-reference page into Chinese

/lgtm
/approve


Recommendation: OS's theme detection

I'm writing to give advice, I saw this on fyne. Maybe you can make an automatic theme determination system for any ebitenUI application.

So this is not a bad idea, but this almost seems like it should be its own library. There doesn't seem to be a straight-forward way to determine this for Golang. I am going to leave this open as a potential enhancement, but this is going to come after adding a general theming for the library.