pip install trako fails

    gmake[2]: *** [CMakeFiles/draco_compression_attributes_dec.dir/src/draco/compression/attributes/kd_tree_attributes_decoder.cc.o] Error 1
    gmake[1]: *** [CMakeFiles/draco_compression_attributes_dec.dir/all] Error 2
    gmake: *** [all] Error 2
    Traceback (most recent call last):
      File "/tmp/pip-build-env-gm55xlip/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 577, in setup
        cmkr.make(make_args, env=env)
      File "/tmp/pip-build-env-gm55xlip/lib/python3.7/site-packages/skbuild/cmaker.py", line 482, in make
        os.path.abspath(CMAKE_BUILD_DIR())))

    An error occurred while building with CMake.
      Command:
        "cmake" "--build" "." "--target" "install" "--config" "Release" "--"
      Source directory:
        /tmp/pip-install-evsbjt8l/TrakoDracoPy
      Working directory:
        /tmp/pip-install-evsbjt8l/TrakoDracoPy/_skbuild/linux-x86_64-3.7/cmake-build
    Please see CMake's output for more information.

    ----------------------------------------
Command "/tmp/miniconda3_2/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-evsbjt8l/TrakoDracoPy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-ata12qwi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-evsbjt8l/TrakoDracoPy/

cc @yrathi

Thanks, @tashrifbillah ! I am not sure about this error but maybe CMake's output helps?

@haehn , please see the log that you asked for:
trako_install.log
By the way, when opening the issue, I didn't realize there was a python setup.py install step after creating the conda environment named TRAKO. Later, I tried that step. The step gives same error as that of pip install trako.
That being said, I have not been able to install trako in the following environment at all:
Linux pnl-z840-2 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

pip install trako should just do it (on Ubuntu 18.04 and Mac).. the python setup.py install is only for the developer installation.
Which OS are you running? Which compiler? The log file points to some C++ errors in the Draco library (overloading) so I expect some version mismatch.

And you said it worked with python=3.6?

And you said it worked with python=3.6?

I didn't.
Please see my earlier comment with OS specification. It is a CentOS 7.
You can send me the cmake/gmake build commands. Maybe I can also help in developing a robust installation scheme.

I unfortunately don't know how to build it on CentOS 7.
The pip install trako is a general source distribution and builds on most modern systems.

Which Anaconda version are you using?

The pip install trako is a general source distribution and builds on most modern systems.

Which is why it is wired that it failed on my machine.

Which Anaconda version are you using?

We build all our software from a skeletal miniconda3

I can replicate the issue on a google cloud vm running centos7
Starting from a fresh instance:
$ uname -a
Linux instance-1 3.10.0-1062.18.1.el7.x86_64 #1 SMP Tue Mar 17 23:49:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ sudo yum -y update && sudo yum -y install python3 python3-pip gcc gcc-c++
$ sudo pip3 install scikit-build
$ sudo pip3 install trako

and I get the same build errors as in the log.  Looks like a TrakoDracoPy level c++ issue with an overloaded method.

From the log I posted:

CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!

Doesn't this bother us?

@haehn how can I build just TrakoDracoPy from source if I check out your repo?

@haehn how can I build just TrakoDracoPy from source if I check out your repo?

I am already working on it!

Thanks @tashrifbillah - let us know what you find!  I wouldn't worry about the ninja error since it appears to fall back to makefiles.

@haehn, it appears that https://pypi.org/project/TrakoDracoPy/ installation fails in first place.
With pip install TrakoDracoPy, I get the same error that I reported here.
After I took out TrakoDracoPy from setup.py of this repo:
'six>=1.13.0',
'stringcase>=1.2.0',
# 'TrakoDracoPy',
'typing-extensions>=<IP_ADDRESS>',
'typing-inspect>=0.5.0',

python setup.py install of TRAKO works fine.
Based on the above, I believe the error traces its root in https://github.com/seung-lab/draco/ which is what you try to build here.
I can try to build draco from source and try to sort out the issue.

Thanks, @tashrifbillah and @pieper !

Hi @pieper , I would like to share my experiment. Please see the hierarchy below:
Google Draco (succeeds)
   |-Seung-lab Draco (fails)
      |-TrakoDracoPy (fails)

https://github.com/google/draco is the root of all, builds fine

https://github.com/seung-lab/draco, which is a fork of Google Draco doesn't build. I didn't find the output log helpful. Posting it below:
CMakeOutput.log

If @haehn has forked from there, it makes sense that his fork would fail too.

Hi @tashrifbillah - thanks for digging in to this 👍
I can confirm that the google version builds for me and the seung version fails.
But I do not get weird cmake errors like you did.  Maybe because I installed the very latest release.  Here's what I get for the seung version:
INFO|Draco: ignoring empty build type, forcing release mode.
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Checking CXX compiler flag support for: -std=c++11
-- Performing Test HAVE_CXX_FLAG
-- Performing Test HAVE_CXX_FLAG - Success
Checking CXX compiler flag support for: -fPIC
-- Found Git: /usr/bin/git (found version "<IP_ADDRESS>")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pieper/seung/draco-build

But then I get the same compile errors for the method overrides that you saw originally in trako.
Let me see if I can come up with a fix.

Hmm, looks like the seung version stripped out some DRACO_OLD_GCC blocks and did some other reformats.  I didn't see an obvious fix for gcc.
But clang works for building draco - @tashrifbillah would clang be an option for you?
This works:
sudo yum install clang
CC=clang CXX=clang++ cmake ../draco; make

But this fails:
CC=clang CXX=clang++ pip3 install trako

@haehn would you be able to look and see if you can see what's going on in the pip part?
Here's the error message:
    clang -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I_skbuild/linux-x86_64-3.6/cmake-install/include/ -I/usr/include/python3.6m -c ./src/TrakoDracoPy.cpp -o _skbuild/linux-x86_64-3.6/setuptools/temp.linux-x86_64-3.6/./src/TrakoDracoPy.o -std=c++11 -O3
    clang: error: unknown argument: '-fstack-protector-strong'
    error: command 'clang' failed with exit status 1

Hi @pieper ,

CC=clang CXX=clang++ cmake ../draco; make
works for seung-lab/draco

But contrary to what you observed, both works for me:
CC=clang CXX=clang++ pip install trako

# and

conda -y create --name TRAKO python=3.6
conda activate TRAKO
cd haen/draco
CC=clang CXX=clang++ python setup.py install

At least the build went fine.
I am going to try with pip install clang because not everyone will have sudo.

Ok - great. We can also maybe try to build against upstream draco rather than Seung's lab.

Hello @haehn , I have been exploring this idea for a while. If you change this line to google/draco and then try pip install . for TrakoDracoPy, google/draco builds fine but the following error appears in the linking stage:
  /tmp/miniconda3-TrDrGoogle/envs/TRAKO/compiler_compat/ld: /tmp/miniconda3-TrDrGoogle/envs/TRAKO/lib/libdraco.a(geometry_metadata.cc.o): relocation R_X86_64_32S against symbol `_ZNSs4_Rep20_S_empty_rep_storageE@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
  /tmp/miniconda3-TrDrGoogle/envs/TRAKO/compiler_compat/ld: /tmp/miniconda3-TrDrGoogle/envs/TRAKO/lib/libdraco.a(dynamic_integer_points_kd_tree_decoder.cc.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
  /tmp/miniconda3-TrDrGoogle/envs/TRAKO/compiler_compat/ld: /tmp/miniconda3-TrDrGoogle/envs/TRAKO/lib/libdraco.a(float_points_tree_decoder.cc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
  /tmp/miniconda3-TrDrGoogle/envs/TRAKO/compiler_compat/ld: /tmp/miniconda3-TrDrGoogle/envs/TRAKO/lib/libdraco.a(attributes_decoder.cc.o): relocation R_X86_64_32S against symbol `_ZTVN5draco17AttributesDecoderE' can not be used when making a shared object; recompile with -fPIC
  /tmp/miniconda3-TrDrGoogle/envs/TRAKO/compiler_compat/ld: /tmp/miniconda3-TrDrGoogle/envs/TRAKO/lib/libdraco.a(sequential_attribute_decoder.cc.o): relocation R_X86_64_32S against symbol `_ZTVN5draco26SequentialAttributeDecoderE' can not be used when making a shared object; recompile with -fPIC
  collect2: error: ld returned 1 exit status
  error: command 'g++' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for TrakoDracoPy
Failed to build TrakoDracoPy
ERROR: Could not build wheels for TrakoDracoPy which use PEP 517 and cannot be installed directly

I traced the source of error to this line:

extra_link_args = ['-L{0}'.format(lib_dir)] + library_link_args

If you remove library_link_args, the pip install . works fine.
Given the above, maybe @pieper can help us finding a solution?

@tashrifbillah maybe try adding -fPIC to the end of extra_link_args?

I tried adding here:
extra_compile_args=[
  '-std=c++11','-O3'
],

Again, tried where you said. But same error.

@tashrifbillah are you allowed to use singularity?  We could build a trako image.

Sure, containerization is a way around with clang. But it's not an option on Partners HPC yet, so no.

Do they specifically prohibit singularity or just not provide it?  I was able to install it from source on centos7 on my vm (I don't use ERIS, or at least not for years).

The first requirement is Centos7. Partners has only 3 compute nodes running Centos7. The rest are running Centos6. Maybe this is why they haven't installed it.
On the other hand, I was under the impression that I need sudo to install singularity, no?

You probably need to have some prerequisite packages, but then you can install singularity itself to your own userspace.  Might be able to install the prereqs too I guess.  I actually haven't tried it much but it seems like a possible workaround.
Probably better to just get the link error fixed.  Let's see what @haehn says.

Yes, I agree let's try to get the linking fixed. But I have no idea how to fix it :)

Maybe some of the sysadmins know this error since they are CentOS experts?

Maybe some of the sysadmins know this error since they are CentOS experts?

Except it is not their job to help us develop software, so I wouldn't hold my breath.
The riddle to solve here should be: google/draco builds fine from source while python wrapped source fails.
The problem addressed by this software and given solution sound promising, which is why I am just trying to make it usable by more people. In my experience, most Linux users are RHEL compared to Ubuntu where you may have perfected it. Anyways, when I get some more time, I might be able to find a workaround.

The sysadmins helped me before because of the older CentOS versions so I would ask them. I appreciate you trying to debug - thank you.

Way to reproduce error:
cd TrakoDracoPy
pip install . --no-clean
cd /tmp/build/directory/from/above

gcc -pthread -B /tmp/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I_skbuild/linux-x86_64-3.7/cmake-install/include/ -I/tmp/miniconda3/include/python3.7m -c ./src/TrakoDracoPy.cpp -o _skbuild/linux-x86_64-3.7/setuptools/temp.linux-x86_64-3.7/./src/TrakoDracoPy.o

Notice the already included -fPIC flag in bold. The above runs fine but the next step runs into error:

gcc -pthread -B /tmp/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I_skbuild/linux-x86_64-3.7/cmake-install/include/ -I/tmp/miniconda3/include/python3.7m -c ./src/TrakoDracoPy.cpp -o _skbuild/linux-x86_64-3.7/setuptools/temp.linux-x86_64-3.7/./src/TrakoDracoPy.o

A more proper title of this issue should be:
skbuild.setup() fails in linking libraries to executables which originates in
https://github.com/haehn/TrakoDracoPy/blob/master/setup.py#L58

It looks like it is a known issue originating from skbuild:
https://github.com/scikit-build/scikit-build/pull/121#issuecomment-238642797

Hi @pieper , our @yrathi increased the priority of TRAKO installation on our HPC. Accordingly, I have made this Singularity container and tested on a few cases. It seems to work fine.
Hi @haehn , if PR is welcome, I can integrate my Singularity recipe in a folder with TRACO.

That is awesome @tashrifbillah !  I had no idea that singularity was an option on the cluster, but it sounds like an ideal solution.  Will it satisfy the use case long-term?  If so we don't need to work on the back porting project.

I had no idea that singularity was an option on the cluster

Hi @pieper , it was not until recently. We pushed for its availability and got it.

Will it satisfy the use case long-term? If so we don't need to work on the back porting project.

It should. I agree, we may not need Kitware support for fixing this anymore (not sure if that is what you meant).

That's great @tashrifbillah.  Yes, I was referring to the project we were working on with @jcfr to change the compilation of trako to work with older OS versions.  We can drop that project now.

I was still planing on updating TrakoDracoPy so that wheels are published on all three platforms.


Translate OSPO maturity model into Chinese

[x] ospo-checklist.md
[x] five-stage-OSPO-maturity-model.md
[x] add Chinese picture :  five stages of OSPO  (from LFAPAC evanglist translation SIG)

Love this! Thank you so much @node !

Looks awesome thank you!
On Wed, Jan 3, 2024 at 5:35 AM Ana Jimenez Santamaria <
@.***> wrote:

@.**** approved this pull request.
—
Reply to this email directly, view it on GitHub
https://github.com/todogroup/ospology/pull/405#pullrequestreview-1801830915,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAPSIKJZEXY7BU7RYYY3JDYMU7ATAVCNFSM6AAAAABBLFQCUCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQMBRHAZTAOJRGU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Cheers,
Chris Aniszczyk
https://aniszczyk.org


Ability to open files in search without changing focus

Currently  opens the file under search results and moves the focus to the opened file. Instead I was wondering if it would be possible to open the file without changing the focus from spectre results window?
Use case: sometimes I want to see the context of the search phrase. Changing focus on  introduces a lot of friction where I have to traverse back to the spectre window to move to the next result.

Working on it. Lmao.

Yeah, I already windwp to remove it. Currently working on other issue.

you can add pinned tag to avoid bot :smiling_face_with_tear:

@pfrcks can u try #159 with require('spectre.actions').open_entry(). If it works find I will add to default keybindings.


Link opens in new windows even though that behaviour should be blocked

I have a scenario where, when a link is clicked, any default behaviour is blocked. Handling of the link is deferred and all I get is a console log that tells me a specific handler was called.
The test clicks the link and no window or tab is opened. The getBrowserConsoleMessages method  is used to get the console logs and an assertion is made to see that the console log I'm looking for is preset.
After upgrading from TestCafé version 1.8.0 to 1.9.1 the default behaviour of clicking links is no longer blocked and clicking the link results in a new window being opened. I tried using the new closeWindow method on it but it seems to regard this new window as a parent window and not a child of the original window (which is still active in the background).
Since the original window is no longer active I can't assert that the console log I need is present.
What is the Current behavior?
TestCafé clicks the link and a new window is opened. This does not happen when going through the manual steps in our test environment because that behaviour should be blocked.
What is your web application and your TestCafe test code?

 test('Logging of handler.', async (t) => {
  await testPage.init()
  await testPage.load()
  await testPage.switchToMainIframe()

  await testIframe.clickLink()
  await testPage.hasConsoleMessage('Handler X is called with: https://url.com')
})

Your Environment details:

testcafe version:                   1.9.1
node.js version:                    10
browser name and version: Chrome 84
platform and version:          macOS 10.15.6

You can try to return to the main window using the switchToParentWindow  method. Also, the multiple browser window support feature may be turned off by the --disable-multiple-windows flag.
If the problem persists, please share a simple project so that we can reproduce this behavior on our side. We'll try to research it and find a suitable solution.


syslog logging does not seem to work over TLS (TCP)

I have set up a syslog log destination with TLS support, but log data does not make it to the destination. I am using:
docker run -it --log-driver=syslog --log-opt syslog-address=tcp://logsXXX.papertrailapp.com:YYYYYY  busybox echo "alex"

If I change the destination from Accepting TCP (TLS) to Accepting TCP (plain text), then I do see log data appearing.
$ docker version
Client:
 Version:      1.8.3
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   f4bf5c7
 Built:        Mon Oct 12 18:01:15 UTC 2015
 OS/Arch:      darwin/amd64

Server:
 Version:      1.8.3
 API version:  1.20
 Go version:   go1.4.2
 Git commit:   f4bf5c7
 Built:        Mon Oct 12 18:01:15 UTC 2015
 OS/Arch:      linux/amd64

$ docker info
Containers: 28
Images: 38
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 94
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.10-boot2docker
Operating System: Boot2Docker 1.8.3 (TCL 6.4); master : af8b089 - Mon Oct 12 18:56:54 UTC 2015
CPUs: 1
Total Memory: 996.2 MiB
Name: dev
ID: T33K:5CAM:IHRC:4XUK:ZLPE:ECCK:7Z5Y:QNUF:KW66:K3RU:23FB:ATFC
Debug mode (server): true
File Descriptors: 11
Goroutines: 18
System Time: 2015-12-02T03:38:28.079290194Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Username: dnadocker
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox

$ uname -a
Darwin Alexs-MacBook-Pro-4.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

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

Golang syslog package doesn't seem to have TLS support. Also in your link it's seems that you should use local syslog daemon to send logs over TLS to remote.

Okay, I just posted the issue with gloang.

@cancan101 thanks! Feel free to open feature request when it'll be available.

@LK4D4 upstream does not seem interested in adding TLS support.

Hm;

We have no plans to further develop the log/syslog package in the standard library.
We welcome the community to fork it and give it features elsewhere. It was probably a mistake putting > it in the standard library to begin with.

That sounds troublesome on its own, looks like they don't plan to really maintain the package.

Here is a Golang syslog library that has TLS support: https://github.com/RackSec/srslog
We forked the original package from the standard library and added TLS support.

@sirsean can you comment that on this issue: https://github.com/docker/docker/issues/18364?

oh, see you just did, sorry!


Cockroachdb

Codecov Report

Merging #8 into master will decrease coverage by 48.14%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #8       +/-   ##
==========================================
- Coverage   78.24%   30.1%   -48.15%
==========================================
  Files           6       5        -1
  Lines         308     196      -112
==========================================
- Hits          241      59      -182
- Misses         66     136       +70
  Partials        1       1

Impacted Files
Coverage Δ

db/executer.go
0% <0%> (ø)

db/retry.go
0% <0%> (-100%)
:arrow_down:

db/db.go
0% <0%> (-82.95%)
:arrow_down:

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 d97b6dc...73f4ef7. Read the comment docs.


Question about inference speed

Thanks for nice repository
You uploaded Inference.ipynb and in notebook, it took 57 seconds for generating audio with 100 steps.
could you inform which environment was used and RTF for generation?

Dear @seastar105,
Thank you for your interest in this repository. The reason for the slow inference when using inference.ipynb is likely due to the value '-1' in the second line of the first cell, which results in CPU-based inference. In my testing environment, the GPU was being used for training, so the code is set to '-1'. If you have a GPU and CUDA available in your environment, I recommend changing the value to '0' and testing it.
Best regards,
Heejo

Thanks! I'm gonna check RTF and report here


Replica-Dataset + Bullet Physics crashes

🐛 Bug
Any environment from https://github.com/facebookresearch/Replica-Dataset fails to work when enabling Bullet physics.
It works with:

not enabling physics
using regular kinematic physics, i.e. not Bullet

The exact spot in the logs that fails is:
E0502 04:55:08.508623   972 BulletPhysicsManager.cpp:84] Invalid primitive: Points
E0502 04:55:08.508630   972 BulletPhysicsManager.cpp:101] Cannot load collision mesh, skipping

Sometimes it's Invalid primitive: Points, sometimes BulletPhysicsManager.cpp:99] Invalid primitive -2101531424, etc. It looks like some kind of overflow or stack corruption from a quick glance.
Command
The paths I use:

"scene_path": "/remote/Replica-Dataset/data/apartment_0/habitat/mesh_semantic.ply"
"physics_config": "/remote/habitat-sim/data/default.phys_scene_config.json"

Logs
==== Initialized Sensor Spec: =====
Sensor uuid:  rgb
Sensor type:  SensorType.COLOR
Sensor position:  [0.  0.6 0. ]
===================================
==== Initialized Sensor Spec: =====
Sensor uuid:  depth
Sensor type:  SensorType.DEPTH
Sensor position:  [0.  0.6 0. ]
===================================
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0502 04:48:56.452706   905 Simulator.cpp:64] Loading navmesh from /remote/Replica-Dataset/data/apartment_0/habitat/mesh_semantic.navmesh
I0502 04:48:56.452836   905 Simulator.cpp:66] Loaded.
I0502 04:48:56.452862   905 SceneGraph.h:92] Created DrawableGroup:
I0502 04:48:56.457373   905 WindowlessContext.cpp:100] [EGL] Detected 3 EGL devices
I0502 04:48:56.476143   905 WindowlessContext.cpp:121] [EGL] Selected EGL device 0 for CUDA device 0
I0502 04:48:56.478258   905 WindowlessContext.cpp:135] [EGL] Version: 1.5
I0502 04:48:56.478272   905 WindowlessContext.cpp:136] [EGL] Vendor: NVIDIA
Renderer: GeForce GTX TITAN X/PCIe/SSE2 by NVIDIA Corporation
OpenGL version: 4.6.0 NVIDIA 435.21
Using optional features:
    GL_ARB_ES2_compatibility
    GL_ARB_direct_state_access
    GL_ARB_get_texture_sub_image
    GL_ARB_invalidate_subdata
    GL_ARB_multi_bind
    GL_ARB_robustness
    GL_ARB_separate_shader_objects
    GL_ARB_texture_filter_anisotropic
    GL_ARB_texture_storage
    GL_ARB_texture_storage_multisample
    GL_ARB_vertex_array_object
    GL_KHR_debug
Using driver workarounds:
    nv-egl-incorrect-gl11-function-pointers
    no-layout-qualifiers-on-old-glsl
    nv-zero-context-profile-mask
    nv-implementation-color-read-format-dsa-broken
    nv-cubemap-inconsistent-compressed-image-size
    nv-cubemap-broken-full-compressed-image-query
    nv-compressed-block-size-in-bits
W0502 04:48:56.491065   905 ResourceManager.cpp:357] Cannot find /remote/habitat-sim/data/objects/cheezit or /remote/habitat-sim/data/objects/cheezit.phys_properties.json. Aborting parse.
W0502 04:48:56.491075   905 ResourceManager.cpp:357] Cannot find /remote/habitat-sim/data/objects/chefcan or /remote/habitat-sim/data/objects/chefcan.phys_properties.json. Aborting parse.
W0502 04:48:56.491082   905 ResourceManager.cpp:357] Cannot find /remote/habitat-sim/data/objects/banana or /remote/habitat-sim/data/objects/banana.phys_properties.json. Aborting parse.
I0502 04:49:53.353385   938 ResourceManager.cpp:182] loaded object templates: 0
E0502 04:49:53.353519   938 BulletPhysicsManager.cpp:99] Invalid primitive 11
E0502 04:49:53.353525   938 BulletPhysicsManager.cpp:101] Cannot load collision mesh, skipping
E0502 04:49:53.353529   938 Simulator.cpp:124] cannot load /remote/Replica-Dataset/data/apartment_0/habitat/mesh_semantic.ply
I0502 04:49:53.353652   938 BulletPhysicsManager.cpp:16] Deconstructing BulletPhysicsManager
I0502 04:49:53.353688   938 PhysicsManager.cpp:32] Deconstructing PhysicsManager
I0502 04:49:53.353693   938 SceneManager.h:24] Deconstructing SceneManager
I0502 04:49:53.353698   938 SceneGraph.h:25] Deconstructing SceneGraph
I0502 04:49:53.357825   938 Renderer.cpp:33] Deconstructing Renderer
I0502 04:49:53.357841   938 WindowlessContext.h:16] Deconstructing WindowlessContext
I0502 04:49:53.357843   938 WindowlessContext.cpp:245] Deconstructing GL context
Traceback (most recent call last):
  File "remote_locobot.py", line 309, in <module>
    robot = RemoteLoCoRobot(backend=args.backend, backend_config=args.backend_config)
  File "remote_locobot.py", line 30, in __init__
    self._robot = Robot(backend, common_config=backend_config)
  File "/root/low_cost_ws/src/pyrobot/src/pyrobot/core.py", line 120, in __init__
    common_class(self.configs, **common_config),
  File "/root/low_cost_ws/src/pyrobot/src/pyrobot/habitat/simulator.py", line 24, in __init__
    self.sim = habitat_sim.Simulator(make_cfg(self.sim_config))
  File "<attrs generated init habitat_sim.simulator.Simulator>", line 9, in __init__
  File "/root/pyenv_pyrobot_python3/lib/python3.6/site-packages/habitat_sim-0.1.4-py3.6-linux-x86_64.egg/habitat_sim/simulator.py", line 67, in __attrs_post_init__
    self.reconfigure(config)
  File "/root/pyenv_pyrobot_python3/lib/python3.6/site-packages/habitat_sim-0.1.4-py3.6-linux-x86_64.egg/habitat_sim/simulator.py", line 193, in reconfigure
    self._config_backend(config)
  File "/root/pyenv_pyrobot_python3/lib/python3.6/site-packages/habitat_sim-0.1.4-py3.6-linux-x86_64.egg/habitat_sim/simulator.py", line 111, in _config_backend
    self._sim = SimulatorBackend(config.sim_cfg)
ValueError: Cannot load: /remote/Replica-Dataset/data/apartment_0/habitat/mesh_semantic.ply

Expected behavior
The scene loads without crash

We likely need to decimate replica meshes for them to work with physics.  We should (if possible) fix whatever bug is causing this but I would be surprised if Bullet was useable with replica meshes in their current form (I think the one you are loading has ~14 million vertices).  We had started working on adding a mesh decimation tool here: https://github.com/facebookresearch/habitat-sim/pull/468

We likely need to decimate replica meshes for them to work with physics. We should (if possible) fix whatever bug is causing this but I would be surprised if Bullet was useable with replica meshes in their current form (I think the one you are loading has ~14 million vertices). We had started working on adding a mesh decimation tool here: #468

@erikwijmans I tried to decimate the room_2 semantic mesh to <500000 vertices but it still doesn't work (roughly same error as OP):
I0523 17:02:43.036067 734671 Simulator.cpp:206] ::setSceneInstanceAttributes : Navmesh file location in scene instance : /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.navmesh
I0523 17:02:43.036077 734671 Simulator.cpp:213] ::setSceneInstanceAttributes : Loading navmesh from /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.navmesh
I0523 17:02:43.036129 734671 Simulator.cpp:216] ::setSceneInstanceAttributes : Navmesh Loaded.
I0523 17:02:43.036149 734671 SceneGraph.h:85] Created DrawableGroup:
I0523 17:02:43.036154 734671 Simulator.cpp:251] ::setSceneInstanceAttributes : SceneInstance : /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.ply proposed Semantic Scene Descriptor filename : /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.scn
E0523 17:02:43.036163 734671 SemanticScene.h:155] ::loadSemanticSceneDescriptor : File /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.scn does not exist.  Aborting load.
W0523 17:02:43.036460 734671 Simulator.cpp:275] ::setSceneInstanceAttributes : All attempts to load SSD with SceneAttributes-provided name /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.scn : exist : 0 : loaded as expected type : 1
I0523 17:02:43.109735 734671 Simulator.cpp:324] ::createSceneInstance : Using scene instance-specified Light key : -no_lights-
I0523 17:02:43.109759 734671 MetadataMediator.cpp:68] ::setSimulatorConfiguration : Set new simulator config for scene/stage : /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.ply and dataset : default which is currently active dataset.
I0523 17:02:43.109795 734671 Simulator.cpp:382] ::createSceneInstance : Start to load stage named : /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.ply with render asset : /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.ply and collision asset : /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.ply
W0523 17:02:43.109840 734671 ResourceManager.cpp:252] ::loadStage : Not loading semantic mesh - File Name : /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic_semantic.ply does not exist.
I0523 17:02:43.109850 734671 ResourceManager.cpp:285] ::loadStage : start load render asset /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.ply.
I0523 17:02:43.109856 734671 ResourceManager.cpp:699] ::loadStageInternal : Attempting to load stage /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.ply
E0523 17:02:43.909266 734671 BulletPhysicsManager.cpp:265] Invalid primitive 0
E0523 17:02:43.909301 734671 BulletPhysicsManager.cpp:267] Cannot load collision mesh, skipping
E0523 17:02:43.909307 734671 ResourceManager.cpp:339] ::loadStage : Adding Stage /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.ply to PhysicsManager failed. Aborting scene initialization.
E0523 17:02:43.909317 734671 Simulator.cpp:394] ::createSceneInstance : Cannot load stage : /media/giuliano/wd_ssd/datasets/replica/room_2/habitat/mesh_semantic.ply
I0523 17:02:43.911481 734671 BulletPhysicsManager.cpp:35] Deconstructing BulletPhysicsManager
I0523 17:02:43.911545 734671 PhysicsManager.cpp:50] Deconstructing PhysicsManager
I0523 17:02:43.911561 734671 SemanticScene.h:43] Deconstructing SemanticScene
I0523 17:02:43.911584 734671 SceneManager.h:25] Deconstructing SceneManager
I0523 17:02:43.911589 734671 SceneGraph.h:25] Deconstructing SceneGraph
I0523 17:02:43.912503 734671 Renderer.cpp:71] Deconstructing Renderer
I0523 17:02:43.912528 734671 WindowlessContext.h:17] Deconstructing WindowlessContext
...

were you able to figure out what is causing this?


Pass {git,hg}.sr.ht via srh{,g}t.githack.com

hg.sr.ht raw URLs are in the form https://srhgtcdn.githack.com/~sircmpwn/hg.sr.ht/raw/.hgtags?rev=tip, which needs the query parameter, but index.html says it won't be preserved, so not sure if that's viable.

Live version works like a treat, thanks a lot!

Live version works like a treat, thanks a lot!


Update: Xamarin Forms SNS Docs For Android O/P

Opened originally by @JoshuaNovak919 at https://github.com/awslabs/aws-sdk-xamarin/issues/24

Are there any docs for how to setup and use this plugin for Amazon SNS with Xamarin Forms?
Is there any chance we can get some updated docs/examples? With recent changes made to android O the current example will cause the app to crash.

Hi @JoshuaNovak919
You can find the document for how to setup and use this plugin for Amazon SNS with Xamarin from https://docs.aws.amazon.com/mobile/sdkforxamarin/developerguide/sns.html
You can find a SNS example poject from https://github.com/awslabs/aws-sdk-net-samples/tree/master/XamarinSamples/SNS

Closing this issue due to lack of activity.


Spring cleaning

This does a bunch of housecleaning, much of it breaking changes. But that's OK as we're heading towards 2.0 this release cycle!
While the HVAC library is used in a few places internally, the baseplate client doesn't appear to have any users. So that should be safe to delete. The other deprecation removal gets rid of almost all uses of warn_deprecated inside the library, except trace publishing because we're in flux on if we like sidecars for that purpose.
I'm also dropping support for Python 3.6 as it's going EOL at the end of this year, few services are still using it, nothing's blocking them from upgrading once they're on k8s, and 2.0 is a good time to do it.

cc: @pacejackson fyi the deprecated queue consumer stuff is going away now!

cc: @pacejackson fyi the deprecated queue consumer stuff is going away now!

:fish: looks great! :hocho: :hocho: :hocho:

:fish: looks great! :hocho: :hocho: :hocho:

🐟

🐟


Add 1.28 prow jobs

Description of changes:
Add 1-28 jobs
Related to https://github.com/aws/eks-distro/issues/2206
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm

/approved
/unhold

/approved


Wrong discord link

Join the official Discord server to chat with the community and team members.

Pls, create discord link without timeout.

Fixed. Thanks for the heads up!


Using functional bean defs in AWS Lambda I get: Caused by: java.lang.ClassNotFoundException: org.springframework.cloud.function.web.source.DestinationResolver

Describe the bug
First I don't know if this is a bug, or is intended.
Using functional bean definition, if I remove the dependency spring-cloud-starter-function-webflux and try to deploy that into AWS Lambda, I get this error. If I keep that dependency, it runs fine.
I thought spring-cloud-starter-function-webflux dependency wasn't needed to run on AWS Lambda.
2021-12-15T10:59:14.101-03:00	13:59:14.092 [main] INFO org.springframework.cloud.function.utils.FunctionClassUtils - Searching for start class in manifest: jar:file:/var/runtime/lib/aws-lambda-java-core-1.2.0.jar!/META-INF/MANIFEST.MF

2021-12-15T10:59:14.102-03:00	Manifest-Version: 1.0

2021-12-15T10:59:14.102-03:00	Archiver-Version: Plexus Archiver

2021-12-15T10:59:14.102-03:00	Built-By: adsuresh

2021-12-15T10:59:14.102-03:00	Created-By: Apache Maven 3.5.0

2021-12-15T10:59:14.102-03:00	Build-Jdk: 1.8.0_144

2021-12-15T10:59:14.106-03:00	13:59:14.105 [main] INFO org.springframework.cloud.function.utils.FunctionClassUtils - Searching for start class in manifest: jar:file:/var/runtime/lib/aws-lambda-java-runtime-0.2.0.jar!/META-INF/MANIFEST.MF

2021-12-15T10:59:14.106-03:00	Manifest-Version: 1.0

2021-12-15T10:59:14.106-03:00	Archiver-Version: Plexus Archiver

2021-12-15T10:59:14.106-03:00	Built-By: root

2021-12-15T10:59:14.106-03:00	Created-By: Apache Maven 3.6.3

2021-12-15T10:59:14.106-03:00	Build-Jdk: 1.8.0_302

2021-12-15T10:59:14.107-03:00	13:59:14.107 [main] INFO org.springframework.cloud.function.utils.FunctionClassUtils - Searching for start class in manifest: jar:file:/var/runtime/lib/aws-lambda-java-serialization-0.2.0.jar!/META-INF/MANIFEST.MF

2021-12-15T10:59:14.107-03:00	Manifest-Version: 1.0

2021-12-15T10:59:14.107-03:00	Archiver-Version: Plexus Archiver

2021-12-15T10:59:14.107-03:00	Built-By: root

2021-12-15T10:59:14.107-03:00	Created-By: Apache Maven 3.6.3

2021-12-15T10:59:14.107-03:00	Build-Jdk: 1.8.0_302

2021-12-15T10:59:14.108-03:00	13:59:14.108 [main] INFO org.springframework.cloud.function.utils.FunctionClassUtils - Searching for start class in manifest: jar:file:/var/runtime/amzn-log4j-security-jdk11-0.1alpha.jar!/META-INF/MANIFEST.MF

2021-12-15T10:59:14.108-03:00	Manifest-Version: 1.0

2021-12-15T10:59:14.108-03:00	Premain-Class: Log4jPatch

2021-12-15T10:59:14.108-03:00	Created-By: 11.0.13 (Amazon.com Inc.)

2021-12-15T10:59:14.109-03:00	13:59:14.109 [main] INFO org.springframework.cloud.function.utils.FunctionClassUtils - Searching for start class in manifest: file:/var/task/META-INF/MANIFEST.MF

2021-12-15T10:59:14.110-03:00	Manifest-Version: 1.0

2021-12-15T10:59:14.110-03:00	Created-By: Maven Jar Plugin 3.2.0

2021-12-15T10:59:14.110-03:00	Build-Jdk-Spec: 11

2021-12-15T10:59:14.110-03:00	Implementation-Title: derived-strings-lambda

2021-12-15T10:59:14.110-03:00	Implementation-Version: 0.0.1-SNAPSHOT

2021-12-15T10:59:14.110-03:00	Main-Class: org.springframework.boot.loader.wrapper.ThinJarWrapper

2021-12-15T10:59:14.110-03:00	Start-Class: com.highroads.derivedstringslambda.DerivedStringsLambdaAppl

2021-12-15T10:59:14.110-03:00	ication

2021-12-15T10:59:14.111-03:00	Spring-Boot-Version: 2.6.1

2021-12-15T10:59:14.111-03:00	Spring-Boot-Classes:

2021-12-15T10:59:14.141-03:00	13:59:14.140 [main] INFO org.springframework.cloud.function.utils.FunctionClassUtils - Loaded Start Class: class com.highroads.derivedstringslambda.DerivedStringsLambdaApplication

2021-12-15T10:59:14.141-03:00	13:59:14.141 [main] INFO org.springframework.cloud.function.utils.FunctionClassUtils - Main class: class com.highroads.derivedstringslambda.DerivedStringsLambdaApplication

2021-12-15T10:59:15.508-03:00	. ____ _ __ _ _

2021-12-15T10:59:15.508-03:00	/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \

2021-12-15T10:59:15.508-03:00	( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \

2021-12-15T10:59:15.508-03:00	\\/ ___)| |_)| | | | | || (_| | ) ) ) )

2021-12-15T10:59:15.508-03:00	' |____| .__|_| |_|_| |_\__, | / / / /

2021-12-15T10:59:15.508-03:00	=========|_|==============|___/=/_/_/_/

2021-12-15T10:59:15.527-03:00	:: Spring Boot ::

2021-12-15T10:59:16.109-03:00	2021-12-15 13:59:16.108 INFO 9 --- [ main] o.s.c.f.a.aws.CustomRuntimeInitializer : AWS Handler: org.springframework.cloud.function.adapter.aws.FunctionInvoker

2021-12-15T10:59:16.236-03:00	2021-12-15 13:59:16.236 ERROR 9 --- [ main] o.s.boot.SpringApplication : Application run failed

2021-12-15T10:59:16.236-03:00	java.lang.NoClassDefFoundError: org/springframework/cloud/function/web/source/DestinationResolver

2021-12-15T10:59:16.236-03:00	at org.springframework.cloud.function.adapter.aws.CustomRuntimeInitializer.initialize(CustomRuntimeInitializer.java:52) ~[task/:na]

2021-12-15T10:59:16.236-03:00	at org.springframework.cloud.function.adapter.aws.CustomRuntimeInitializer.initialize(CustomRuntimeInitializer.java:34) ~[task/:na]

2021-12-15T10:59:16.236-03:00	at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:610) ~[task/:na]

2021-12-15T10:59:16.236-03:00	at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:378) ~[task/:na]

2021-12-15T10:59:16.236-03:00	at org.springframework.boot.SpringApplication.run(SpringApplication.java:301) ~[task/:na]

2021-12-15T10:59:16.236-03:00	at org.springframework.cloud.function.context.FunctionalSpringApplication.run(FunctionalSpringApplication.java:88) ~[task/:na]

2021-12-15T10:59:16.236-03:00	at org.springframework.cloud.function.context.FunctionalSpringApplication.run(FunctionalSpringApplication.java:83) ~[task/:na]

2021-12-15T10:59:16.236-03:00	at org.springframework.cloud.function.adapter.aws.FunctionInvoker.start(FunctionInvoker.java:126) ~[task/:na]

2021-12-15T10:59:16.236-03:00	at org.springframework.cloud.function.adapter.aws.FunctionInvoker.<init>(FunctionInvoker.java:70) ~[task/:na]

2021-12-15T10:59:16.236-03:00	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]

2021-12-15T10:59:16.236-03:00	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[na:na]

2021-12-15T10:59:16.236-03:00	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[na:na]

2021-12-15T10:59:16.236-03:00	at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) ~[na:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.EventHandlerLoader.newInstance(EventHandlerLoader.java:409) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.EventHandlerLoader$StreamMethodRequestHandler.fromMethod(EventHandlerLoader.java:333) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.EventHandlerLoader$StreamMethodRequestHandler.makeRequestHandler(EventHandlerLoader.java:346) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.EventHandlerLoader.getThreeLengthHandler(EventHandlerLoader.java:680) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.EventHandlerLoader.getHandlerFromOverload(EventHandlerLoader.java:699) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.EventHandlerLoader.loadEventPojoHandler(EventHandlerLoader.java:811) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.EventHandlerLoader.loadEventHandler(EventHandlerLoader.java:613) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.AWSLambda.findUserMethods(AWSLambda.java:124) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.AWSLambda.startRuntime(AWSLambda.java:230) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.AWSLambda.startRuntime(AWSLambda.java:199) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at lambdainternal.AWSLambda.main(AWSLambda.java:193) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	Caused by: java.lang.ClassNotFoundException: org.springframework.cloud.function.web.source.DestinationResolver. Current classpath: file:/var/task/

2021-12-15T10:59:16.236-03:00	at lambdainternal.CustomerClassLoader.findClass(CustomerClassLoader.java:63) ~[aws-lambda-java-runtime-0.2.0.jar:na]

2021-12-15T10:59:16.236-03:00	at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[na:na]

2021-12-15T10:59:16.236-03:00	at java.base/java.lang.ClassLoader.loadClass(Unknown Source) ~[na:na]

2021-12-15T10:59:16.236-03:00	... 24 common frames omitted

2021-12-15T10:59:16.240-03:00	org/springframework/cloud/function/web/source/DestinationResolver: java.lang.NoClassDefFoundError java.lang.NoClassDefFoundError: org/springframework/cloud/function/web/source/DestinationResolver at org.springframework.cloud.function.adapter.aws.CustomRuntimeInitializer.initialize(CustomRuntimeInitializer.java:52) at org.springframework.cloud.function.adapter.aws.CustomRuntimeInitializer.initialize(CustomRuntimeInitializer.java:34) at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:610) at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:378) at org.springframework.boot.SpringApplication.run(SpringApplication.java:301) at org.springframework.cloud.function.context.FunctionalSpringApplication.run(FunctionalSpringApplication.java:88) at org.springframework.cloud.function.context.FunctionalSpringApplication.run(FunctionalSpringApplication.java:83) at org.springframework.cloud.function.adapter.aws.FunctionInvoker.start(FunctionInvoker.java:126) at org.springframework.cloud.function.adapter.aws.FunctionInvoker.<init>(FunctionInvoker.java:70) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.springframework.cloud.function.web.source.DestinationResolver. Current classpath: file:/var/task/

Sample
my config is described on this ticket https://github.com/spring-cloud/spring-cloud-function/issues/783

Hi @olegz , mind checking on this when you have a min please? I just wanna make sure if I'm doing things right or it's a bug

I tested it before releasing 3.1.6 and actually had to fix something and it works, so this means there may be something that is missing hence my inability to reproduce. So the best way is for you to create a small project that reproduces the issue and push it to GotHub so we can clone, run and see what the issue is

Thx for the reply.
I believe this was happening with one of the aws sample project in here. Anyway, lemme check that out or get a project in github and come back to you. Thanks again.

@olegz I confirm that the sample project in this project, function-functional-sample-aws, has the same issue.

use the 3.1.6 version
remove/comment spring-cloud-starter-function-webflux dependency
uncomment this line in the main class:
FunctionalSpringApplication.run(FunctionConfiguration.class, args);

@olegz sorry to bother you, any chance you reviewed last comment?

We're on holidays, i'll try to look if i get a chance otherwise will look after the holidays

thx!

@adolfo-cia So, finally I managed to take a look and here is the deal.
Based on your stack trace i see that you are using Custom Runtime. . . That doesn't actually mean that you do, but there was a bug that would bootstrap it anyway. It was fixed, which means you are using some older 3.1.x version.
Consider moving to 3.2.1.
That said, the DestinationResolver is no longer necessary. In fact that whole block of code (the one that triggered the exception) is no longer necessary, so I am removing it as part of this issue.

I was also able to backport it to 3.1.7-SNAPSHOT , just need to release it


Problem with overwriting variables from .env

Behaviour
If I restart VS Code and modify the .env file, the new variable values from the .env file do not get applied to my FastAPI application.
Steps to reproduce problem:

Go to the vs code settings tab and make sure that the Python:Env File field has the value ${workspaceFolder}/.env

Create a .env file and add the variable MY_VAR=1.
Save the file.
Close VS Code by right-clicking the VS Code icon and selecting "Quit".
Open VS Code.
Change the variable MY_VAR in the .env file to MY_VAR=2.
Enter the command echo $MY_VAR in the terminal.

Description
I had to spend around two days troubleshooting an issue where VS Code automatically sets environment variables at terminal launch, causing non-obvious code behavior.
Considering that most of the audience are junior and middle-level developers, I believe many might face this problem. Is there a way to make this feature more explicit, such as prompting the user to enable or disable this setting? Or maybe we can make it opt-in instead of opt-out?

Diagnostic data

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

2024-07-23 15:10:15.854 [info] Experiment 'pythonCreateEnvOnPipInstall' is active
2024-07-23 15:10:15.854 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-07-23 15:10:15.854 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-07-23 15:10:15.854 [info] Experiment 'pythonTestAdapter' is active
2024-07-23 15:10:15.854 [error] Reading directory to watch failed [Error: ENOENT: no such file or directory, scandir '/Users/mun/code/test/.pixi/envs'
	at Object.readdirSync (node:fs:1515:3)
	at t.readdirSync (node:electron/js2c/node_init:2:11289)
	at /Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/out/client/extension.js:2:574598
	at /Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/out/client/extension.js:2:574789
	at Array.map (<anonymous>)
	at d.initWatchers (/Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/out/client/extension.js:2:574507)
	at async d.ensureWatchersReady (/Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/out/client/extension.js:2:536827)] {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path: '/Users/mun/code/test/.pixi/envs'
}
2024-07-23 15:10:15.854 [error] Dir "/Users/mun/code/test/.pixi/envs" is not watchable (directory does not exist)
2024-07-23 15:10:15.854 [info] Default formatter is set to charliermarsh.ruff for workspace /Users/mun/code/test
2024-07-23 15:10:15.854 [info] Python interpreter path: ~/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/python
2024-07-23 15:10:15.860 [info] > pyenv which python
2024-07-23 15:10:15.860 [info] cwd: .
2024-07-23 15:10:16.393 [info] > pixi --version
2024-07-23 15:10:16.393 [error] [Error: spawn pixi ENOENT
	at ChildProcess._handle.onexit (node:internal/child_process:286:19)
	at onErrorNT (node:internal/child_process:484:16)
	at process.processTicksAndRejections (node:internal/process/task_queues:82:21)] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn pixi',
  path: 'pixi',
  spawnargs: [ '--version' ]
}
2024-07-23 15:10:16.393 [warning] could not find a pixi interpreter for the interpreter at /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/python
2024-07-23 15:10:16.448 [info] > . ~/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/printEnvVariables.py
2024-07-23 15:10:16.448 [info] shell: zsh
2024-07-23 15:10:16.603 [info] > /usr/bin/python3 ~/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/printEnvVariables.py
2024-07-23 15:10:16.603 [info] shell: zsh
2024-07-23 15:10:16.680 [info] Setting environment variable MY_VAR in collection to 1 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:10:16.680 [info] Prepending environment variable PATH in collection with /Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/deactivate/zsh:/Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:10:16.680 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:10:16.680 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:10:16.680 [info] Prepending environment variable PS1 in collection with test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-07-23 15:10:16.680 [info] Send text to terminal: /usr/bin/python3 /Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2024-07-23 15:10:17.363 [info] Starting Pylance language server.
2024-07-23 15:10:20.290 [warning] could not find a pixi interpreter for the interpreter at /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/python
2024-07-23 15:10:20.294 [info] > . ~/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/printEnvVariables.py
2024-07-23 15:10:20.294 [info] shell: zsh
2024-07-23 15:10:20.322 [info] Setting environment variable MY_VAR in collection to 2 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:10:20.322 [info] Prepending environment variable PATH in collection with /Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/deactivate/zsh:/Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:10:20.322 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:10:20.322 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:10:20.322 [info] Prepending environment variable PS1 in collection with test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-07-23 15:14:44.889 [warning] could not find a pixi interpreter for the interpreter at /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/python
2024-07-23 15:14:44.889 [warning] could not find a pixi interpreter for the interpreter at /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/python
2024-07-23 15:14:44.905 [info] > . ~/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/printEnvVariables.py
2024-07-23 15:14:44.905 [info] shell: zsh
2024-07-23 15:14:44.905 [info] > . ~/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/printEnvVariables.py
2024-07-23 15:14:44.905 [info] shell: zsh
2024-07-23 15:14:44.934 [info] Setting environment variable VSCODE_L10N_BUNDLE_LOCATION in collection to  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:14:44.934 [info] Prepending environment variable PATH in collection with /Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/deactivate/zsh:/Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:14:44.934 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:14:44.934 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:14:44.934 [info] Prepending environment variable PS1 in collection with test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-07-23 15:14:44.935 [info] Setting environment variable VSCODE_L10N_BUNDLE_LOCATION in collection to  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:14:44.935 [info] Prepending environment variable PATH in collection with /Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/deactivate/zsh:/Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:14:44.935 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:14:44.935 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 15:14:44.935 [info] Prepending environment variable PS1 in collection with test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-07-23 15:14:45.129 [info] Discover tests for workspace name: undefined - uri: /Users/mun/Library/Application Support/Code/User/settings.json
2024-07-23 16:52:09.240 [warning] could not find a pixi interpreter for the interpreter at /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/python
2024-07-23 16:52:09.250 [info] > . ~/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/printEnvVariables.py
2024-07-23 16:52:09.250 [info] shell: zsh
2024-07-23 16:52:09.296 [info] Setting environment variable VSCODE_L10N_BUNDLE_LOCATION in collection to  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 16:52:09.296 [info] Prepending environment variable PATH in collection with /Users/mun/.vscode/extensions/ms-python.python-2024.10.0-darwin-arm64/python_files/deactivate/zsh:/Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 16:52:09.296 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/mun/Library/Caches/pypoetry/virtualenvs/test-3KCHDMEl-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 16:52:09.296 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2024-07-23 16:52:09.296 [info] Prepending environment variable PS1 in collection with test-py3.12 {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2024-07-23 17:09:14.521 [info] Discover tests for workspace name: test - uri: /Users/mun/code/test/config.py
2024-07-23 17:09:20.298 [info] Discover tests for workspace name: test - uri: /Users/mun/code/test/config.py

Can you try adding
"python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"]

into your settings.json and see if you still experience this behavior?
Also make sure to control+shift+p (cmd+shit+p on mac) and type "Python: Clear Cache reload".

Is this related to #23720?

@andylizf Are you talking about the feature request that was mentioned

updating environment variables as a part of .env file modification is a feature request. in #23280 ?

Yeah. The issue seems closely related to what I observed in #23280, where environment variables set in the terminal do not update after modifying the .env file. Both issues highlight the persistent nature of environment variables in the terminal even after changes to the .env file or deactivating the Python extension.
This behavior can be confusing, especially since the documentation doesn't clearly outline this.

I've created a debt item on this just now: https://github.com/microsoft/vscode-python/issues/24034
It's bit tricky since there are no real official standard regarding .env files, but agreed yes we should have better documentation of what is going on. Let's track this: https://github.com/microsoft/vscode-python/issues/24034

Hi @waterstark Would https://code.visualstudio.com/docs/python/environments#_environment-variables help you better understand .env with Python extension? Curious to hear what you think. Thanks

Thanks for your contribution! It seems that the documentation explains how .env files are used when the extension is active, but doesn't mention what happens after the extension is deactivated or when updates are made to the .env file during this state.
On Sep 17, 2024, 2:40 PM -0700, Anthony Kim @.***>, wrote:

Hi @waterstark Would https://code.visualstudio.com/docs/python/environments#_environment-variables help you better understand .env with Python extension? Curious to hear what you think. Thanks
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>


[newrelic-logging] Adds option for additional filter from values file

Is this a new chart
No
What this PR does / why we need it:
This change allows adding additional filters to fluent bit from the values file. Currently this requires downloading and modifying the chart.
I've used this to add logtype attributes to logs.
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [mychartname])

this relates to https://github.com/newrelic/helm-charts/issues/76 I'd like to be able to set additional outputs such as S3 for long term storage of logs.

Please note that it is currently possible to add extra filters, as now the full Fluent Bit configuration is editable via values.yml: https://github.com/newrelic/helm-charts/blob/master/charts/newrelic-logging/values.yaml#L49-L137
So, you could just use the following for your use case:
fluentBit:
    config:
        filters: |
      [FILTER]
          Name                kubernetes
          Match               kube.*
          # We need the full DNS suffix as Windows only supports resolving names with this suffix
          # See: https://kubernetes.io/docs/setup/production-environment/windows/intro-windows-in-kubernetes/#dns-limitations
          Kube_URL            https://kubernetes.default.svc.cluster.local:443
          Buffer_Size         ${K8S_BUFFER_SIZE}
          K8S-Logging.Exclude ${K8S_LOGGING_EXCLUDE}
      [FILTER]
          Name           record_modifier
          Match          *
          Record         cluster_name ${CLUSTER_NAME}
      [FILTER]
          [... your extra filter definition here...]

        outputs: |
      [OUTPUT]
          Name           newrelic
          Match          *
          licenseKey     ${LICENSE_KEY}
          endpoint       ${ENDPOINT}
          lowDataMode    ${LOW_DATA_MODE}
          Retry_Limit    ${RETRY_LIMIT}
      [OUTPUT]
          [...your extra OUTPUT definition here...]

Bear in mind that you currently need to include the existing filters/outputs as well as you own. When we merge this other PR #609, we'll be able to specify just the extra ones instead of rewriting them all.


Error: transition superseded

Am getting this error Error: transition superseded  how can I solve it

Same here. pls fix

Are you accessing directly a state ?

Same here, my root state is loaded but when I try to access another state I get Error: transition superseded

Transition superseded is probably caused by a bug in your code.
A transition is a long running operation (due to async processes, etc).  Transition superseded means that there was a transition #1 started and it hasn't yet completed.  While it was running, a new transition #2 was also started.  Transition #2 supersedes Transition #1.  The promise for the transition is rejected with the message "Error: Transition Superseded" so you know the original transition is now aborted.
This is normal behavior if you start a transition, then supersede it with a new transition.

I'm not sure what would print the error message (I don't think we log anything like that in ui-router 0.2.x).
In ui-router 1.0 we have a defaultErrorHandler which logs errors to the console, including Transition Superseded.  If you don't want to log Transition Superseded in ui-router 1.0, you should customize the $state.defaultErrorHandler() and filter out errors that look like the Transition Superseded ones.
Closing because this is probably not a bug.  However, I'll reopen if a reproduction can be posted that demonstrates a bug.

FWIW, I had an old version of angular-ui-router.  When I updated angular-ui-router, the issue went away.  Did this fix anyone else?

@joshunger I did updated UI-Router and it resolved the issue.

it starts to yelling me that when updating my app to angular 1.6.1

@blackendstudios Don't update angular, try updating Angular UI Router. I am running Angular 1.3.7 with updated Angular UI Router of 0.3.2 and I am not longer seeing Error: transition superseded

@justinotero I fixed it, look!! http://stackoverflow.com/questions/41450712/angularjs-and-ui-router-error-transition-superseded-during-angularjs-unit-te/41515812#41515812
you need to update both angular and the ui-router

Just wanted to add to the tally of people who upgraded to AngularJS 1.6.1 and UI-Router 0.3.2 who are consistently getting the "Error: transition superseded" in the console.

Yeah, I'm getting it also (angular 1.6.1 and ui-router 0.3.2)

It'd be super helpful if the error message for superseded transitions had information about what transition of fromState->toState collided with what other transition from fromState2->toState2.

I was using
angular.module('myApp').run(appRun);     appRun.$inject = ['$state'];     function appRun($state) {         $state.go('home');     }
In my app config file. As I removed the logic from app.run, it got fixed.

It'd be super helpful if the error message for superseded transitions had information about what transition of fromState->toState collided with what other transition from fromState2->toState2.

@severin2 UI-Router 1.0 has the $trace service which has those details.

I am getting this with angular 1.6.1 and ui-router 0.3.2. If it is any helpful I generated the app using mean.io stack version 0.5.5. I know, I know I should probably be shouting at "mean" guys but I figured putting it here my sort of push the issue a bit higher.

See also: https://github.com/angular-ui/ui-router/issues/2889#issuecomment-273368236
0.4.0 release should handle all rejected promises that UI-Router is responsible for including this one.

When is 0.4.0 coming out?

@mhawila It's out: https://github.com/angular-ui/ui-router/releases/tag/0.4.0

I had this error today  ...
I fixed it by changing the versions of angular.min.js to 1.5.8  and angular-ui-router.js to 0.2.10

0.2.10 release is almost three years old.  I do not recommend

I'm also getting this error - is there a way to fix this with Angular 1.6.1?

@mugwag check my comment above if it's helpful

try angular version: 1.5.1
and angular-ui-router: 0.2.18   that combination works fine
for example if you are using bower:
bower install angular#1.5.1
bower install angular-ui-router#0.2.18

I get that error before but i upgrade my angular and ui-router and the error gone.
angular: 1.6.2
ui-router: 0.4.2

The version to be on is either 0.4.2 or 1.0.0-rc.1

try angular version: 1.5.1

1.5.1 doesn't show the error, but that's because logging of rejected promises wasn't added until angular version 1.6.0.

The issue was fixed in UI-Router 0.4.2.  Update.  See issue #3120

Update to 0.4.2, new error
TypeError: Cannot create property 'resolveAs' on string '

'

angualr: 1.6.2
ui-router: 0.4.2

The promise for the transition is rejected with the message "Error: Transition Superseded" so you know the original transition is now aborted.

I'm OK with aborting the original transition (the logic to go to a different state is legit), but is there a way to "gently abort" the original transition before calling $state.target, so that an error is not produced?

There currently is not a way to do that. Will you please open a separate issue?

Just wanted to chime in here, because I was getting maddening Transition Superseded errors when I tried to navigate to perfectly valid routes with valid params via traditional means: just clicking through tabs until I got there... but I was always being redirected to my otherwise state. (I was, however, able to directly input the full url and access the state without being redirected.)
Background: I had just upgraded my angular 1.5.8 application from ui-router 0.3.1 to 1.0.0-rc1 and was going through the migration guide and googling around to fix bugs as they arose, and I came across this (admittedly outdated) summary of breaking changes and followed down the path of depending on the ui.router.state.events module to be able to keep the $stateChange events I had been using with the previous version. Soon after I decided to implement proper $transition hooks and cross check that the hooks I put in place were accomplishing the same purpose that the $stateChange events had been doing prior. Satisfied that the hooks were working properly, I removed all the  $stateChange event listeners.
HOWEVER, I didn't think to also remove the dependency on ui.router.state.events, and while angular never errored because of the now-unused dependency, there must have been some mischief happening under the hood, because after more than a week of googling in vain, I finally got around to discarding  ui.router.state.events from my dependencies, and suddenly I could navigate to the desired states without issue.

From this:
function silenceUncaughtInPromise (promise) {   return promise.then(undefined, function() {}) && promise; }
To this:
function silenceUncaughtInPromise (promise) {   return promise.then(undefined, function() {}); }
I'm not sure what was an intention to return promise without catched error, but there is big chance that all other "unhandled promise rejection" issues will be fixed as well, because this function is a wrapper of any kind of rejecting in ui-router.

Take care when performing your update to angular-ui-router.
I called bower update angular-ui-router, but it kept it on the same version. Performing bower install angular-ui-router completed the update appropriately.

I followed @SensationSama  suggestion and the problem has solved for me. Before, I updated the angular-animate to 1.6.2 version.

Performing bower install angular-ui-router completed the update and resolved this issue, for me.

So, the bower has been like below:
    "angular": "1.6.4",     "angular-animate": "1.6.2",     "angular-ui-router": "0.4.2"

Just for the record. I just ran into this same issue, updating ui router to something above 0.3.2 fixes it (or it did for me at least).

I got the same issue, I solved this by updating to<EMAIL_ADDRESS>.

This happens to me when i open a state directly by opening a page that is registered as a state. For example: http://localhost:9000/#/myURL. When im opening it with a link that is on the page (ui-sref="myURL") then it doesn't show up.
Im using:
"angular-ui-router": "^1.0.12",
"angular": "^1.6.8",

The problem was that I was using $state.go in one of my controllers. A solution, that worked for me can be found here: https://stackoverflow.com/questions/42659302/angular-ui-router-1-0-0rc-transition-superseded-on-a-redirect#answer-44654316

I had the same error with the first page load. But when navigated from url to url it was okay.
I've found the reason: behaviour of $q.reject changed. In later versions of angular it immediately throws error in console log when you create it. I.e. following lines write erros to console:
var TransitionSuperseded = $q.reject(new Error('transition superseded'));
var TransitionPrevented = $q.reject(new Error('transition prevented'));
var TransitionAborted = $q.reject(new Error('transition aborted'));
var TransitionFailed = $q.reject(new Error('transition failed'));

I've changed this lines:
var TransitionSuperseded = function () { return $q.reject(new Error('transition superseded')); };
var TransitionPrevented = function () { return $q.reject(new Error('transition prevented')); };
var TransitionAborted = function () { return $q.reject(new Error('transition aborted')); };
var TransitionFailed = function () { return $q.reject(new Error('transition failed')); };

And changed in other lines  TransitionSuperseded to  TransitionSuperseded().
This fixed errors.

Transition superseded is probably caused by a bug in your code.
A transition is a long running operation (due to async processes, etc). Transition superseded means that there was a transition #1 started and it hasn't yet completed. While it was running, a new transition #2 was also started. Transition #2 supersedes Transition #1. The promise for the transition is rejected with the message "Error: Transition Superseded" so you know the original transition is now aborted.
This is normal behavior if you start a transition, then supersede it with a new transition.
I'm not sure what would print the error message (I don't think we log anything like that in ui-router 0.2.x).
In ui-router 1.0 we have a defaultErrorHandler which logs errors to the console, including Transition Superseded. If you don't want to log Transition Superseded in ui-router 1.0, you should customize the $state.defaultErrorHandler() and filter out errors that look like the Transition Superseded ones.
Closing because this is probably not a bug. However, I'll reopen if a reproduction can be posted that demonstrates a bug.

But how doy explain that making this changes, the error "disappears"

I upgraded the following and all the error messages went away.
angular from 1.6.0 to 1.8.3
angular-ui from 0.2.18 to 0.4.3 (hit a breaking change going to v1 and haven't investigated it yet)
Those upgrades solved 1 error sequence.
The final error sequence was solved upgrading ui-bootstrap from 1.2.5 to 2.5.0.


apps: upgraded kured to 1.12.1

What this PR does / why we need it:
Upgraded kured chart to 4.4.1 and app version to 1.12.1
Which issue this PR fixes (use the format fixes #<issue number>(, fixes #<issue_number>, ...) to automatically close the issue when PR gets merged): fixes #1226
Public facing documentation PR (if applicable)

Special notes for reviewer:
Add a screenshot or an example to illustrate the proposed solution:
Checklist:

[x] Added relevant notes to WIP-CHANGELOG.md
[x] Proper commit message prefix on all commits
[ ] Updated the public facing documentation
Is this changeset backwards compatible for existing clusters? Applying:

[ ] is completely transparent, will not impact the workload in any way.
[ ] requires running a migration script.
[ ] will create noticeable cluster degradation.
E.g. logs or metrics are not being collected or Kubernetes API server
will not be responding while upgrading.
[ ] requires draining and/or replacing nodes.
[ ] will change any APIs.
E.g. removes or changes any CK8S config options or Kubernetes APIs.
[ ] will break the cluster.
I.e. full cluster migration is required.

Chart checklist (pick exactly one):

[ ] I upgraded no Chart.
[x] I upgraded a Chart and determined that no migration steps are needed.
[ ] I upgraded a Chart and added migration steps.

Pipeline config (if applicable)
If you change some config options (e.g. add/rename variable or change the default value) you may need to update the config used by the pipeline in pipeline/config.

When upgrading the version of an upstream chart. Please copy the whole chart with all of its changes. Looks like you just added the changes in the Chart.yaml file. https://github.com/kubereboot/charts/tree/kured-4.4.1/charts/kured
You can use this to copy the chart if you want: https://github.com/elastisys/compliantkubernetes-apps/blob/main/helmfile/upstream/README.md#example-on-how-to-add-or-update-a-chart

Thanks Viktor, I was working on this yesterday and I have updated the PR now.


Redesign/remove IOperationLogger

https://github.com/microsoft/reverse-proxy/blob/00c4e7c77059b7c4a9912a4c89c9a05026d55628/src/ReverseProxy.Core/Middleware/LoadBalancingMiddleware.cs#L47-L49
Using the IOperationLogger allocates a closure per call per request. We need to re-think how to write these start/stop/failed logs.

Perhaps if there's Execute<T>(string, Action<T> callback, T state)? That would allow the func passed in to be static.

We should avoid this pattern in general.

What about a using based pattern with IDisposable structs/pooled objects? The downside is it wouldn't be able to log errors.
Or do we just give up on the idea of having a helper for logging the start and end of an operation and have everyone do it manually.

What about a using based pattern with IDisposable structs/pooled objects? The downside is it wouldn't be able to log errors.

It should be explicit.

Or do we just give up on the idea of having a helper for logging the start and end of an operation and have everyone do it manually?

I'd prefer that.
The issue with callbacks are the ones we all hate:

Breaks control flow
Creates closures, which then need a state object to be worked around
Need async versions of the callback, now it's harder to optimize for the non-async code paths

@MihaZupan this directly relates to your diagnostics work this milestone, I'll assign it to you for tracking.

Closing this issue as the problem discussed above ("Redesign/remove IOperationLogger") has been dealth with by #501.
Opening a new issue for the user story.

Closing this issue as the problem discussed above ("Redesign/remove IOperationLogger") has been dealth with by #501.
Opening a new issue for the user story.


Faceted browsing results table mockup:

Faceted browsing results table mockup:
Query:
MATCH (n:Martinotti:Class)-[:has_exemplar]->(i:Individual) return n.label, i.cell_set_preferred_alias + i.cell_set_additional_aliases, labels(n)
Show example:
From a single tag -> results table mockup
Header = all tags in table
Columns:
Ontology term | synonyms  | cell_set_preferred_alias | tags

Mockup: https://www.figma.com/file/WhKGRN9tDEa8ScpLeZEHaB/Workshop-Mockups?node-id=0%3A1

@dosumis also added this spreadsheet with all the labels to the workshop materials: https://docs.google.com/spreadsheets/d/1JGpZTEMj_f8qVr9krD1km5fs3WAWr5ts7F5C8DcUy_U/edit#gid=0

Spreadsheet looks good.  Please change nodes -> cell though.
Thanks!


Add caching

Requests for the same API data should be cached. https://openweathermap.org/appid#apicare

Done


Code improvements!

This pull-request aims to make the code more functional and better to read. I've made some changes and would like to propose some adoptions to new code
Improvements
lib/client/strategies/api.js

[x] A promise must always return a Promise<a>. Returning undefined is undefined behavior
[x] Use partial instead of Function.prototype.bind

lib/client/index.js

[x] Use a standard for merge (new values always on right)
[x] Use partial instead of Function.prototype.bind
[x] Unary cut: x => f(x) to f
[x] Check function by instanceof via is, instead of getting the type to compare

lib/request.js

[x] Change require(v) by import v, which does the same thing
[x] merge is made to work as Functor f, ∀ a. merge :: default{f(a)} → override{f(a)} → f(a)
[x] Make handleResult point-free

Suggestions

let is bad. Mutability is bad for our situation, it doesn't matter if it is var or let. Avoid it. Transform data instead of changing
Don't leave alone promises. ALWAYS RETURN A PROMISE FROM A PROMISE WITHOUT IMPLICIT CONVERSION!

Please, test everything before merging! Thanks in advance!

@GitCop, I'd like if you stop spamming me, please...

Ok, tomorrow I'll fix the commits and the linter errors that are blocking the merge. Meanwhile, I'll close this pull-request!

lolololololololololololo git coped


Recent merge breaks specs?

Am working on a potential PR (to add option for null api cache to aid ruby projects that use VCR) and after pull of recent merge (3285f6d633886c9f4baed40b456703e0c86ce131), specs break because of undefined local variable or method `token_cache' for Prismic::API:Class at line 128 of lib/prismic/api.rb

Yes indeed, the build was broken. It's fixed, sorry for the trouble!


Add overloaded subscribe / subscribeAll operators

That take consumers for onNext, onError and a runnable for OnComplete

Released in 2.0.0-MI3


Fix merch card integration tests

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (26f56a9) 97.90% compared to head (cf71caf) 97.86%.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #509      +/-   ##
==========================================
- Coverage   97.90%   97.86%   -0.04%
==========================================
  Files          26       26
  Lines        2907     2907
==========================================
- Hits         2846     2845       -1
- Misses         61       62       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Update cpp generator to handle inf from  float

Use std::numeric_limits::min/max() functions plus the appropriate value to encode -inf/inf so that when code is generated we get the following:
auto a = float (( numeric_limits<float>::max() + 1);
auto b = float (numeric_limits<float>::min() - 1);

vs
auto a = float(inf);
auto b = float(-inf);

which can't be assigned. Originally tried to use std::numeric_limits::inifnity() but that still causes a conversion to inf/-inf before again assigning it to the creation of float incorrectly

We should add a test to test_verify that uses an infinity literal. We could probably pass it to isnan operator so we avoid nans in the output.

This is done as well. Let me know if you want an updated test. I guess maybe i could template this out for double/float then too

Odd, I seem to be failing now on quantization.cpp
Looks like the tolerance has shrunk from 80 for the default value, to 1e4.
[   RUN    ] int8_quantization
0.00099522

Turns out issue wasn't with int8_quant but with using std::to_string(x) instead of inx->get_literal()->to_string() which doesn't truncate the value on conversion. Waiting till CI passes. Will be back later this evening if there's anymore comments

Rebased this off develop to fire off CI. Had pulled in another branch during debug for int8 changes 'fp16-int8-quantize'

This still has changes from #1757. Looking at the files changed tab still shows changes from #1757.

Odd, my rebase still included your changes since I did a merge. I've backed them out now as Khalique and I originally thought your changes would help fix the accuracy issue when we first saw it.


Define gccFromSrc to allow building gcc from a source

Description of changes
This PR defines a pkgs.gccFromSrc function which uses gccFun and wrapCC to allow building a custom gcc package from a src, such as a local directory or a GitHub repository.
It also updates some parts of the gcc definitions slightly to account for upcoming version 14. Basically the only real change necessary is that flex needs to be provided as an input.
With this change, it's possible to define custom GCC 14 as in the following example. Below, we define pkgs.gcc14 and pkgs.pkgsCross.riscv64.gcc14, with the intention to use the RISC-V targeting cross compiler for building an installer image for system supporting xthead extensions.
{
  nixpkgs.overlays = [
    (_final: prev: {
      gcc14 = prev.gccFromSrc {
        majorMinorVersion = "14.0.1";
        src = /path/to/gcc/repo;
      };
    })
    (_final: prev: {
      pkgsCross = lib.mapAttrs
        (_name: value: value // {
          gcc14 = value.gcc14.override {
            # NOTE: needed to build `libstdc++-v3` since it uses `std=gnu++26` which `13.2.0`
            # doesn't support, and local `xgcc` doesn't get built when `buildPlatform !=
            # hostPlatform`.
            stdenv = prev.overrideCC value.stdenv value.buildPackages.gcc14;
          };
        })
        prev.pkgsCross;
    })
  ];

  environment.systemPackages = with pkgs; [
    pkgsCross.riscv64.buildPackages.gcc14
    pkgsCross.riscv64.gcc14
  ];
}

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

@Synthetica9 @vcunat @Ericson2314 @trofi @skeuchel

Do you have a specific use-case in mind which is not covered by a gcc13 override?

Thanks for the feedback.
I'm still pretty new to Nix (only started about a month ago) so some things I'm still trying to understand.
I did initially try to re-use the gcc13 derivation with overrides but I couldn't get it to work. What I was missing was that it is necessary to take into account the wrapper and actually modify the underlying .cc derivation.
With that change, it seems sufficient to use overrides on gcc13 for what I was trying to achieve so I'll close this PR.
The remaining difference with the PR versus overriding gcc13 is that modifying the nativeBuildInputs does not seem to work correctly with splicing.
For example, to recreate my example above, the nativeBuildInputs for pkgsCross must also be changed (see below) because now the flex package it includes is for a riscv64-host when it should be for the native-host. Maybe there is a better way to handle that issue also?
{
  nixpkgs.overlays = [
    (final: prev:
      {
        # default-gcc-version = 14;
        gcc_latest = final.gcc14;
        gcc14 = prev.wrapCC (prev.gcc13.cc.overrideAttrs (oldAttrs:
          let snapshot = "20240407"; in
          rec {
            name = "gcc-${version}";
            version = "14.0.0-dev.${snapshot}";
            passthru = oldAttrs.passthru // { inherit version; };
            src = prev.stdenv.fetchurlBoot {
              url = "https://gcc.gnu.org/pub/gcc/snapshots/LATEST-14/gcc-14-${snapshot}.tar.xz";
              hash = "sha256-18uvcOoe1UHI2laXljf80zGBRZ9YIXN2ynSVpg7QqmU=";
            };
            nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ prev.flex ];
            patches = prev.lib.filter
              (patch: !prev.lib.hasSuffix "ICE-PR110280.patch" (builtins.baseNameOf patch))
              oldAttrs.patches;
          }));
        gcc14Stdenv = prev.overrideCC final.gccStdenv final.gcc14;
      })
    (_final: prev: {
      pkgsCross = lib.mapAttrs
        (_name: value: value // {
          gcc14 = prev.wrapCC ((value.gcc14.cc.override {
            # NOTE: needed to build `libstdc++-v3` since it uses `std=gnu++26` which `13.2.0`
            # doesn't support, and local `xgcc` doesn't get built when `buildPlatform !=
            # hostPlatform`.
            stdenv = prev.overrideCC value.stdenv value.buildPackages.gcc14;
          }).overrideAttrs (oldAttrs: {
            # NOTE: the included `flex` package is for the wrong host architecture so we need to replace it.
            nativeBuildInputs = prev.lib.filter (p: p.pname != "flex") oldAttrs.nativeBuildInputs ++ [ prev.buildPackages.flex ];
          }));
        })
        prev.pkgsCross;
    })
  ];

  environment.systemPackages = with pkgs; [
    # gcc14
    # pkgsCross.riscv64.buildPackages.gcc14
    pkgsCross.riscv64.gcc14
  ];
}

After some more experimentation I figured out how to address the last issue I mentioned, where the splicing was not working correctly.
The fix was to change the inclusion of flex to buildPackages.flex, in other words change the line in @skeuchel example:
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ super.flex ];

to
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ super.buildPackages.flex ];

It's also possible to do the stdenv override in the original package by using a conditional to check for the platforms.
So the full working example with cross-compilation looks like this:
{
  nixpkgs.overlays = [
    (final: prev:
      {
        gcc_latest = final.gcc14;
        gcc14 = prev.wrapCC ((prev.gcc13.cc.override (self: {
          stdenv =
            if self.stdenv.buildPlatform == self.stdenv.hostPlatform
            then self.stdenv
            # NOTE: needed to build `libstdc++-v3` since it uses `std=gnu++26` which `13.2.0`
            # doesn't support, and local `xgcc` doesn't get built when `buildPlatform !=
            # hostPlatform`.
            else prev.overrideCC self.stdenv final.buildPackages.gcc14;
        })).overrideAttrs (oldAttrs:
          let snapshot = "20240407"; in
          rec {
            name = "gcc-${version}";
            version = "14.0.0-dev.${snapshot}";
            passthru = oldAttrs.passthru // { inherit version; };
            src = prev.stdenv.fetchurlBoot {
              url = "https://gcc.gnu.org/pub/gcc/snapshots/LATEST-14/gcc-14-${snapshot}.tar.xz";
              hash = "sha256-18uvcOoe1UHI2laXljf80zGBRZ9YIXN2ynSVpg7QqmU=";
            };
            nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ prev.buildPackages.flex ];
            patches = prev.lib.filter
              (patch: !prev.lib.hasSuffix "ICE-PR110280.patch" (builtins.baseNameOf patch))
              oldAttrs.patches;
          }));
        gcc14Stdenv = prev.overrideCC final.gccStdenv final.gcc14;
      })
  ];

  environment.systemPackages = with pkgs; [
    pkgsCross.riscv64.buildPackages.gcc14
    pkgsCross.riscv64.gcc14
  ];
}


Sidebar: implemented initial-collapse prop

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---
Description
Implemented initial-collapse prop for ifx-sidebar component
Related Issue
#949

📦 Published PR as canary version: 20.44.3--canary.974.ef3c1a4b69b63f84a4808662af7a8ddb18d992a9.0

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

@tishoyanchev fixed -

Initial-collapse is not included in Storybook
border-indicator is not set correctly. It is set twice.

When multiple items have active=true, and initial-collapse is set to true, only the first active item is not collapsed.

When multiple items have active=true, and initial-collapse is set to true, only the first active item is not collapsed.

@tishoyanchev I didn't get you. Did you mean 'initial-collapse is set to false'?
The current logic is - if there are multiple items with active = true, and initial-collapse = false, then only the first active item in the list will be expanded  and rest of them be will untouched

@tishoyanchev I didn't get you. Did you mean 'initial-collapse is set to ~true~ false'? The current logic is - if there are multiple items with active = true, and initial-collapse = false, then only the first active item in the list will be expanded and rest of them be will untouched
Do you want it to expand all the active items?

Yes, sorry. I meant to say when initial-collapse is false.
Yes, the purpose of initial-collapse false is so active items are not collapsed. There is no logic in applying this to only 1 active item.

Clean the index.html
When I make two sibling items active, only the first one becomes active, and I get a console error message that says only one active item is allowed. Can you please remove this console error? There is no requirement that users must have only one active item. Also why if the two items are siblings, then both cannot be active, but if another item from another section is active, then that's okay? This should not be the case. Any number of items should be able to be active.


[ doesn't check if current cell is 0

The following code shouldn't ask for user input but it does.
[,]
[ needs to check the current cell before executing the loop but it doesn't.

LoopStart can store the index of its matching LoopEnd (just like LoopEnd) and jump to it if current cell is 0.


Large bundle size because all font-awesome icons are included

Hi, I noticed a huge bundle size for all projects using ual-reactjs-renderer.
Bundlephobia reports the same - 2MB minified.
After some investigation, the issue seems to be the usage of react-icons which includes all SVGs.

Fixed this in #104 and published a temporary (?) package under @cmichel/ual-reactjs-renderer.
If the changes or another fix is merged upstream, I'll deprecate my package

How is this not fixed over a year later?
The build size of the project I'm working on tripled just by including this library..

@josephjguerra


fix(PeriphDrivers): Add Strength Configuration for ME14

Description
This commit add strength selection for output mode.
Checklist Before Requesting Review

[x] PR Title follows correct guidelines.
[x] Description of changes and all other relevant information.
[ ] (Optional) Link any related GitHub issues using a keyword
[ ] (Optional) Provide info on any relevant functional testing/validation.  For API changes or significant features, this is not optional.

Merge from main to get the Bootloader app size update. That should get the workflow to pass.

Merge from main to get the Bootloader app size update. That should get the workflow to pass.

Thanks Sihyung for quick action. The previous problem seems resolved, however now there's different errors that doesn't seem related with this task. Could you take a look at them please?


snap path not working after restart

First of all, thanks for this awesome script. It was really easy and works pretty well.
I installed GitKraken and IntelliJ IDEA Ultimate with snap on my WSL 2 system. I am running Ubuntu 20.04.
I am pretty sure that I was able to run gitkraken in my terminal just fine when I installed it but after a restart, this is no longer possible. I wasn't able to start IntelliJ at all.
It's possible to start both snaps with snap run <name> and I can also start them on my Windows 11 system because I copied the desktop files from /var/lib/snapd/desktop/applications to /usr/share/applications.
When executing sudoedit /etc/environment, I get the following output:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
WSL_INTEROP='/run/WSL/1300_interop'
WSL_DISTRO_NAME=''
DISPLAY=':0'

The snap path is included but snaps are not found as commands.
❯ gitkraken
zsh: command not found: gitkraken

Using echo $PATH gives me a list of the whole Windows path as well.

Hi, sorry I missed this for so long. Is this still an issue if you redownload the install.ps1 script and rerun it to update your installation to the latest implementation? (A lot has changed in the code over the past year so I'd like to confirm that it is still a problem with the current version)