Board NRF52_DK: failure with make retarget.cpp:(.text.__wrap_main+0xa): undefined reference to `main'

Using os ubuntu/xenial64,  the make BOARD=NRF52_DK failed with:
Compile [100.0%]: launcher.cpp
Link: mbedos5
./BUILD/NRF52_DK/GCC_ARM/mbed-os/platform/retarget.o: In function `__wrap_main':
retarget.cpp:(.text.__wrap_main+0xa): undefined reference to `main'
collect2: error: ld returned 1 exit status
[ERROR] ./BUILD/NRF52_DK/GCC_ARM/mbed-os/platform/retarget.o: In function `__wrap_main':
retarget.cpp:(.text.__wrap_main+0xa): undefined reference to `main'
collect2: error: ld returned 1 exit status

[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u /home/ubuntu/jerryscript/targets/mbedos5/mbed-os/tools/make.py -t GCC_ARM -m NRF52_DK --source . --source ../../ --build ./BUILD/NRF52_DK/GCC_ARM -j0 -D CONFIG_MEM_HEAP_AREA_SIZE=(1024*16)" in "/home/ubuntu/jerryscript/targets/mbedos5"
---
Makefile:56: recipe for target 'all' failed
make: *** [all] Error 1

Complet make: jerry.txt
It would be interesting to know which ubuntu is usually sucessfull/accepted with compilation to remove as many unknowns as possible.
Basic preparation and make : have I forgotten something?
      sudo apt-get -y update \
      && sudo apt-get -y upgrade \
      && sudo apt-get -y install \
        cmake gcc-arm-none-eabi python-pip

      sudo -H pip install --upgrade pip \
      && sudo -H pip install -U mbed-cli \
      && git clone https://github.com/jerryscript-project/jerryscript.git \
      && cd jerryscript/targets/mbedos5 \
      && sudo pip -H install -r tools/requirements.txt \
      && make getlibs \
      && make BOARD=NRF52_DK

Current status is:

Build target jerry: Build suceeded!
make BOARD=NRF52_DK: (new type of failure)

==> default: Compile [100.0%]: test_env.cpp
==> default: Link: mbedos5
==> default: ../../build/jerry-libc/CMakeFiles/jerry-libc.dir/target/posix/jerry-asm.S.o: file not recognized: File format not recognized
==> default: collect2: error: ld returned 1 exit status
==> default: [ERROR] ../../build/jerry-libc/CMakeFiles/jerry-libc.dir/target/posix/jerry-asm.S.o: file not recognized: File format not recognized
==> default: collect2: error: ld returned 1 exit status
==> default: [mbed] ERROR: "python" returned error code 1.

If one wishes, one can use the enclosed "Vagrantfile" with:
https://www.virtualbox.org/
https://www.vagrantup.com/
Install sw, place Vagrantfile in a directory, write "vagrant up" and let the vagrant run to see result.
The results are printed out on the command prompt.
"vagrant provision" can be run to see results if alterations in the sw pulled.
Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/xenial64"
  config.vm.synced_folder "../data", "/vagrant_data"
  config.vm.provision "shell", inline: <<-SHELL
      echo "=== Provision start"

      echo "== Ensure dist is up to date"
      apt-get -y update \
      && apt-get -y upgrade \
      && apt-get -y install \
        cmake gcc-arm-none-eabi python-pip

      echo "== pip up to date and install mbed-cli, with update"
      pip install --upgrade pip \
      && pip install -U mbed-cli \

      echo "== git jerryscript"
      echo "= Will fail with vagrant provision on a provisioned box: ignore if this is the case"
      git clone https://github.com/jerryscript-project/jerryscript.git

      echo "== target jerry"
      cd jerryscript \
      git pull \
      && python tools/build.py

      echo "== target mbedos5"
      cd targets/mbedos5 \
      && pip install -r tools/requirements.txt

      echo "= board NRF52_DK"
      make getlibs \
      && make BOARD=NRF52_DK

      echo "== clean up"
      chown -R ubuntu ~ubuntu
      echo "=== Provision stop"
  SHELL
end

@OwenBrotherwood Can you try with this program? https://github.com/armmbed/mbed-js-example
Build instructions change over time, so we wrapped them in a gulp module... Should update the blog post.

Also, which version of GCC are you using? Try with GNU ARM Embedded Toolchain 4.9.3 (not 5).

ubuntu@ubuntu-xenial:~$ arm-none-eabi-gcc-4.9.3 --version
arm-none-eabi-gcc-4.9.3 (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Link: mbedos5
Elf2Bin: mbedos5
+-----------------------+--------+-------+-------+
| Module                |  .text | .data |  .bss |
+-----------------------+--------+-------+-------+
| Fill                  |    332 |     4 |    21 |
| Misc                  | 303183 |  3644 | 18992 |
| drivers               |   3280 |     0 |    92 |
| events                |     52 |     0 |     0 |
| events/equeue         |   1432 |     0 |    61 |
| hal                   |    550 |     0 |    16 |
| platform              |   1727 |     4 |   292 |
| rtos                  |    802 |     4 |     4 |
| rtos/rtx              |   6791 |    20 |  4278 |
| targets/TARGET_NORDIC |  13836 |    20 |  1108 |
| Subtotals             | 331985 |  3696 | 24864 |
+-----------------------+--------+-------+-------+
Allocated Heap: 22688 bytes
Allocated Stack: 2048 bytes
Total Static RAM memory (data + bss): 28560 bytes
Total RAM memory (data + bss + heap + stack): 53296 bytes
Total Flash memory (text + data + misc): 335681 bytes

Object file test_env.o is not unique! It could be made from: ./mbed-os/features/frameworks/greentea-client/source/test_env.cpp /home/ubuntu/mbed-js-example/build/jerryscript/targets/mbedos5/mbed-os/features/unsupported/tests/mbed/env/test_env.cpp
Image: ../../../out/NRF52_DK/mbedos5.hex

I then tried in the  mbed-js-example/build/jerryscript/targets/mbedos5 with a  make BOARD=NRF52_DK that gives a bad result:

Link: mbedos5
./BUILD/NRF52_DK/GCC_ARM/mbed-os/platform/retarget.o: In function `__wrap_main':
retarget.cpp:(.text.__wrap_main+0xa): undefined reference to `main'
collect2: error: ld returned 1 exit status
[ERROR] ./BUILD/NRF52_DK/GCC_ARM/mbed-os/platform/retarget.o: In function `__wrap_main':
retarget.cpp:(.text.__wrap_main+0xa): undefined reference to `main'
collect2: error: ld returned 1 exit status

[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u /vagrant_data/mbed-js-example/build/jerryscript/targets/mbedos5/mbed-os/tools/make.py -t GCC_ARM -m NRF52_DK --source . --source ../../ --build ./BUILD/NRF52_DK/GCC_ARM -j0 -D CONFIG_MEM_HEAP_AREA_SIZE=(1024*16)" in "/vagrant_data/mbed-js-example/build/jerryscript/targets/mbedos5"
---
Makefile:56: recipe for target 'all' failed
make: *** [all] Error 1

Changed NO_JS=1 to NO_JS=0
in /mbed-js-example/build/Makefile
(just banging the keyboard to change things and see a result: I will see if there is anything from the Makefile I can use in ubuntu build)
ubuntu@ubuntu-xenial:/vagrant_data/mbed-js-example/build$ make BOARD=NRF52_DK
cd jerryscript/targets/mbedos5 && pip install -r tools/requirements.txt && rm -f source/js_encoded.cpp && rm -f source/pins.cpp && rm -f source/main.cpp && make BOARD=NRF52_DK EXTRA_SRC="../../../source" EXTERN_BUILD_DIR=../../../out/NRF52_DK NO_JS=0
Requirement already satisfied: pycparser in /usr/local/lib/python2.7/dist-packages (from -r tools/requirements.txt (line 1))
Requirement already satisfied: simpleeval in /usr/local/lib/python2.7/dist-packages (from -r tools/requirements.txt (line 2))
Requirement already satisfied: pycparserext in /usr/local/lib/python2.7/dist-packages (from -r tools/requirements.txt (line 3))
Requirement already satisfied: ply>=3.4 in /usr/local/lib/python2.7/dist-packages (from pycparserext->-r tools/requirements.txt (line 3))
make[1]: Entering directory '/vagrant_data/mbed-js-example/build/jerryscript/targets/mbedos5'
python ../tools/js2c.py --ignore pins.js
python tools/generate_pins.py NRF52_DK
mbed target NRF52_DK
[mbed] NRF52_DK now set as default target in program "mbedos5"
mbed compile -j0 --source . --source ../../ --source ../../../source --build ../../../out/NRF52_DK -D "CONFIG_MEM_HEAP_AREA_SIZE=(1024*16)" -t GCC_ARM
Building project mbedos5 (NRF52_DK, GCC_ARM)
Scan: .
Scan: FEATURE_UVISOR
Scan: FEATURE_LWIP
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_BLE
Scan: FEATURE_STORAGE
Scan: FEATURE_NANOSTACK_FULL
Scan: FEATURE_LOWPAN_ROUTER
Scan: FEATURE_LOWPAN_HOST
Scan: FEATURE_THREAD_ROUTER
Scan: FEATURE_NANOSTACK
Scan: FEATURE_THREAD_END_DEVICE
Scan: FEATURE_LOWPAN_BORDER_ROUTER
Scan: FEATURE_THREAD_BORDER_ROUTER
Scan:
Scan: source
Scan: mbed
Scan: env
Compile [100.0%]: pins.cpp
[Warning] pins.cpp@205,5: this decimal constant is unsigned only in ISO C90
Link: mbedos5
Elf2Bin: mbedos5
+-----------------------+--------+-------+-------+
| Module                |  .text | .data |  .bss |
+-----------------------+--------+-------+-------+
| Fill                  |    332 |     4 |    21 |
| Misc                  | 303183 |  3644 | 18992 |
| drivers               |   3280 |     0 |    92 |
| events                |     52 |     0 |     0 |
| events/equeue         |   1432 |     0 |    61 |
| hal                   |    550 |     0 |    16 |
| platform              |   1727 |     4 |   292 |
| rtos                  |    802 |     4 |     4 |
| rtos/rtx              |   6791 |    20 |  4278 |
| targets/TARGET_NORDIC |  13836 |    20 |  1108 |
| Subtotals             | 331985 |  3696 | 24864 |
+-----------------------+--------+-------+-------+
Allocated Heap: 22688 bytes
Allocated Stack: 2048 bytes
Total Static RAM memory (data + bss): 28560 bytes
Total RAM memory (data + bss + heap + stack): 53296 bytes
Total Flash memory (text + data + misc): 335681 bytes

Object file test_env.o is not unique! It could be made from: ./mbed-os/features/frameworks/greentea-client/source/test_env.cpp /vagrant_data/mbed-js-example/build/jerryscript/targets/mbedos5/mbed-os/features/unsupported/tests/mbed/env/test_env.cpp
Image: ../../../out/NRF52_DK/mbedos5.hex
make[1]: Leaving directory '/vagrant_data/mbed-js-example/build/jerryscript/targets/mbedos5'

I am wondering if I have misinterpreted the intention of jerryscript on a micro-controller.
Do I need a javascript job for jerryscript compared to espruino: onboardjavascript?

@OwenBrotherwood I'm not completely sure what you're trying to do right now. It looks like you're missing main.cpp which should be generated during the build... Probably a path issue when running the makefile.
However, the paths should be set if you build with gulp --target=NRF52_DK. Does that produce a proper build?
This worked fine for me on Ubuntu 15.10, with node.js v6.3.0, gcc 4.9.3 and Python 2.7:
janjon01@ubuntu-janjon01:~/$ npm install -g gulp
janjon01@ubuntu-janjon01:~/$ pip install mbed-cli
janjon01@ubuntu-janjon01:~/$ git clone git@github.com:armmbed/mbed-js-example.git
janjon01@ubuntu-janjon01:~/$ cd mbed-js-example
janjon01@ubuntu-janjon01:~/mbed-js-example$ gulp --target=NRF52_DK

What do you mean with:

Do I need a javascript job for jerryscript compared to espruino: onboardjavascript?

This runs a JS interpreter on the microcontroller, so no need for anything else.

What do you mean with:

Do I need a javascript job for jerryscript compared to espruino: onboardjavascript?
This runs a JS interpreter on the microcontroller, so no need for anything else.

Great: this is also what I thought, but I needed to make sure.
I go through the build again and see if I can find where my/the problem is

https://github.com/ARMmbed/mbed-js-example just seems to be on the surface, make an led blink and does not indicate an on board javascript interpreter that can be interacted with like the espruino where a cmd prompt is available on the microprocessor
https://www.youtube.com/watch?v=T3YbwAtgrcg

@OwenBrotherwood See http://github.com/janjongboom/mbed-js-repl-example

Looks like what I was wanting: I will try it
As such, my problems with compiling jerryscript have been in relation to a non-gulp method.
Gulp methods seem to work so I expect to close the issue soon with a suggestion to have something in this repo about gulp methods.

Was there any success fixing it?

@zherczeg I did not really return to jerryscript: do you have a problem?

Others might be interested how you fixed it if they have the same problem.

WIP This comments gets editted
git clone --recursive https://github.com/jerryscript-project/jerryscript.git

Is this issue resolved?

Yes.

Sorry I am not able to use more time on jerryscript: I find it interesting but micro:bit cannot and the other boards are Espruino purchases
In all case "on board javascript" for zx80 on steroids: the kids of today have some cool stuff to play and learn on.


objc "Class AMSupportURL... is implemented in both... One of the two will be used. Which one is undefined." messages when loading nvm in .zshrc on M1 Mac with Xcode installed

Operating system and version: macOS 12.1
nvm debug output:

nvm --version: v0.39.1
$TERM_PROGRAM: iTerm.app
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'xxxxxx'
${HOME}: /Users/xxxxxx
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v14.17.5/bin:/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:/opt/homebrew/opt/mysql-client/bin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/coreutils/libexec/gnubin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin:${HOME}/.krew/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.8 (x86_64-apple-darwin21.0)'
uname -a: 'Darwin 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64 arm64 MacBookPro18,3 Darwin'
checksum binary: 'sha256sum'
OS version: macOS 12.1 21C52
curl: /usr/bin/curl, curl 7.77.0 (x86_64-apple-darwin21.0) libcurl/7.77.0 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.42.0
wget: not found
sed: /usr/bin/sed
cut: /opt/homebrew/opt/coreutils/libexec/gnubin/cut
basename: /opt/homebrew/opt/coreutils/libexec/gnubin/basename
rm: /opt/homebrew/opt/coreutils/libexec/gnubin/rm
mkdir: /opt/homebrew/opt/coreutils/libexec/gnubin/mkdir
xargs: /opt/homebrew/opt/findutils/libexec/gnubin/xargs
ls: cannot access 'git:': No such file or directory
git: git: aliased to /opt/homebrew/bin/git (/opt/homebrew/bin/git), git version 2.34.1
grep: /usr/bin/grep, grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
awk: /usr/bin/awk, awk version 20200816
nvm current: v14.17.5
which node: ${NVM_DIR}/versions/node/v14.17.5/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v14.17.5/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v14.17.5
npm root -g: ${NVM_DIR}/versions/node/v14.17.5/lib/node_modules

nvm ls output:

->     v14.17.5
       v16.13.0
       v16.13.2
         system
default -> 14.17.5 (-> v14.17.5)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v16.13.2) (default)
stable -> 16.13 (-> v16.13.2) (default)
lts/* -> lts/gallium (-> v16.13.2)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.9 (-> N/A)
lts/fermium -> v14.18.3 (-> N/A)
lts/gallium -> v16.13.2

How did you install nvm?

Website (may have used homebrew on a previous machine so remnants of that may exist in my config)
What steps did you perform?
I've included the following in my ~/.zshrc:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

What happened?
Each time I restart macOS and launch iTerm2, the following warnings appear:
objc[2613]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x21143eb90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1080c42c8). One of the two will be used. Which one is undefined.
objc[2613]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x21143ebe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1080c4318). One of the two will be used. Which one is undefined.
objc[3501]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x21143eb90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105e182c8). One of the two will be used. Which one is undefined.
objc[3501]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x21143ebe0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105e18318). One of the two will be used. Which one is undefined.

This only happens when I first launch iTerm2 after a macOS restart. It does not happen during subsequent quitting/relaunching of iTerm2 - only after the next time I restart macOS and launch iTerm2.
I tried restarting my computer, removing both lines from my ~/.zshrc, then just executing them in a new shell session to see if the same behavior occurs, but it does not - the warnings do not come up. They only come up when iTerm2 is launching and executing the lines in my ~/.zshrc.
What did you expect to happen?
I am using Powerlevel10k's instant prompt feature and it reports Console output during zsh initialization like this. I can easily suppress the output, but instead I'd rather figure out why it's happening and have it not happen. Simply suppressing warnings/errors from the nvm initialization now might prevent me from seeing other important notices in the future.
Is there anything in any of your profile files that modifies the PATH?

Yes. See resulting ${PATH} variable value in nvm debug output above.

That's very confusing - tbh it sounds like an iTerm 2 bug, because there shouldn't be any difference between "launch a new iTerm2 shell with the lines in your zshrc" and "launch a new iTerm2 shell without the lines in your zshrc, and then manually run the lines".

Certainly you do have a lot of homebrew-installed builtins, which may not be posix-compliant - cut, basename, rm, mkdir, xargs - and it's possible nvm is using one of those in a way that's exposing its brokenness.

Ok, I've done some more troubleshooting on this and found that it also happens in Terminal.app (so it's not specific to iTerm2) and I was wrong about it only happening in zsh startup - I can actually cause it to happen after startup by removing [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" from my ~/.zshrc and running it manually.
Given my installed node versions:
❯ nvm list
->     v14.17.5
       v16.13.2
         system
default -> 14.17.5 (-> N/A)

I thought maybe it was related to v14.17.5being my default version, and that node did not ship arm64-compatible binaries before v16.0.0 (saw this note in the nvm README about this). But the warnings still come up after uninstalling 14 (or using nvm alias default node to set the default to 16).
I've also tried temporarily removing the homebrew-installed binaries mentioned (basename, cut, mkdir, rm, and xargs) from /opt/homebrew/opt/coreutils/libexec/gnubin/ but that did not resolve the issue.
I will continue to troubleshoot this when I have time.

Same things happens here: new laptop, new macOS (12.2)... Only XCode was installed priori to nvm
And now on FIRST terminal opening I have this message.
I think I saw it also during nvm install but I didn't really pay attention...
objc[824]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e2c23678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103cf42c8). One of the two will be used. Which one is undefined. objc[824]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e2c236c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103cf4318). One of the two will be used. Which one is undefined. objc[830]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e2c23678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105e782c8). One of the two will be used. Which one is undefined. objc[830]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e2c236c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105e78318). One of the two will be used. Which one is undefined.
As it's said in the README, I installed the XCode Command line tools manually (xcode-select --install) and created the .zshrc by doing: touch ~/.zshrc
As it's a brand new system, I don't think it's due to homebrew packages... maybe a conflict in XCode? I could try to reset the computer and try again without XCode...

The one available today in the Mac App Store: 13.2.1

On 8 Feb 2022, at 16:42, Jordan Harband @.***> wrote:
Which version of Xcode? 13?
—
Reply to this email directly, view it on GitHub https://github.com/nvm-sh/nvm/issues/2720#issuecomment-1032750325, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTX57Q4YIQJ66MGXENSODTU2E2X5ANCNFSM5MNYWSJQ.
You are receiving this because you commented.

I just reinstalled my laptop, and installing nvm was my very first action on it (with manual XCode command line tools install and .zshrc touch).
Everything is working fine after installing node 16 (only LTS version available for Apple M1's arm64 architecture)
The conflict is for sure caused by XCode. I don't plan to install XCode right now, but if you need me to do it for further investigation, let me know ;-)

@lalexdotcom @my-lalex Good workaround! I had Xcode 13.2.1 (App Store) installed as well, but don't currently need it, so once I'd uninstalled it and restarted, nvm continued to load successfully but without these messages.
@ljharb So we have a workaround now for Apple Silicon users who don't need Xcode installed. Should we close this issue now?

I agree... at some point, I'm gonna need to put XCode on my laptop...

@ljharb @my-lalex Sounds good, and I was thinking the same. I might need Xcode at some point as well.
I won't have time to help research the root cause but I'd be happy to help with any testing if anyone is able to come up with any troubleshooting suggestions or possible fixes.

I tried a brand new install of macOS without nvm, only homebrew. I still saw this exact same issue, maybe it's not related to nvm specifically?

@sam3d if you see it without nvm being installed, then it might just be an xcode issue. Have you installed anything with homebrew at this point?

@ljharb By the time xcode had finished installing (and when I saw this message pop up) I had only installed wget and go. It could very well be a core homebrew issue, or something to do with the dependencies that wget requires perhaps? I don't believe go has any other homebrew dependencies

It might be go - nvm uses wget though, so i'm not sure.

Can confirm that the issue is directly related to xcode. I had nvm and homebrew installed on my mac yesterday and was not getting this error. Just installed xcode to do some IOS development and the error appeared. I have installed the latest xcode directly from the app store, 13.2.1, and have node version 16 installed with nvm.

In that case, I'll close this.
If anyone discovers a way to have xcode installed without these errors, then I'd be happy to add it to the readme.


fix: commits iteration for semantic strategy

fixes #78
rewriting the way we iterate over commits to ensure that if a commit can't be retrieved or decoded, it won't fail the whole process. instead, we'll just skip this commit. so worst case is that it will bump the patch instead of the major/minor if for some reason a commit can't be read.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign vbehar
You can assign the PR to them by writing /assign @vbehar in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: vbehar
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [vbehar]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


onInputChange doesn't use set format

In https://github.com/wakirin/Lightpick/blob/7fa7c73faed1d9577395bfde682b9d95e59f095c/lightpick.js#L756-L771 the self._opts.format isn't being referred to, so an <input /> with a value of eg '20/01/2019' is being treated as an invalid date.
This could either be fixed in the gotoDate() function, by providing the moment() call with the self._opts.format as the second parameter (which feels cleaner to me, but might affect other code since it's a behaviour change), or by changing self.gotoDate(opts.field.value); to self.gotoDate(moment(opts.field.value, self._opts.format));, which feels a little dirtier but would impact other users of the gotoDate() function less.

Hi Eion.
I'm aware of this issue. I've just added as a collaborator to this project.
This is my number one priority. I've even sent a PR #92
But this issue is little big then i expected.
I'll look into it when i have free time.
Thank you.

We ended up going down the self.gotoDate(moment(opts.field.value, self._opts.format)); route, and that's been working great for us for the past few months

It's a littlebit odd but I couldn't reproduce this issue.
DD/MM/YYYY is the default format. and if i give 20/01/2019 to input value latest version shows and selected the day.
Also I logged the moment object and it shows the value is valid. If i change the format and value also reflects and shows the right value.
Am i missing someting?

With a more dramatic date format, it gives a big deprecation warning in the console without the moment(value, format) call:
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments:
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 2nd Oct '19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/js/moment.min.2.24.0.js?1567240950:1:3368)
    at Ot (/js/moment.min.2.24.0.js?1567240950:1:21539)
    at Tt (/js/moment.min.2.24.0.js?1567240950:1:22250)
    at bt (/js/moment.min.2.24.0.js?1567240950:1:22332)
    at c (/js/moment.min.2.24.0.js?1567240950:1:209)
    at Lightpick.gotoDate (/js/lightpick.1.3.4.js?1571696237:965:24)
    at HTMLInputElement.Lightpick.self._onInputChange (/js/lightpick.1.3.4.js?1571696237:763:11)
    at Lightpick.onSelect (/js/reporting-helpers.js?1571343170:1660:15)
    at Lightpick.setStartDate (/js/lightpick.1.3.4.js?1571696237:1095:37)
    at HTMLElement.Lightpick.self._onMouseDown (/js/lightpick.1.3.4.js?1571696237:566:30)

Hey Eion. Here is a working sample.
Could you please update this with your parameters and save? format etc.
As I said I don't see any error or warning message?
Thank you.


Include uploadprogress PECL module.

Context

Does this issue have a Trello card?
For https://trello.com/c/9G8edxdb/95-install-pecl-uploadprogress-library-in-drupal-docker-image

If this is an issue, do we have steps to reproduce?

Intent

What changes are introduced by this PR that correspond to the above card?
Drupal can show upload progress to users. It's not currently doing this because a PECL module (uploadprogress) is missing. This PR resolves that.

Would this PR benefit from screenshots?
The status page shows us the module is missing:

With this fix (tested locally with Docker Compose):

Considerations

Is there any additional information that would help when reviewing this PR?
It would be good to check this in staging once it's been merged

Are there any steps required when merging/deploying this PR?

Checklist

[x] This PR contains only changes related to the above card
[ ] Tests have been added/updated to cover the change
[ ] Documentation has been updated where appropriate
[ ] Tested in Development

🙇 🎩

🙇 🎩


Mock getVariable, getVariables and setVariable.

Adding variable mocking. To avoid breaking existing unit tests, these functions fall through to the task implementation if answers.variables is undefined.
This mocking has parity with the task implementation.

[x]  Variable names normalized.
[x] Error thrown for multi-line secrets.

This is great - my only comment at this point is could we add a couple unit tests in node/tests/mocktests.ts?

@hashtagchris any update on this? I think this would be nice to have when we move out of preview

@hashtagchris any updates?

@damccorm I'd like to switch to trying out dependency injection, rather than duplicating all the logic (normalizing keys, no multi-line secrets) across two files and having to keep the logic in sync in the future. Unfortunately I may not have any time to try that until May.

Closing due to idleness and no tests.


Remove origin param from Duck Player

Task/Issue URL: https://app.asana.com/0/1202552961248957/1208700688753511/f
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

#5255  👈
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @CrisBarreiro and the rest of your teammates on  Graphite


Airlock E2E testing - import approved link & export

What is being addressed
We had issues in some of the infra setup that could have been caught by additional checks in the E2E.
How is this addressed

Test that we get a download link for an approved import request
Test that we can create an export request and get a link to upload the file (we can't test any further)

/test


Flow IHtmlContent through to the razor buffer

In the current checked in code, an IHtmlContent instance will write itself out when it reaches the RazorTextWriter. This means that anything that needs to be encoded gets encoded at this time.
Generally (unless you flush) - the RazorTextWriter is buffering, which means that each of these writes adds an entry to a List<object> held onto by StringCollectionTextWriter. When you encode, text is written character by character, leading to lots of little entries. This allocates a lot even for a small site:

That 4 MB translates into over 1kb/request, for a very very small amount of HTML output.

The change here is to preserve the IHtmlContent-ness of values until they need to actually go on the wire (generally when the response is sent). This means that text is encoded character-by-character into the final TextWriter - which is an optimized path.
Look at the amount of string and object[] allocations with these changes
Before:

After:

strings are reduced by about 1.8mb
object[]s are reduced by about 5.5mb
This is for 3000 requests on a very small page.

Some tests are still needed here. Wanted to get this out for eyeballs.

/cc @davidfowl @DamianEdwards - this change 'finishes' IHtmlContent :+1:

Have a couple of tests that aren't working here:

Microsoft.AspNet.Mvc.Rendering.StringHtmlContentTest.ToString_ReturnsNullForNullInput()
Microsoft.AspNet.Mvc.Rendering.StringHtmlContentTest.ToString_ReturnsAString()

:watch:

Updated

@dougbu @NTaylorMullen - any more feedback?

any more feedback?

What was the verdict after trying the change discussed in this thread?
Please try it out (if you haven't) and :shipit: w/ that fix if you can. :shipit: as is if not.

On the other hand, looks like the CI machines can't compile RazorTextWriter.

On the other hand, looks like the CI machines can't compile RazorTextWriter.

I don't pay attention to what Travis is doing on my PRs :smile_cat:

@dougbu - I had to correct one test that was doing Assert.IsType<HtmlString> - other than that smooth sailing so far.


Issue with validating a SAML response

I am trying to write a component that authenticates a user from a request containing a SAML. I keep getting Signature verification failed: bad signature and I am blank as to why that is.
Short summary of the process:
I login on a third party service that then redirects me to the website with a SAML token. The SAML is verified and I am logged in based on the information in the SAML.
The third party service has provided me with a cert chain(2 cer file) that I use to verify the integrity of the SAML received.
Am I misunderstanding the whole process and should be and doing the whole thing differently?
A simplified version of the code I wrote:
xml_as_bytes = b64decode(token)
saml = ET.fromstring(xml_as_bytes)
trusted_cert_path = 'path to a .cer file containing two keys supplied by the creator of the SAML'
XMLVerifier().verify(data=saml, ca_pem_file=trusted_cert_path)

Throws the following error:
XMLVerifier().verify(data=saml, ca_pem_file=trusted_cert_path)
  File "/usr/local/lib/python3.9/site-packages/signxml/__init__.py", line 864, in verify
    verify(signing_cert, raw_signature, signed_info_c14n, signature_digest_method)
signxml.exceptions.InvalidSignature: Signature verification failed: bad signature

I have tried splitting the files up in two and passing them in with the ca_path param, but gives me the following error.
Also tried them individually with the same error result.
InvalidCertificate(X509StoreContextError([20, 0, 'unable to get local issuer certificate']))

The SAML response with information redacted to show layout of response.
<?xml version="1.0" encoding="UTF-8"?>
<Response xmlns="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ID="_15dcf5e1-495b-4dc3-98ac-874c8c7b7683" Version="2.0" IssueInstant="2021-08-24T13:16:20.6881029Z" Destination="https://my.website.test/login/">
   <Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">Innskraning</Issuer>
   <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
      <SignedInfo>
         <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
         <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
         <Reference URI="">
            <Transforms>
               <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
               <Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
            </Transforms>
            <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
            <DigestValue>base64 digetst value</DigestValue>
         </Reference>
      </SignedInfo>
      <SignatureValue>base64 signature value</SignatureValue>
      <KeyInfo>
         <X509Data>
            <X509Certificate>base64 certificate</X509Certificate>
         </X509Data>
      </KeyInfo>
   </Signature>
   <Status>
      <StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
   </Status>
   <Assertion xmlns="urn:oasis:names:tc:SAML:2.0:assertion" Version="2.0" ID="_acd5ee05-3f60-4595-a7f8-1dae1c2baf70" IssueInstant="2021-08-24T13:16:20.6881029Z">
      <Issuer>Innskraning</Issuer>
      <Subject>
         <NameID NameQualifier="issuer-website.test" />
         <SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
            <SubjectConfirmationData Address="<IP_ADDRESS>" NotOnOrAfter="2021-08-24T13:21:20.6881029Z" Recipient="https://my.website.test/login/" />
         </SubjectConfirmation>
      </Subject>
      <Conditions NotBefore="2021-08-24T13:15:50.6881029Z" NotOnOrAfter="2021-08-24T13:21:20.6881029Z">
         <AudienceRestriction>
            <Audience>my.website.test</Audience>
         </AudienceRestriction>
      </Conditions>
      <AuthnStatement AuthnInstant="2021-08-24T13:16:20.6881029Z">
         <SubjectLocality Address="<IP_ADDRESS>" />
         <AuthnContext>
            <AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:TLSClient</AuthnContextClassRef>
         </AuthnContext>
      </AuthnStatement>
      <AttributeStatement>
         <Attribute Name="UserSSN" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" FriendlyName="Kennitala">
            <AttributeValue xsi:type="xsd:string">1234567890</AttributeValue>
         </Attribute>
      </AttributeStatement>
   </Assertion>
</Response>

I am not entirely sure I understand the question, can you elaborate a bit more?

A bad signature error typically indicates that either the key material used to generate the signature does not match the key material in the certificate that you have configured, or that there is a configuration mismatch.
Your general usage appears correct, however I can't comment further on the "bad signature" error since there just isn't enough information to understand why there might be a mismatch.


can anyone fix the "slow" issue of this by doing this

Q :Your response is displayed word by word. Is it being sent from the server word by word or is the server sending the full response and the frontend JavaScript is making it appear word by word?
ANS :

bing website says "My responses are generated and sent as a whole from the server to your device" not word by word ,

when get the whole response faster it will more faster know

Server streams. It does not send the full response. I am not in control of the speed.

My code (creative mode)
bot = Chatbot(cookies=cookies)
reply = await bot.ask(prompt="When was the first spiderman comic published?", conversation_style=ConversationStyle.creative, wss_link="wss://sydney.bing.com/sydney/ChatHub")
print(json.dumps(reply, indent=4))

Output using the library in CREATIVE mode
Spider-Man first appeared in the comic book Amazing Fantasy #15 in August 1962. It was written by Stan Lee and drawn by Steve Ditko. The comic was a huge success and led to an ongoing series that started in March 1963.
Output from Bing Chat (browser) in CREATIVE mode
The answer is from web search results. The first Spider-Man comic was published in August 1962. It was called Amazing Fantasy #15 and it introduced the character of Peter Parker, a teenager who was bitten by a radioactive spider and gained superpowers. The comic book was written by Stan Lee and drawn by Steve Ditko. A copy of this comic book recently sold for $3.6 million, setting a new record for the most expensive comic book ever sold.
Output from Bing Chat (browser) in PRECISE mode
The first Spider-Man comic was published in August 1962. It was called Amazing Fantasy #15 and was created by writer-editor Stan Lee and artist Steve Ditko.
The Problem
I have run this test over 10 times and every time EdgeGPT's CREATIVE output looks more like Bing's precise mode. EdgeGPT produces short and precise answers despite being in CREATIVE mode.


Patch welcome page

Patch welcome page for non-working links

Not sure we should do this. I feel like it could be rough to maintain.


How to?

Ok, only recently found The Homebrewery, and love it, but have few questions I seem to can't find answers on.

How to delete a brew?
Do I need to "publish" a brew? If so how?
Other than going to "homepage" how can I create a new brew?
--- Would be nice to have a "Create/New" link on top bar, or on my brew page?

First two points, hit the 'i' icon on the editor bar to access a bunch of metadata and functions for your brew. Publishing, deleting, changing description and title. I'll probably be changing the icon, as a lot of people are having issues finding this.
 Right now that means only published brews will show up on your user page for other users to see. Eventually this will also include if it can be found via search.
I'll look into adding some more nav items, but I'm weary of overloading the navbar.


Extra approval rules added in new groups

GitLab version 13.8.4
Gitlabform version: 1.20.2
I found out that when I create a new project and use a configuration to add merge approvals like this:
project_settings:
  "my_project":
    merge_requests:
      approvals:
        approvals_before_merge: 1
        reset_approvals_on_push: true
        disable_overriding_approvers_per_merge_request: true
        merge_requests_author_approval: false
      approver_groups:
        - my_group

It adds an extra rule in the project and then it requires 2 approves to pass MRs

Debugging the issue it looks like the problem is in here: https://github.com/egnyte/gitlabform/blob/bcf4db607209b00845da39d22b668ec5c77f18f2/gitlabform/gitlabform/processors/project/merge_requests_processor.py#L18
If I try to reproduce the POST requests in a new project that Gitlabform is doing I get this:
$ curl -XGET -H 'Content-Type: application/json' --header "Authorization: Bearer ..." https://xxx/api/v4/projects/107/approval_rules
[]
$ curl -XGET -H 'Content-Type: application/json' --header "Authorization: Bearer ..." https://xxx/api/v4/projects/107/approvals
{"approvers":[],"approver_groups":[],"approvals_before_merge":0,"reset_approvals_on_push":true,"disable_overriding_approvers_per_merge_request":null,"merge_requests_author_approval":null,"merge_requests_disable_committers_approval":null,"require_password_to_approve":null}
# Now if you try to put new rules for the approvals
$ curl -XPOST -H 'Content-Type: application/json' --header "Authorization: Bearer ..." https://xxx/api/v4/projects/107/approvals -d '{"approvals_before_merge": 1, "disable_overriding_approvers_per_merge_request": true, "id": "107",merge_requests_author_approval": false, "reset_approvals_on_push": true}'
# You get the extra rule!
$ curl -XGET -H 'Content-Type: application/json' --header "Authorization: Bearer ..." https://xxx/api/v4/projects/107/approval_rules
[{"id":177,"name":"All Members","rule_type":"any_approver","eligible_approvers":[],"approvals_required":1,"users":[],"groups":[],"contains_hidden_groups":false,"protected_branches":[]}]

I tried to run the integration tests but my computer is too slow to run, if I have some time I'll try to test this in a VM some time later, but I'm not sure why this is not failing in your integration tests because you're explicitly checking in the tests the number of rules set by the API.

I fixed it locally with this: https://github.com/egnyte/gitlabform/pull/181 but not sure if this is the behaviour you want because it overrides any other approval rule it may exist before in the project.

Hey @Pigueiras ! Thanks for reporting this.
The GitLab version we are using and testing on is Starter, so it doesn't support multiple approval rules at all (you need a Premium plan for that). Perhaps this is why we haven't noticed this issue before...
The short term fix could be merging #181 which we can do quickly, just after you add a feature flag and make this disabled by default to prevent unexpected breakage with a minor Gitlabform update as this would go out in v. 1.21.
The long term is to get a Premium license from GitLab for testing this app only.. Which is doable but GitLab "strongly suggest" moving the project itself to GitLab.com when joining their developers program to get such license, which we don't want to do as of now. :(

Great! Would a flag like this would work for you or do you have something else in mind?
...
merge_requests:
      overwrite: true  <--- something like this?
      approvals:
        approvals_before_merge: 2
        reset_approvals_on_push: true
        disable_overriding_approvers_per_merge_request: true
      approvers:
        - user1
        - user2
      approver_groups:
        - my-group
        - my-group1/subgroup
        - my-group2/subgroup/subsubgroup

I think that this would be a bit ambiguous.. How about a pretty long but self-explanatory "remove_other_approval_rules"?


Program doesn't recognize when other user is disconnected

Clearing error when disconnected??!!

Add a listener

disconnect message not being received MOST of the time?

I believe clearError is not checking connection before using transmit
(transmit only checks the connection/status of one port, not the other)

timeout on "time since last message" timer causes disconnect after a certain amount of time (adjustable in user settings)


Pdf upload not working

Hello,
I am trying to upload a PDF and trying to get a summary of it.
Unsupported MIME type: application/pdf
sample_file = genai.upload_file(path="test.pdf",
                                display_name="Test")

model = genai.GenerativeModel(model_name="models/gemini-1.5-pro-latest")

response = model.generate_content(["Generate a summary of the document", sample_file])

print(response.text)

PDFs are not supported at this time


[Request] Download just recent likes or likes since a specific date

It'd be nice if soundscrape made it possible to download just e.g. the last 10 likes or all likes since a specific date instead of downloading all of them.

Well, i didn't see there was a feature to sepcify the amout of downloadable sounds from a playlist/likes with e.g. "-n 5". This is a good workaround for me.


Broadcast sending

Hello, I am new to networking and trying to connect 2 android devices, that are in a one wifi net, using unity. Changed in your sample client.Connect("localhost", 1337); to client.Connect("<IP_ADDRESS>", 1337); in order to find server and connect to it, however it does not work. How can I detect all the available servers?
Thanks in advance!

Did you write <IP_ADDRESS> for the issue or is that actually the IP you are trying to connect to? Because that is not a valid IP. If you do not already know the IP or you want to scan the network for all available that would be Network Discovery which is outside of the scope of Telepathy itself.


[Nodes Page] Modularize the nodes page

This PR moves all the components which are specific to the Nodes Page to plugins/nodes.
Testing this PR will require the cnvs-upgrade branch in reactjs-components checked out and linked locally, and use of the REACT_JS_COMPONENTS_LOCAL=true EV.

Rebased and fixed tests


$in doesn't work with $and

  $scope.updateStudyWord = function (wordlistId) {
    localdb.createIndex({
      index: {
        fields: ['type', 'wordlistIds']
      }
    }).then(function () {
      return localdb.find({
        selector: {
          type: 'word',
          wordlistIds: {
            $in: ['list3']
          }
        }
      }).then(function (result) {
        console.log("studylist:", result);
      }).catch(function (err) {
        console.log(err);
      })
    })
  };

Console reads:
TypeError: Cannot use 'in' operator to search for 'startkey' in undefined(…)
However if I change the selector to:
selector: {
          wordlistIds: {
            $in: ['list3']
          }
        }

I get the correct document but with a warning. I'm not sure why I get the warning:
Console reads:
studylist: Object {docs: Array[1], warning: "no matching index found, create an index to optimize query time"}
If I select just the type: word, it works correctly
selector: {
          type: 'word'
        }

Console reads:
studylist Object {docs: Array[3]}

Ok, I deleted and recreated the database and all indexes and it fixed both of the above errors. Maybe it is related to: #206  and some malformed indexes I had built previously.


Add template for ArcGIS Server on Windows

Add a template that provides GitHub Actions workflows for ArcGIS Server deployment & operations on Windows platform.
The template should use:

Packer for AMI builds,
Terraform for creating AWS resources,
PowerShell DSC for application configuration, and
Ansible to install PowerShell DSC modules and run PowerShell remotely using aws_ssm connection.

Unfortunately, the AWS template for ArcGIS Server on Windows cannot be implemented using PowerShell DSC as it was planned originally. The ArcGIS PowerShell DSC modules do not support "solo" mode like the Chef cookbooks. The DSC modules require WinRM to orchestrate multi-machine deployments. WinRM requires an administrator  user account with the same username and password on all the machines. In EC2 workgroup networks passwords are different for Administrator user on different EC2 instances. Creating another administrator user account with same password on all the EC2 instances is not a good security practice.
Branch issue112_draft contains an unfinished implementation of arcgis-server-windows template with draft workflows for building  image, provisioning infrastructure, and creating ArcGIS Server site on primary machine.
@cameronkroeker @shailesh91


perf(dashboad): fix some performance regression in schedule visualizer

What's new

Many markers are being re-rendered needlessly, testing on the clinic world, these optimizations reduces the render times from ~10ms to ~2ms.
Self-checks

[ ] I'm familiar with and follow this Typescript guideline
[ ] I added unit-tests for new components
[ ] I tried testing edge cases
[ ] I tested the behavior of the components that interact with the backend, with an e2e test

Discussion

LGTM. I see it was the properties sent it as objects.

Yeah, and also some sneaky bits that uses fix length arrays like [x, y] to represent 2D points.


Add method to specify TargetMachine as a Cross Compiler

In the old Software Model, we have a cross compiler setup which is performed by extending AbstractGccCompatibleToolChain with our own functionality (We tried many different ways and this was the most reliable). Trying to get that setup working in the new plugin space is VERY close to working, however currently it is impossible to intersect the binaries model before it gets finalized, which is what would be needed. Gradle is hardcoded to only allow the host operating system to be built for (It will happily allow cross architectures with the same OS).
The call chains looks like
https://github.com/gradle/gradle/blob/f85ebce195014542f0afd29454d28fa52fdc0434/subprojects/language-native/src/main/java/org/gradle/language/cpp/plugins/CppApplicationPlugin.java#L106
to
https://github.com/gradle/gradle/blob/f4c91f586e6d8a115dce837b13a8ef9839dde0a0/subprojects/language-native/src/main/java/org/gradle/language/nativeplatform/internal/Dimensions.java
If I remove the check, and just attempt to build everything, it all works.
I think the best way to do this would be to add an API to TargetMachine to specify its a cross compiler, and add a callback performed during binary creation to determine if the cross setup is installed or not, and can be built.
I propose something like the following API added onto TargetMachine
void setCrossCompiledMachine(Predicate<TargetMachine> action);

From this, during the configuration in CppApplication and CppLibrary, check if the action is set, and use it after checking the host to see if that machine can be built on the current platform.
I am currently working on a demo of this functionality, and would be happy to implement it if this seems like a good idea.

I second something like this. I would like to be able to target several different platforms with a cross compiler!


[KYUUBI #4278] Use new Apache 'closer.lua' syntax to obtain Maven

Why are the changes needed?

Use official download link and provide a way to fallback.

Doc reference: https://infra.apache.org/release-download-pages.html#download-scripts

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

build/mvn compile
exec: curl --progress-bar -L https://www.apache.org/dyn/closer.lua/maven/maven-3/3.8.7/binaries/apache-maven-3.8.7-bin.tar.gz?action=download

Codecov Report

Merging #4704 (27a1fc2) into master (a9d3e11) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4704      +/-   ##
============================================
- Coverage     58.05%   58.02%   -0.03%
  Complexity       13       13
============================================
  Files           580      580
  Lines         32220    32220
  Branches       4302     4302
============================================
- Hits          18704    18695       -9
- Misses        11723    11729       +6
- Partials       1793     1796       +3

see 5 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Thanks, merged to master


About hubert Model

Is it necessary to retrain the model when using the audio features extracted by Hubert?
Because when I replaced the features extracted by Hubert, I found that the weights you provided could not be inferred, and the dimensions did not match.

RuntimeError: Error(s) in loading state_dict for NeRFNetwork:
size mismatch for audio_net.encoder_conv.0.weight: copying a param with shape torch.Size([32, 29, 3]) from checkpoint, the shape in current model is torch.Size([32, 1024, 3]).

Is it necessary to retrain the model when using the audio features extracted by Hubert? Because when I replaced the features extracted by Hubert, I found that the weights you provided could not be inferred, and the dimensions did not match.

RuntimeError: Error(s) in loading state_dict for NeRFNetwork:
size mismatch for audio_net.encoder_conv.0.weight: copying a param with shape torch.Size([32, 29, 3]) from checkpoint, the shape in current model is torch.Size([32, 1024, 3]).

hello, it is because the --asr_model params in main.py and your hu_bert.npy file does not match.

Is it necessary to retrain the model when using the audio features extracted by Hubert? Because when I replaced the features extracted by Hubert, I found that the weights you provided could not be inferred, and the dimensions did not match.

RuntimeError: Error(s) in loading state_dict for NeRFNetwork:
size mismatch for audio_net.encoder_conv.0.weight: copying a param with shape torch.Size([32, 29, 3]) from checkpoint, the shape in current model is torch.Size([32, 1024, 3]).

However , I have another question about this https://github.com/Fictionarry/ER-NeRF/issues/21#issue-1847207231

使用 Hubert 提取的音频特征时，是否需要重新训练模型？因为当我替换休伯特提取的特征时，我发现你提供的权重无法推断，尺寸不匹配。

运行时错误：加载 NeRFNetwork state_dict时出错：audio_net.encoder_conv.0.weight的大小不匹配：使用形状火炬复制参数。尺寸（[32， 29， 3]） 从检查点开始，当前模型中的形状是割炬。大小（[32， 1024， 3]）.

您好，这是因为 main.py 中的 --asr_model 参数和您的 hu_bert.npy 文件不匹配。

Yes, so can you provide the hubert weights for your test, or how can I modify my hubert file? Or do I need to specify asr_model as hubert during training and re-train on Obama.mp4

Yes, so can you provide the hubert weights for your test, or how can I modify my hubert file? Or do I need to specify asr_model as hubert during training and re-train on Obama.mp4

The audio feature type should be the same both during training and testing, and the released checkpoint is trained with DeepSpeech to reproduce our experiment results. You need to retrain the model from scratch and specify the target feature type if you want to test other audio extractors.


Home Page UI Implementation

Issue Type: UI related
Description:

Implement HomePage UI using NextUI/muI and Tailwind CSS according to the following design
Make sure that the UI is fully responsive

Design:

@shreya024 I would like to work on this issue!
Would you please provide me with the assets used in the design (i.e images and logo)

@shreya024 I would like to work on this issue! Would you please provide me with the assets used in the design (i.e images and logo)

Sure @MahendraDani go ahead.You can find the images in unDraw
1.The world is mine
2.Things to say
3.Interview
4.My documents
5.Profile pic
Leave the graph area ,we will create another issue for that. Let me know if you need any other help

@shreya024 Thank you so much for the input.
I will keep giving you the updates!

@shreya024 I have already made a navbar as given in the above design.
Should I add the design suggested in #25 myself or let it be as it is?

@shreya024 I have already made a navbar as given in the above design. Should I add the design suggested in #25 myself or let it be as it is?

@MahendraDani Let it be as it is

@shreya024 Alright!

@shreya024 Currently I am done with the navbar, should I send you a video now or after finishing the entire homepage?


move multihash to a module to fix pip install

running mediachain after pip installing was failing because it couldn't find the multihash module.
This moves multihash.py from the top level to multihash/__init__.py

is it a good practice to put actual code into __init__.py? I get that otherwise you'd end up with a multihash.multihash package here but it generally seems to be discouraged

I think that having code in init is a bad idea.


generate candlestick data from oracle_snapshots

need to be able to query the price chart for any token pair from a view based on oracle_snapshots table
optionally it could be a postgres function as well that returns the data
need to be able to query by base_token and quote_token for a specific time interval ('1 h') and get a list of points for a candlestick chart (open, high, low, close) using only snapshot data
high and low are just whatever the high/low tick was for that period
open could just be the tick from the last interval, and close can be the twap over that interval
we do something similar here https://github.com/EkuboProtocol/oracle-extension/blob/6f6924d7dd3b1bf9e111c23e24950dd4a0c80d6c/src/price_fetcher.cairo#L201-L315

@moodysalem
Is this issue open for contribution?

@moodysalem Is this issue open for contribution?

Yes you can apply on OnlyDust

@moodysalem I as well would want to work on this issue

@moodysalem Is this issue open for contribution?

Yes you can apply on OnlyDust

I have applied through onlydust sir

Thank you ♥ @moodysalem

I'd like to take this issue.


Give option to skip certian tests base on Tag

give option to user to skip certain tests base on tags. (revised base on PR #114 )
For example, running the following command to build the driver will skip tests that are tagged as slow:
mvn clean install -Pbuild42 -DskipTestTag=slow

If -DskipTestTag is not provided in the command, all tests will be executed.
Will need to update ReadMe after next release.

Codecov Report

Merging #425 into dev will decrease coverage by 0.36%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev     #425      +/-   ##
============================================
- Coverage     45.92%   45.55%   -0.37%
+ Complexity     2198     2141      -57
============================================
  Files           108      108
  Lines         25210    25210
  Branches       4164     4164
============================================
- Hits          11577    11484      -93
+ Misses        11711    11682      -29
- Partials       1922     2044     +122

Flag
Coverage Δ
Complexity Δ

#JDBC41
45.31% <ø> (-0.37%)
2132 <ø> (-53)

#JDBC42
45.44% <ø> (-0.37%)
2139 <ø> (-53)

Impacted Files
Coverage Δ
Complexity Δ

...om/microsoft/sqlserver/jdbc/SimpleInputStream.java
51.11% <0%> (-5.19%)
11% <0%> (-5%)

...ava/com/microsoft/sqlserver/jdbc/ScrollWindow.java
73.17% <0%> (-2.44%)
17% <0%> (-2%)

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
53.78% <0%> (-1.47%)
0% <0%> (ø)

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
58.96% <0%> (-1.08%)
87% <0%> (-4%)

...n/java/com/microsoft/sqlserver/jdbc/tdsparser.java
68.46% <0%> (-0.91%)
0% <0%> (ø)

...oft/sqlserver/jdbc/SQLServerResultSetMetaData.java
40.97% <0%> (-0.7%)
23% <0%> (-1%)

.../microsoft/sqlserver/jdbc/SQLServerConnection.java
45.31% <0%> (-0.64%)
272% <0%> (-16%)

...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
52.48% <0%> (-0.51%)
238% <0%> (-5%)

...m/microsoft/sqlserver/jdbc/SQLServerStatement.java
59.06% <0%> (-0.51%)
129% <0%> (-9%)

...oft/sqlserver/jdbc/SQLServerPreparedStatement.java
49.33% <0%> (-0.34%)
155% <0%> (-8%)

... and 6 more

Continue to review full report at Codecov.

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

Codecov Report

Merging #425 into dev will decrease coverage by 0.36%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev     #425      +/-   ##
============================================
- Coverage     45.92%   45.55%   -0.37%
+ Complexity     2198     2141      -57
============================================
  Files           108      108
  Lines         25210    25210
  Branches       4164     4164
============================================
- Hits          11577    11484      -93
+ Misses        11711    11682      -29
- Partials       1922     2044     +122

Flag
Coverage Δ
Complexity Δ

#JDBC41
45.31% <ø> (-0.37%)
2132 <ø> (-53)

#JDBC42
45.44% <ø> (-0.37%)
2139 <ø> (-53)

Impacted Files
Coverage Δ
Complexity Δ

...om/microsoft/sqlserver/jdbc/SimpleInputStream.java
51.11% <0%> (-5.19%)
11% <0%> (-5%)

...ava/com/microsoft/sqlserver/jdbc/ScrollWindow.java
73.17% <0%> (-2.44%)
17% <0%> (-2%)

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
53.78% <0%> (-1.47%)
0% <0%> (ø)

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
58.96% <0%> (-1.08%)
87% <0%> (-4%)

...n/java/com/microsoft/sqlserver/jdbc/tdsparser.java
68.46% <0%> (-0.91%)
0% <0%> (ø)

...oft/sqlserver/jdbc/SQLServerResultSetMetaData.java
40.97% <0%> (-0.7%)
23% <0%> (-1%)

.../microsoft/sqlserver/jdbc/SQLServerConnection.java
45.31% <0%> (-0.64%)
272% <0%> (-16%)

...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
52.48% <0%> (-0.51%)
238% <0%> (-5%)

...m/microsoft/sqlserver/jdbc/SQLServerStatement.java
59.06% <0%> (-0.51%)
129% <0%> (-9%)

...oft/sqlserver/jdbc/SQLServerPreparedStatement.java
49.33% <0%> (-0.34%)
155% <0%> (-8%)

... and 6 more

Continue to review full report at Codecov.

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


Refactor memory in Droidlet

Description
Refactoring Droidlet agent's memory to make memory access node-centric and deleting over-specific search functions. This draft includes an initial snippet of making all the required changes for get_player_by_eid as a preview and to get OK.
Fixes #982
Type of change
Please check the options that are relevant.

[ ] Bug fix (non-breaking change that fixes an issue)
[ ] Proposes a change (non-breaking change that isn't necessarily a bug)
[x] Refactor
[ ] New feature (non-breaking change that adds a new functionality)
[ ] Breaking change (fix or feature that would break some existing functionality downstream)
[ ] This is a unit test
[ ] Documentation only change
[ ] Datasets Release
[ ] Models Release

Type of requested review

[ ] I want a thorough review of the implementation.
[x] I want a high level review.
[ ] I want a deep design review.

Testing
Verified through CircleCI also by running memory-level tests locally
Checklist:

[x] I have performed manual end-to-end testing of the feature in my environment.
[ ] I have added Docstrings and comments to the code.
[ ] I have made changes to existing documentation where needed.
[ ] I have added tests that show that the PR is functional.
[x] New and existing unit tests pass locally with my changes.
[ ] I have added relevant collaborators to review the PR before merge.
[ ] [Polymetis only] I ran on hardware (1) all scripts in tests/scripts, (2) asv benchmarks.

I am working on refactoring the rest of the listed functions as per the initial snippets above.

Codecov Report

Merging #1011 (27530c0) into main (8697880) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1011      +/-   ##
==========================================
- Coverage   33.22%   33.16%   -0.06%
==========================================
  Files         347      346       -1
  Lines       34279    34036     -243
==========================================
- Hits        11388    11288     -100
+ Misses      22891    22748     -143

Impacted Files
Coverage Δ

memory/sql_memory.py
83.43% <0.00%> (-0.26%)
:arrow_down:

memory/craftassist/mc_memory.py
81.31% <0.00%> (ø)

agents/droidlet_agent.py

memory/robot/tests/test_low_level_memory.py
95.45% <0.00%> (+0.10%)
:arrow_up:

memory/memory_nodes.py
85.13% <0.00%> (+0.22%)
:arrow_up:

interpreter/craftassist/tasks.py
75.00% <0.00%> (+0.36%)
:arrow_up:

lowlevel/minecraft/pyworld/fake_mobs.py
88.98% <0.00%> (+0.84%)
:arrow_up:

lowlevel/minecraft/pyworld/physical_interfaces.py
80.89% <0.00%> (+1.91%)
:arrow_up:

Thanks for the look-over! The PR will move methods from sql_memory or craftassist memory to specific memory_nodes. Does that mean these methods are not already being tested? If not, is test_low_level_memory a good base template to use for building the rest of unit-tests? I will prefer to keep a running list of missing UTs in another issue, so that I can still use the original issue relating to this PR for tracking refactor progress.

@kavyasrinet @aszlam I finished the refactor for moving methods out of sql_memory.py and into memory_nodes.py. The local tests seem a little uneven and I had to dig arbitrarily to figure out which similarly named methods were a part of refactor or not; so history is a little messy, we can clean that up if things look right.
PS: I might add another task to document and stream-line local testing for contributors. I missed having those instructions/documentation somewhere.

@ethan-carlson @kavyasrinet Thanks for your review! I was able to fix the inconsistency as well as the failing tests from those pointers. The inconsistency changes are spread out over all files touched, but local for other fixes. If things look good, then we can merge this in.


Add several cucumber tests to test cucumber

@rschifflin

This might be interesting to you @rschifflin: It tests cucumber by spawning a whole new project and adding tests to it.
While you're here, pls review lol.


Upgrade contractkit and force latest version for walletconnect

Closing in favour of https://github.com/celo-org/use-contractkit/pull/40. We will be shipping asap


Export to PDF is low quality

I like using MARP for its simplicity, but when I went to export slides to PDF the quality is very low compared to what I see in preview. The text and images are very pixelated. Any idea how to improve the quality of the export?

Same problem. It seems that it export every slide as an image in low quality.

We're making a clean sweep of piled up issues. The solution is to remove <!-- prerender: true --> directive.
To avoid confusing, we would remove the support of prerender directive in Marp Next.


Are you interested by some functions:

Classification:

AUC
power metric
early enrichment at given cutoff
Distances/scores:
Tanimoto score and distance
Tversky score

Of course! I'd be happy to have all contributions.
Though for the record, there I did take some pains to implement AUC well here.

I have released them separately in the cpm library in opam.

That's great, you've been doing admirable work in single handedly implementing a lot of good ML functionality.


dealing with failed skyfield data download

Ran into an issue with a new ch_util installation (for @nmohamme). With a clean install, ch_util.ephemeris.unix_to_datetime(eph.csd_to_unix(2235)) fails because of a lack of skyfield data. I traced this down to ftp://ftp.iers.org/products/eop/rapid/standard/finals2000A.all refusing the connection. The error message

OSError: cannot download ftp://ftp.iers.org/products/eop/rapid/standard/finals2000A.all because <urlopen error ftp error: ConnectionRefusedError(111, 'Connection refused')>

was buried deep in the crash output.
Was able to force load it by stealing code from ephemeris/tests/test_ephemeris.py:

files = ["Leap_Second.dat", "finals2000A.all", "de421.bsp"]

loader = ctime.skyfield_wrapper.load
for file in files:
    if not os.path.exists(loader.path_to(file)):
        loader.download(mirror_url + file)

That's awfully obscure. Is it feasible to force ch_util to use the CHIME mirror (or revert to it if it runs into a dead link, or at least provide a useful error message that doesn't require someone with at least a vague understanding of skyfield data to sort out the issue)?

@ashill I'm looking at fixing this one.
I could force it to use our own mirrors, but I only really wanted to have those for testing and not have the burden of keeping them up to date.
There's a few things I guess I could do, put in a reload_mirror method which loads from our own mirrors, and have the exception that's raised on failure tell people to try that, or I could maybe have it automatically run that on failure and give a warning that the products are going to be out of date.
Thoughts?

I've been using the NASA version finals200A.all - ftp://ftp.gdc.cddis.eosdis.nasa.gov/finals2000A.all
(I found this through a skyfield issue). Could this be a useful mirror?

Thanks @josephwkania. I don't think I can pull from that mirror reliably without a login, so I think I'm going to stick with the CHIME one for now. I may update the version at the CHIME mirror from there though.
This is fixed in radiocosmology/caput#199


[gbmusic] Allow play/pause to work without music info

When using the Gadgetbridge Music Controls app with Spotify, no music info is displayed (e.g. track, artist) and also the state (playing/paused) is unknown. Because of that, the app is always sending the play command. I propose to toggle play/pause on every touch (alternating between the two) when music info cannot be obtained. All other controls (previous/next track, volume up/down) work fine.

What device is this on? Because usually I'd say just use Android/Messages and there's a specific entry for music playing which displays all the info

The device is Xiaomi Mi 11. But I thought Android/Messages is only for notifications or am I missing something? And just realized that music info also comes from a notification. Is Messages supposed to show it? In any case, I'm more interested in the music controls than the music info, but of course it's better to also have the music info.
Also, I realized why music info didn't show up with Spotify. I had Gadgetbridge configured to only allow notifications from selected apps and Spotify was not selected. After adding Spotify to the list, the music info showed up and the music controls app is working properly. However, it might still be worthwhile to implement what I suggested in case some unknown Android music app does not show a notification about what's playing. At least all the controls should still work then.

I thought Android/Messages is only for notifications or am I missing something?

The idea is the Android app handles all Android integration (including music) - there are music controls too. It's basically a replacement for Gadgetbridge, but the idea is rather than duplicating a bunch of work for Android and iOS, the two apps (Android/iOS) forward the info to the Messages app, and then we can have one app to handle music/messages/etc that doesn't care what phone you have.
But yes, good point on the toggling. It could toggle automatically and if Gadgetbridge did update play state, it would just overwrite it with the same.

Oh, I see. I found the music controls in the Messages app now. However, I think it's missing some features that the Gadgetbridge Music Controls app has:

Volume control
Previous song (I can only see a button for next song)
Auto start when playing music

Ahh - yes, good point. It'd be nice to add things like that. I guess prev/next/vol could be done with swipes?

I don't have an iPhone, but it looks as if using Bangle.musicControl should work universally.
If so I think we should probably get rid of the gbmusic app, and just move that code into messages.
That also allows us to get rid of the "override GB for music events" stuff, and handle receiving a "real" message while playing music smoother. (i.e. go back to the music screen after reading the message)

Definitely - I'm all in favour of trying to reduce duplicated functionality

Candidate for being closed - leave a comment if you object!
Rationale:
If gbmusic is kind of deprecated by now, I suggest closing this. Maybe keep it and change same or open a new issue regarding adding 'previous'-action and swipes for input - but some of these things are already on the way in the different new message ui projects, e.g. @rigrigs's smessages.


Cross-Compiling: alpha-embedded Support Added

This commit adds support for Embedded systems with DEC Alpha CPUs.
Motivation for this change
When trying to cross-compile packages for the alpha-embedded target. It comes to an error.
This code adds support for alpha-embedded targets for cross-compiling.
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

I don't see why not!

Looks okay for now but in the future we may need to scale back how many platforms we build on hydra.


The website dose not work well

The website dose not work well. The date could not be selected easily. It always show that there is no simulation for countries .

@Freakwill for issues concerning the web application, please open issues on this repo


Relative URL pathing for beamToNamed

I have some interest in supporting relative pathing, much like on the web. For instance:
Navigate to stack A()/B() by  context.beamToNamed("/a/b"). From there be able to navigate via context.beamToNamed("c") which would, for all intents and purposes, be the same as if we had done a  context.beamToNamed("/a/b/c"). Since there's no pre-pended slash in the URL, it should append, not replace the current URL.
In the same way, context.beamToNamed("/a/b") followed by context.beamToNamed("c/d/e") should have the same net effect of context.beamToNamed("/a/b/c/d/e").

This will be useful.

Will this feature be worked for the next milestone?

Hey @TheManuz
Yes, it seems to be getting demands lately so I will work on it.
At the moment, it doesn't feel like a breaking change, but an additional feature, so I'm now looking to release it in v.1.4.0 and postpone v2 a bit.

OMG! Wonderful! 🥳


VS Code debug commands don't work

Tracking a version of https://github.com/Azure-Samples/azure-search-openai-demo/issues/751 for the .NET repo.
Due to a regression in the Azure Developer CLI (see https://github.com/Azure/azure-dev/issues/2852) we are no longer able to use the VS Code debugger as it will silently fail attempting to retrieve the .env file before launching the debuggers.
This can be worked around be removing the envFile from the launch profiles in the launch.json, but it means you need to inject the environment variables from the AZD environment manually.

Fixed in 1.4.2 release of azd.


First and Fourth Page Duplicate ISSUE

Hi, I tried to use the "CarouselView" of this Plugin in order to display list of data and everything works fine. However, the only thing that I found some issue is that after every three pages, the next three pages (fourth, fifth, sixth and so on...) unexpectedly duplicate some of the UI Design from the first three pages without touching/changing anything on the current index/page as shown in image(below):
THIS IS THE FIRST PAGE:

THIS IS THE FOURTH PAGE:

When I check the 'check icon' in the first page, the fourth page check icon is also being selected.
The second and third page is working fine they are not selected.
Hoping you can help me with this. Thanks. :)

@toshitani23
Hi, do you use bindings for managing carousel?
It seems, that bindings doesn't work.. you should clear view each time when they will appear.
hmm..
So, you can try to set "IsViewCacheEnabled = false", but it isn't very good solution.
Or try to subscribe BindingContextChanged in your cards and clear view...
There are a lot of possible fixes/workarounds
It would be great to have small sample with this issue, i will help to figure out.

Hi @AndreiMisiukevich, thank you for helping me.
Here is the small sample you're requesting.
CarouselViewDuplicateItem.zip

@toshitani23 i will try to check it today-tomorrow :)

I checked your sample
You don't use bindings properly for storing selected image.
I can create small sample, how to use it .. because it's difficult a little to understand your code :)

test.zip
I created very similar sample, check it :)
You just need to figure out with your bindings )


Repo sync for protected CLA branch

The pull request is created from main638055145783064578sync_temp to main to fix git push error for protected CLA branch

Learn Build status updates of commit 6627329:
:white_check_mark: Validation status: passed
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 the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Fix MiniCam frame rate

The frame rate settings, copied for the Qt software, were completely non functional
Fixes #21

@bparks13 can you review, merge, create package and push to nuget


Transdimensional Adventures RPG added

Uploaded HTML, CSS and preview image files for Transdimensional Adventures RPG.
Changes / Comments
Uploaded character sheets for Transdimensional Adventures RPG - these should be ready to go. This is a recently published RPG (available on DriveThruRPG currently)
Includes HTML, CSS and JSON Files as well as preview; character sheet made with CSS grid & grid areas, fairly basic functionality since I'm fairly new to CSS but has the essential fields needed, plus roll buttons, initiative button, etc. (this is a new RPG so there is no existing character sheet). Conforms to Building Character Sheet standards to the best of my knowledge. Files are formatted with LF carriage return and sheet has been tested and works OK in both Chrome and Firefox, gender box is an open text field.
Includes new folder plus files Transdimensional_Adventures.html, Transdimensional_Adventures.css, Transdimensional_preview.jpg.
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[x] Does the pull request title have the sheet name(s)? Include each sheet name.
[x] Is this a bug fix?
[x] Does this add functional enhancements (new features or extending existing features) ?
[x] Does this add or change functional aesthetics (such as layout or color scheme) ?
[x] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[x] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.

I am getting a message saying checks have failed - "Pull Request failed to validate. Correct errors below" and "Sheet.json Missing". There is a .json file in the files I've submitted, though..

The main sheet JSON file must be sheet.json to avoid any confusion.

My mistake I thought references to "sheet.json" were using 'sheet' as a placeholder term for any filename but looking back at examples I can see sheet is standard. Corrected now, thanks Malphaet and Maximilien for pointing this out.


[new debug] see raycasts

I wans trying to debug stuff but it was hard.
if you had a debug feature where you could see raycast when in F3 that would be nice

I don't think that i will add it if i ever return to some peripherals


chore: pin foundry version in CI

Description
Problem*
Resolves
Summary*
Additional Context
Documentation*
Check one:

[x] No documentation needed.
[ ] Documentation included in this PR.
[ ] [For Experimental Features] Documentation to be submitted in a separate PR.

PR Checklist*

[x] I have tested the changes locally.
[x] I have formatted the changes with Prettier and/or cargo fmt on default settings.

Yep, this PR fixes that error.


I'm not able to find the Assembler ,CC, and link.exe in visual studio 2015

[Enter feedback here]

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

ID: 139d8805-bfe6-1aa7-c24f-f31afab77b43
Version Independent ID: ff72cf3f-2332-aa0b-1fad-0ce6bfaf30d3
Content: C Language Reference
Content Source: docs/c-language/c-language-reference.md
Product: visual-cpp
Technology: cpp-c-language
GitHub Login: @corob-msft
Microsoft Alias: corob

I'm not able to find the Assembler ,CC, and link.exe in visual studio 2015
What is the name in 2010 version and in 2015
for Example In 2010 assembler file :ml.exe
What will be name for 2015 version  is this the same ?

@Mehul-Dhameliya
The names are the same in all versions of Visual Studio for at least the last decade. The x86 assembler is ml.exe, and the x64 assembler is ml64.exe. The ARM assemblers are armasm.exe. The linker is still link.exe, and all versions of the compiler are cl.exe.
The location of these binaries is different depending on the version of Visual Studio. I'd recommend using the where command to find them, inside a Developer Command Prompt:
>cd %VCINSTALLDIR%
>where /r . cl.exe

This should list all the paths to the various versions of the compiler.


Improvements and bugfixes

@vedina What should we do with this PR?

merge, but later , let me find time to look at it

@vedina Since you approved the changes, should I go ahead and merge it now? I already checked that there are no conflicts with nexusformat.

yes, pls merge


Add year selector

Is there a way to add a year selector rather than going back all the way, just like how material UI has it?

Exactly. This is a must have feature in a datepicker component.

is any news about this?


SAMZA-2382: User specified side input processor should take precedence over the identity processor

User specified side input processor should take precedence over the identity processor
Symptom: Standby containers on jobs using side-inputs will run into deserialization exceptions when side-inputs use a custom serde (while changelog uses byte serde).
Cause: If the changelog doesnt use byte serde, the custom serde and processor should be respected.
Fix: Added logic that enables user specified side input processor to take precedence over the identity processor.
Tests: Samza test job that uses standby containers with side-inputs, with side-inputs using a custom serde.

Ignore my comment on the description. Looks like you already did. I have one minor comment on the validation. Looks good otherwise.

done

Looks like something easily unit testable. Can we add one for this?


Thanks and questions...

@mayooear thanks for this nice project. Very helpful. Have a couple of items:

The current setup is missing a required package: sentence_transformers
Any thoughts on how to run this in GPU?

The required package sentence-transformers is available. There is a hyphen instead of underscore in the package name.
Currently the model is the quantized version of the mpt-30b-chat model which is being loaded with Ctransformers. You can use the original huggingface llm with this code
import transformers
llm = transformers.AutoModelForCausalLM.from_pretrained(
  'mosaicml/mpt-30b-chat',
  trust_remote_code=True
)

You should replace lines 73 to 78 with the above code. It should work fine ( I haven't tried) with GPU if you have the GPU which can hold the 30b parameter model.


Merge upstream changes

We've not updated this repo since September last year.
@hmarr thoughts?

:+1: if the generated schema is the same, otherwise that's what I'd want to compare.

The order of keys is changed (for some reason - it's still not alphabetical) but the content is identical.

:+1:


Takes a minute to red-underline a syntax error

Environment data

Pylance version: v2024.12.1
OS and version: My machine is Windows 10, I SSH to a machine with Ubuntu 20.04.6
Python version (& distribution if applicable, e.g. Anaconda): 3.10.15

Code Snippet
Video of the behavior: https://youtu.be/di84BJIDDH0
Repro Steps
I think having an open notebook makes this worse. But I don't really know how to reproduce this consistently. I use this kind of interactive notebook: https://code.visualstudio.com/docs/python/jupyter-support-py.
 Any response on this? Thanks!
BTW, I think it's essentially the same issue as https://github.com/microsoft/pylance-release/issues/5748.

Thanks for the issue. We'd need your source code to see what the problem is, or you could follow the steps here to give us an idea what import is taking so long to analyze:
https://github.com/microsoft/pylance-release/wiki/Collecting-data-for-an-investigation.#collecting-type-evaluation-related-data-in-the-log
If you set those values, we should print the import path that's taking so long to evaluate.

Hi.
In the video I attached I was typing in this file: https://github.com/Vilin97/SBTM-sampling/blob/main/scripts/6-vi-annealing.py#L26.
But I observe the same thing for any file with a notebook (not a Jupyter notebook but a VSCode interactive notebook, like in the video).
I think I see in the logs that the notebook itself is getting analyzed, instead of the source code, e.g.
2024-12-06 22:32:55.102 [info] [Info  - 10:32:55 PM] (3913910) [BG(1)] Long operation: analyzing: untitled:/Interactive-1.interactive.py#pylancePrefixCell (10866ms)
This seems like the wrong thing to do -- only the raw .py file should be analyzed.
Maybe a quick and dirty workaround would be to allow the user to disable the analysis of all interactive notebooks?
That being said, I only observe this issue when I ssh to a remote server, so maybe that's part of the issue.
Regarding the CPU profiling, I can do that but later.

I am unable to attach pylance_2024.12.1_bg_1_id_0.cpuprofile or to even open it. Maybe it's too big.
The other two .cpuprofile files are attached here:
pylance_2024.12.1_fg_id_0.cpuprofile
pylance_2024.12.1_bg_3_id_0.cpuprofile

Hi.
Any response on this?
Thank you!


Flip image result and preview horizontally

Are there any methods to flip the image so it will not be a mirrored image?

No, but that shouldn't be too difficult to add. I'll see what I can do.


AcceptTxnAuthorAgreement results in "Cannot marshal: Encountered unmappable character"

Describe the bug
When I try to accept the transaction author agreement it results in an exception.
To Reproduce
Use the following Startup.cs service configurations:
public void ConfigureServices(IServiceCollection services)
        {
            services.AddLogging();
            services.AddSingleton<IPoolConfigurator, PoolConfigurator>();

            services.AddAriesFramework(builder =>
            {
                builder.RegisterAgent(options =>
                {
                    options.EndpointUri = "http://localhost:5000";
                    options.AgentName = "My Issuer";

                    options.AgentKeySeed = "000000000000000000000000MYISSUER";
                    options.WalletConfiguration.Id = "IssuerWallet";
                    options.WalletCredentials.Key = "SecretWalletKey";

                    // Available network configurations:
                    //   sovrin-live
                    //   sovrin-staging
                    //   sovrin-builder
                    //   bcovrin-test
                    options.PoolName = "sovrin-builder";
                });
                builder.AcceptTxnAuthorAgreement();
            });

            serviceProvider = services.BuildServiceProvider(true);
        }

Which results into:
System.ArgumentException: Cannot marshal: Encountered unmappable character.
   at System.Runtime.InteropServices.Marshal.StringToAnsiString(String s, Byte* buffer, Int32 bufferLength, Boolean bestFit, Boolean throwOnUnmappableChar)
   at System.StubHelpers.CSTRMarshaler.ConvertToNative(Int32 flags, String strManaged, IntPtr pNativeBuffer)
   at Hyperledger.Indy.NonSecretsApi.NativeMethods.indy_update_wallet_record_value(Int32 command_handle, Int32 wallet_handle, String type_, String id, String value, IndyMethodCompletedDelegate cb)
   at Hyperledger.Indy.NonSecretsApi.NonSecrets.UpdateRecordValueAsync(Wallet wallet, String type, String id, String value)
   at Hyperledger.Aries.Storage.DefaultWalletRecordService.UpdateAsync(Wallet wallet, RecordBase record)
   at Hyperledger.Aries.Configuration.DefaultProvisioningService.AcceptTxnAuthorAgreementAsync(Wallet wallet, IndyTaa txnAuthorAgreement, String acceptanceMechanism)
   at my source file

Expected behavior
There shouldn't be an exception.
Desktop:

OS: Windows 10
.NET version 3.1.402
Hyperledger.Aries.AspNetCore 1.3.4
Libindy 1.9.0

I stumbled over this issue when I was trying to find the issue of a Ledger operation rejected exception while publishing a schema.
Do you need any more information?

I'll take a look at this. Can you please confirm again the Libindy version? Is is 1.9.0? Can you try updating to anything 1.15? https://repo.sovrin.org/windows/libindy/master/

Thanks @tmarkovski. I tried it again with Libindy 1.15 but got the same error.

I'm having trouble reproducing this. Is your Windows 10 a 32 or 64 bit?

It's a Windows 10 64bit. With locale de-DE. I tried it at a Ubuntu with en-US locale and it indeed worked!

As I suspected. It may be related to Indy SDK wrapper using Ansi as opposed to Unicode in the [DllImport(Charset = Ansi)]
https://github.com/hyperledger/indy-sdk/blob/f9eb2cf17b51584f875c4707094256a96656e7b8/wrappers/dotnet/indy-sdk-dotnet/NonSecretsApi/NativeMethods.cs#L12
I'll see if I can reproduce this and see if changing to Unicode will work.

I have the same problem


Support Package.resolved V2

First off, thanks for this great library!
The Package.resolved format has changed since Xcode 13.3. The new format no longer has an object wrapper, and some of the field names have changed. It looks like this:
{
  "pins" : [
    {
      "identity" : "alamofire",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/Alamofire/Alamofire",
      "state" : {
        "revision" : "f82c23a8a7ef8dc1a49a8bfc6a96883e79121864",
        "version" : "5.5.0"
      }
    },
  ],
  "version" : 2
}

I began working on a proof of concept  for this that implements the new json format. It works, but drops support for V1 of Package.resolved. I got stuck with some of the functional libraries being used and wasn't sure how to best fit in support for both Package.resolved formats.
I think it could work by adding a new Decodable type that represents the new Package.resolved format (ResolvedPackageV2 in my above linked code), and then introduce an internal type, say, PackageInternal, that can be initialized by either ResolvedPackage or ResolvedPackageV2. That way World doesn't depend on the json structure (ResolvedPackage) like it does now.
We could attempt to decode the json using both formats and only throw an error if both fail. Something like:
func getInternalPackage(from data: Data) -> Result<InternalPackage, SomeError> {
    if let packageV1 = try? JSONDecoder().decode(ResolvedPackageContent.self, from data) {
        return .success(InternalPackage(package: packageV1))
    }

    if let packageV2 = try? JSONDecoder().decode(ResolvedPackageContentV2.self, from data) {
        return .success(InternalPackage(packageV2: packageV2))
    }

    return .failure(.couldNotDecodeJson)
}

The above could be improved, but hopefully it helps illustrate the idea.
Let me know your thoughs and if you have any guidance for how this might fit into the current code. I'm new to the concept of having a World struct and functions like contramapEnvironment() :)

Hey Dylan, thanks for pointing out that issue. Your proposal to decode into some intermediate v1/v2 object and then turn this into the "real" thing (which has not to be Decodable) is a good idea. This way we can separate the decoding from the domain model. Maybe you could try frist a "dirty" solution here:
.flatMapResult { readSwiftPackageResolvedJson(url: $0).contramapEnvironment(\World.spmJsonDecoder) }
The input is the file URL and and the output is ResolvedPackageContent. Just call a your method there to decode the different JSON files. Don't let the code confuse you. World and Reader are just a fancy dependency injection. We can help you later to make it more functional and inject the decoder properly.


About the pre-trained checkpoints

I would like to use TUPE for other downstream tasks, however, it seems that now only the TUPE-R checkpoint has been released. Has it already fine-tuned on GLUE? Since it takes really long time to pre-train the model, could you release more checkpoints of TUPE?

The released checkpoint is not finetuned on GLUE. It is from pretraining.
unfortunately, the checkpoint of TUPE-A is missed, and I cannot find it...

TUPE-R可以公开吗? @guolinke


Support 192 and 256-bit keys for AES

closes #1234

Not a huge fan of just panicking on invalid key length, as there's no way for an application to recover from that. I guess without const_generic_exprs there's not much else we can do other than make the method fallible (which might be preferable?).
@bjoernQ what do you think?

Not a huge fan of just panicking on invalid key length, as there's no way for an application to recover from that. I guess without const_generic_exprs there's not much else we can do other than make the method fallible (which might be preferable?).
@bjoernQ what do you think?

Not exactly nice, true. Fallible would be better or maybe we define an Enum for the keysizes, like
pub enum Key {
  Key16([u8;16),
  #[cfg(any(feature = "esp32", feature = "esp32s2")]
  Key24([u8;24),
  Key32([u8;32),
}

Also don't we define cfg-symbols for the chip? Like  #[cfg(any(esp32,esp32s2)]

Thanks for the input @bjoernQ. Not quite sure what is best right now, I think making it fallible or the key size enum are both probably fine solutions. So, no strong opinions now, will sleep on it.

Can we decide on a path forward here?

I've suggested a solution, I'm not going to be too picky about what we decide on as long as it doesn't just panic. If nobody else has any input then we should probably just make it fallible and we can revisit it at some other time.

I'm fine with making it fallible for now. I think the Key enum would be a better solution if we don't end up in having a hell lot of key lengths. But for the sake to get this forward - let's make it fallible

I think, as Key enum is currently a nicest solution, we can proceed with it 🤔

I think, as Key enum is currently a "nicest" solution, we can proceed with it 🤔

Sure, that's fine too. A fallible API is probably simpler, though.

Let's go with the Key enum, I think we can make the API simpler like @jessebraham was suggesting by adding From<[u8; 16]> impls for Key, meaning the API doesn't get much harder to use, users only need to call into(). We could even add the trait bound for Into<Key> if we wanted to go the extra mile.


feat: ftl-2682 add selective disclosure for nested fields

[ ] bump up versions

This PR is blocked by https://github.com/mattrglobal/node-bbs-signatures/pull/175 , https://github.com/mattrglobal/bbs-signatures/pull/110 and releasing these libs with new versions.
@inga-affinidi @cosminm-affnd tried to omit installing new deps. But I see it is not a common way. So, will follow your recommendations.

In this PR I also remove checking of cedentialSubject.data nested fields as according to jsonld context, some fields could be not represented - one VC with jsonld context X can have field 'address'  but for another VC with jsonld context X might not have  field 'address'. In case when for derive proof operation not existing field is revealed, this field in the result segment will have 'null'.


Select a group of values as favorites

If I star a node in the tree visualization, I would expect that all sub-node are being starred as well to select a whole group as favorites.

@Kaudse Variable panel does not support favorites for the whole group.
Favorites are for a limited number of nodes. What is the use case for selecting the whole group?

@asimonok Users can favorite folders only if Allow group selection is selected. It was not planned this was and I missed it when tested. Please remove.

@mikhail-vl My use case is that I have a large collection of machines that are grouped according to their machine type. In some cases, there are hundreds of machines in a group. So if one user usually wants to analyze all members of only one specific group, it would help to have the possibility to mark a whole group as favorite.


Prepare the Project's Trello Page

The Trello page is done. https://trello.com/b/9anSOIJD/tweelights


try converting all lstm-metab math ops to tf math ops

There are quite a few math operations that we use in lstm-metab model. I'm not sure, but this could be one reason that the model isn't training. It's possible that b/c these aren't tensorflow operations, the gradients are not being properly propagated through them. Which would explain why the LSTM-metab model isn't training. This is something that Andy and Xiaowei brought up. I'd like to try converting everything to tensorflow operations to see what happens.

I want to change things incrementally.

change ** to tf.math.pow
change * and / to tf.math.multiply and tf.math.divide
change + and - to tf.math.add and tf.math.minus

Changing ** to tf.math.pow didn't seem to make much of a difference

Even after changing all of the math operations to tf.math functions, the model still does not train: