[python3] Build error

Package: python3:x64-linux -> 3.11.4
Host Environment

Host: x64-linux
Compiler: GNU 11.4.0
vcpkg-tool version: 2023-08-02-6d13efa755f9b5e101712d210199e4139b4c29f6
vcpkg-scripts version: 247662ef3 2023-08-08 (12 hours ago)

To Reproduce
vcpkg install boost[mpi]
Failure logs
-- Using cached python-cpython-v3.11.4.tar.gz.
-- Cleaning sources at /home/byxrolland/vcpkg/buildtrees/python3/src/v3.11.4-c76ea88c37.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/byxrolland/vcpkg/downloads/python-cpython-v3.11.4.tar.gz
-- Applying patch 0001-only-build-required-projects.patch
-- Applying patch 0003-use-vcpkg-zlib.patch
-- Applying patch 0004-devendor-external-dependencies.patch
-- Applying patch 0005-dont-copy-vcruntime.patch
-- Applying patch 0008-python.pc.patch
-- Applying patch 0010-dont-skip-rpath.patch
-- Applying patch 0012-force-disable-curses.patch
-- Applying patch 0014-fix-get-python-inc-output.patch
-- Applying patch 0002-static-library.patch
-- Applying patch 0011-gcc-ldflags-fix.patch
-- Using source at /home/byxrolland/vcpkg/buildtrees/python3/src/v3.11.4-c76ea88c37.clean
-- Getting CMake variables for x64-linux-dbg
-- Getting CMake variables for x64-linux-rel
-- Generating configure for x64-linux
-- Finished generating configure for x64-linux
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
-- Installing x64-linux-dbg
-- Building x64-linux-rel
-- Installing x64-linux-rel
-- Installing: /home/byxrolland/vcpkg/packages/python3_x64-linux/share/python3/copyright
-- Fixing pkgconfig file: /home/byxrolland/vcpkg/packages/python3_x64-linux/lib/pkgconfig/python-3.11-embed.pc
-- Fixing pkgconfig file: /home/byxrolland/vcpkg/packages/python3_x64-linux/lib/pkgconfig/python-3.11.pc
-- Fixing pkgconfig file: /home/byxrolland/vcpkg/packages/python3_x64-linux/debug/lib/pkgconfig/python-3.11-embed.pc
-- Fixing pkgconfig file: /home/byxrolland/vcpkg/packages/python3_x64-linux/debug/lib/pkgconfig/python-3.11.pc
CMake Error at ports/python3/portfile.cmake:294 (message):
  There should be no modules with "_failed" suffix:

  /home/byxrolland/vcpkg/packages/python3_x64-linux/debug/lib/python3.11/lib-dynload/_crypt.cpython-311d-x86_64-linux-gnu_failed.so

  /home/byxrolland/vcpkg/packages/python3_x64-linux/lib/python3.11/lib-dynload/_crypt.cpython-311-x86_64-linux-gnu_failed.so
Call Stack (most recent call first):
  scripts/ports.cmake:147 (include)

Additional context

Duplicate of https://github.com/microsoft/vcpkg/issues/29447

I didn't have this problem when building Python 3.10, only 3.11. At first it required autoconf. After I installed autoconf it said there was a macro not defined. After I installed automake and libtool, it showed the error as above.

Duplicate of #29447

@FrankXie05 this does not look like a duplicate of #29447. Please reopen the ticket.
@byxrolland please upload more logs.

@byxrolland Could you please run command sudo apt-get install libcrypt-dev to re-install crypt?

@FrankXie05 this does not look like a duplicate of #29447. Please reopen the ticket.
@byxrolland please upload more logs.

Where can I find more logs?

@byxrolland Could you please run command sudo apt-get install libcrypt-dev to re-install crypt?

It is already installed.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libcrypt-dev is already the newest version (1:4.4.27-1).
libcrypt-dev set to manually installed.

Where can I find more logs?

/home/byxrolland/vcpkg/buildtrees/python3

Where can I find more logs?

/home/byxrolland/vcpkg/buildtrees/python3

In autoconf-x64-linux-err.log:
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /home/linuxbrew/.linuxbrew/Cellar/autoconf/2.71/bin/autoconf --force
autoreconf: running: /home/linuxbrew/.linuxbrew/Cellar/autoconf/2.71/bin/autoheader --force
autoreconf: configure.ac: not using Automake
autoreconf: Leaving directory '.'

The following messages occurred frequently in several err.logs:
*** WARNING: renaming "_crypt" since importing it failed: libcrypt.so.2: cannot open shared object file: No such file or directory
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11

configure: WARNING: unrecognized options: --disable-silent-rules, --enable-static
configure: WARNING: unrecognized options: --disable-silent-rules, --enable-static

CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_SHARED_LIBS
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_LIBDIR
    VCPKG_PLATFORM_TOOLSET
    VCPKG_SET_CHARSET_FLAG
    _VCPKG_ROOT_DIR

Hope these could be helpful.

Would you kindly upload config-x64-linux-rel-config.log and build-x64-linux-rel-out.log?

Here you are:
build-x64-linux-rel-out.log
config-x64-linux-rel-config.log

Ok, here are some hints:
PKG_CONFIG='/home/linuxbrew/.linuxbrew/bin/pkg-config'
pkg_cv_LIBCRYPT_CFLAGS=-I/home/linuxbrew/.linuxbrew/Cellar/libxcrypt/4.4.36/include
pkg_cv_LIBCRYPT_LIBS='-L/home/linuxbrew/.linuxbrew/Cellar/libxcrypt/4.4.36/lib -lcrypt'

You use pkg-config from linuxbrew which then finds libxcrypt in /home/linuxbrew/.linuxbrew/Cellar/libxcrypt/4.4.36/lib, but this path is not in your library path. Consider setting LD_LIBRARY_PATH prior to running vcpkg.

Ok, here are some hints:
PKG_CONFIG='/home/linuxbrew/.linuxbrew/bin/pkg-config'
pkg_cv_LIBCRYPT_CFLAGS=-I/home/linuxbrew/.linuxbrew/Cellar/libxcrypt/4.4.36/include
pkg_cv_LIBCRYPT_LIBS='-L/home/linuxbrew/.linuxbrew/Cellar/libxcrypt/4.4.36/lib -lcrypt'

You use pkg-config from linuxbrew which then finds libxcrypt in /home/linuxbrew/.linuxbrew/Cellar/libxcrypt/4.4.36/lib, but this path is not in your library path. Consider setting LD_LIBRARY_PATH prior to running vcpkg.

But the linuxbrew has libxcrypt installed. Why is that a problem?
Also, could you tell how to set LD_LIBRARY_PATH?

Also, I noticed other problems:
The linuxbrew has gcc-13 installed but vcpkg only detected the system gcc.
Also, there is an error that appears frequently in config-x64-linux-rel-config.log, namely
cc1: error: argument to '-O' should be a non-negative integer, 'g', 's' or 'fast'

Is that going to be a problem?

The linuxbrew has gcc-13 installed but vcpkg only detected the system gcc.

How do you invoke gcc that is installed from linuxbrew? I don't have any experience with linuxbrew but I guess there's some kind of environment activation like in SCL or venv (UPD: looks like that's true https://docs.brew.sh/Homebrew-on-Linux). In that case you need to run vcpkg from the same environment.

But the linuxbrew has libxcrypt installed. Why is that a problem?

The problem is that the path to the library is not in your LD_LIBRARY_PATH so any program that links to libxcrypt.so will not be able to start. It might be the same issue I explained above.

Also, there is an error that appears frequently in config-x64-linux-rel-config.log

I'd say this is https://github.com/python/cpython/pull/105062, not really critical to build process.

How do you invoke gcc that is installed from linuxbrew? I don't have any experience with linuxbrew but I guess there's some kind of environment activation like in SCL or venv (UPD: looks like that's true https://docs.brew.sh/Homebrew-on-Linux). In that case you need to run vcpkg from the same environment.

It is in LINE 201 of bootstrap.sh. Your script doesn't accept gcc-13. It stops at gcc-12.

It is in LINE 201 of bootstrap.sh. Your script doesn't accept gcc-13. It stops at g++-12.

This code https://github.com/microsoft/vcpkg/blob/master/scripts/bootstrap.sh#L201 is used only if you build vcpkg tool from source and does not affect building of packages.

I'm waiting for g++-13 support in the script.

I'm waiting for g++-13 support in the script.

The support is already there: Set CXX to the desired compiler.
The if stuff is to be removed, https://github.com/microsoft/vcpkg/pull/33306#issuecomment-1687955723.

I'm waiting for g++-13 support in the script.

The support is already there: Set CXX to the desired compiler. The if stuff is to be removed, #33306 (comment).

Could you tell me how to set it?

OK. I set CXX and CC to the linuxbrew location (which will use its own autoconf and automake) and the problem is solved. But I really would like vcpkg to auto-detect the latest C and C++ compiler available on my machine. Otherwise, the mismatch of compilers and autoconf is really hard to find.

I think you are mixing up things.

The bootstrap script is for building the vcpkg tool (when it isn't downloaded as a binary). It doesn't change what is used to build ports like python3.
As written in https://github.com/microsoft/vcpkg/issues/33068#issuecomment-1685299679
Port builds are controlled by triplet and toolchain files. If you don't want to touch these files you can simply setup your PATH to start with th directories which provide the desired g++, gcc, autoconf etc. You can create a single directory with symlinks for convenience. (I use that for arm64-linux on x64-linux.)
This is a standard pattern.
Setting CC/CXX won't work well for cross-builds.
I don't think there is a general mismatch of compilers and autoconf.
But with different package providers, it is easy to end up with mixing incompatible libraries at runtime.

I don't think there is a general mismatch of compilers and autoconf.
But with different package providers, it is easy to end up with mixing incompatible libraries at runtime.

I totally agree.
@byxrolland, it looks the problem was solved now?

It works for me know but I wouldn't consider it as solved as you changed the behavior of vcpkg and don't regard that as your problem now.

@byxrolland, good to know it doesn't block you now。
For autoconf automake failures, we have another issue https://github.com/microsoft/vcpkg/issues/33080 to track.
For your suggestions ' I really would like vcpkg to auto-detect the latest C and C++ compiler available on my machine', I would say it's not a python3 issue, AFAIK vcpkg assumes that a useable compiler exists in your system https://github.com/microsoft/vcpkg/blob/master/scripts/detect_compiler/CMakeLists.txt, which from CMake CMAKE_CXX_COMPILER and CMAKE_C_COMPILER(linux.cmake), that means vcpkg doesn't auto detect or change enviroment variable about compiler, but rely on these values from build system or user manually passed. Anyway, in my opinion, it's out of a scope for a specific port issue, but could be improved in the long term, it would be great if you could open a discussion issue with details suggestions.

Looks like I have similar problem, and don't know how to solve it...

Host: Ubuntu 20/WSL (under Windows 11)
Compiler: clang-9
vcpkg: 2023.06.20 (however the same is true for the master branch of vcpkg)

ATTN: the same build runs OK on Ubuntu 18/WSL (under the same Windows 11)
Trying to build python using command vcpkg install python3, and here is the output:
-- Fixing pkgconfig file: /home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/debug/lib/pkgconfig/python-3.10.pc
CMake Error at /home/asclearuc/development/engine/apLib/cmake/ports/python3/portfile.cmake:299 (message):
  There should be no modules with "_failed" suffix:
 /home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/debug/lib/python3.10/lib-dynload/_crypt.cpython-310d-x86_64-linux-gnu_failed.so
  /home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/debug/lib/python3.10/lib-dynload/nis.cpython-310d-x86_64-linux-gnu_failed.so
  /home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/lib/python3.10/lib-dynload/_crypt.cpython-310-x86_64-linux-gnu_failed.so
  /home/asclearuc/development/engine/vcpkg/packages/python3_x64-linux-clang9-aparavi/lib/python3.10/lib-dynload/nis.cpython-310-x86_64-linux-gnu_failed.so
Call Stack (most recent call first):
  scripts/ports.cmake:170 (include)

error: building python3:x64-linux-clang9-aparavi failed with: BUILD_FAILED

Investigating a little bit log files:

from build-x64-linux-clang9-aparavi-dbg-err.log - there are 2 undefined symbols, one of them is crypt_r

*** WARNING: renaming "_crypt" since importing it failed: /home/asclearuc/development/engine.latest-vcpkg/vcpkg/buildtrees/python3/x64-linux-clang9-aparavi-dbg/build/lib.linux-x86_64-3.10-pydebug/_crypt.cpython-310d-x86_64-linux-gnu.so: undefined symbol: crypt_r
*** WARNING: renaming "nis" since importing it failed: /home/asclearuc/development/engine.latest-vcpkg/vcpkg/buildtrees/python3/x64-linux-clang9-aparavi-dbg/build/lib.linux-x86_64-3.10-pydebug/nis.cpython-310d-x86_64-linux-gnu.so: undefined symbol: yp_get_default_domain
renaming build/scripts-3.10/pydoc3 to build/scripts-3.10/pydoc3.10
renaming build/scripts-3.10/idle3 to build/scripts-3.10/idle3.10
renaming build/scripts-3.10/2to3 to build/scripts-3.10/2to3-3.10

looking at the binaries:

On Ubuntu 18 (please notice presence of crypt in the output):
vcpkg/buildtrees/python3$ ldd ./x64-linux-clang9-aparavi-dbg/build/lib.linux-x86_64-3.10-pydebug/_crypt.cpython-310d-x86_64-linux-gnu.so
linux-vdso.so.1 (0x00007ffdb9df5000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f0b2390a000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0b236eb000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0b232fa000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0b23b42000)

On Ubuntu 20 (libcrypt is not present :( ):
vcpkg/buildtrees/python3$ ldd ./x64-linux-clang9-aparavi-rel/build/lib.linux-x86_64-3.10/_crypt.cpython-310-x86_64-linux-gnu_failed.so
linux-vdso.so.1 (0x00007ffdcf273000)
libpthread.so.0 => /usr/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f660b4c8000)
libc.so.6 => /usr/lib/x86_64-linux-gnu/libc.so.6 (0x00007f660b2d6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f660b4f1000)

command line to link _crypt

on Ubuntu 20:
/usr/bin/clang-9 -pthread -shared -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -stdlib=libc++ -Wl,--no-export-dynamic /usr/lib/llvm-9/lib/libc++.a /usr/lib/llvm-9/lib/libc++abi.a -fuse-ld=lld-9 -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib/manual-link -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib/manual-link -fPIC -g -DCATCH_CONFIG_NO_POSIX_SIGNALS build/temp.linux-x86_64-3.10-pydebug/home/asclearuc/development/engine/vcpkg/buildtrees/python3/src/v3.10.7-e072c2af43.clean/Modules/_cryptmodule.o -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib/manual-link -L/usr/local/lib -Wl,--enable-new-dtags,-R/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -Wl,--enable-new-dtags,-R/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib/manual-link -Wl,--enable-new-dtags,-R/usr/local/lib -Wl,--enable-new-dtags,-R/lib64 -Wl,--enable-new-dtags,-R/usr/lib64 -Wl,--enable-new-dtags,-R/lib -Wl,--enable-new-dtags,-R/usr/lib -o build/lib.linux-x86_64-3.10-pydebug/_crypt.cpython-310d-x86_64-linux-gnu.so

and corresponding line on Ubuntu 18 (-lcrypt is present):
/usr/bin/clang-9 -pthread -shared -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -stdlib=libc++ -Wl,--no-export-dynamic /usr/lib/llvm-9/lib/libc++.a /usr/lib/llvm-9/lib/libc++abi.a -fuse-ld=lld-9 -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib/manual-link -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib/manual-link -fPIC -g -DCATCH_CONFIG_NO_POSIX_SIGNALS build/temp.linux-x86_64-3.10-pydebug/home/asclearuc/development/engine/vcpkg/buildtrees/python3/src/v3.10.7-e072c2af43.clean/Modules/_cryptmodule.o -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -L/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib/manual-link -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -Wl,--enable-new-dtags,-R/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib -Wl,--enable-new-dtags,-R/home/asclearuc/development/engine/vcpkg/installed/x64-linux-clang9-aparavi/debug/lib/manual-link -Wl,--enable-new-dtags,-R/usr/lib/x86_64-linux-gnu -Wl,--enable-new-dtags,-R/usr/local/lib -Wl,--enable-new-dtags,-R/lib64 -Wl,--enable-new-dtags,-R/usr/lib64 -Wl,--enable-new-dtags,-R/lib -Wl,--enable-new-dtags,-R/usr/lib -lcrypt -o build/lib.linux-x86_64-3.10-pydebug/_crypt.cpython-310d-x86_64-linux-gnu.so

config-x64-linux-clang9-aparavi-dbg-config.log has the same information for both U18/U20

ac_cv_search_crypt=-lcrypt
ac_cv_search_crypt_r='none required'

So, for me - it looks like configuration is generally the same.
However, it results in different compile/link options :(
Any advice?
PS. Different scenarios were tried for U20, like setting CC/CXX to the corresponding values, setting export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH - no matter result was the same
Happy Winter Holidays!

Any advice?

If you don't need _crypt and nis modules, you can create an overlay port and remove the post-build check.


Update zfcore nimble package

Update to version 1.0.1
change url to release 1.0.1
https://github.com/zendbit/nim.zfcore/tree/nim.zfcore_1.0.1

there are tags for that

Please dont merge i will cancel the requesg


Terminal leaves a stray tab when exiting shell

Environment
Windows build number:  Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0
Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.9.433.0

Any other software?

Steps to reproduce
went to cmd
then was mucking around with switching tabs, came back to this cmd tab, and typed exit,  I also typed exit on a few other cmds and they disappeared correctly
Expected behavior
tab disappears
Actual behavior
tab stays and it says
C:\Users\keith.nicholas>exit

[process exited with code 9009]

and is non interactive

/dup #4223 with more context here  https://github.com/microsoft/terminal/issues/4223#issuecomment-574834181


Update DefaultRolePermissionService.java

代码优化：userId 为admin，减少db查询
What's the purpose of this PR
XXXXX
Which issue(s) this PR fixes:
Fixes #
Brief changelog
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Read the Contributing Guide before making this pull request.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit tests to verify the code.
[ ] Run mvn clean test to make sure this pull request doesn't break anything.

Codecov Report

Merging #3256 into master will increase coverage by 0.02%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #3256      +/-   ##
============================================
+ Coverage     51.47%   51.50%   +0.02%
- Complexity     2294     2297       +3
============================================
  Files           442      442
  Lines         13739    13739
  Branches       1398     1397       -1
============================================
+ Hits           7072     7076       +4
+ Misses         6176     6175       -1
+ Partials        491      488       -3

Impacted Files
Coverage Δ
Complexity Δ

.../spi/defaultimpl/DefaultRolePermissionService.java
69.23% <0.00%> (ø)
22.00 <3.00> (ø)

.../apollo/internals/RemoteConfigLongPollService.java
78.31% <0.00%> (+0.60%)
29.00% <0.00%> (+1.00%)

.../framework/apollo/spring/property/SpringValue.java
89.47% <0.00%> (+1.75%)
21.00% <0.00%> (+1.00%)

...rk/apollo/spring/property/SpringValueRegistry.java
88.88% <0.00%> (+5.55%)
11.00% <0.00%> (+1.00%)

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 6ff6ddd...d3ebb7c. Read the comment docs.


⚠ Bofrost.be has degraded performance

In a89070f, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1004 ms

Resolved: Bofrost.be performance has improved in 759012c after 10 minutes.


Problem to play some youtube link on Discord musikbot

Have update my youtube-dl and use the update_deps.exe but its still happen when i whant that my bot play a link i got this report: ERROR: Signature extraction failed: Traceback (most recent call last):
File "C:\Users\Tom\AppData\Local\Programs\Python\Python35\lib\site-packages\youtube_dl\extractor\youtube.py", line 1005, in _decrypt_signature
{
File "C:\Users\Tom\AppData\Local\Programs\Python\Python35\lib\site-packages\youtube_dl\extractor\youtube.py", line 897, in _extract_signature_function
},
youtube_dl.utils.ExtractorError: Cannot identify player '/yts/jsbin/player-vfl3RjfTG/en_US/base.js'
(caused by ExtractorError("Cannot identify player '/yts/jsbin/player-vfl3RjfTG/en_US/base.js'",))
I will be happy if someone can help me

You are using an outdated version of youtube-dl. Read this FAQ entry if you have troubles updating.

i have update it with this "this FAQ entry " your send but still the same

Bother to read new issue template and prove with verbose log.

how can i send you my log that you can see it?(sry im realy new at the)

fix it self was that he put both version at the same place and he load the old one


JWT support

Why this feature is required (specific use-cases will be appreciated)?
JWT authentication is a very common method of authentication especially on mobile applications.
Have you tried any other work arounds?
There's a third party package but I'd prefer a first party solution like Laravel Sanctum. I noticed that jwt auth was available in v4 but for some reason it's gone in v5.
Are you willing to work on it with little guidance?
Will try my best. But I'm still not familiar with the codebase.

Hey @hichemfantar! 👋🏻
What's wrong to use OAT Token instead of JWT in your case?

I appear mistaken in that laravel sanctum's solution isn't exactly like JWT but It provides similar functionality. I assume I'm supposed to simply use API tokens for my mobile application?
What do you mean exactly by OAT Token?

Yes, OAT (API Tokens) should work for your use case. 👍🏻

Great, I'm closing this then.


Taiwan is not part of China

Taiwan is not part of China.

This is just the convention used in WHO situation reports.

Taiwan is not part of China.

qi bu qi


Map object members' key

This is my example JSON object. totals object has member objects with a date defined as object key. I need the date key as defined in totals object for later use. What's the way to map object members' key?
{
  customer_id: 555,
  totals: {
    2015-09-01: {
        sales: "50.00"
        orders: 3
    },
    2015-09-02: {
        sales: "12.75"
        orders: 1
    }
  }
}

This is how I currently map, and it fails.
class ReportMapper:Mappable{
    var customerID:Int?
    var totals:[TotalMapper]?

    func mapping(map: Map){
         customerID <- map["customer_id"]
         totals <- map["totals"]
    }
}

struct TotalMapper: Mappable{
     var date:String?
     var sales:String?
     var orders: Int?
    required init?(_ map: Map) {
        mapping(map)
    }

    func mapping(map: Map) {
       // date <- map["???"]   This date property should be the object key as in the JSON example "2015-09-01" or "2015-09-02"
        sales <- map["sales"]
        orders <- map["orders"]
}

You cannot get the date into the TotalMapper object automatically but you can map the data into a dictionary of TotalMapper objects where the keys are the dates.
I think something like this should work
class ReportMapper:Mappable{
    var customerID:Int?
    var totals:[String:TotalMapper]?

    func mapping(map: Map){
         customerID <- map["customer_id"]
         totals <- map["totals"]
    }
}


Adds EpoxyLayoutGroups - a declarative API for creating components

Change summary
This PR adds EpoxyLayoutGroups, a declarative API for creating components. We have been using LayoutGroups internally at Airbnb for over a year now, and are excited to bring it under the Epoxy umbrella and open source it.
How was it tested?
How did you verify that this change accomplished what you expected? Add more detail as needed.

[x] Wrote automated tests
[x] Built and ran on the iOS simulator
[ ] Built and ran on a device

Pull request checklist
All items in this checklist must be completed before a pull request will be reviewed.

[x] Risky changes have been put behind a feature flag, e.g. CollectionViewConfiguration
[x] Added a CHANGELOG.md entry in the "Unreleased" section for any library changes

Please review
@erichoracek

Thanks for all the great feedback @erichoracek! Apologies for the delay on updating this, I've just addressed all of your comments


Auto scroll for bible reference is not working, on clicking on a verse in the editor panel the bible reference panel shoul auto scroll to the same verse

Verse by Verse auto-scroll for Bible references along with Editor Bible not working properly.

Start Trying on auto scroll for OBS mode


BlazorWebView shows a white line when having a Margin of 2px

Current behavior

How to reproduce it (as minimally and precisely as possible)
No response
Expected behavior
No white line.
Screenshots
No response
Workaround
Set a margin of 20px, 200px or 0px (for example).

Affected platforms
Windows
Affected DevToys kind
DevToys (app with GUI)
DevToys Version
2.0
Relevant Assets/Logs
No response

@veler
We are currently testing the usability of the app from a user's perspective.
Even in the current build, if the margins are restored, will this white line be displayed?

@veler
We are currently testing the usability of the app from a user's perspective.
Even in the current build, if the margins are restored, will this white line be displayed?

I believe, yes.

@veler It happened again in the https://github.com/DevToys-app/DevToys/commit/ee85fda03c33192988d2be49c16aa5760508f000 build.
https://github.com/user-attachments/assets/a3784395-534b-45aa-9761-ab97518d48ba


Multi accounts dictionary IB API

Hi there , Im having a bug when connecting to the IB api.
it's relating to the multi IB accounts
More specifically I get an error in the method _account_summary_handler of ibstate
    acc = self.accounts[msg.account] KeyError: 'DU15195'
The problem is that I never see accounts initialised anywhere.
It is therefore trying to slice an empty dictionary.
Should the fix not be ?
 acc=msg.account
Kind regards

Hi Jeroen
The reason it’s happening is because it’s setup for an advisor account (see IB friends and family https://www.interactivebrokers.com/ff/en/main.php). It should only be a few lines to change it to normal accounts, and I would accept that as a pull request too if you wanted to contribute it.

On 12 May 2018, at 16:48, Jeroen De Ryck<EMAIL_ADDRESS>wrote:
Hi there , Im having a bug when connecting to the IB api.
it's relating to the multi IB accounts
More specifically I get an error in
acc = self.accounts[msg.account] KeyError: 'DU15195'
The problem is that I never see accounts initialised anywhere.
It is therefore trying to slice an empty dictionary.
Should the fix not be ?
acc=msg.account
Kind regards
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I'm working on a fix now. I'm just a bit confused as to where the Acc objects are being initialised. It seems to me that this is happening in _managed_accounts_handler, however because I will only be using only one account ,can I just initialise in _account_summary_handler?

@jerreyz You're right, it's in _managed_accounts_handler and I don't think it depends on whether you're using one or multiple accounts. In the case of single account you should just have a single-key dictionary in self.accounts

@imaginary-unit thanks for your comment.
I still keep getting errors because _account_summary_handler is being registered first and then tries to slice on an empty dictionary. Should I just register _managed_accounts_handlerfirst or initialise in _account_summary_handler?

@jerreyz Well it depends on whether the multi-account support is needed to be maintained in this project or not, which I'm not really aware of :) If yes, then it's probably better to check if msg.account is in self.accounts inside _account_summary_handler and if it's not, just add it (and do the same thing in _managed_accounts_handler to avoid duplicates). If multi-account support is not needed, then sure accounts dictionary should be removed.


Update accountpool docs

Satisfies OSD-7640 and OSD-9105

/lgtm
/retest

Codecov Report

Merging #662 (1f4dd12) into master (305e962) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #662   +/-   ##
=======================================
  Coverage   31.64%   31.64%
=======================================
  Files          46       46
  Lines        4601     4601
=======================================
  Hits         1456     1456
  Misses       3047     3047
  Partials       98       98

/lgtm


gitbase: fix squash_iterator tests and skip partition errors

[ ] I updated the documentation explaining the new behavior if any.
[ ] I updated CHANGELOG.md file adding the new feature or bug fix.
[ ] I updated go-mysql-server using make upgrade command if applicable.
[ ] I added or updated examples if applicable.
[ ] I checked that changes on schema are reflected into the documentation, if applicable.

Related to #857

@javi - update go.mod with go-borges

I think you meant someone else :smile:


Update README_TCH.md

OH you did a great job aren't you?

Thank you
JingShing @.***> 於 2022年12月20日 週二 15:05 寫道：

Merged #1
https://github.com/university-subject/Python-Voice-Order/pull/1 into
main.
—
Reply to this email directly, view it on GitHub
https://github.com/university-subject/Python-Voice-Order/pull/1#event-8075597042,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3DNDQ2VFGKLP7IMW2IWKXTWOFLFBANCNFSM6AAAAAATEE6U4Y
.
You are receiving this because you authored the thread.Message ID:
<university-subject/Python-Voice-Order/pull/1/issue_event/8075597042@
github.com>


less samples than libtock-c

less samples than libtock-c,  will be better later?

I would expect the number of examples to grow over time, yes. The documentation is in kindof a bad state right now, because I haven't had time to write it.


Get Every Position

Hello,
How do i get current position from your view pager for every scroll Please Help I am stuck at middle of something.

In Kotlin:
yourPager.onPageChangeListener {
this.onPageSelected {
//You will get the current position in the view as Int
}
}


Gallery View Improvements

Gallery View Improvements
:recycle: Current situation & Problem
Currently the pictures shown in the gallery view are very small and cannot be magnified.
:bulb: Proposed solution
Embedded the images in a navigationlink that links to a separate view that displays the full-size image.
Reviewer Nudging
@PSchmiedmayer I had to use an optional variable for the state and binding in GalleryViewList.swift and IndividualPhotoView.swift to pass the images or else I got a bunch of errors (not really sure why), but that is causing me a swiftlint error when I force unwrap photo in IndividualPhotoView. I tried implementing a guard statement but I'm not really sure how to get it working in this context.
Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

[x] I agree to follow the Code of Conduct and Contributing Guidelines.

Andy's comments:
GalleryViewList issue - if you have multiple photos in a section it doesn’t always open the right image when you click on it in
Bug is possibly in GalleryViewLIst.swift.
Video of bug is shown below.
https://user-images.githubusercontent.com/39425930/224184854-c59abae4-396f-4516-940e-59c2d42ecb54.mov

@awangwang @SJayYang I will try to take a look at this before the class. Let's take a look at this together 👍


Update log-effect-fs2 to 0.13.0

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

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.laserdisc", artifactId = "log-effect-fs2" } ]

labels: library-update, semver-minor

Codecov Report

Merging #269 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #269      +/-   ##
==========================================
- Coverage   62.17%   62.14%   -0.03%
==========================================
  Files          38       38
  Lines        1285     1284       -1
  Branches        8        7       -1
==========================================
- Hits          799      798       -1
  Misses        486      486

Impacted Files
Coverage Δ

...s2/src/main/scala/laserdisc/fs2/RedisChannel.scala
73.68% <0.00%> (-5.27%)
:arrow_down:

cli/src/main/scala/laserdisc/cli/CLI.scala
0.00% <0.00%> (ø)

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 3c225a2...5f6d873. Read the comment docs.


Display name of a filter in Infrastructure Providers

fixing issue https://github.com/ManageIQ/manageiq/issues/12199
Display name of a choosen filter from My Filters which
was not displayed in Compute -> Infrastructure -> Providers
and also in many other places.
Before

After

@miq-bot add_label bug, ui

While the fix shown would fix the problem at hand, the real problem here is that the search
filter is not being correctly extracted (and set) earlier in the code in
https://github.com/ManageIQ/manageiq/blob/master/app/controllers/application_controller/filter.rb#L533
This broke with commit a014ce43 which changed the expression stored in session from a hash
to a new object (struct). Since the new object doesn't support fetch_path(), it would always
return nil here.
@hstastna please reach out to @isimluk and try to hash out a nice solution for this problem.

@mzazrivec @isimluk what about
@edit[:expression].selected[:description]
instead of
@edit[:expression].selected[:description]
in https://github.com/ManageIQ/manageiq/blob/master/app/controllers/application_controller/filter.rb#L533 ?

I am sorry, I introduced this problem in a014ce43c5e98066c9eae68cf75a6ae16e784303.
I didn't think of fetch_path as of something MiQ defines only for some of the base data structures. Here are my notes from the analysis

fetch_path is our custom method defined for Arrays and Hashes (in more_core_extensions)
fetch_path is lenient. That means when it finds a nil, it will returns nil. While [:x][:y][:z] will blow up :bomb:
by replacing Hash with Struct in a014ce43c5e98066c9eae68cf75a6ae16e784303 I broke all the statements that use fetch_path over this Expression :sob:
You can see find some them with git grep edit.fetch_path.*exp[kr]
This pr potentially fixes one of the problems (although this also inserts a :bomb: prepared to detonate :fire: once either @edit[:expression] or @edit[:expression].selected is nil).
We don't know if these can be nil -> (A) perhaps fetch_path was used, because there can be nil. (B) perhaps fetch_path was used, because it gave author that cool feeling. :cocktail:
I suggest that we plug all the problems (of git grep edit.fetch_path.*exp[kr]) by introducing fetch_path method on the Expression class.
That can be achieved by ApplicationController::Filter::Expression.send(:include, MoreCoreExtensions::Shared::Nested)

We can try:
    ApplicationController::Filter::Expression.send(:include, MoreCoreExtensions::Shared::Nested)
    x = {:a => ApplicationController::Filter::Expression.new}
    x.fetch_path(:a, :selected, :HEHE)
=> nil
    x[:a].selected[:HEHE]
NoMethodError: undefined method `[]' for nil:NilClass

I think we can fix this bug, by the one liner:
ApplicationController::Filter::Expression.send(:include, MoreCoreExtensions::Shared::Nested)

and then we can continue with extracting code manipulating expression to this class (on my todo list, but I could use some help). When we extract code manipulating Expression to the Expression class, most of the need for fetch_path method will go way. I am willing to bet real money on that.

For me it works if I add ApplicationController::Filter::Expression.send(:include, MoreCoreExtensions::Shared::Nested) to  app/controllers/application_controller/filter/expression.rb
so I am fine with this solution.

@hstastna @isimluk I'm also OK with the solution proposed above.

@mzazrivec I made changes and repushed so it can be merged

@hstastna the failure is not related to this pr.
You don't need to be admin to restart travis. You can restart travis, by either rebasing this pr, or simply touching that commit. i.e amending the date...


Incidents related to sc upgrade

List of vulnerabilities due to upgrade

https://decrypt-co.cdn.ampproject.org/c/s/decrypt.co/283440/staking-protocol-bug-let-users-swap-one-bitcoin-for-one-ethereum?amp=1
[summary]

An upgradeable contract was exploited today and there was already nearly 10m loss: the root cause of contract GasZipFacet was deployed 5 days ago.
Link, Code


Fix a minor typo (Environnement-> Environment)

Since the Readme is in english, updating the french word to it's english counterpart :)

Good catch @shrej! Thanks for the fix.


Remove arguments.caller for strict mode argument objects to match revised ES2017 behavior

Fixes #2008.

Appveyor failure is some network hickup and not relevant.


Make some change of the results page and fixed some bug

Fixed text field for ios by setting the border-radius to 0
It was:

Now:

Move red button "Mark records as duplicate" to the end of the search results and remove the "possible duplicates found" because it shows the same meaning as "Mark records as duplicate"

Remove the warning icon and simplify the message when there is no results for "name+location" but have results for "name"

Remove the expand-link in ui=light and rearrange the name section
It was:

Now:

Small mode works with new UI

Merged~


Obsolete files removed

What changes to the docs does this PR provide?
This PR removes 4 files of the root categories that we have in our docs. However, these root levels don't have or need any individual documentation as they're just categories for the items below them.
PR Checklist
Please check if your PR fulfills the following requirements:

[X] For new pages, used the provided template.
[X] For new features, added an entry in the Table of Contents.
[X] Ran against a spell and grammar checker.
[X] Contains NO breaking changes.

Docs Build status updates of commit a97194c:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/TOC.yml
:warning:Warning
View
Details

docs/behaviors.md
:white_check_mark:Succeeded

docs/converters.md
:white_check_mark:Succeeded

docs/helpers.md
:white_check_mark:Succeeded

docs/views.md
:white_check_mark:Succeeded

docs/TOC.yml

Line 66, Column 9: [Warning-file-not-found] Invalid file link: 'helpers.md'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 76f6c54:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/TOC.yml
:white_check_mark:Succeeded
View

docs/behaviors.md
:white_check_mark:Succeeded

docs/converters.md
:white_check_mark:Succeeded

docs/helpers.md
:white_check_mark:Succeeded

docs/views.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Add a warning for trying to uninstall a dependency

Description of the new feature / enhancement
WinGet should warn the user if they try to uninstall a package that another installed package depends on, to make sure that the user knows that certain apps may break. I think that it also require an argument to complete the uninstall (--force?), as there's plenty of good reasons the user would want to do it anyway, but they should be informed that certain apps may break.
Sorry if this is totally obvious, but I was removing stuff on my laptop with brew and they had a similar message pop up, so I thought winget should do it too.
Proposed technical implementation details
PS C:\Users\easton> winget uninstall Microsoft.Bob
Warning: Microsoft.Edge relies on Microsoft.Bob, and may not function correctly after Microsoft.Bob is uninstalled.
To continue, add --force to your previous command.

(for posterity, the brew warning)
 ! easton@Usidore ~/ ~> brew remove mutagen-beta                                                                                Mon Mar 28 09:31:02 2022
Error: Refusing to uninstall /opt/homebrew/Cellar/mutagen-beta/0.13.1
because it is required by mutagen-compose-beta, which is currently installed.
You can override this and force removal with:
  brew uninstall --ignore-dependencies mutagen-beta

[Policy] Dependencies
[Policy] Command-Uninstall


Fix text align with compressed output js

This fixes text align being lost with compressed output.
For example in the value for 'center' is compressed to '0' which is coerced to 'left' on this line:
https://github.com/jiborobot/pixi-animate/blob/master/src/mixins/Text.js#L22

Looks good!


Silence page file name

Could you add a feature to silence page title name ?  I think this is a little unnatural. As follow:

Thanks @wowxunyl for the suggestion! I'll see what I can do when I have a free cycle.

Hey @wowxunyl I just released version 1.2.0
You should be able to update the plugin and then find the new toggle in the settings. Turning it on will then allow the title to dim.
Let me know if this helps and I can close this issue out.

@michaellee I experienced it and that's what I want. Really excellent job and I appreciate it so much! But it seems that the option "Dim title" not always works. Here are the steps to reproduce:

Enable the "Dim title" option
Type "Toggle Still" command, title and content dim, as expected
Type "Toggle Still" command, title and content not dim, as expected
Type "Toggle Still" command, content dim, but title not dim, NOT expected

@wowxunyl that's a good catch! I just pushed up v1.2.1 which should fix that issue.
Could you try it again after updating to the latest version?

@michaellee I updated the latest version and it works smoothly. Love the perfect plugin! Thanks for your efforts so much!


Tree Test Blog Post

https://dev-blog-nrrd.app.cloud.gov/treetest/

@Maroyafaied Sure! We still need to go through and proof read now that we have everything rendering correctly.

@lpgoldstein should I wait to review it until you make your changes or would you like my review now?

@Maroyafaied What looks like periods is just how it renders the space after the tail in the Y.

@jennmalcolm You can go ahead and review now.

Could you divide this sentence in two? I think its a bit long/complicated.

Extra word

Should be ever

Aside from the typos I noted, I'm only concerned about the width of the in-page tables. Those are much wider than the rest of the page. I might be able to help with this if you want me to try.

@jennmalcolm That would be helpful.  I have no idea how to change the width of the tables.

@jennmalcolm The html table is showing up as text on my machine.

Yeah @mcharg we don't have any table styles set up for the blog. I'm deleting the html table and just putting your markdown one back in. If you want to fix the width, we better ask one of the developers for help setting up table styles. It's probably not that big of deal, so I'll just approve once my html removal commit goes through.


feat: add AuctionBuyersPremium scene

This PR resolves FX-3959
Changes

Added a separate page inside Eigen. When user clicks the "Buyer's premium" link, this page will open
This page will display the same content as on Force (see attached video below)

https://user-images.githubusercontent.com/3513494/171679282-ff187318-f3fb-4800-8322-ed2f419c52eb.mp4
Demo
Before
https://user-images.githubusercontent.com/3513494/171678851-22ca4a49-c217-44db-a2b1-fd19ced2acd5.mp4
After
https://user-images.githubusercontent.com/3513494/171678405-52f799cd-547d-484f-8af1-dace226831f7.mp4

PR Checklist

[x] I tested my changes on iOS / Android.
[x] I added screenshots or videos to illustrate my changes.
[ ] I added Tests and Stories for my changes.
[ ] I added an app state migration.
[ ] I hid my changes behind a feature flag.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

AuctionBuyersPremium scene - dimatretyak

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look on our docs, or get in touch with us.

I would consider a follow-up discussion on moving this "Auction FAQ" content to Metaphysics - including a way to get this "buyer's premium" copy so we have a single definition supporting both surfaces.

Yes, I think it's a good idea


Structure content

I'm just thinking "out loud" here, please comment or start implement something.
I imagine one can use the Bulma tiles in a 2x2 grid and have each tile some specific information type, possibly expandable.
Like one tile for where to turn for support, one tile that links to european efforts, and so forth.
Or one could also imagine that the different tiles are geared to different potential users of the portal. Tiles could then for example be:

I want to share my data
I want support
I want information about scilifelab/europena/worldwide covid19 efforts
I want resources I can use

Some experimentation is needed to figure this out.

I believe more in the "I want..." approach.
So the page would be something like:
TItle
Some general info
-----------------------------------------------------
| I want to access data      | I want to share data |
-----------------------------------------------------
| About the covid-19 efforts | I want support       |
-----------------------------------------------------
Footer

Johan had the idea that we should be inspired by EBI's Covid19 portal https://www.covid19dataportal.org/ . We can follow their overall structure, although not their exact theme, obviously.


gvc0 should default missing specs to ? not 'true'

Currently, gvc0 defaults missing specs to 'true', but for usability this should really be '?'.

Completed in this commit: https://github.com/gradual-verification/gvc0/commit/bd2c42026b2cf8577b56372610447aec3a450a17 . Ideally, the backend should also have this as a default (it has true as the default as well), so I opened an issue in the backend for this.


Parse error at line 65/66

Result of $ sudo edit-chroot -all
name: bionic
encrypted: no
mount: /proc/self/mountinfo: parse error at line 65 -- ignored
mount: /proc/self/mountinfo: parse error at line 66 -- ignored
Entering /mnt/stateful_partition/crouton/chroots/bionic...
mount: /proc/self/mountinfo: parse error at line 65 -- ignored
mount: /proc/self/mountinfo: parse error at line 66 -- ignored
mount: /proc/self/mountinfo: parse error at line 65 -- ignored
mount: /proc/self/mountinfo: parse error at line 66 -- ignored
crouton: version 1-20190403182822~master:174af0eb
release: bionic
architecture: amd64
xmethod: xiwi
targets: xiwi,xfce
host: version 12105.25.0 (Official Build) beta-channel cave
kernel: Linux localhost 3.18.0-19338-gd01eb2b8ad72 #1 SMP PREEMPT Thu May 2 01:34:14 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/bionic...

Please describe your issue:
The lines below have began appearing and I cannot find any reference to them in any other crouton related issues on github or elsewhere. Is this cause for worry?
mount: /proc/self/mountinfo: parse error at line 65 -- ignored
mount: /proc/self/mountinfo: parse error at line 66 -- ignored

If known, describe the steps to reproduce the issue:
It occurs every time I $sudo enter-chroot.

@wintermascot,
I'm not having that issue.
I'd suggest updating your chroot or perhaps just running: sudo crouton -b
Either should update your host-bin scripts.
Hope this helps,
-DennisLfromGA


util: Update tinyformat

This is https://github.com/bitcoin/bitcoin/pull/8274
utACK

Doh. rawtransactions.py is failing with
EXCEPTION: St13runtime_error
tinyformat: Too many conversion specifiers in format string
bitcoin in ProcessMessages()

Assertion failed: Block sync failed
  File "/home/dgenr8/bitcoinxt/qa/rpc-tests/test_framework/test_framework.py", line 144, in main
    self.run_test()
  File "/home/dgenr8/bitcoinxt/qa/rpc-tests/rawtransactions.py", line 44, in run_test
    self.sync_all()
  File "/home/dgenr8/bitcoinxt/qa/rpc-tests/test_framework/test_framework.py", line 94, in sync_all
    sync_blocks(self.nodes)
  File "/home/dgenr8/bitcoinxt/qa/rpc-tests/test_framework/util.py", line 100, in sync_blocks
    raise AssertionError("Block sync failed")
Stopping nodes
Cleaning up
Failed
Traceback (most recent call last):
  File "./rpc-tests.py", line 250, in <module>
    runtests()
  File "./rpc-tests.py", line 150, in runtests
    rpcTestDir + testScripts[i] + flags, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/home/dgenr8/bitcoinxt/qa/rpc-tests/rawtransactions.py --srcdir /home/dgenr8/bitcoinxt/src  ' returned non-zero exit status 1


Add newly added Button component

This PR addes the support for the newly added Button component.

Yeps, @RealOrangeOne. I commited by mistake. Fixed now.

BTW, @RealOrangeOne, I'm getting issues when upgrading to<EMAIL_ADDRESS>Any plans to upgrade this as well?

Not unless react-native supports it. We only maintain support for the most recent version


Add Redshift database support

Description
What is the current behavior?
No support available for Redshift database
What is the new behavior?
Add support for Redshift database for the following operators:

[x] load_file
[x] transform
[x] drop_table
[x] run_raw_sql
[x] append
[x] export_file
[x] dataframe

Note: The merge operator implementation needs some discussion and will be
provided in a subsequent PR.
Does this introduce a breaking change?
No.
Checklist

[x] Created tests which fail without the change (if possible)

closes: #612

It would be great if can squash your commit.

It would be great if can squash your commit.

Squashing looks difficult as the branch has been rebased multiple times and also few conflicts have been handled with merge commits from main time to time. However, when the branch is merged to main it will appear as a single commit.


[Bug] chart label effected by updateDataSync

Version
1.3.1
Link to Minimal Reproduction
none
Steps to Reproduce
use api to updateData
vchart.updateDataSync('data',record1)

vchart.updateDataSync('data',record2)

this effect is not same with
vchart.updateDataSync('data',record2)

Current Behavior
label show  error
Expected Behavior
label show effect normally
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
No response

will be fixed in vchart 1.4.0


python312Packages.opensearch-py: fix build

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 326104 run on aarch64-darwin 1

2 packages marked as broken and skipped:

python311Packages.parsedmarc
python311Packages.parsedmarc.dist

8 packages built:

python311Packages.awswrangler
python311Packages.awswrangler.dist
python311Packages.opensearch-py
python311Packages.opensearch-py.dist
python312Packages.awswrangler
python312Packages.awswrangler.dist
python312Packages.opensearch-py
python312Packages.opensearch-py.dist


extend slack recipe

add possibility to pass username, pretext and icon_emoji as attachments

Q
A

Bug fix?
No

New feature?
Yes

BC breaks?
No

Deprecations?
No

Fixed tickets
N/A

@drieshooghe I really like this PR!
I was about to create a PR when I figured out this. But I think it could be more 'extensible'.
I think that the user could be able to override all options such as attachments, messages, icons, and so  on.
Few other things I missed in this PR are:

PRS-1/2 compliance;
Updated documentation;

I'm not intending for being rude or something like thst pointing these things, I would just really like to help you with this PR.
If @antonmedv accept it as is, I can send another PR with these changes. :)


Add support c++11 on build with gcc

SOCI always builded with GCC compiler with c++03 flags
Аdd support c++11 for GCC to build SOCI

I don't think it's right to use C++11 by default with g++ 4.8+. People should be able to specify the version of the language they want explicitly, e.g. by doing CXXFLAGS=-std=c++14 or whatever, and the default should be whichever version the compiler uses without any options, which will remain C++03 for g++ 4.x.

I don't think it's right to use C++11 by default with g++ 4.8+
Please read https://gcc.gnu.org/gcc-4.7/cxx0x_status.html

With default options throwing an exception out of a destructor is close application. I has enable nothrow(false) option for destructor.

@nefelim Have you tried to enable CXX11 with -DSOCI_CXX_C11=ON ?

@snikulov cmake script has been enable this define automatically in lines:
`+if(SOCI_CXX_C11)

add_definitions(-DSOCI_CXX_C11)
+endif()`

Support c++11 enabled in gcc 4.7 and more
`+if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)

if(NOT CMAKE_CXX_COMPILER_VERSION LESS 4.7)

 set(SOCI_CXX_C11 ON)

endif()
+endif()`

I have check changes in my machine. Now my application not closed after throwing exception in destructor (its solution for me).
Unittests in build server completed too.
My SOCI configuration: http://pastebin.com/2pFxYGt8

@nefelim So, can we close this PR?

@nefelim So, can we close this PR?
@snikulov I can't close it. It is not my responsibility. In my project I use fork from SOCI.

@nefelim You should be able to close it yourself.

@mloskot 10x :)


Fixed bad shift operation warning in deflatePrime.

  CID 293475 (#2-4 of 4): Bad bit shift operation (BAD_SHIFT)
  In expression 1UL << put, left shifting by more than 63 bits has undefined behavior.

If s->bi_valid == 0, then it should just copy and zero-extend the value instead of trying to mask and shift... The original calculation did overflow for obvious reason.

Changes made.

Looks good to me, but I wish we had a test for this. Is that a possibility here?

I have made some improvements to deflatePrime testing. There is not a possibility for value param being 64 so the problem this issue solves would never be hit. But it had been fixed to silence coverity.

This currently fails all checks. Unfortunately I don't know why, because github actions says
"We are currently unable to download the log. Please try again later."

/home/runner/work/zlib-ng/zlib-ng/test/example.c:1055:5: error: too few arguments to function ‘test_deflate_prime’

This should also fix the newly found coverity issue at line 599 value >>= put; (It basically detects this issue in four variants now)

When you fix the current compile error, please merge the (now 2, would-be 3) test-commits into one. 😄

They are not test commits, I have broken them out by the logic changes. However, I have merged the first two into one commit to reduce the number of commits. Hopefully that looks good to you.

My mistake then, I only reviewed the whole thing and then found out there were multiple commits, and assumed the last one was a fix for the next-to-last one. Sorry.
Btw, is Github working really crappy for you lately? Click on "commits" or "files changed" and it never finishes loading until you refresh, same when you want to return to "conversation". Has made it a royal pain to review things the past couple of weeks. Might be something on my end, but not sure what would cause that particular problem, kind of like ajax-requests just get lost on the way.

@Dead2 GitHub status page is showing a lot of orange and red for last few days...


Functional (acceptance) tests, with live keystone

[x] Basic test config (#28)
[x] #39
[x] #31
[x] #41
[x] #32
[x] #49

Done


Add (secret) WASI Playground

Geez there's a lot of changes here, I should have merged this ages ago.
So basically the vibe is I'm building out more stuff for @runno/wasi-motor. I wanted to have a playground that I could use to demo, but it's not ready yet.
I realised that I could make it so the playground his hidden in prod, that way it won't show on the website.
I should have realised that ages ago.

The playground, visible at /wasi mostly works. The main problem is that I can't yet run all the programming languages that the old wasi package could. So I want to nail down those bugs first. I also want to write an article that explains what this whole WASI thing is anyway.


Move Caddy file in to separate file

Move Caddyfile in to separate file to increase readability.
Make use of {{vars}} instead of $vars (realpath had to be set for deploy_path)

This might be the first step for a better configurable Caddyfile in the future.

Since this change, I am running into the following error when provisioning a new website:
ErrorException  in website.php on line 24:
    file_get_contents(./Caddyfile): Failed to open stream: No such file or directory

Did the change come with additional requirements that need to be fulfilled so the new system works?
If not, I'll create a proper bug report issue.
Downgrading to v7.3.3 resolved the problem.

Migrated to https://github.com/deployphp/deployer/discussions/3901


Missing support for language shops

Describe the bug
Using adyen in language shops, that have a main shop, is creating an infinite loop calling /checkout/shippingPayment in these shops.
To Reproduce
Steps to reproduce the behavior:

Create a shopware instance with one main store and a language variant of this store.
Enter checkout in the language store.
Go to /checkout/shippingPayment step in checkout.

Expected behavior
The payment means configured for the main shop should be shown, since it is not possible to configure the module separately for language shops.
Additional context
From what we have seen so far, the issue is caused, because the module relies on the id retrieved via Shopware()->Shop()->getId() to get the checkout configuration. But since you cannot configure the module for these types of shops, the configuration cannot be loaded.
Since the module cannot load the checkout config, the enriched payment means are empty and the redirect in EnrichUserAdditionalPaymentSubscriber is executed.

Hey @sheitmeier,
Thank you for reaching out.
Our team will check this issue and get back to you.
Best regards.

Hello @sheitmeier,
Note that our team has reviewed your inquiry and we are pleased to let you know that we have fixed the reported problem.
The Adyen plugin divides contexts between the main shop and subshops. Language shops follow the same configuration as their main shop. Thus, throughout the code used in the checkout process where Shopware()->Shop()->getId() is utilized, it should be verified whether the current store is a language shop. In such cases, if Shopware()->Shop()->getMain() is not null, it indicates that the current store is a language shop, and therefore, the configuration for the main shop should be employed.
Note that these changes will be live with the next release.
Here is the zip so that you can apply changes and fix the issue before officially releasing the new plugin version:
AdyenPayment.zip
If you have any further questions, please let us know.
Kind regards.

Thanks a lot for providing feedback and for the fix.


jsonschema.parse not following $ref

The code below only fails when a schema has a $ref inside, you can see the sample schema below. This schema works in the online validator, but when I pass in a url to the schema it fails.
Csharp Code
WebClient wget = new System.Net.WebClient();
var jsonSchema = wget.DownloadString(request.Schema);

JSchema schema = JSchema.Parse(jsonSchema);

Source/destination JSON
{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "id": "https://raw.githubusercontent.com/jeffpatton1971/randomschema/main/resources/resources.json",
  "title": "Resources",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "definedResources": {
      "type": "array",
      "items": {
        "$ref": "https://raw.githubusercontent.com/jeffpatton1971/randomschema/main/resources/definedResource.json"
      }
    }
  }
}

returned from DownloadString
"{\n  \"$schema\": \"http://json-schema.org/draft-06/schema#\",\n  \"id\": \"https://raw.githubusercontent.com/jeffpatton1971/randomschema/main/resources/resources.json\",\n  \"title\": \"Resources\",\n  \"type\": \"object\",\n  \"additionalProperties\": false,\n  \"properties\": {\n    \"definedResources\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"$ref\": \"https://raw.githubusercontent.com/jeffpatton1971/randomschema/main/resources/definedResource.json\"\n      }\n    }\n  }\n}\n"

Expected behavior
I expected it to read in the reference, this works on the online newtonsoft validator, but it's accepting a string schema vs URL, like my code above.
Actual behavior
Newtonsoft.Json.Schema.JSchemaReaderException: Could not resolve schema reference 'https://raw.githubusercontent.com/jeffpatton1971/randomschema/main/resources/definedResource.json'. Path 'properties.definedResources.items', line 10, position 16.
at Newtonsoft.Json.Schema.Infrastructure.JSchemaReader.ResolveDeferedSchema(DeferedSchema deferedSchema)
at Newtonsoft.Json.Schema.Infrastructure.JSchemaReader.ResolveDeferedSchemas()
at Newtonsoft.Json.Schema.Infrastructure.JSchemaReader.ReadRoot(JsonReader reader, Boolean resolveDeferedSchemas)
at Newtonsoft.Json.Schema.Infrastructure.JSchemaReader.ReadRoot(JsonReader reader)
at Newtonsoft.Json.Schema.JSchema.Load(JsonReader reader, JSchemaReaderSettings settings)
at Newtonsoft.Json.Schema.JSchema.Parse(String json, JSchemaReaderSettings settings)
at Newtonsoft.Json.Schema.JSchema.Parse(String json)
at baapi.Controllers.JsonController.GetJson(JsonRequest request) in D:\CODE\Organizations\global-build\baapi\baapi\Controllers\JsonController.cs:line 105
at lambda_method(Closure , Object , Object[] )
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
HEADERS
Accept: application/json
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: close
Content-Length: 109
Content-Type: application/json
Host: localhost:44387
Referer: https://localhost:44387/index.html
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90"
sec-ch-ua-mobile: ?0
origin: https://localhost:44387
sec-fetch-site: same-origin
sec-fetch-mode: cors
sec-fetch-dest: empty

Try using JSchemaUrlResolver as per documentation at: https://www.newtonsoft.com/jsonschema/help/html/LoadingSchemas.htm (section "Resolving externally referenced schemas").
(P.S.: Wrong issue tracker :) Newtonsoft.Json.Schema has its own issue tracker at https://github.com/JamesNK/Newtonsoft.Json.Schema/issues)

Thanks so much @elgonzo ! and I'll make sure to check where i drop issues in the future ;-)


[Snyk] Security upgrade @graphprotocol/graph-cli from 0.29.2 to 0.45.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `yarn` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

packages/subgraph/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

539/1000  Why? Has a fix available, CVSS 6.5
Information Exposure SNYK-JS-NODEFETCH-2342118
No
No Known Exploit

520/1000  Why? Has a fix available, CVSS 5.9
Denial of Service SNYK-JS-NODEFETCH-674311
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Denial of Service

I

Ok


Type predicates not working correctly

Hi,
this is a very useful project!
Unfortunately type predicates are not converted correctly. They are just converted to @return {boolean}.
Would this be inside the purpose of ts-to-jsdoc?
Thank you!

I don't believe JSDoc supports more detailed return type annotations than that? If I'm wrong on that, that's definitely something I'd look to implement.

Yes, I wasn't sure if TypeScript types would be converted accordingly like in this documentation.

Typescript seems to support type guards in jsdoc comments
// @ts-check

/**
 * @param {unknown} a
 * @returns {a is string}
 */
function testGuard(a) {
    return typeof a === "string";
}

/**
 * @param {unknown} v
 */
function demo(v) {
    if(testGuard(v)) {
        v.includes("test");
    }
    // @ts-expect-error
    v.includes("test");
}

Yes exactly, but the JsDoc documentation you linked to doesn't. The reason why I opened this issue is that I knew TS supports these types in JsDoc.

That's a great question! I would like to quote something from the deno website to answer it.

The last few years have shown how tremendously useful it is to be able to annotate JavaScript code with type information (usually in the form of TypeScript). This has two primary benefits:

Type information helps generate documentation automatically, both in the form of IDE hints / completions, and in the form of static documentation pages like on https://doc.deno.land/.
Type information can be used to verify that a given bit of code is semantically correct (type check).

Both of these benefits are very useful, but at different times. The first is an ambient benefit that is always useful during development. The second is a more sophisticated benefit that is only useful just before you are going to ship some code. The type checker is really just a very very powerful linter that can help you discover problems in your code before you run it.

Additionally, with JavaScript being on the path to get type annotations natively, the semantics browsers will use when they encounter type comments will be unlike Deno. They will not type check before running some code, instead leaving that step to a separate type checking step that developers run before shipping the code.

Now you might ask why I needed your project? I converted my Web Components framework shadow from TypeScript to JavaScript with JSDoc to utilize the mentioned advantages and I wanted to save the additional transpiling step from TS to JS. It actually helped me a lot doing that, so thank you!
I hope this answers your question!


refactored checkTrustDomain

PR is to refactor the checkTrustDomain function. Instead of dealing with a boolean return value we will return an err.
The err can be either an error or a nil value. This is used in other functions for error handling.

This looks good to me now, but just throwing a couple of ideas around:

checkTrustDomain is a function that both the SPIRE agent and SPIRE server controllers use, but it is defined in the SPIRE server controller file. What do we think about moving the function to a separate file and importing it from there? Something like a package? As the project expands, I expect that there could be more functions that are common to both SPIRE components and in that case, it would be undesirable for one controller file to be cluttered. This could be a good start for that kind of refactoring.
Under config/samples, the valid SPIRE server and agent use the trust domain example.org, so could we add a test case that tests example.org too? While the first test case already tests that valid DNS names pass, this would just make the testing more robust in the sense that other files that our repo provides have also been tested. The same applies to testing an empty string for trust domain since that is given for an invalid SPIRE server under config/samples.

This looks good to me now, but just throwing a couple of ideas around:

checkTrustDomain is a function that both the SPIRE agent and SPIRE server controllers use, but it is defined in the SPIRE server controller file. What do we think about moving the function to a separate file and importing it from there? Something like a package? As the project expands, I expect that there could be more functions that are common to both SPIRE components and in that case, it would be undesirable for one controller file to be cluttered. This could be a good start for that kind of refactoring.
Under config/samples, the valid SPIRE server and agent use the trust domain example.org, so could we add a test case that tests example.org too? While the first test case already tests that valid DNS names pass, this would just make the testing more robust in the sense that other files that our repo provides have also been tested. The same applies to testing an empty string for trust domain since that is given for an invalid SPIRE server under config/samples.

I am looking into this. I am seeing that we may need to add a feature for validating DNS. I will write more about this later but thank you for bringing this up!

LGTM but @spencebl could you please resolve the conversations as appropriate so I could merge?

LGTM but @spencebl could you please resolve the conversations as appropriate so I could merge?

@vivekvamsi-VV, resolved

@spencebl Also please make sure you also sign your commits as we now have that as part of our pre-merge checks. Learn more about signing commits here.

Thank you for that reminder!


PIXI environments not "conda activated"

Applies To

[x] Notebooks (.ipynb files)
[ ] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
pixi can be used to set up environments, which are then used by vscode jupyter.
It seems like these environments are seen like normal virtual-python environment and the specific conda-activation that is done for conda environments is not performed. It seems like vscode does not identify the pixi environments as conda environments.
VS Code Version
1.95.3
Jupyter Extension Version
v2024.11.2024102401 (pre-release)
Jupyter logs

Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local

Do these pixi environments work in regular python extension?

Not sure i understand, the environment work and gets activated if ran from the console with pixi run juputer labVscode finds the env and uses that python binary but seems not to activate the conda activate scripts. On 18 Nov 2024, at 11:52, Don Jayamanne @.***> wrote:
Do these pixi environments work in regular python extension?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Please could you enable logging as follows:

Open settings & go into Jupyter->Logging
Change the value to trace
Reload VS Code,
Attempt to repro the issue & then copy the output from the Jupyter output panel (use the command Jupyter: Show Output to get to the logs).


Purge log files

Fix for https://github.com/Azure/azure-webjobs-sdk-script/issues/153. Just putting a simple retention count in place for each log directory (host/function logs). We'll retain the last 3 most recent files.

:shipit:


[Question]: Suspense's DefinedSuspense

Package Scope
@suspensive/react
Description
@manudeli Hi! 👋 I was looking at that code and had a question.
https://github.com/toss/suspensive/blob/main/packages/react/src/Suspense.tsx#L26
I think it's common to check defaultProps if there are no user-injected props, but the current code checks defaultProps and then checks clientOnly props that the user injects.
Is there a reason why it was implemented this way?
Possible Solution
const DefinedSuspense = clientOnly ?? defaultProps.clientOnly ? SuspenseClientOnly : ReactSuspense

Isn't it more common to write it like this?
I think it should be a higher priority to inject directly from Suspense, even if the value can be injected from SuspensiveProvider.
etc.
No response

Oh... god,, you catch bug...! Could I assign you to fix this bug and add test code?

@manudeli
sure! 😄 I'll work on it and create a PR in the near future.

@manudeli
Hmmm... I'm trying to test which component is called between SuspenseClientOnly and ReactSuspense based on the defaultProps and clientOnly props values, but it's really tricky..!!! 😭
Is there a good way to do this...?

@manudeli Hmmm... I'm trying to test which component is called between SuspenseClientOnly and ReactSuspense based on the defaultProps and clientOnly props values, but it's really tricky..!!! 😭
Is there a good way to do this...?

In my opinion, You can make util function and apply it to determine SuspenseClientOnly, ReactSuspense and it will be testable
export const Suspense = ({ clientOnly, devMode, children, fallback }: SuspenseProps) => {
  const defaultProps = useContext(SuspenseDefaultPropsContext)
- const DefinedSuspense = defaultProps.clientOnly ?? clientOnly ? SuspenseClientOnly : ReactSuspense
+ const DefinedSuspense = defineSuspense({ defaultPropsClientOnly: defaultProps.clientOnly, componentPropsClientOnly: clientOnly })

  return (
    <DefinedSuspense fallback={typeof fallback === 'undefined' ? defaultProps.fallback : fallback}>
      {children}
      <SuspenseDevMode {...devMode} />
    </DefinedSuspense>
  )
}

Then you can test defineSuspense function
defineSuspense should be made in src/utils/defineSuspense.ts


Fix uninitialized compiler warning

hdf5_read.c:170:11: warning: 'mtype' may be used uninitialized in this function [-Wmaybe-uninitialized]

Using h5_tables.q example, the data contains compound data, so .hdf5.readData[.hdf5.data_name;"table"]; appears to have a memory leak due to problem reported (equal to amount of compound elements present)
Remains constant after fix. 10,000 iterations (92,846 bytes vs growing to 115,252 before change)


priority.priority.TooManyStreamsError

After using the same connection over and over, I eventually hit this error:
priority.priority.TooManyStreamsError: Refusing to insert 1001 streams into priority tree at once

The reason it seems is that self._priority.remove_Stream(stream_id) is never being called. Maybe and example usage would be https://twistedmatrix.com/trac/attachment/ticket/7460/7460_4.patch

Hello !
I am currently working on DoH traffic and using the doh-proxy tool. I'm facing the same problem mentioned by @chantra . Is there any way to patch this in aioh2 or do it manually in the doh-proxy tool?
Could you possibly help me solve this problem?
Thanks in advance.


pinch and zoom image position

Hey thanks for this nice library!
Im trying to make a instagram pinch and zoom image, I have a working zoomable and movable image, but i struggle with the release phase, when i just pinch on release the image is way of the position so it "jumps" at start.
onGestureMove works it updates the position correct, but then when i do onGestureRelease the animated value of gesturePosition.x and gesturePosition.y is wrong.
Would love some help on this 💯
Element.js
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { Animated, Easing } from 'react-native'
import { PanGestureHandler, PinchGestureHandler, State } from 'react-native-gesture-handler'

const ANIMATION_DURATION = 200

export default class Element extends PureComponent {
  opacity = new Animated.Value(1)

  static propTypes = {
    children: PropTypes.element.isRequired,
  }

  static contextTypes = {
    scaleValue: PropTypes.object,
    onGestureStart: PropTypes.func,
    onGestureRelease: PropTypes.func,
    gesturePosition: PropTypes.object,
  }

  onPanStateChange = ({ nativeEvent }) => {
    switch (nativeEvent.state) {
      case State.BEGAN:
        return this.onGestureStart()
      case State.END:
      case State.FAILED:
      case State.UNDETERMINED:
      case State.CANCELLED:
        return this.onGestureRelease()
      default:
        return null
    }
  }

  onGestureStart = async () => {
    const { onGestureStart, gesturePosition } = this.context

    const measurement = await this.measureSelected()
    this.measurement = measurement

    onGestureStart({ element: this, measurement })

    gesturePosition.setValue({ x: 0, y: 0 })

    gesturePosition.setOffset({
      x: measurement.x,
      y: measurement.y,
    })

    Animated.timing(this.opacity, {
      toValue: 0,
      duration: ANIMATION_DURATION,
    }).start()
  }

  onGestureRelease() {
    const { gesturePosition, scaleValue, onGestureRelease } = this.context

    Animated.parallel([
      Animated.timing(gesturePosition.x, {
        toValue: 0,
        duration: ANIMATION_DURATION,
        easing: Easing.ease,
        useNativeDriver: true,
      }),
      Animated.timing(gesturePosition.y, {
        toValue: 0,
        duration: ANIMATION_DURATION,
        easing: Easing.ease,
        useNativeDriver: true,
      }),
      Animated.timing(scaleValue, {
        toValue: 1,
        duration: ANIMATION_DURATION,
        easing: Easing.ease,
        useNativeDriver: true,
      }),
    ]).start(() => {
      gesturePosition.setOffset({
        x: this.measurement.x,
        y: this.measurement.y,
      })

      // Reset original component opacity
      this.opacity.setValue(1)

      // Reset scale value
      scaleValue.setValue(1)

      requestAnimationFrame(() => {
        onGestureRelease()
      })
    })
  }

  onGestureMove = ({ nativeEvent }) => {
    const { gesturePosition } = this.context
    const { translationX, translationY } = nativeEvent

    gesturePosition.setValue({
      x: translationX,
      y: translationY,
    })
  }

  onGesturePinch = ({ nativeEvent }) => {
    const { scaleValue } = this.context
    scaleValue.setValue(nativeEvent.scale)
  }

  setRef = el => {
    this.parent = el
  }

  /* eslint-disable no-underscore-dangle */
  measureSelected = async () => {
    const parentMeasurement = await new Promise((resolve, reject) => {
      try {
        this.parent._component.measureInWindow((x, y) => {
          resolve({ x, y })
        })
      } catch (err) {
        reject(err)
      }
    })

    return {
      x: parentMeasurement.x,
      y: parentMeasurement.y,
    }
  }

  render() {
    const imagePan = React.createRef()

    return (
      <PanGestureHandler
        onGestureEvent={this.onGestureMove}
        onHandlerStateChange={this.onPanStateChange}
        ref={imagePan}
        minPointers={2}
        maxPointers={2}
        minDist={0}
        minDeltaX={0}
        avgTouches
      >
        <PinchGestureHandler simultaneousHandlers={imagePan} onGestureEvent={this.onGesturePinch}>
          <Animated.View ref={this.setRef} style={{ opacity: this.opacity }}>
            {this.props.children}
          </Animated.View>
        </PinchGestureHandler>
      </PanGestureHandler>
    )
  }
}

Selected.js
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { Animated, View } from 'react-native'

const styles = {
  container: {
    flex: 1,
    position: 'absolute',
    top: 0,
    left: 0,
    bottom: 0,
    right: 0,
  },
  background: {
    position: 'absolute',
    top: 0,
    left: 0,
    bottom: 0,
    right: 0,
    backgroundColor: 'black',
  },
}

const MINIMUM_SCALE = 1
const MAXIMUM_SCALE = 5
const SCALE_MULTIPLIER = 1.2

export default class Selected extends PureComponent {
  static propTypes = {
    selected: PropTypes.object,
  }

  static contextTypes = {
    gesturePosition: PropTypes.object,
    scaleValue: PropTypes.object,
  }

  render() {
    const { selected } = this.props
    const { gesturePosition, scaleValue } = this.context

    const scale = scaleValue.interpolate({
      inputRange: [MINIMUM_SCALE, MAXIMUM_SCALE],
      outputRange: [MINIMUM_SCALE, MAXIMUM_SCALE * SCALE_MULTIPLIER],
      extrapolate: 'clamp',
    })

    const backgroundOpacityValue = scaleValue.interpolate({
      inputRange: [1, 1.2, 3],
      outputRange: [0, 0.5, 0.8],
    })

    const transform = [...gesturePosition.getTranslateTransform(), { scale }]

    // TODO: See if cloneElement glitches
    return (
      <View style={styles.container}>
        <Animated.View style={[styles.background, { opacity: backgroundOpacityValue }]} />
        <Animated.View
          style={{
            position: 'absolute',
            zIndex: 10,
            transform,
          }}
        >
          {React.cloneElement(selected.element.props.children, { disableAnimation: true })}
        </Animated.View>
      </View>
    )
  }
}

As far as I am concerned this https://github.com/kmagiera/react-native-gesture-handler/issues/229 issue is related

Hi, @pontusab
Do you observe it on both platform?

Never mind. Turns out I wasn't accessing the component state properly. :roll_eyes:

Hello this happened to me also so what I did is I don't use setOffset Offset somehow doesn't work right when used togehter with Animated.timing so what I did I defined a separate Animated.Value
to be used as gestureOffset  which is then added to the gesturePosition using Animated.add
For example:
const transform = [{ 		translateX: Animated.add(gesturePosition.x, gestureOffset.x), 	}, 	{ 		translateY: Animated.add(gesturePosition.y, gestureOffset.y), 	}, { scale }]
This workaround works, but I think it is worth looking at Native code to see where is the issue.
Hope this will help.

@tomasgcs Do you have an example you can share?

Yep, @tomasgcs idea worked! Thanks


Example is underwhelming

Describe the issue as clearly as possible:
I used README.md's example, and changed the review to "Review: This restaurant is bad!" -instead of 'good'- or any similar negative phrasing. The answer given back is almost exclusively "Positive".
I understand this is the model's behaviour, but maybe either:

this model isn't up to this task
the prompt is too hard for this example.

Suggestion: We could reconsider a more illustrative example
Steps/code to reproduce the bug:
import outlines

model = outlines.models.transformers("microsoft/Phi-3-mini-4k-instruct")

prompt = """You are a sentiment-labelling assistant.
Is the following review positive or negative?

Review: This restaurant is bad!
"""

generator = outlines.generate.choice(model, ["Positive", "Negative"])
answer = generator(prompt)
print(f'{answer=}')

Expected result:
"Negative"

Error message:
"Positive"

Outlines/Python version information:
outlines v 0.1.11
Python 3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:51:49) [Clang 16.0.6 ]
Context for the issue:
first time user trying out the example

what happens without outlines?


Use warning language status for TS partial mode

Suggestion to use the warning severity when TS run in partial mode, esp not that the warning is less "loud" (see https://github.com/microsoft/vscode/issues/134102#issuecomment-930170687 and https://github.com/microsoft/vscode/issues/134102#issuecomment-932422528)

cc @egamma

Here's what this looks like:

/closedBy eb5ec1b324c35d2c4022ef7e09e2a00b8f493d9c


Invalid visible items selector for dropdowns prevents arrow keys from working

The keys up/down do not work with Bootstrap 4 dropdowns. The selectors in Javascript require nodes which are not present in BS4 markup. The attached patch seem to solve the problem I was facing.

Submitted pull request to fix: https://github.com/twbs/bootstrap/pull/21167
Chrome and Firefox both trigger a native click event on spacebar keyup for <button> elements. Chrome suppresses the event if preventDefault is called from keydown, but Firefox does not.

I think it's a duplicate of #19864

You are right. Thanks! Closing this one. Cheers!


[CS] Add visual queue when training is done

Changes proposed in this PR:

Visually notify when training is done
Add go to main menu when training is done
Go to main menu button shows the final best accuracy

Resolves #572, #574
Self evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #595. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.


replace learning_curve!  with learning_curve in Crabs XGB end to end example

https://alan-turing-institute.github.io/DataScienceTutorials.jl/end-to-end/crabs-xgb/

complete


Fix typo in NameLookup.cpp from paramter to parameter

Typo in NameLookup.cpp file:
paramter -> parameter

Resolves #69394 , fix lib/AST/NameLookup.cpp

Thanks. Could you correct the typo in the commit message, and remove the colon so that it reads as a complete sentence?

Yes, but that's the pull request title, not the commit message. You can edit the message of the last commit by running git commit --amend.

Oh my bad! I have done it now.


[0.15.0] Internal Error in xcodebuild mode

infer --keep-going -- xcodebuild clean build xxxxxxxx failed, but xcodebuild build xxxxxxxx command run successfully.

** BUILD FAILED **

Internal Error:   /usr/local/Cellar/infer/0.15.0/lib/infer/infer/bin/../lib/python/infer.py
  -j 8 --project-root
  xxxxxxxx
  --out xxx/infer-out
  -- xcodebuild clean build -workspace  xxxxx.xcworkspace -scheme xxxx -configuration Release -arch armv7 -sdk iphoneos MACH_O_TYPE=mh_dylib ENABLE_BITCODE=NO .......
exited with code 65
Error backtrace:
Raised at file "base/Die.ml" (inlined), line 25, characters 6-36
Called from file "base/Logging.ml", line 314, characters 58-80
Called from file "integration/Driver.ml", line 159, characters 2-16
Called from file "integration/Driver.ml", line 280, characters 6-420
Called from file "infer.ml", line 20, characters 2-36
Called from file "infer.ml", line 130, characters 8-54

In infer-out/log, there are some [extern err]:
...
[10766][ extern err]   ++Error reading file 'rpath/xxxxx.framework/xxxxx':
[10766][ extern err]     (Sys_error
[10766][ extern err]      "rpath/xxxxx.framework/xxxxx: No such file or directory")
[10766][ extern err]
[10766][ extern err]   ++Error reading file 'executable_path/Frameworks':
[10766][ extern err]     (Sys_error "executable_path/Frameworks: No such file or directory")
[10766][ extern err]
[10766][ extern err]   ++Error reading file 'loader_path/Frameworks':
[10766][ extern err]     (Sys_error "loader_path/Frameworks: No such file or directory")
...

@GYJEnjoy I  tried but it fails.

similar to #939

Does using --compilation-database compile_commands.json instead of --clang-compilation-db-files-escaped compile_commands.json help? Let's continue discussion on #939 instead as it looks like the same issue.


Linux always killed my process but Windows is normal

This  is a dynamic proxy to get the webservice project. It is based on the webapi framework of .net core2.2
linux info：
CentOS Linux release 7.6.1810 (Core)
dotnet info:
 Version:   2.2.103
 Commit:    8edbc2570a

Runtime Environment:
 OS Name:     centos
 OS Version:  7
 OS Platform: Linux
 RID:         centos.7-x64
 Base Path:   /usr/share/dotnet/sdk/2.2.103/

Host (useful for support):
  Version: 2.2.3
  Commit:  6b8ad509b6

.NET Core SDKs installed:
  2.2.103 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

system message log：
Mar 30 13:27:06 localhost abrt-hook-ccpp: Process 59062 (dotnet) of user 1003 killed by SIGABRT - dumping core
Mar 30 13:27:08 localhost abrt-hook-ccpp: Failed to create core_backtrace: waitpid failed: No child processes
Mar 30 13:27:08 localhost abrt-server: Generating core_backtrace
Mar 30 13:27:09 localhost abrt-server: Duplicate: core backtrace
Mar 30 13:27:09 localhost abrt-server: DUP_OF_DIR: /var/spool/abrt/ccpp-2019-03-30-03:53:49-708
Mar 30 13:27:09 localhost abrt-server: Deleting problem directory ccpp-2019-03-30-13:27:06-59062 (dup of ccpp-2019-03-30-03:53:49-708)

Hi @mcq1212 , can you please provide more info on the problem? There is not enough information to diagnose this problem from the information provided.

@Eilon Of course sure, but because the development computer can't connect to the Internet network, I can only pick the main code.
The  dynamic proxy Code:
using System;
using System.ServiceModel;

namespace WcfServiceProxy.Proxy
{
    public class WcfProxy<T> : IWcfProxy<T> where T : class, ICommunicationObject
    {
        private T client;
        private bool disposed;

        public WcfProxy(string endpointUrl)
        {
            if (string.IsNullOrWhiteSpace(endpointUrl)) throw new ArgumentException("Endpoint cannot be empty.");

            client = CreateChannel(new EndpointAddress(endpointUrl));
        }

        /// <summary>
        ///     Explicit disposal: manual call to dispose and suppression of further garbage collection calls.
        /// </summary>
        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        public void Execute(Action<T> function)
        {
            function(client);
        }

        public TResult Execute<TResult>(Func<T, TResult> function)
        {
            return function(client);
        }

        /// <summary>
        ///     Implicit disposal: garbage collector calls finalizer and the dispose method through it.
        /// </summary>
        ~WcfProxy()
        {
            Dispose(false);
        }

        private void Dispose(bool disposing)
        {
            // Do not repeat dispose if called more than once.
            if (!disposed)
            {
                var closedSuccessfully = false;

                try
                {
                    // Attempt to close client connection only if it is not in a faulted state.
                    if (client.State != CommunicationState.Faulted)
                    {
                        client.Close();
                        closedSuccessfully = true;
                    }
                }
                finally
                {
                    // Force transition to closed if closing was unsuccessful.
                    if (!closedSuccessfully) client.Abort();
                }

                client = null;
                disposed = true;
            }
        }

        private static T CreateChannel(EndpointAddress endpointAddress)
        {
            var binding = new BasicHttpBinding();
            var factory = new ChannelFactory<T>(binding, endpointAddress);
            return factory.CreateChannel();
        }
    }
}

PbServiceWrapper  Code：
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using ServiceReference1;
using WcfServiceProxy.Interface;
using WcfServiceProxy.Proxy;

namespace WcfServiceProxy
{
    public class PbServiceWrapper : IProxyInerface
    {
        private readonly IWcfProxy<IPkgfiftacct_mng> _clientProxyAcct;

        private readonly ILogger<PbServiceWrapper> _logger;
        public PbServiceWrapper(IConfiguration configuration,ILogger<PbServiceWrapper> logger)
        {
            var t = configuration["WCFurl:AcctUri"];
            _clientProxyAcct = new WcfProxy<IPkgfiftacct_mngChannel>(t);
            _logger = logger;
        }
        public GetBanksOut GetBanks()
        {
            var t = _clientProxyAcct.Execute(client => client.GetBanksAsync().Result);
            return t;
        }
}
}

Startup.cs DI：
services.AddScoped<IProxyInerface, PbServiceWrapper>();
Controller：
        [HttpPost]
        public GetBanksParameter GetBanks()
        {
            var t = _mapper.Map<GetBanksParameter>(_proxyClient.GetBanks());

            return t;
        }

Hmm hard to guess from this information. One common cause of sudden termination of a process is un-awaited async code that throws an exception. The exception can be thrown in a background thread, and if it's uncaught, the whole process will exit.
I'm not sure what effect this code has:
            var t = _clientProxyAcct.Execute(client => client.GetBanksAsync().Result);

But calling .Result is definitely not a recommended pattern for async code.

Hi. We're closing this issue as no response or updates have been provided in a timely manner and we have been unable to reproduce it. If you have more details and are encountering this issue please add a new reply and re-open the issue.