failed to run flet build windows

Environment
Platform: windows 11
Python version: 3.11.7(conda environment)
Flutter 3.16.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 41456452f2 (3 weeks ago) • 2024-01-25 10:06:23 -0800
Engine • revision f40e976bed
Tools • Dart 3.2.6 • DevTools 2.28.5
Description:
I want to try this feature to build my application for windows.  So I use command flet create app to create a simple project, then run flet build windows. It's output look like this:
Log
所在位置 行:1 字符: 1

cd .\app\

  + CategoryInfo          : ObjectNotFound: (D:\develop\com....ackage\app\app\:String) [Set-Location], ItemNotFoundExce
 ption
  + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

(hubdriver) PS D:\develop\com.alex\flet_study\package\app> flet build windows
Creating Flutter bootstrap project...OK
Customizing app icons and splash images...OK
Generating app icons...OK
Packaging Python app...OK
Building Windows app...Resolving dependencies...
ffi 2.1.0 (2.1.2 available)
fl_chart 0.65.0 (0.66.2 available)
flutter_lints 2.0.3 (3.0.1 available)
flutter_native_splash 2.3.7 (2.3.10 available)
js 0.6.7 (0.7.0 available)
lints 2.1.1 (3.0.0 available)
matcher 0.12.16 (0.12.16+1 available)
material_color_utilities 0.5.0 (0.8.0 available)
meta 1.10.0 (1.12.0 available)
package_info_plus 4.2.0 (5.0.1 available)
path 1.8.3 (1.9.0 available)
petitparser 5.4.0 (6.0.2 available)
test_api 0.6.1 (0.7.0 available)
toml 0.14.0 (0.15.0 available)
web 0.3.0 (0.5.0 available)
web_socket_channel 2.4.0 (2.4.3 available)
xml 6.3.0 (6.5.0 available)
Got dependencies!
17 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.
windows/flutter/CMakeLists.txt does not use FLUTTER_TARGET_PLATFORM, updating.
Building Windows application...
Building Windows application...                                  2,171ms
Argument cannot be null or empty
参数名: primarySources
CMake Error at flutter/ephemeral/.plugin_symlinks/audioplayers_windows/windows/CMakeLists.txt:29 (message):
Failed to install nuget package
Microsoft.Windows.ImplementationLibrary.1.0.210803.1
Unable to generate build files
Error building Flet app - see the log of failed command above.
(hubdriver) PS D:\develop\com.alex\flet_study\package\app> flet build windows --template-ref 0.20.0 -vv
Flutter bootstrap directory: C:\Users\28319\AppData\Local\Temp\flet_flutter_build_BAIEKPATVr
Creating Flutter bootstrap project...OK
Customizing app icons and splash images...Copying D:\develop\com.alex\flet_study\package\app\assets\icon.png to
C:\Users\28319\AppData\Local\Temp\flet_flutter_build_BAIEKPATVr\images
OK
Generating app icons...  ╔════════════════════════════════════════════════════════════════════════════╗
║ The Dart tool uses Google Analytics to report feature usage statistics     ║
║ and to send basic crash reports. This data is used to help improve the     ║
║ Dart platform and tools over time.                                         ║
║                                                                            ║
║ To disable reporting of analytics, run:                                    ║
║                                                                            ║
║   dart --disable-analytics                                                 ║
║                                                                            ║
╚════════════════════════════════════════════════════════════════════════════╝
Resolving dependencies in C:\Users\28319\AppData\Local\Temp\flet_flutter_build_BAIEKPATVr... (4.4s)
Got dependencies in C:\Users\28319\AppData\Local\Temp\flet_flutter_build_BAIEKPATVr.
Building package executable... (1.8s)
Built flutter_launcher_icons:flutter_launcher_icons.
════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.13.1)
════════════════════════════════════════════
• Creating default icons Android
• Overwriting the default Android launcher icon with a new icon
• Overwriting default iOS launcher icon with new icon
Creating Icons for Web...
Creating Icons for Windows...
Creating Icons for MacOS...
✓ Successfully generated launcher icons
OK
Packaging Python app...Building package executable... (1.1s)
Built serious_python:main.
Running package command
Creating asset directory: C:\Users\28319\AppData\Local\Temp\flet_flutter_build_BAIEKPATVr\app
Copying Python app from D:\develop\com.alex\flet_study\package\app to C:\Users\28319\AppData\Local\Temp\serious_python_temp9d6f8ff1
Installing dependencies [flet-embed] with pip command to C:\Users\28319\AppData\Local\Temp\serious_python_temp9d6f8ff1_pypackages_
Extracting Python distributive from C:\Users\28319\AppData\Local\Temp\cpython-3.11.6+20231002-x86_64-pc-windows-msvc-shared-install_only.tar.gz to C:\Users\28319\AppData\Local\Temp\hostpython3.11_5b4648c8
Compiling Python sources at C:\Users\28319\AppData\Local\Temp\serious_python_temp9d6f8ff1
Delete unnecessary files with extensions: [.py, .c, .h, .typed, .exe]
Delete unnecessary files and directories: [pycache, bin]
Creating app archive at C:\Users\28319\AppData\Local\Temp\flet_flutter_build_BAIEKPATVr\app/app.zip from C:\Users\28319\AppData\Local\Temp\serious_python_temp9d6f8ff1
Deleting temp directory C:\Users\28319\AppData\Local\Temp\serious_python_temp9d6f8ff1
Deleting Python directory C:\Users\28319\AppData\Local\Temp\hostpython3.11_5b4648c8
OK
Building Windows app...['D:\Application\flutter3.16.9\flutter\bin\flutter.BAT', 'build', 'windows']
Resolving dependencies...
ffi 2.1.0 (2.1.2 available)
fl_chart 0.65.0 (0.66.2 available)
flutter_lints 2.0.3 (3.0.1 available)
flutter_native_splash 2.3.7 (2.3.10 available)
js 0.6.7 (0.7.0 available)
lints 2.1.1 (3.0.0 available)
matcher 0.12.16 (0.12.16+1 available)
material_color_utilities 0.5.0 (0.8.0 available)
meta 1.10.0 (1.12.0 available)
package_info_plus 4.2.0 (5.0.1 available)
path 1.8.3 (1.9.0 available)
petitparser 5.4.0 (6.0.2 available)
test_api 0.6.1 (0.7.0 available)
toml 0.14.0 (0.15.0 available)
web 0.3.0 (0.5.0 available)
web_socket_channel 2.4.0 (2.4.3 available)
xml 6.3.0 (6.5.0 available)
Got dependencies!
17 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.
windows/flutter/CMakeLists.txt does not use FLUTTER_TARGET_PLATFORM, updating.
Argument cannot be null or empty
参数名: primarySources
CMake Error at flutter/ephemeral/.plugin_symlinks/audioplayers_windows/windows/CMakeLists.txt:29 (message):
Failed to install nuget package
Microsoft.Windows.ImplementationLibrary.1.0.210803.1
Building Windows application...                                  2,080ms
Unable to generate build files
Deleting Flutter bootstrap directory C:\Users\28319\AppData\Local\Temp\flet_flutter_build_BAIEKPATVr
Error building Flet app - see the log of failed command above.
(hubdriver) PS D:\develop\com.alex\flet_study\package\app> python -m
Argument expected for the -m option
usage: D:\Application\anaconda\envs\hubdriver\python.exe [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
(hubdriver) PS D:\develop\com.alex\flet_study\package\app> python -V
Python 3.11.7
(hubdriver) PS D:\develop\com.alex\flet_study\package\app> flutter -V
Could not find an option or flag "-V".
Run 'flutter -h' (or 'flutter  -h') for available flutter commands and options.
(hubdriver) PS D:\develop\com.alex\flet_study\package\app> flutter -v
Manage your Flutter app development.
Common commands:
flutter create
Create a new Flutter project in the specified directory.
flutter run [options]
Run your Flutter application on an attached device or in an emulator.
Usage: flutter  [arguments]
Global options:
-h, --help                      Print this usage information.
-v, --verbose                   Noisy logging, including all shell commands executed.
If used with "--help", shows hidden options. If used with "flutter doctor", shows
additional diagnostic information. (Use "-vv" to force verbose logging in those cases.)
--prefixed-errors           Causes lines sent to stderr to be prefixed with "ERROR:".
--quiet                     Reduce the amount of output from some commands.
--[no-]wrap                 Toggles output word wrapping, regardless of whether or not the output is a terminal.
(defaults to on)
--wrap-column               Sets the output wrap column. If not set, uses the width of the terminal. No wrapping occurs
if not writing to a terminal. Use "--no-wrap" to turn off wrapping when connected to a
terminal.
-d, --device-id                 Target device id or name (prefixes allowed).
--version                   Reports the version of this tool.
--machine                   When used with the "--version" flag, outputs the information using JSON.
--[no-]color                Whether to use terminal colors (requires support for ANSI escape sequences).
(defaults to on)
--[no-]version-check        Allow Flutter to check for updates when this command runs.
(defaults to on)
--enable-analytics          Enable telemetry reporting each time a flutter or dart command runs.
--disable-analytics         Disable telemetry reporting each time a flutter or dart command runs, until it is
re-enabled.
--suppress-analytics        Suppress analytics reporting for the current CLI invocation.
--packages                  Path to your "package_config.json" file.
Local build selection options (not normally required):
--local-engine-src-path     Path to your engine src directory, if you are building Flutter locally.
Defaults to $FLUTTER_ENGINE if set, otherwise defaults to the path given in your
pubspec.yaml dependency_overrides for sky_engine, if any.
--local-engine              Name of a build output within the engine out directory, if you are building Flutter
locally.
Use this to select a specific version of the engine if you have built multiple engine
targets.
This path is relative to "--local-engine-src-path" (see above).
--local-engine-host         The host operating system for which engine artifacts should be selected, if you are
building Flutter locally.
This is only used when "--local-engine" is also specified.
By default, the host is determined automatically, but you may need to specify this if you
are building on one platform (e.g. MacOS ARM64) but intend to run Flutter on another (e.g.
Android).
--local-web-sdk             Name of a build output within the engine out directory, if you are building Flutter
locally.
Use this to select a specific version of the web sdk if you have built multiple engine
targets.
This path is relative to "--local-engine-src-path" (see above).
Options for testing the "flutter" tool itself:
--show-test-device          List the special "flutter-tester" device in device listings. This headless device is used
to test Flutter tooling.
--show-web-server-device    List the special "web-server" device in device listings.
--ci                        Enable a set of CI-specific test debug settings.
Available commands:
Flutter SDK
bash-completion   Output command line shell completion setup scripts.
channel           List or switch Flutter channels.
config            Configure Flutter settings.
doctor            Show information about the installed tooling.
downgrade         Downgrade Flutter to the last active version for the current channel.
precache          Populate the Flutter tool's cache of binary artifacts.
upgrade           Upgrade your copy of Flutter.
Project
analyze           Analyze the project's Dart code.
assemble          Assemble and build Flutter resources.
build             Build an executable app or install bundle.
clean             Delete the build/ and .dart_tool/ directories.
create            Create a new Flutter project.
drive             Run integration tests for the project on an attached device or emulator.
gen-l10n          Generate localizations for the current project.
pub               Commands for managing Flutter packages.
run               Run your Flutter app on an attached device.
test              Run Flutter unit tests for the current project.
Tools & Devices
attach            Attach to a running app.
custom-devices    List, reset, add and delete custom devices.
daemon            Run a persistent, JSON-RPC based server to communicate with devices.
debug-adapter     Run a Debug Adapter Protocol (DAP) server to communicate with the Flutter tool.
devices           List all connected devices.
emulators         List, launch and create emulators.
install           Install a Flutter app on an attached device.
logs              Show log output for running Flutter apps.
screenshot        Take a screenshot from a connected device.
symbolize         Symbolize a stack trace from an AOT-compiled Flutter app.
Run "flutter help " for more information about a command.
Run "flutter help -v" for verbose help output, including less commonly used options.
(hubdriver) PS D:\develop\com.alex\flet_study\package\app> flutter --version
Flutter 3.16.9 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 41456452f2 (3 weeks ago) • 2024-01-25 10:06:23 -0800
Engine • revision f40e976bed
Tools • Dart 3.2.6 • DevTools 2.28.5
(hubdriver) PS D:\develop\com.alex\flet_study\package\app>
(hubdriver) PS D:\develop\com.alex\flet_study\package\app> flet build windows
Creating Flutter bootstrap project...OK
Customizing app icons and splash images...OK
Generating app icons...OK
Packaging Python app...OK
Building Windows app...Resolving dependencies...
ffi 2.1.0 (2.1.2 available)
fl_chart 0.65.0 (0.66.2 available)
flet 0.19.0 (0.20.0 available)
flutter_lints 2.0.3 (3.0.1 available)
flutter_native_splash 2.3.7 (2.3.10 available)
js 0.6.7 (0.7.0 available)
lints 2.1.1 (3.0.0 available)
matcher 0.12.16 (0.12.16+1 available)
material_color_utilities 0.5.0 (0.8.0 available)
meta 1.10.0 (1.12.0 available)
package_info_plus 4.2.0 (5.0.1 available)
path 1.8.3 (1.9.0 available)
petitparser 5.4.0 (6.0.2 available)
test_api 0.6.1 (0.7.0 available)
toml 0.14.0 (0.15.0 available)
web 0.3.0 (0.5.0 available)
web_socket_channel 2.4.0 (2.4.3 available)
xml 6.3.0 (6.5.0 available)
Got dependencies!
18 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.
windows/flutter/CMakeLists.txt does not use FLUTTER_TARGET_PLATFORM, updating.
Building Windows application...
Building Windows application...                                  2,083ms
Argument cannot be null or empty
参数名: primarySources
CMake Error at flutter/ephemeral/.plugin_symlinks/audioplayers_windows/windows/CMakeLists.txt:29 (message):
Failed to install nuget package
Microsoft.Windows.ImplementationLibrary.1.0.210803.1
Unable to generate build files
Error building Flet app - see the log of failed command above.

Try creating file at %appdata%\NuGet\NuGet.config with the following contents and run flet build windows again:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration>

A new error
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5):
warning MSB8029: �м�Ŀ¼�����Ŀ¼�޷�פ������ʱĿ¼�£���Ϊ����ܻᵼ���������ɳ������⡣
[C:\Users\28319\AppData\Local\Temp\flet_flutter_build_vXSfsZRtBv\build\windows\x64\ZERO_CHECK.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5):
warning MSB8029: �м�Ŀ¼�����Ŀ¼�޷�פ������ʱĿ¼�£���Ϊ����ܻᵼ���������ɳ������⡣
[C:\Users\28319\AppData\Local\Temp\flet_flutter_build_vXSfsZRtBv\build\windows\x64\plugins\serious_python_windows\CopyPytho
nDLLs.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5):
warning MSB8029: �м�Ŀ¼�����Ŀ¼�޷�פ������ʱĿ¼�£���Ϊ����ܻᵼ���������ɳ������⡣
[C:\Users\28319\AppData\Local\Temp\flet_flutter_build_vXSfsZRtBv\build\windows\x64\flutter\flutter_assemble.vcxproj]
Error detected in pubspec.yaml:
No file or variants found for asset: app/app.zip.hash.
C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066:
��C:\Users\28319\AppData\Local\Temp\flet_flutter_build_vXSfsZRtBv\build\windows\x64\CMakeFiles\2306a2d06f54784e0c5a125c542d
054d\flutter_windows.dll.rule;C:\Users\28319\AppData\Local\Temp\flet_flutter_build_vXSfsZRtBv\build\windows\x64\CMakeFiles
3efcce3238d1809755f24c15598becec\flutter_assemble.rule�����Զ����������˳�������Ϊ 1��
[C:\Users\28319\AppData\Local\Temp\flet_flutter_build_vXSfsZRtBv\build\windows\x64\flutter\flutter_assemble.vcxproj]
Build process failed.
Error building Flet app - see the log of failed command above.

What version of Flet do you have. Please upgrade to the latest Flet 0.20.0.

Thank you! It's finger out!


fix(NX-3190): fix bug on CBN flow for edition sets

The type of this PR is: Bugfix

This PR solves NX-3190
Description

This fix is needed because otherwise Conversational Buy Now Flow for artworks containing more than 1 edition set would lead to "Make Offer" flow instead of "Buy Now".
The solution here consists of passing the param between different components so we can control if an order is an offer or purchase. We understand this is not the ideal solution, this is a quick fix so we can release the feature tomorrow. We'll work separately on a proper refactor to avoid the prop drilling (NX-3208).

Thanks a lot for the pairing session and for the careful review, @lean8086 💜
I just pushed the changes removing the unneeded references and the typofix!


Update deprecations

Add more deprecations, disable deprecations and remove disabled code.
Do not merge this until the next Homebrew/brew tag will be a minor version (2.4).

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

will be a minor version (2.4).

No 2.3?

No 2.3?

Fixed. I cannot remember these things apparently any more 😅


Add support for const

JSON Schema draft 6 introduces const, which is syntactic sugar for a single-valued enum. This PR adds support for this keyword.

Dear @AlpAribal, thank you for your contribution! Could you please email me a copy of the signed DCO at<EMAIL_ADDRESS>


Fix incorrect data type on ActionSource

What type of PR is this?
/kind bug
What this PR does / why we need it:
Use pointer type to avoid unexpected initializtion
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:

/lgtm

/lgtm

/approve


Clarify supported sphinx versions

In https://github.com/tox-dev/sphinx-autodoc-typehints/pull/258 (and version 1.19.3) the pyproject.toml was updated to contain:
https://github.com/tox-dev/sphinx-autodoc-typehints/blob/73c6dfe488da724a1d578d6264b94bf89b0e377f/pyproject.toml#L19
Does this mean sphinx-autodoc-typehints is now only compatible with the very latest sphinx version? Is there a breaking change in sphinx that necessitates this?

It seems this restrictive sphinx lower bound was first introduced as Sphinx>=5.1.1 here:
https://github.com/tox-dev/sphinx-autodoc-typehints/commit/ccc75d244d0f4452048f80fc73e39a34a4eefc00#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711

Does this mean sphinx-autodoc-typehints is now only compatible with the very latest sphinx version? Is there a breaking change in sphinx that necessitates this?

This is the only version we test for, so it make sense to declare requiring this.

Why would you not want to use the latest stable release?

In the ideal world we would, but it's not that simple - even now we have some blockers with newer sphinx releases due to latex builds, so we need to pin sphinx until we can resolve it. In the meantime if there are improvements in extensions such as sphinx-autodoc-typehints that are not breaking changes with older sphinx versions then those are most welcome.
I think it's very natural to run on older versions of sphinx for many projects until time allows one to update - I wouldn't be surprised that many projects run sphinx 4.x with sphinx-autodoc-typehints. A restrictive lower bound on a dependency signals that there is some breaking change, but as I understand, it may not be the case here. Lower bounding the requirement to a very recent sphinx version without breaking changes being done or reported just means many projects will keep using 1.19.2 until they can upgrade their sphinx stack, and not benefit from updates to the extension in the meantime.

The problem that as we add changes we never test with older versions so there's no gurantee at all that an older version of sphinx will work with the latest version of sphinx-autodoc-typehints.


RAISE_OMNI_SHARP_LAUNCHER_EXCEPTION

I am seeing this more and more
LAUNCH!!! C:\Users\scott_000\AppData\Roaming\Sublime Text 3\Packages\OmniSharp\launchers\omni_sharp_launcher.py
RAISE_OMNI_SHARP_LAUNCHER_EXCEPTION:FileNotFoundError(2, 'The system cannot find the file specified', None, 2)

on new installs. There isn't enough info in the error for someone to solve this. Config.json is there and the path is correct.

Please consider launching python on windows by using the "python launcher":
https://www.python.org/dev/peps/pep-0397/

We won't be needing an external python to launch in the future


Need to update to Data instead of catalog in admin steps

[Instead of catalog it is now Data tp update metastore admin access]

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

ID: 75834319-1e5b-abf2-84f4-fdc43dcf9e08
Version Independent ID: 75834319-1e5b-abf2-84f4-fdc43dcf9e08
Content: Admin privileges in Unity Catalog - Azure Databricks
Content Source: databricks/data-governance/unity-catalog/manage-privileges/admin-privileges.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

@morisettik
Thanks for your feedback! We will investigate and update as appropriate.

@morisettik
Thank you for bringing this to our attention.
I've delegated this to content author @kateglee-db, who will review it and offer their insightful opinions.

@kateglee-db
Could you please review add comments on this, update as appropriate.

Thanks for providing feedback that helps improve our documentation. We've created an internal work item (DOC-13206) to address your feedback. The timeline for resolution varies based on resourcing.
#please-close


Ft 180889302 submit button

What does this PR do?

Creates submit button with hover effect

Description of Task to be completed?

Create submit button with hover effect

How should this be manually tested?
npm install and then open index.html on any browser of your choice.
Any background context you want to provide?

None

What are the relevant pivotal tracker stories?

https://www.pivotaltracker.com/story/show/180889302

Screenshots (if appropriate)
https://user-images.githubusercontent.com/59937419/151206298-4f3089c0-e1f6-4824-bf1d-51a771c64c62.mp4
Questions:

None

@ginabeki  this looks fine, one edit request, can we line up the with and the textarea to match the width of the inputs above, so that we eliminate the trailing space.

@ginabeki this looks fine, one edit request, can we line up the with and the textarea to match the width of the inputs above, so that we eliminate the trailing space.

@e-liyai on it.

@ginabeki this looks fine, one edit request, can we line up the with and the textarea to match the width of the inputs above, so that we eliminate the trailing space.

@e-liyai on it.

@e-liyai Done.


About page fix

Fixed broken target=_blank link

DIdn't mean to try to merge, was fixing merge conflict.

closing this as we're not listing members currently on the site


Demo or the trained model?

Thanks for the fantastic work, Do you plan to release the demo code or the pre-trained models?

All models can be trained using only two 3090 GPUs with appropriate configurations. We encourage users to directly train the corresponding models. However, due to the model sizes exceeding the limit of the free version of the cloud storage, we are unable to provide the respective training models temporarily (all experiments can be tried directly). If there are any difficulties, we will offer assistance. Additionally, for the task of incremental learning, we have not yet found an intuitive way to demonstrate it.


In IOS, mp3 or wave file for web urls are not working for parse with port in the url.

🐛 Bug Report

@martijn00
Let me start.
I have tested some URLs for playing audio for example.
https://ia800806.us.archive.org/15/items/Mp3Playlist_555/AaronNeville-CrazyLove.mp3
Above URL is working. My URL and audio file is here.
example:
https://devfra.dev.vms.me:1337/api/files/vms/e9f07532ac4ce876e0b652cc8a8c2228_FYHYL700QEXPZSUB.mp3
I have tried previously from moving to HTTPS instead of HTTP but now, I am stuck. It is working perfectly on Android.
The only thing now, I am getting in debug mode is this.
2019-05-28 14:03:26.417 Messagenius.iOS[388:29357] -[AVAsset loadValuesAsynchronouslyForKeys:completionHandler:] invoked with unrecognized keys (
title,
artwork,
artist
).
I don't know for my audio file I don't need these details to work on, I am only trying to make it work for playing audio from url for my messaging application.
Note: If you need additional details just let me know.
Expected behavior
It should work, as AVPlayer will work on this.
Reproduction steps
Just try to use above url in IOS application using
await CrossMediaManager.Current.Play("https://devfra.dev.vms.me:1337/api/files/vms/e9f07532ac4ce876e0b652cc8a8c2228_FYHYL700QEXPZSUB.mp3"); //https://ia800806.us.archive.org/15/items/Mp3Playlist_555/AaronNeville-CrazyLove.mp3
Configuration
You must be using xamarin.forms
Version: 1.x
Platform:

[ 12.2] :iphone: iOS
[ 4.0.0] :Xamarin.Forms

@ihassantariq please edit your issue to use the issue template. Otherwise this will be closed.

@martijn00 done.

Can you look at: https://github.com/martijn00/XamarinMediaManager#important under the iOS section? You probably have to take care of ATS. Let me know if that works.

@ihassantariq i cannot access your sample url.

Sorry, I have been changing the database values so for testing you can use this url.
https://devfra.dev.vms.me/api/files/vms/7995a61dfbae4792aadfa73440ef7c13_V0Z283GOKOPB46UW.mp3


Mixing open generic and closed types for IEnumerable

Hi Team,
I'm having trouble getting a particular scenario to work. I want to resolve all instances of a closed generic type, where the registrations may contain both concrete and open registrations:
public interface IHandler<TRequest, TResponse>
{
    TResponse Handle(TRequest request);
}

public class OpenHandler<TRequest, TResponse> : IHandler<TRequest, TResponse>
{
    public TResponse Handle(TRequest request)
    {
        return default(TResponse);
    }
}

public class ClosedHandler : IHandler<string, int>
{
    public int Handle(string request)
    {
        return int.Parse(request);
    }
}

When I try and resolve all instances of IHandler<string, int>, only the concrete implementation is returned:
var services = new ServiceCollection();
services.AddTransient<IHandler<string, int>, ClosedHandler>();
services.AddTransient(typeof(IHandler<,>), typeof(OpenHandler<,>));

var provider = services.BuildServiceProvider();
var handlers = provider.GetServices<IHandler<string, int>>().ToArray(); // Only 1 item  - ClosedHandler

I thought I'd test other containers to see what they do:
class Program
{
    static void Main(string[] args)
    {
        #region Stock
        {
            var services = new ServiceCollection();
            services.AddTransient<IHandler<string, int>, ClosedHandler>();
            services.AddTransient(typeof(IHandler<,>), typeof(OpenHandler<,>));

            var provider = services.BuildServiceProvider();
            var handlers = provider.GetServices<IHandler<string, int>>().ToArray(); // Returns 1
        }
        #endregion

        #region StructureMap
        {
            var container = new StructureMap.Container(c =>
            {
                c.For<IHandler<string, int>>().Use<ClosedHandler>();
                c.For(typeof(IHandler<,>)).Use(typeof(OpenHandler<,>));
            });

            var handlers = container.GetAllInstances<IHandler<string, int>>().ToArray(); // Returns 1
        }
        #endregion

        #region Autofac
        {
            var builder = new Autofac.ContainerBuilder();
            builder.RegisterType<ClosedHandler>().As<IHandler<string, int>>().InstancePerLifetimeScope();
            builder.RegisterGeneric(typeof(OpenHandler<,>)).As(typeof(IHandler<,>)).InstancePerLifetimeScope();

            var container = builder.Build();

            var handlers = container.Resolve<IEnumerable<IHandler<string, int>>>().ToArray(); // Returns 2
        }
        #endregion

        #region Ninject
        {
            var kernel = new Ninject.StandardKernel();
            kernel.Bind<IHandler<string, int>>().To<ClosedHandler>();
            kernel.Bind(typeof(IHandler<,>)).To(typeof(OpenHandler<,>));

            var handlers = kernel.GetAll<IHandler<string, int>>().ToArray(); // Returns 2
        }
        #endregion

        #region SimpleInjector
        {
            var container = new SimpleInjector.Container();
            container.RegisterCollection(typeof(IHandler<,>), new[]
            {
                typeof(ClosedHandler),
                typeof(OpenHandler<,>)
            });

            var handlers = container.GetAllInstances<IHandler<string, int>>().ToArray(); // Returns 2
        }
        #endregion
    }
}

Here is my project file:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp1.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Autofac" Version="4.4.0" />
    <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="1.1.0" />
    <PackageReference Include="Ninject" Version="4.0.0-beta-0134" />
    <PackageReference Include="SimpleInjector" Version="4.0.0-beta1" />
    <PackageReference Include="StructureMap" Version="4.4.3" />
  </ItemGroup>

</Project>

In all but Microsoft.Extensions.DependencyInjection and StructureMap, all other contains return both instances.
What would your recommendation be to achieve this? Is this functionality missing?

For StructureMap, what happens if you register the closed type after the open type?

@khellang
Sorry for the late reply - here is the results of changing order:
[0] OpenHandler<>
[1] ClosedHandler

Microsoft.Extensions.DependencyInjection - 1 handler - ClosedHandler
StructureMap - 1 handler - ClosedHandler
Autofac - 2 handlers - OpenHandler<> and then ClosedHandler
Ninject - 2 handlers - ClosedHandler and then OpenHandler<>
SimpleInjector - 2 handlers - OpenHandler<> and then ClosedHandler

@Antaris Take a look at Use vs Add :smile:

@khellang You're right, by making that change, StructureMap behaves like the other containers (with the exception of Ninject which returned them in a different order).
You're also right, this doesn't solve the root issue ;-)

@pakrym - Done/Close? Or more work needed?

We reverted previous fix, new PR https://github.com/aspnet/DependencyInjection/pull/533


Fixed Unnecessary generator

➜  ruff check --select=C401
django/test/runner.py:1056:36: C401 Unnecessary generator (rewrite as a `set` comprehension)
Found 1 error.

Rule description: https://docs.astral.sh/ruff/rules/unnecessary-generator-set/
There are already many of the same examples in the code, there is no point in leaving one single example written differently

We try to avoid trivial code reformatting unless it's a big problem as it creates extra noise in the history.


explain the purpouse of UserActivityAttribute.AddImageQuery property …

API owners, please review my edit as it covers what I understand this is for based on the example. I see documentation for what can be in the query string is missing. please add that.

@ChrisGuzak,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Impossible to make data changes in the result set editor on Sybase connections

After update to version 3.5.4, I can't make data changes in the result set editor on Sybase connections. The double click to edit in cell or in external dialog doesn't works. Add, duplicate, delete also doesn't works.

This is not Sybase-specific issue. Some other databases were also affected.
Fix will be in the next release.


Add option to automatically match system theme dark/light mode

Currently sleek has a light and a dark theme. A nice addition to that is the option to automatically match the system theme dark/light mode. e.g. if system is currently using "dark" theme, sleek should also use the dark theme.

@shbach That is a good point. sleek actually detects the OS current setting for dark mode on its first start. But then that is being persisted right away and won't change again, before the user toggles it.
For future development I think we should let sleek always adjust to the OS preference until a user actively uses the dark mode toggle. Another option I will think about is to replace the toggle with a select box in which users can select between light, dark and system default
I'll keep you posted when there is been progress on this. At the moment I'm only refactoring code and there is little feature development.

@shbach this can be tested in https://github.com/ransome1/sleek/releases/tag/v1.1.8-rc.4

@shbach More fine tuning has been done in: https://github.com/ransome1/sleek/releases/tag/v1.1.8-rc.5

@ransome1 Just tested it and it works! Only thing is that it requires me to restart the app. Ideally, it will change between dark/light without requiring a restart of the app. I have my system set up to change between light and dark depending on the time of day.

A restart is not required for this to change. What OS are you on?

@shbach on MacOS it updates immediately, no restart required

@shbach @mshuflin I also checked my Windows 11 VM and it works. So this might be a Linux issue, I'm going to check XFCE and Gnome later today.

Yeah I'm on Linux (Gnome).

@shbach mmhh I can't really confirm this. I'm on Gnome 40 (Arch Linux) and if I select Dark or Light in sleeks settings, it just switches the color theme.
Can you provide more details on what exactly you're doing? Are you just using the options in sleek or have you set the new theme selection to auto and then try to change something in the OS settings?

@ransome1 I have sleek set to auto. When I change the system theme from light to dark or vice versa I want sleek to update its theme accordingly without having to restart the app.

@shbach how exactly do you switch the system theme in Gnome?

@ransome1 It depends on what version of Gnome you are on. If Gnome 42 you can use the built-in setting under appearance. If on an earier version of Gnome you can install Gnome Tweaks and manually change it. Or you can use the night theme switcher extension to automate switching it depending on the time of day.


Revenants can interact with cryopods while not material

Description
And by extension prevent cooling down while crew can't do anything about it.
Reproduction

Put Urist in cryopod.
Be revenant.
Kick out urist from pod without ever leaving ghost realm.

feature


Something wrong with the alpha channel

I used the compress code to compress a png file. After I got the dds file I put it into photoshop which has got plugin nvidia-texture-tools-exporter and found that some alpha channels were wrong.
This is the  original png file. It is round-bordered.

This is the dds image, which I have transferred to png format with photoshop.

the arguments are
-astc_ldr_6x6 3011000_best.png
It looks like that every 6 by 6 block share the same alpha channel.

Hi @liberty752 , thanks for reporting this issue! I can confirm this is a bug: it looks like NVTT 3.2.0 and 3.2.1's code for reading the EncodeFlags_Opaque flag gave the opposite result of what it should — so images using AlphaMode_Transparent or AlphaMode_Premultiplied would use the opaque compression code, and images using AlphaMode_Opaque would use compressors that supported transparency.
We have a fix for this that will be released in the next version of NVTT (and I'll keep this issue open until we release it); in the meantime, two workarounds are either to specify the opposite alpha mode of the input on the command line (i.e. -noalpha for textures with transparency, as you noticed), or to flip the alpha mode in code (which I'll add to the sample here shortly until the new version is released):
if (alpha_set)
{
  // Workaround for an issue in NVTT 3.2.0 and 3.2.1 where AlphaMode is flipped:
  // https://github.com/nvpro-samples/nvtt_samples/issues/3
  if(30200 <= NVTT_VERSION && NVTT_VERSION <= 30201)
  {
    alphaMode = alpha ? nvtt::AlphaMode_None: nvtt::AlphaMode_Transparency ;
  }
  else
  {
    alphaMode = alpha ? nvtt::AlphaMode_Transparency : nvtt::AlphaMode_None;
  }
}

Thanks again!

I've added this workaround in the latest version of nvtt_compress, so -alpha and -noalpha should now work correctly. Thanks again!

Thank you. I'll use the opposite alpha mode until next release.

Hi @liberty752 ! We've just released NVTT 3.2.2, which fixes the swapped alpha mode bug. You can download it from here:

Windows x86_64: https://developer.nvidia.com/downloads/texture-tools-standalone-app
Linux x86_64: https://developer.nvidia.com/downloads/texture-tools-linux-x86-64
Linux AArch64: https://developer.nvidia.com/downloads/texture-tools-linux-aarch64

Thanks again!


flutter web - dio bloc's (freezes) ui while getting json response

Using default flutter project simple dio.get freezes CircularProgressIndicator while receiving response.
Tested first on iphone and ipad, works fine.
Then converted project to flutter web.
//code
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
    primarySwatch: Colors.blue,
  ),
  home: MyHomePage(title: 'Flutter Demo Home Page'),
);

}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
int _counter = 1;
void _incrementCounter() async {
setState(() {
  _counter++;
});

if (_counter % 2 == 0){
  try {
    print("Call api");
    var dio = Dio();

    Response response = await dio.get('https://antara.oxyproductservices.com/all');

    if(response.statusCode == 200) {
      print('Status ok');
      print(response.data);
    }else{
      print('ERROR -- ${response.statusCode}');
    }
  }catch(error){
    print('Dio error: $error');
  }

}

}
@override
Widget build(BuildContext context) {
return Scaffold(
  appBar: AppBar(
    title: Text(widget.title),
  ),
  body: Center(
    child: Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
        Text(
          'You have pushed the button this many times:',
        ),
        Text(
          '$_counter',
          style: Theme.of(context).textTheme.headline4,
        ),
        _presentProgress(),
      ],
    ),
  ),
  floatingActionButton: FloatingActionButton(
    onPressed: _incrementCounter,
    tooltip: 'Increment',
    child: Icon(Icons.add),
  ), // This trailing comma makes auto-formatting nicer for build methods.
);

}
_presentProgress() {
if (_counter % 2 == 0){
return CircularProgressIndicator();
}else{
return Text('Press (+) to send Api request');
}
}
}

same problem here

Same problem.
One small addition here.
I tested posting the same request with standart http in flutter it works as expected and does not hang.

This is still the issue in dio: ^3.0.10

Hello guys; I use the following adapter for the web and things works just fine for me.
`import 'dart:async';
import 'dart:typed_data';
import 'package:dio/dio.dart';
import 'package:universal_html/html.dart' as html;
class WebClientAdapter implements HttpClientAdapter {
/// These are aborted if the client is closed.
final _xhrs = <html.HttpRequest>[];
/// Whether to send credentials such as cookies or authorization headers for
/// cross-site requests.
///
/// Defaults to false.
///
/// You can also override this value in Options.extra['withCredentials'] for each request
bool withCredentials = false;
@override
Future fetch(RequestOptions options, Stream<List> requestStream, Future cancelFuture) async {
var xhr = html.HttpRequest();
_xhrs.add(xhr);
xhr
  ..open(options.method, options.uri.toString(), async: true)
  ..responseType = 'blob'
  ..withCredentials = options.extra['withCredentials'] ?? withCredentials;
options.headers.remove(Headers.contentLengthHeader);
options.headers.forEach((key, v) => xhr.setRequestHeader(key, '$v'));
var completer = Completer<ResponseBody>();

xhr.onLoad.first.then((_) {
  // TODO: Set the response type to "arraybuffer" when issue 18542 is fixed.
  var blob = xhr.response ?? html.Blob([]);
  var reader = html.FileReader();

  reader.onLoad.first.then((_) {
    var body = reader.result as Uint8List;

    completer.complete(
      ResponseBody.fromBytes(
        body,
        xhr.status,
        headers: xhr.responseHeaders.map((k, v) => MapEntry(k, v.split(','))),
        statusMessage: xhr.statusText,
        isRedirect: xhr.status == 302 || xhr.status == 301,
      ),
    );
  });

  reader.onError.first.then((error) {
    completer.completeError(
      DioError(
        type: DioErrorType.RESPONSE,
        error: error,
        request: options,
      ),
      StackTrace.current,
    );
  });

  reader.readAsArrayBuffer(blob);
});

xhr.onError.first.then((_) {
  // Unfortunately, the underlying XMLHttpRequest API doesn't expose any
  // specific information about the error itself.
  completer.completeError(
    DioError(
      type: DioErrorType.RESPONSE,
      error: 'XMLHttpRequest error.',
      request: options,
    ),
    StackTrace.current,
  );
});

cancelFuture?.then((_) {
  if (xhr.readyState < 4 && xhr.readyState > 0) {
    try {
      xhr.abort();
    } catch (e) {
      // ignore
    }
  }
});

if (requestStream == null) {
  xhr.send();
} else {
  List<int> r = [];
  List<List<int>> listOfLists = await requestStream.toList();
  for (int i = 0; i < listOfLists.length; i++) {
    r.addAll(listOfLists[i]);
  }
  xhr.send(Uint8List.fromList(r));
}
return completer.future.whenComplete(() {
  _xhrs.remove(xhr);
});

}
/// Closes the client.
///
/// This terminates all active requests.
@override
void close({bool force = false}) {
if (force) {
for (var xhr in _xhrs) {
xhr.abort();
}
}
_xhrs.clear();
}
}
`

This worked for me for the Web
The issue was actually using functional transformations to the request body. When the request body if a long byte array the UI just freezes.
I tried to come out with so many theories (Java-wise) with multi-threading but ended up changing the functional transformation to a for loop.
Please check out the code and let me know if it works for you.
`class WebClientAdapter implements HttpClientAdapter {
final _xhrs = <html.HttpRequest>[];
bool withCredentials = false;
@override
Future fetch(
RequestOptions options, Stream<List> requestStream, Future cancelFuture) async {
var xhr = html.HttpRequest();
_xhrs.add(xhr);
xhr
  ..open(options.method, options.uri.toString(), async: true)
  ..responseType = 'blob'
  ..withCredentials = options.extra['withCredentials'] ?? withCredentials;
options.headers.remove(Headers.contentLengthHeader);
options.headers.forEach((key, v) => xhr.setRequestHeader(key, '$v'));
var completer = Completer<ResponseBody>();

xhr.onLoad.first.then((_) {
  var blob = xhr.response ?? html.Blob([]);
  var reader = html.FileReader();

  reader.onLoad.first.then((_) {
    var body = reader.result as Uint8List;

    completer.complete(
      ResponseBody.fromBytes(
        body,
        xhr.status,
        headers: xhr.responseHeaders.map((k, v) => MapEntry(k, v.split(','))),
        statusMessage: xhr.statusText,
        isRedirect: xhr.status == 302 || xhr.status == 301,
      ),
    );
  });

  reader.onError.first.then((error) {
    completer.completeError(
      DioError(
        type: DioErrorType.RESPONSE,
        error: error,
        request: options,
      ),
      StackTrace.current,
    );
  });

  reader.readAsArrayBuffer(blob);
});

xhr.onError.first.then((_) {
  completer.completeError(
    DioError(
      type: DioErrorType.RESPONSE,
      error: 'XMLHttpRequest error.',
      request: options,
    ),
    StackTrace.current,
  );
});

cancelFuture?.then((_) {
  if (xhr.readyState < 4 && xhr.readyState > 0) {
    try {
      xhr.abort();
    } catch (e) {
      // ignore
    }
  }
});

if (requestStream == null) {
  xhr.send();
} else {
  List<int> r = [];
  List<List<int>> listOfLists = await requestStream.toList();
  for (int i = 0; i < listOfLists.length; i++) {
    r.addAll(listOfLists[i]);
  }
  xhr.send(Uint8List.fromList(r));
}
return completer.future.whenComplete(() {
  _xhrs.remove(xhr);
});

}
@override
void close({bool force = false}) {
if (force) {
for (var xhr in _xhrs) {
xhr.abort();
}
}
_xhrs.clear();
}
}
`

This is still an issue in dio: ^3.0.10
And this holds true not only for the web, but also for both iOS & Android.
As soon as the data starts to load, the UI becomes unresponsive for a while.

Checkout My solution above and I hope it'll work for you too on the web.

A simpler solution is to understand what 'await' does. The reason your requests are getting queued, is because await explicitly asks that of the framework. the solution would be to use
dio.get('https://antara.oxyproductservices.com/all').then((result){
   add(ApiResponseEvent(result));
}).catchError((error){
 //catch and handle error
});

A simpler solution is to understand what 'await' does. The reason your requests are getting queued, is because await explicitly asks that of the framework. the solution would be to use
dio.get('https://antara.oxyproductservices.com/all').then((result){
   add(ApiResponseEvent(result));
}).catchError((error){
 //catch and handle error
});

Can anyone confirm this?
Remi doesn't think so.
https://stackoverflow.com/questions/62823273/why-in-this-code-await-is-not-blocking-ui-in-flutter

Same problem here

I'm still having this problem on flutter web. Any solutions?

Same problem here

same problem here , it taking 3 to 4 second to load data,
same URL on postman it take 500 to 600 millisecond.
please provide a solution

Salam @altafkhan8719
Here is the solution I adopted after hours of googling
Below is a modified version of web adapter.
`import 'dart:async';
import 'dart:typed_data';
import 'package:dio/dio.dart';
import 'package:universal_html/html.dart' as html;
class WebClientAdapter implements HttpClientAdapter {
final _xhrs = <html.HttpRequest>[];
bool withCredentials = false;
@override
Future fetch(
RequestOptions options, Stream<List> requestStream, Future cancelFuture) async {
var xhr = html.HttpRequest();
_xhrs.add(xhr);
xhr
  ..open(options.method, options.uri.toString(), async: true)
  ..responseType = 'blob'
  ..withCredentials = options.extra['withCredentials'] ?? withCredentials;
options.headers.remove(Headers.contentLengthHeader);
options.headers.forEach((key, v) => xhr.setRequestHeader(key, '$v'));
var completer = Completer<ResponseBody>();

xhr.onLoad.first.then((_) {
  var blob = xhr.response ?? html.Blob([]);
  var reader = html.FileReader();

  reader.onLoad.first.then((_) {
    var body = reader.result as Uint8List;

    completer.complete(
      ResponseBody.fromBytes(
        body,
        xhr.status,
        headers: xhr.responseHeaders.map((k, v) => MapEntry(k, v.split(','))),
        statusMessage: xhr.statusText,
        isRedirect: xhr.status == 302 || xhr.status == 301,
      ),
    );
  });

  reader.onError.first.then((error) {
    completer.completeError(
      DioError(
        type: DioErrorType.RESPONSE,
        error: error,
        request: options,
      ),
      StackTrace.current,
    );
  });

  reader.readAsArrayBuffer(blob);
});

xhr.onError.first.then((_) {
  completer.completeError(
    DioError(
      type: DioErrorType.RESPONSE,
      error: 'XMLHttpRequest error.',
      request: options,
    ),
    StackTrace.current,
  );
});

cancelFuture?.then((_) {
  if (xhr.readyState < 4 && xhr.readyState > 0) {
    try {
      xhr.abort();
    } catch (e) {
      // ignore
    }
  }
});

if (requestStream == null) {
  xhr.send();
} else {
  List<int> r = [];
  List<List<int>> listOfLists = await requestStream.toList();
  for (int i = 0; i < listOfLists.length; i++) {
    r.addAll(listOfLists[i]);
  }
  xhr.send(Uint8List.fromList(r));
}
return completer.future.whenComplete(() {
  _xhrs.remove(xhr);
});

}
@override
void close({bool force = false}) {
if (force) {
for (var xhr in _xhrs) {
xhr.abort();
}
}
_xhrs.clear();
}
}
In the initialization of my web services I use dio with this web adapter like belowFuture initDio() async {
GetIt instance = GetIt.instance;
Dio dio = Dio(BaseOptions(baseUrl: getUrlBase()));
if (kIsWeb) {
CookieManager manager = CookieManager(CookieJar());
dio.interceptors.add(manager);
--------------------->    dio.httpClientAdapter = WebClientAdapter();
} else {
}
}`

same error

Is that web only issue? On Android/iOS I don't get any difference, both default http client and dio give the same load time and no freezes. I use dio to make simple rest calls, but response may be large in some cases. Overall, response and load time is similar to default http client and native Android OkHttp with gson.

@giaur500 I just quickly checked with Android on the same endpoint/dataset - it seems it happens there too. Not as badly as for web - ~1.5 sec complete UI freeze (Android) vs 15 sec freeze on web.  But freeze still happens. Just not noticeable on smaller datasets in comparison to web, I suppose.

Do you use isolates to parse json? I see no freezes and response size is ~400 kB. Dio version 4.0.0, but 3.10 was ok to as far as I remember.

No isolates. Just Retrofit + Dio. My response is 1.5 MB in size, could it make difference?
there is an "update in progress" spinner in appbar of my app, so it is clearly visible:

"refresh" button pressed
progress indicator starts spinning, spins for about 5 to 7 seconds - this is transmission time for 1.5 MB
then it freezes (entire UI too - I cannot swipe pages or list) for 1 to 1.5 sec
then data gets updated, everything unfreezes

simply replacing Retrofit/Dio call to HTTP client one + manual obj.fromJson(...) - gets same 5-7 secs timing for the network but no any freeze then. The timing for obj.fromJson(jsonDecode(...)) for this payload is only 157 ms
so it seems this functional transformation of the request body "eats" the main thread (even if run in isolate) and this most noticeably affects web targets. Dunno whether this is a language/compiler or flutter issue or not.

Try to use Dio (without Retrofit) to see what happens.  Also, you should notice Dio has its defualt transformer for json, maybe it causes freezes?
I use raw reponse this way:
Response<String> response = await dio.get(....) so I guess no transformation is used in this case.

Hi guys, I'm also interested in this particular subject. Making a request with Dio on Flutter Web freezes completely the UI. After 2 days without any elegant solution to the problem, decided to switch request client for certain api calls with http. Literally no issues when switching.
Has anyone come up with a solution?
Thanks in advance

Still having this in the latest version of dio (4.0.0). I tried using an isolate to do the json_decode but still a good bit of jank after the response comes in. If needed I can provide a test project to simulate this behaviour. Anyone else got a viable solution to the problem?

@Mooibroek unfortunatelly the only work around at least for me was to make request with different client for web, mobile works good, but probably will finally migrate all to only one request client in order not to have extra logic by using 2 clients. :(

I've got the problem on macos now, ill try the mobile and see how that goes.

Just FYI - we completely abandoned both DIO and Retrofit due to that.
We still use json_serializable for mapping complex JSON objects and for the rest we do use the plain HTTP client. It does not add much boilerplate and remains flexible.

@maares mobile works faster (probably due to native code) but is affected by the same issue - the lag is just much smaller in comparison to the web. So, IMO, no need to use 2 clients, just move away from DIO/Retrofit. As I mentioned above - standard HTTP package syntax is quite nice and simple, still flexible

Yeah lag on mobile is also there, but less then on macos. Shame really. For now its not a deal breaker for this project, but definitely something to take into account for new projects in the future.

How do you use basic http client on web? In my case no matter what I do, I'm getting exception "Unsupported operation: Platform._version", even if I do what they suggested, exception is still there.

@livotov thanks for actually observing lag is on mobile as well, honestly I did not notice on Mobile. A shame, this was actually one of the first packages I installed when starting playing around with flutter.
Hopefully at some point this will be addressed

I encountered a similar issue, but I managed to solve it by simply adding validateStatus to my Dio configuration:
Dio(BaseOptions(
  baseUrl: Urls.base,
  headers: {
    'Content-Type': 'application/json',
  },
  connectTimeout: const Duration(seconds: 2),
  receiveTimeout: const Duration(seconds: 2),
  validateStatus: (status) => status! >= 200 && status < 500,
));

With validateStatus, I allow Dio to treat all responses with status codes from 200 to 499 as valid, preventing unnecessary exceptions for client errors (like 400 or 401), which I can then handle within my application.


[New Port Request] ADVobfuscator

Library name: ADVobfuscator
Library description: Obfuscation library based on C++11/14 and metaprogramming
Source repository URL: https://github.com/andrivet/ADVobfuscator
Project homepage (if different from the source repository): -
Anything else that is useful to know when adding (such as optional features the library may have that should be included): -

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now.

Here's the respective pull request: https://github.com/microsoft/vcpkg/pull/18989

Close this issue via #18989 merged.


Error React Native IOS Undefined symbol: _RCTRegisterModule

Error React Native IOS Undefined symbol: _RCTRegisterModule in Build react-native-ultimate-config
I changed de s.dependency "React" to s.dependency "React-Core but still not working
I can't find the solution
React Native version: "0.68.5"
Ultimate Config Version: "4.0.0"

There was a massive refactoring made to the library and this problem could have been fixed in a new version 4.1.0-alpha.0 (https://github.com/maxkomarychev/react-native-ultimate-config/pull/128)
Please give it a try!! Thank you!


Wrong plots when fitting a Weibull LN(dependent, independent) model

I'm submitting a ...

[x] bug report
[ ] feature request
[ ] code improvement request

Expected behavior
How should it work (with the bug fixed or the feature implemented)?
The fits should get displayed correctly.
Screenshot
Actual behavior
How does it currently work (with the bug causing problems or without the feature)?
The fits are plotted wrongly. The mu values are too low, precisely ln(correct value).
The "fit of fits" plot is correct, however. The equation for mu is correct too.
Screenshot
Wrong fit and correct "fit of fits":

Used model and correct equation:

Steps to reproduce the problem (how to see the actual behavior)

Upload the standard Vanem data set
Fit a Weibull, Log-normal(dependent, independent) model to it
Inspect the fit

This is likely an error caused by the viroconcom package since the LognormalDistribution instance returns the same values for mu and scale. The mu value is correct, the scale value incorrect.
LognormalDistribution

Interestingly, if the parameter is independent the mu value is correct.
This ist the output of LN LN(power, exp) model:

I narrowed the problem further down.
When a mu is dependent the BasicFit objects are incorrect. They have scale value, which is too low. It is ln(scale) of the correct scale value.

The Fitting module seems to send correct BasicFits. However, they seem to get altered later:

I think I got it:

Yes, that was the problem.
Solved it:

This is fixed. It was fixed on Master.


Fix deprecation warnings for react >= 15.5.0

Hi.
In React v15.5.0, React.PropTypes and React.createClass became deprecate.
So I migrated to prop-types package and create-react-class  package.
Ref: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html

Actually, I am worrying about this. If we migrate to prop-types and create-react-class directly, this mean we introduce a breaking changes, and developer have to upgrade to<EMAIL_ADDRESS>

It is not a a breaking change.

If we migrate to prop-types and create-react-class directly, developers have to upgrade to<EMAIL_ADDRESS>

If we migrate to prop-types and create-react-class directly, developers have to upgrade to<EMAIL_ADDRESS>
They don't have to do that, prop-types and create-react-class don't depend on<EMAIL_ADDRESS>or as its peerDeps.

@yiminghe 需要发个版本


[chart/bank-vaults/operator] Helm upgrade fails with Helm 3

Bugs should be filed for issues encountered whilst operating bank-vaults.
You should first attempt to resolve your issues through the community support
channels, e.g. Slack, in order to rule out individual configuration errors.
Please provide as much detail as possible.

Describe the bug:
When performing an upgrade to an existing chart using Helm 3 the following error is displayed:
helm upgrade -f values.yaml vault-operator banzaicloud-stable/vault-operator
Error: UPGRADE FAILED: cannot patch "vault-operator" with kind Deployment: Deployment.apps "vault-operator" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/name":"vault-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
Expected behaviour:
Successful upgrade of the existing release
Steps to reproduce the bug:

Modify Helm chart overlay values.
Issue: helm upgrade -f values.yaml vault-operator banzaicloud-stable/vault-operator

Additional context:
Add any other context about the problem here.
Environment details:

Kubernetes version (e.g. v1.10.2): 1.13
Cloud-provider/provisioner (e.g. AKS, GKE, EKS, PKE etc): EKS
bank-vaults version (e.g. 0.4.17): bank-vaults-operator-0.5.1/vault-operator-0.5.5
Install method (e.g. helm or static manifests): Helm
Logs from the misbehaving component (and any other relevant logs):
Resource definition (possibly in YAML format) that caused the issue, without sensitive data:

/kind bug

I'm not sure if this is a bug in the helm chart. TBH I can't reproduce this right now, probably I miss some details what has changed in values.yaml.

Of course, make sure you are using Helm 3, not Helm 2. Install an old version of the chart and then attempt to upgrade to the most recent release. I suspect it could be the result of the new 3-way merge strategy in Helm 3.

I'm using Helm3 of course for testing this, but without the content of values.yaml this can't be reproduced, trust me.

Hi @bonifaido. Thanks for your response. I suspect this isn't an issue with the values.yaml so much as the root cause sources from the underlying Helm templates. It seems more recent versions of the chart updated values which are seen as immutable by Helm 3. I understand it's difficult to reproduce. Worst case is I have to delete or force the upgrade of the chart. Could you lend some guidance as to an approach that would not destroy my existing Vault cluster in order to update the vault operator chart?

Hi @jshrack-ssi !
What version of the operator chart are you using now, and what version are you planning to update?

@bonifaido My current vault-operator deployment is on chart version 0.2.17 and I want to update to 0.5.5. The latter is the version upgrade that is failing due to the immutable chart label selector.

Oh I see, 0.2.17 is quite an old version, but no problem:
I just tested this locally and it works fine just as an upgrade path (all with helm 3):
helm upgrade --install --wait vault-operator banzaicloud-stable/vault-operator --version 0.2.17

# in the bank-vaults repo
kubectl apply -f operator/deploy/rbac.yaml
kubectl apply -f operator/deploy/cr.yaml

# wait for the "old" vault instance to come up

# delete the deployment of the operator to overcome the labelSelector immutability stuff
kubectl delete deployment vault-operator
helm upgrade --install --wait vault-operator banzaicloud-stable/vault-operator --version 0.5.5

# delete the vault statefulset, since the new operator creates a quite different version now (
kubectl delete statefulset vault

# After a few seconds my "new" vault statefulset just came up with a healthy pod.

Did this work @jshrack-ssi ?

@bonifaido I just got a chance to work on this right now. A couple of follow-on questions. The immediate "upgrade" of the chart to 0.2.17 worked fine to bring Helm back to a non-fail state. With regard to the following steps:

As my existing Vault cluster is already running fine is there any need to apply the cr.yaml?
Will the deletion of the vault-operator deployment destroy my standing cluster? If so, would it be recoverable with the same unseal keys and backend DynamoDB store?
Would removal of the existing statefulset preserve the unseal/DynamoDB tables associations to essentially resume existing Vault cluster state?

Sorry for all the questions, there's a high investment of development time into the Vault cluster so I need to validate the expected outcomes of these actions before I undertake them.
Thanks so much for all your help!

No, this is not needed in this case (this was just an example from me :) )
No, the vault-operator Kubernetes deployment deletion shouldn't harm the data (the chart deletion does it of course since it removes the Vault CRD as well), you can use the same data again.
Yes, the statefulset deletion just removes the Vault Pods and nothing else, in the next cycle, the operator (if running) will recreate it again.

This process worked very well. Thank you, I appreciate the guidance!
From: Nándor István Krácser<EMAIL_ADDRESS>Date: Tuesday, December 17, 2019 at 10:43 AM
To: banzaicloud/bank-vaults<EMAIL_ADDRESS>Cc: Jason Shrack<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [banzaicloud/bank-vaults] [chart/bank-vaults/operator] Helm upgrade fails with Helm 3 (#772)

No, this is not needed in this case (this was just an example from me :) )
No, the vault-operator Kubernetes deployment deletion shouldn't harm the data (the chart deletion does it of course since it removes the Vault CRD as well), you can use the same data again.
Yes, the statefulset deletion just removes the Vault Pods and nothing else, in the next cycle, the operator (if running) will recreate it again.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/banzaicloud/bank-vaults/issues/772?email_source=notifications&email_token=ABPV2TGWZSPEJZDVIPA43ZLQZEMVJA5CNFSM4JTJUMAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHDRINQ#issuecomment-566694966, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPV2TBIMR6E6DPJG5T6F3TQZEMVJANCNFSM4JTJUMAA.

Nice to hear that! Did this solve your issue @jshrack-ssi ? Can we close this one?

Please do so. Thanks again for the assistance.

From: Nándor István Krácser<EMAIL_ADDRESS>Sent: Sunday, January 5, 2020 11:30 PM
To: banzaicloud/bank-vaults
Cc: Jason Shrack; Mention
Subject: Re: [banzaicloud/bank-vaults] [chart/bank-vaults/operator] Helm upgrade fails with Helm 3 (#772)
Nice to hear that! Did this solve your issue @jshrack-ssihttps://github.com/jshrack-ssi ? Can we close this one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/banzaicloud/bank-vaults/issues/772?email_source=notifications&email_token=ABPV2TFERRXT3MCHH53IHTDQ4LMZLA5CNFSM4JTJUMAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIEU4ZA#issuecomment-571035236, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPV2TBSQWLWPWYCG2EBBV3Q4LMZLANCNFSM4JTJUMAA.

Closing with: https://github.com/banzaicloud/bank-vaults/issues/772#issuecomment-563272124


be able to change the location of layout/panel with more freedom

here is the vscode display
https://code.visualstudio.com/assets/docs/getstarted/userinterface/hero.png
would it be possible to put the Paned (D) under one of the editor groups not both of them at the same time?

if the idea of making the whole layout can be problematic or too complex or heavy, at least it would be nice to add an extension to let  us be able to do that!

@rzhao271 @sbatten I think it got enough votes


remove sudo from default install documentation

sudo by default can cause a lot of problems, and most systems by default don't require it.
I nearly pasted in sudo, and caught it before causing myself a permission headache.
Hopefully this PR will save others from that fate.

Thanks :)


Support for flow type exact syntax.

Operating System (+Version): macOS Sierra 10.12.4
VS Code Version: 1.12.1
beautify Version: 1.7.2

Flow (flow.org) is static type analysis for js. It's powerful and it's syntax is close to typescript, and in general beautify works just fine with types. Except for exact types, documented here: https://flow.org/en/docs/types/objects/#toc-exact-object-types.
Syntax of exact type definition:
type Props = {|
  propA: boolean,
  propB: string
|}

Settings:
No custom settings, all defaults. No .beaufityjs file.
Tab size: 2 (spaces).
Action performed
Running command from command palette or ctrl+shift+f yields the same result.
Expected results
// @flow

import { actionA, actionB } from './actions'

type Props = {|
  propA: boolean,
  propB: string
|}

type Actions = {|
  showMenu: typeof showMenu,
  hideMenu: typeof hideMenu,
|}

export class SomeComponent extends React.Component {

  props: {|
    ...Props,
    ...Actions,
  |}

  constructor(props: any) {
    super(props)
  }

  componentDidMount() {

  }
}

Actual results
Rows following the type definitions are indented wrong.
// @flow

import { actionA, actionB } from './actions'

type Props = {|
  propA: boolean,
    propB: string
      |}

type Actions = {|
  showMenu: typeof showMenu,
    hideMenu: typeof hideMenu,
|}

export class SomeComponent extends React.Component {

  props: {|
    ...Props,
    ...Actions,
  |}

constructor(props: any) {
  super(props)
}

componentDidMount() {

}
}

Can't be done with js-beautify. Sorry. I'm looking into some other formatters though, so you might get lucky, but it will probably be a while.


added support for ed25519

I found this issue and thought maybe a dependency to an official subpackage of golang is acceptable for this.
The implementation of ed25519 doesn't support golang 1.3 it seems.
Maybe this will be interesting sometime in the future when 1.3 doesn't need to be supported anymore.

EdDSA is the signature algorithm and is defined in: RFC 8032. This is what x/crypto/ed25519 implements, though only for Edwards curve 25519 (not 448, which is a stronger curve).
It was added to JOSE with the algorithm name EdDSA, not ED25519 (the 'd' shouldn't even be capitalized): https://tools.ietf.org/html/rfc8037
I haven't read through your code yet, though. I am interested in adding support for Ed25519 wherever possible.

What's the status of this? i see a bunch of discussions about using EdDSA instead of Ed25519 but other than that there are some other small requests. Is this just hung up on those being implemented in the PR?

ed25519 now in standard go. What needs to be fixed to get this merged?

The only test that actually failed was backwards compatibility to go 1.3.
So ed25519 being added to the core doesn't really change anything.
The only other problem was code quality afaict.
I am really not sure what to do here really.
Most of the review comments are good and well reasoned but I don't really feel competent to just apply them and retry. I didn't expect contribution quality requirements to be so high and feel totally out of my depth to bring this up to standard.

@dgrijalva can you help to get this supported?

@markuspeloquin thanks for review, i'm try to pick up this and provide modified pr.

@BluBb-mADe  @markuspeloquin @dgrijalva
i'm fix some suggestions in this pr #366 can you suggest next steps ? as i understand we need to drop parse stuff from utils but can you guide me? as i see go can generate pem encoded ed25519 keys, why we need to drop parse functions?

The problem with the parser is that (at the time of writing this code at least) it seems there is no officially defined key format for ed25519 keys. My parse function is able to read the OpenSSL key format which I used to generate my test keys. I am not sure how we would go about addressing this issue as there seem to be compatibility concerns with my OpenSSL based approach.

I'm generate keys in go (and encode it to pem format) and all works fine with this code. So for golang case it is worked fine.


support imagePullSecret for pulling operator image.

Support set imagePullSecrets for operator init and dump commands by --imagePullSecrets flag.
Also fix the wrong operator dump golden file name.
[ ] Configuration Infrastructure
[ ] Docs
[ X ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any changes that may affect Istio users.

@morvencao: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-security-k8s-tests_istio
ca354991dd8747165be460ba8e8bbff8e1d6dafe
link
/test integ-security-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio/wg-environments-maintainers PTAL

@morvencao: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
7890ae37f70012b027fe03e1383f9149a53c7312
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-pilot-k8s-tests_istio

In response to a cherrypick label: new pull request created: #29474

/cherry-pick release-1.8

@morvencao: new pull request could not be created: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"A pull request already exists for istio-testing:cherry-pick-28786-to-release-1.8."}],"documentation_url":"https://docs.github.com/rest/reference/pulls#create-a-pull-request"}

In response to this:

/cherry-pick release-1.8

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Design-time build tasks aren't all available in .NET Core

See https://github.com/dotnet/roslyn/issues/36072#issuecomment-536088468 for a nice repro by @d-dizhevsky.

I have created repro project here: https://github.com/d-dizhevsky/owss
It contains:

src/OpenWebSecurityScanner project which targets netcoreapp2.1 and runs MSBuildWorkspace
testProjects/WebAPI1 which was created with dotnet new webapi
testProjects/TestCoreLib which was created with dotnet new classlib

The WebAPI1 has a project reference on TestCoreLib.
Just do cd src/OpenWebSecurityScanner/ and then dotnet run.
Thats my output on OSx:

This is happening because some tasks that are used in design-time builds (and design-time-like builds like Roslyn MSBuildWorkspace) aren't ported to .NET Core.
Right know there's only one known failure; I suspect there may be a few more after fixing this one:

[ ] ResolveNonMSBuildProjectOutput.

The .NET Core flavor of ResolveNonMSBuildProjectOutput should probably just do nothing; I don't think .NET Core MSBuild needs to support non-MSBuild ProjectReferences.

How this can not affect almost 100% of real world use cases in Linux/MacOSX? Very simple project dependency graphs doesn't work trying to compile them with MSBuildWorkspace, and Linux/MacOSX should support only .NET core/standard projects, if I'm not wrong. Also, projects don't compile even when targeting .netstandard2.0, as the #36072 reporter clearly states in the first post. It would be great if there's an attempt fix by implementing an empty ResolveNonMSBuildProjectOutput: this should allow to quickly spot other issues, if present. Will fixing this issue require an upgrade of the .NET core sdk?

Fantastic! Any idea of when this will be integrated in VS?

Now I noticed the branch where the commit was merged: microsoft:vs16.5. Thank you.

Following ceztko's reasoning, this, updating VS, and a few other manual twiddles likely fixed loading .net core 3.1 projects with Roslyn for me. Adding a link to my notes for any other unfortunate (now fortunate!) adventurers :)
https://github.com/dotnet/roslyn/issues/36072#issuecomment-610809322


Add more tests

Codecov Report

Merging #79 into master will increase coverage by 1.46%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master      #79      +/-   ##
==========================================
+ Coverage   93.18%   94.65%   +1.46%
==========================================
  Files          32       32
  Lines        1292     1290       -2
==========================================
+ Hits         1204     1221      +17
+ Misses         88       69      -19

Impacted Files
Coverage Δ

core/decode.js
100% <ø> (+3.7%)
:arrow_up:

core/encode.js
100% <ø> (+4.34%)
:arrow_up:

streams/substream.js
94.44% <50%> (+15.19%)
:arrow_up:

core/move.js
100% <0%> (+1.32%)
:arrow_up:

core/splice.js
100% <0%> (+3.57%)
:arrow_up:

session/conn.js
100% <0%> (+16.66%)
:arrow_up:

Continue to review full report at Codecov.

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


custom route() functions

In order to allow naming of views for the logging hooks in choo v3 we should allow custom route() initiators. Also allows switching of arguments to allow for patterns other than (params, arg, arg)

Lol, this was always here, just added tests in https://github.com/yoshuawuyts/sheet-router/blob/master/test.js#L183-L214


Subregion analysis for GPS data

added functionality for (1) where user can now perform subregion analysis for GPS data. currently using continents for subregions since could not find more granular subregions but will keep looking!


Refactoring terraform backend switch

The goal is to simplify the switch between terraform backends and avoid the current file override hack we do in github actions. This goes into our general effort to make the scripts simpler and more flexible.
:memo: Checklist

[x] All user-facing changes have changelog entries.
[x] The changes are reflected on docs.tenzir.com/vast, if necessary.
[x] The PR description contains instructions for the reviewer, if necessary.

:dart: Review Instructions
The heart of this PR is the change in the terragrunt step HCL files:

find_in_parent_folders("terragrunt.${get_env("TF_STATE_BACKEND")}.hcl")

This makes it possible to have multiple backend configs. The rest of this PR is refactoring to make it easier to use and have the right validators for each command.

https://github.com/rdettai/vast/runs/7021479852


panic memoryError when calling PoolStats()

Anyone else seeing this?
/usr/lib/go-1.9/src/runtime/panic.go:63 (0x42ac4d)
        panicmem: panic(memoryError)
/usr/lib/go-1.9/src/runtime/signal_unix.go:367 (0x44222b)
        sigpanic: panicmem()
/.../vendor/github.com/go-redis/redis/redis.go:418 (0xae7012)
        (*Client).PoolStats: stats := c.connPool.Stats()

I was trying to call PoolStats() before the client had connected for the 1st time.


⚠ GitLab Server has degraded performance

In e608b90, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 14082 ms

Resolved: GitLab Server performance has improved in bb9d608.


Figure out how to handle severity label in alerting Prometheus Rule

For example, in automatically generated rules, we already create two different severities in one alerting PrometheusRule
How to decide on what those should be? Opsgenie expects P1 - P4, PagerDuty might expect something else

That's an interesting idea, although I'm a bit worried about keeping OSKO up to date with all available providers and their severity levels.
To make it more clear for an outside perspective - we are trying to implement the multi-window, multi-burn-rate alerting here in an automatic fashion based on an existing SLO. In theory (and in our practice) having this as a config option would be good enough, but other usecases might differ.

I would use the defaults as critical, high-fast, high-slow, low, and no_slo. This is taken from the SRE book from the alerting chapter. They are using it to sort the SLOs, but we can also use it as a default severities.

Do we think we'll ever need to use more than one alerting tool at a time? 🤔

The defaults are one thing, but how to configure these is a whole other thing that I think is the bigger issue here 🤔
Regarding your question, that's really hard to say. I would focus on supporting one at a time for now. If we can stay backwards compatible with supporting one, setting the various severities in the config, for example, we can always add an option of multiple ones down the line.

something like this?
type AlertSeverities struct {
	Critical string
	HighFast string
	HighSlow string
	Low      string
	NoSlo    string
}

alertingTools := []AlertingTool{
    {
	    Name: "opsgenie",
	    SeverityMap: map[string]string{
		    "critical":  "P1",
		    "high-fast": "P2",
		    "high-slow": "P3",
		    "low":       "P4",
		    "no-slo":    "P5",
	    },
    },
    {
	    Name: "pagerduty",
	    SeverityMap: map[string]string{
		    "critical":  "SEV-1",
		    "high-fast": "SEV-2",
		    "high-slow": "SEV-3",
		    "low":       "SEV-4",
		    "no-slo":    "SEV-5",
	    },
    },
}

Eh, I mean I guess we could do that :) Alternatively, we could just set this in the internal/config/config.go

Yes, I copy-pasted it from that file :D

Yeah, makes sense. Just not sure if we want to map these out directly.
Alternatively, we could have some "custom" type for those not using either of the ones we support (like opsgenie and pagerduty from the above example)

we can allow configuring it through the env vars, but it would not cover the cases where there is a need for multiple alerting tools for one triggered alert.

I wouldn't cover that for now, tbh


Error: failed to open the database (-30784)

Describe the bug
Running the below on a fresh machine:
D:\reth-v0.1.0-alpha\reth.exe node --datadir="D:\reth-v0.1.0-alpha\reth_db"
However am getting:
 [2m2023-12-11T10:30:48.272802Z [0m  [32m INFO [0m  [2mreth::cli [0m [2m: [0m reth 0.1.0-alpha.13 (b34b0d3) starting
 [2m2023-12-11T10:30:48.273753Z [0m  [32m INFO [0m  [2mreth::cli [0m [2m: [0m Configuration loaded  [3mpath [0m [2m= [0m"D:\\reth-v0.1.0-alpha\\reth_db\\reth.toml"
 [2m2023-12-11T10:30:48.474106Z [0m  [32m INFO [0m  [2mreth::cli [0m [2m: [0m Opening database  [3mpath [0m [2m= [0m"D:\\reth-v0.1.0-alpha\\reth_db\\db"
Error: failed to open the database (-30784)

Would also get the same error if I omit the datadir, and use the [default] paths.
Am running on Windows via CMD/Powershell, using binaries (not via WSL). Windows Server 2019, as an administrator.
Any pointers to what I could look at to troubleshoot? Much appreciated.
Steps to reproduce
Run D:\reth-v0.1.0-alpha\reth.exe node --datadir="D:\reth-v0.1.0-alpha\reth_db" via CMD on Windows.
Node logs
No response
Platform(s)
Windows (x86)
What version/commit are you on?
Reth v0.1.0-alpha.13
What database version are you on?
No response
What type of node are you running?
Archive (default)
What prune config do you use, if any?
No response
If you've built Reth from source, provide the full command you used
No response
Code of Conduct

[X] I agree to follow the Code of Conduct

Pulling from main branch and recompiling seems to fix this - Likely only an issue with the release binaries then. :)


WICKET-6586 Broken JavaScript due to fix charsetName in JavaScriptPac…

…kageResource
Introduce PackageResource#getProcessingEncoding() that could be overridden by the application to use a custom encoding to read a resource from the class path.
Move the compressing logic from Css/JavaScript-PackageResource to PackageResource class to DRY it.

+1


Age-range Lorenzen M formulation

The existing Lorenzen M formulation in SS3 requires the specification of M at a fixed reference age. This is difficult in situations where M is not known and is estimated from a maximum observed age based on assumed survivorship to this age. The current practice in the southeast is to calculate the Lorenzen curve from an external growth model and use this to calculate a reference age and associated M. When growth is estimated in SS3 this often results in an internal M vector that does not achieve the original survivorship assumption. To correct this we have developed an alternative Lorenzen M formulation (See associated pull request) that takes survivorship and an age range as inputs to calculate the M vector.

This was completed in #329 and merged in


Victor VosMottor: Watch techslawn.com

Victor VosMottor requests the watch of the watch_keyword techslawn\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

techslawn\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by NobodyNada in Charcoal HQ


Dependency conflict (symfony/lts 4.x-dev -> symfony/framework-bundle[dev-master])

The error is thrown just by running composer install:

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/framework-bundle ^4.1 -> satisfiable by symfony/framework-bundle[4.1.x-dev].
- symfony/lts 4.x-dev conflicts with symfony/framework-bundle[dev-master].
- don't install symfony/framework-bundle 4.1.x-dev|install symfony/framework-bundle dev-master
- Installation request for symfony/lts ^4@dev -> satisfiable by symfony/lts[4.x-dev].

Isn't this a composer issue?
See https://github.com/composer/composer/issues/6852

@carlosas Without more information, it's very difficult to help you. There is either a real issue in your composer.json in terms of constraint, or perhaps have you hit the bug mentioned by @nicolas-grekas. Either way, nothing we can do.


Added DirectionalLocation

Added setters for Location and DirectionalLocation
Something with clone and stuff

What's the difference between 'yaw' and 'headYaw'?

Players have Head Yaw and Yaw, Entities only have Yaw
I'm not really sure what their purpose is, but it's in the protocol according to MiNET (https://github.com/NiclasOlofsson/MiNET/blob/master/src/MiNET/MiNET/Net/MCPE Protocol Documentation.md#package-mcpe-add-player-0x96)

yaaa nooopppeeee

You're lucky this ONE time. http://i.imgur.com/hzSFkVo.png

/rage

Git CLI FOR THE WIN

:+1:

Lol


Update optimizer.py

Closing for now. A more general refactor on entity serialization in mxnet may be needed.


Client Language Performance Comparison

Describe the feature
First of all, thank you for this article and repository.  It clearly shows the effect of network differences.
I have a question about the clients. Did you compare the performance of the C++ and Java clients? Do you think can Java be more performant than C++ when you tweak it? Thank you in advance,
(I tried to ask this as a general discussion but that link is not working.)
Use Case
Client performance compare
Proposed Solution
No response
Other Information
No response
Acknowledgements

[ ] I may be able to implement this feature request
[ ] This feature might incur a breaking change

Language
Java

Hi,
The main purpose of this repo was to test network architectures mentioned in the blog by simulating typical high-frequency trading (HFT) behavior, which involves sequential limit and cancel orders.
Regarding your question about Java and C++, I initially wanted to develop a faster client using C++. However, it turned out that my C++ client, which I developed in just two days, wasn't as good as my Java client. I beleive there are a couple of reasons for this:
C++ is not my main expertise, so there's likely room for optimization.
To get something working quickly within two days, I had to use a WebSocketpp framework, which means I relied on the quality of that framework's implementation instead of having a full control.
As a result, it became more of a framework comparison (e.g., Netty vs. WebSocketpp) rather than a pure Java vs. C++ comparison. In theory, after the just-in-time compiler kicks in, Java and C++ performance should be quite similar. However, based on my tests, my Java client was way faster due to the reasons mentioned above.


Remove this method once Unity 2017.2.0p1 is released and verified not needed

This method was added to temporarily work around a Unity bug.
https://github.com/Microsoft/GalaxyExplorer/blob/c40dac423b00164627f123e934e6570065a5d56f/Assets/SolarSystem/OrbitalTrails/OrbitalTrail.cs#L68
That bug is slated to be fixed in 2017.2.0p1.

Closed via #109


I need to keep sending limit command in order to work properly

like, every few minutes the bandwidth speed is coming back to normal(or half an normal) and i have to send limit command again so it works properly again(every 10-15minutes aprox).
Any ideas how to fix it? Or keep sending it automatically(so i dont need to do this manually)?

it shouldn't be doing that, maybe arp poisoning is stopping for some reason, cause the routing rules are more likely fixed unless you flush or change them. check wireshark and make sure if arp poisoning is still active by time you lose control of the bandwidth.


Add a subcommand to print complete recipe for an app

The command could be like - kbrew recipe kafka which should print complete recipe details for better understanding or debugging

I think we can use the info command by having a sub-command or a flag (--verbose). Thoughts?

I would llike to work on this issue, Let me know how we can take forward this issue

hey @JOSHUAJEBARAJ :wave:
You might want to look at the implementation of the info command - it does a similar job of printing a summary of a recipe. This issue is for printing the complete recipe.
While we work to build a contributing guide, you can use the Makefile to build the binary from the source (make build) after you make any changes
Let us know if you need any help!

Hey Sahil 👋
I had look at the info Command Can You explain what is the additional information you want to print
For example the kbrew info argo-cd gives the below output
repository:
  name: argo
  url: https://argoproj.github.io/argo-helm
  type: helm
version: 3.6.2

THe registry config looks like something like this  for the argo-cd
apiVersion: v1
kind: kbrew
app:
  repository:
    name: argo
    url: https://argoproj.github.io/argo-helm
    type: helm
  namespace: "argocd"
  sha256:
  version: 3.6.2

What are the additional detail it should Print ?

Taking an example the longhorn recipe, kbrew info prints only the metadata which has pre/post install apps. With a new command/sub-command we would like to print the entire recipe, which also includes steps, args, etc. So basically the recipe as it is in the file.
We can do it as a new command to kbrew or a new subcommand to info - kbrew info all for example

@JOSHUAJEBARAJ are you still working on this issue ? If not, may I take this forward and start working on it.

@deepankur797  Sure You can go ahead and work on this issue


terminal args is not working on the startup one

Does this issue occur when all extensions are disabled?: YES

VS Code Version: 1.56.2
OS Version: Window 10 19042.985

Steps to Reproduce:

Set this in settings.json

{
 "terminal.integrated.defaultProfile.windows": "PowerShell",
  "terminal.integrated.profiles.windows": {
    "PowerShell": {
      "source": "PowerShell",
      "overrideName": true,
      "icon": "terminal-powershell",
      "args": ["-NoLogo"]
    }
  }
}

Restart VSCode, you will see the terminal on startup has a logo, meaning the arg is not applyed

But all the terminal invoke later don't have a logo. (Click Poweshell then Stop terminal and start a new one)

/duplicate https://github.com/microsoft/vscode/issues/123188


Fusion reactor

[x] Rf amplifiers
[x] Electromagnets
[x] Casing
[x] Core
[x] Connectors

Gameplay
Player has to control reactor parameters in order to get maximum energy from reactor.
In order reactor to run it must:

have fuel,
pre heated,
enough energy for functional blocks,
functional blocks need to be cooled.

Functional blocks:
Electromagnets - used to control plasma stability. Better stability - better efficiency, less casing and functional blocks heat per tick.
RF Amplifiers - used to increase plasma temperature. Each recipe has optimal plasma temperature for better energy generation.
Player has to place several electromagnets and rf amplifiers around toroid. each toroid side must have at least 1 magnet and rf amplifier.
Each functional block has energy requirements, heat generation and max heat cap.
To cooldown functional blocks, coolant fluid need to be supplied into reactor core.
Reactor GUI gives player posibility to control energy for rf amplifiers.
And by that player can adjust plasma heat gain. It also affects heat generation.
Plasma temperature might have some deviations on low level of plasma stability.
The flow

Add some fuel
Add coolant
Plug input energy to charge functional blocks and pre heat reactor
Adjust RF Amplifiers power %
Run reactor

On early stage it would be better to set rf amplifiers power to 100%.
As soon as plasma gets optimal temperature player will have to adjust rf amplifiers power % to keep temperature near desired value as close as possible.

how is the temperature loss per tick calculated?


Upstream main

API for paged cache model was strongly refactored. There is upstream with current state

Thanks @vvchernov for sending the upstream main! Just merged.


HL support for leap plugin

Would it be possible to add in highlighting support for the leap plugin?
It would look something like this, but with whatever colors you think would work best.
 -- Leap
 LeapBackdrop = { fg = colors.fg_comment},
 LeapLabelPrimary = { bold = true, fg = colors.fg_dark},
 LeapLabelSecondary = { bold = true, fg = colors.fg},
 LeapMatch = { bg = colors.bg_search, bold = true, fg = colors.fg},

What about overrides?

Do we not want to add support for any more plugins?


First run detection

Sometimes when a container is run for the first time, it needs to perform some additional tasks (like further configuration). It would be great if there was an environment variable DOCKER_CONTAINER_FIRST_RUN which would return true if it was the first run, or false on any further runs.
Specific case: I have containers that use Tomcat that need special configuration in the server.xml to indicate they are behind a proxy, but not all containers would need that. Those that need I would start with an environment variable BEHIND_PROXY=true and if I could then also check the above variable, I can easily detect if I need to still change the server.xml or not. I could write a file myself as indicator, but that's a bit ugly.

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

Thanks for suggesting. I think the general approach is to do this in an entrypoint script (e.g. https://github.com/docker-library/mysql/blob/ed198ce2e8aa78613c615f20c5c4dd09fa450f66/5.7/docker-entrypoint.sh#L13). Not sure if we should add this as a feature, but perhaps other maintainers have a different opinion.

That's what I've been doing until now. Even nicer would be to have FIRST_RUN entrypoints :)
That way parent images and child images could have independent scripts executed for initialisation.

Well, there's ON_BUILD if you're inheriting images :innocent:

I would need to create separate images for proxied or not. Maybe not such a bad idea in any case. Will use that.

@thaJeztah   is this closed based on above comments.?

@skairali it's not close yet, but I'm tempted to.
@dgommeren are you able to work with the current options?

It still would make sense to have it, but if nobody else needs it, it can be closed


Add Option for Directory-Level File Access Permission

Currently, when using Claude Dev in VS Code, the user is required to manually grant permission for the AI to read and modify each individual file. While this adds security, it can become tedious when working with larger projects involving multiple files.
Feature Request: I would like to request an enhancement to the permission system, allowing users to grant file access at the directory level instead of individual files. This feature could be implemented as an option to select a directory from which Claude Dev can read and modify all files within it. The user would grant blanket permission for this selected directory, streamlining workflows and reducing the need for repetitive permissions.
Suggested Implementation:
Provide an option during the first permission request that allows the user to select a directory for Claude Dev to access.

This would be a major quality-of-life improvement for users who work on larger projects or prefer to organize files into specific directories.
Thank you for considering this enhancement!

For suggestions, you should close this and post it here: https://github.com/saoudrizwan/claude-dev/discussions/categories/ideas


Reset useMutation state on id change

There is a bug. useMutation uses useState to set initial state and that will remain the same if new props are set for completely different aka with different ID object.
As described here: https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
We can automatically reset/use initial state when ID has been changed.
That's probably the best solution for now.
In the future, useMutation can leverage Relay client state, but it's undocumented therefore not ready for the public.

And maybe this https://github.com/facebook/relay/releases/tag/v3.0.0

Changes commitMutation() to call onCompleted with null errors if there were no errors (instead of an empty array).

I believe we can not reset hook state by different initial state or I don't know how to do it. Therefore, we should reset hook state via owning component key prop in case we need it.
Damn, that's pretty tricky. useMutation needs an identity.
To be clear. useMutation state is related to owning component state, and can't be reset without prop key. I am many usecases, it's just fine, but if we have component using useMutation which will get a new ID, then useMutation will fail unless parent component is forced to rerender via key prop. Hmm. Ideally, a hook should reset itself somehow, but I don't know how.


Setting up the Seekarc in eclipse android project

Hi,
I want to make an app for android 4.4 and implement the seekarc.
So I've taken these actions:
copy Seekarc into my res folder.
Either the com.triggertrap.seekarc  or my own com.example.seekarktest
I copied the drawables and the xml there in a not standard present folder "drawable"
copied the png's also in xhdpi to be sure, just in case.
I copied the values, attr, colors and styles
Anyway  i end up in an unbound prefix parsing error , adding
<com.example.seekarctest.SeekArc  Or com.triggertrap.seekarc.SeekArc  in the activity_main layout results in an unbound prefix error.
I work with eclipse, am new to android.  Did my best to import your lib and project, but there's no eclipse support for running the imported gradle projects.
Could you help me out?

I found it.  Clearly mistake cause of my lack of experience.   Deriving from the "creating a custom view" topic on the android dev site,  i found that the namespace has to be used accordingly in the layout
xmlns:seekarc="http://schemas.android.com/apk/res/com.example.seekarctest"
or the analog triggertrap path.
as the variables in the view in the layout xml use the seekarc namespace.

This is an old topic but I post this message for the one trying to use this widget.
In your xml file, you should add
    xmlns:seekarc="http://schemas.android.com/apk/res-auto"
for example after
  xmlns:tools="http://schemas.android.com/tools"
Don't forget to update your build.gradle files:
In top build.gradle file:
allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

In app build.gradle file:
    implementation 'com.github.Triggertrap:SeekArc:v1.1'