ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory (when trying to run object detection)

Hello, I am trying to install the object-detection module of tensorflow but when running the following command:
python3 object_detection/builders/model_builder_test.py
I get the following error. I have install CUDA 8.0,9.0,9.1, and cuDNN 6 and 7 but still have the following error. I appreciate your advice, thank you!
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "object_detection/builders/model_builder_test.py", line 18, in
import tensorflow as tf
File "/usr/local/lib/python3.5/dist-packages/tensorflow/init.py", line 24, in
from tensorflow.python import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.

Had same issue
sudo apt-get install cuda-9-0
worked for me even after I had Cuda-9-0 installed.

@adekunleba When I run that command, I get the following:
Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package cuda-9-0
Could you please advise what to do? Thank you in advance!

@JSANJ do you have this in your rc file ? export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/extras/CUPTI/lib64

@JSANJ you should add cuda/lib64 to your LD_LIBRARY_PATH, in addition to @calper-ql suggestion, I also did export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64

if you have multiple versions of CUDA installed, you probably need this instead:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64

This is because /usr/local/cuda is usually just a symlink to one of the versions. if you have multiple versions, it may be a symlink to another version.

@calper-ql @adekunleba @gunan Thank you all, your suggestions worked for installation on Windows using Ubuntu Bash
As a side note:
I also tried installing it on a Linux version (Ubuntu 16.04) and found that I wasn't actually installing CUDA due to the Ubuntu Software Center malfunctioning, but using commands instead worked as in: https://askubuntu.com/questions/760034/waiting-to-install-for-ever-ubuntu-software-16-04.

@JSANJ sudo apt-get install cuda-9.0 instead of sudo apt-get install cuda-9-0 worked for me

Hi , I tried all of the above but still getting the following error:
Traceback (most recent call last):
File "", line 1, in
File "/home/na/anaconda3/envs/tensorflow/lib/python2.7/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "/home/na/anaconda3/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/home/na/anaconda3/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/na/anaconda3/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/na/anaconda3/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/na/anaconda3/envs/tensorflow/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

Not only that if i run import tensorflow as tf using spider in anaconda2 I get the same error as above but with libculas.so.8.0 : ImportError: libcublas.so.8.0: cannot open shared object file: No such file or directory.
I checked and i do have this file in lib in anaconda2, so I am puzzled .  I tried every thing in the tensorflow link but no success.  I am working with Ubuntu latest version 16.04.3.
Help please!

That is a CUDA library, anaconda2 should not, and would not have that library.
Also, one of your error messages complain about  cuda 9.0, and the 2nd complain about cuda 8.0
you will need to pick which version of TF you want to work with, then install the corresponding CUDA version.

Gunan, thank you .  I decided to work with anaconda3 , do I need to install Cuda 9.2 as an update ?  in anaconda3 I did the following commands:
sudo -H apt-get install git
sudo -H apt-get install python3
sudo -H apt-get install python3-matplotlib
sudo -H apt-get install python3-pip
sudo -H pip3 install --upgrade tensorflow
and it seems everything was updated fine , then I tried to import tensorflow as tf and got the error again

Anaconda is just a python distribution.
CUDA and cuDNN aare independent of Anaconda. You install anaconda separately, then you install CUDA separately.

Gunan, thank you .  I decided to work with anaconda3 , do I need to install Cuda 9.2 as an update ?  in anaconda3 I did the following commands:
sudo -H apt-get install git
sudo -H apt-get install python3
sudo -H apt-get install python3-matplotlib
sudo -H apt-get install python3-pip
sudo -H pip3 install --upgrade tensorflow
and it seems everything was updated fine , then I tried to import tensorflow as tf and got the error again

well I did a full installation of cuda9.2 , with the latest version of tensorflow v 1.8 which is compatible . I used the following link :http://www.python36.com/how-to-install-tensorflow-gpu-with-cuda-9-2-for-python-on-ubuntu/ .  \After 3+ hours all went successfully and when it came to import tensorflow as tf , frustratingly enough i got the same error as before :    Any Ideas ?  Thank you
Traceback (most recent call last):
File "", line 1, in
File "/home/na/anaconda3/lib/python3.6/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "/home/na/anaconda3/lib/python3.6/site-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/home/na/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/na/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/na/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/na/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/home/na/anaconda3/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/home/na/anaconda3/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

https://www.tensorflow.org/install/install_linux#nvidia_requirements_to_run_tensorflow_with_gpu_support
As stated in the web page above, TF 1.8 is compatible with CUDA 9.0
We have no prebuilt binaries that are compatible with cuda 9.2. for cuda 9.2, you need to build from sources.

Thank you .  I seem to have resolved the issue as on the command line i tested the tensoflow with Hello world and worked so happy until i realsied that tensoflow 1.8 was running on cpu and no gpu .  then i did the following :from tensorflow.python.client import device_lib followed by print(device_lib.list_local_devices()): "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation:<PHONE_NUMBER>5436371737
How do I get GPU working and how come it is not ?  Am I missing some installation ?

After banging my head around a couple of days, installing cuda 9.2 but failing tf builds from scratch  uninstalling then downgrading to 9.0 to use pre compiled binaries :
Dirty hack till tf updates cuda support
GCC : (Ubuntu 7.3.0-16ubuntu3) 7.3.0
OS :
linux -4.15.0-20-generic
x86_64
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
GPU :
00:07.0 3D controller: NVIDIA Corporation GV100 [Tesla V100 SXM2] (rev a1)
CUDA :
Driver version : 396.26
Toolkit : 9.2 and 9.0 both installed by sudo sh cuda_9.*****-run  (download from nvidia ) but for installing 9.0 say N when asks to install display driver.
then do as said above : #issuecomment-365089833
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64 >> ~/.bashrc

thank you for the suggestion as i am stuck not be able to get tf gpu working on tf 1.8 on cuda 9.2.  could you guide from where did you install cuda 9.0 as the nvidia download points immedaitely to 9.2 version.

I did re-install cuda 9.0 after I uninstalled 9.2 and then reinstalled tf v.1.8 .  the validation on terminal of tf was successful but again it was running on cpu and not gpu!! .  I am absolutely puzzled why i cannot get tf gpu working tried every thing under the sun -very frustrating


Adds splash screen

This adds a fast loading and non-blocking splash screen to cold launches of the app using this article posted by Big Nerd Ranch:
https://www.bignerdranch.com/blog/splash-screens-the-right-way/
The splash does work but further work will be needed to remove the black screen that is displayed while content is loaded into the web view.

:coffee:

:+1: LGTM!


How to debug Aeron wiki page

Add a wiki page on how to debug Aeron.
Examples of event logging and how to use AeronStat.

Add a wiki page on how to inspect the error log.


Zigbee2mqtt, fresh install: Not connected to MQTT server!

First, I've google this and saw a few kind of old issues and comments in the HA community but none seemed to apply to what I was seeing.
I apologise if this is not the right repo to report the issue, it's hard for a newby to know wether the issue lies in the addon or on zigbee2mqtt itself, but I'm happy to move it is this is not the right place.
I acquired a cc2531 and today flashed it on my mac following the instructions on the page. It all went well apparently.
I'm running home assistant on a RPi 3, completely updated to the latest and greatest as of today:
HassOS 4.13
Home Assistant 0.115.2
Local IP: <IP_ADDRESS>

After plugging in the cc2531, I installed zigbee2mqtt adding this repo and and configured it like this:
data_path: /share/zigbee2mqtt
external_converters: []
devices: devices.yaml
groups: groups.yaml
homeassistant: true
permit_join: false
mqtt:
  base_topic: zigbee2mqtt
  server: 'mqtt://homeassistant'
  user: <SOMEUSER>
  password: <SOMEPASSWORD>
serial:
  port: /dev/ttyACM0
advanced:
  log_level: info
  pan_id: 6754
  channel: 11
  network_key:
    - 8
    - 198
    - 112
    - 233
    - 68
    - 153
    - 190
    - 54
    - 30
    - 199
    - 165
    - 116
    - 153
    - 121
    - 125
    - 36
  availability_blocklist: []
  availability_passlist: []
device_options: {}
blocklist: []
passlist: []
queue: {}
experimental: {}
socat:
  enabled: false
  master: 'pty,raw,echo=0,link=/dev/ttyZ2M,mode=777'
  slave: 'tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5'
  restartdelay: 1
  initialdelay: 1
  options: '-d -d'
  log: false

Really the only thing I touched on the config was server,user, password and network_key as the tutorial I followed advices to not leave the default values. I did check that the serial port was correct and itwas.
When I start the server the boot process seems to go well but it never connects to the server.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
./run.sh: line 17: [Info] Configuration backup found in /share/zigbee2mqtt/.configuration.yaml.bk. Skipping config backup.: No such file or directory
[Info] Socat is DISABLED and not started
2020-09-22T15:53:53: PM2 log: Launching in no daemon mode
2020-09-22T15:53:53: PM2 log: App [npm:0] starting in -fork mode-
2020-09-22T15:53:53: PM2 log: App [npm:0] online
><EMAIL_ADDRESS>start /zigbee2mqtt-1.14.4
> node index.js
Zigbee2MQTT:info  2020-09-22 15:54:05: Logging to console and directory: '/share/zigbee2mqtt/log/2020-09-22.15-54-04' filename: log.txt
Zigbee2MQTT:info  2020-09-22 15:54:08: Starting Zigbee2MQTT version 1.14.4 (commit #1.14.4)
Zigbee2MQTT:info  2020-09-22 15:54:08: Starting zigbee-herdsman...
Zigbee2MQTT:info  2020-09-22 15:54:11: zigbee-herdsman started
Zigbee2MQTT:info  2020-09-22 15:54:11: Coordinator firmware version: '{"meta":{"maintrel":3,"majorrel":2,"minorrel":6,"product":0,"revision":20190608,"transportrev":2},"type":"zStack12"}'
Zigbee2MQTT:info  2020-09-22 15:54:11: Currently 0 devices are joined:
Zigbee2MQTT:info  2020-09-22 15:54:11: Zigbee: disabling joining new devices.
Zigbee2MQTT:info  2020-09-22 15:54:11: Connecting to MQTT server at mqtt://homeassistant
Zigbee2MQTT:error 2020-09-22 15:54:21: Not connected to MQTT server!

I tried chaging server to mqtt://<IP_ADDRESS> (the static IP address of the RPi), mqtt://<IP_ADDRESS>:1883, mqtt://<IP_ADDRESS>:8123, mqtt://homeassistant, mqtt://homeassistant.local, mqtt://homeassistant:1883 and everthing that came to mind, it never connects.
Notes

I do NOT have mosquitto nor any other mqtt addon installed. This is the first time ever I use mqtt in any form.
When I was out of ideas, I did try to install mosquito despite the fact that the tutorials didn't mention it, just because many internet threads did. When I did I saw this on the logs:

1550603281: New connection from 172.30.X.X on port 1883.
1550603281: Socket error on client , disconnecting.

The only thing that might be interfering that can come to mind is that I have NGINX Home Assistant SSL proxy and the DuckDNS addon installed, so when accessing my duckdns domain I use https but when using my local network I can use plain http and not get certificate errors.
Is there any configuration step that I'm missing?

I'll be brief:

You need Mosquitto add-on installed: Supervisor - Add-on store - Official add-ons - Mosquitto broker`
You need Mosquitto integration configured (with auto discovery) Configuration - Integrations
You need to setup a user/ password for the add-on (this might go away in the future): Configuration - Users
You need to use the internal namespace for the configuration server: 'mqtt://core-mosquitto' in your zigbee2mqtt add-on

As a side note: zigbee2mqtt add-on runs in a container. Mosquitto (mqtt) add-on also runs in a container, but exploses the mqtt service in a clever way through the supervisor. You dont' need to expose ports on the host, as the container network is internal and the containers should have access between them.
I hope this helps.

@ciotlosm It did work like a charm!
For some reason the tutorial I followed didn't mention AT ALL any of these steps. Are those relatively new? The tutorial I followed was barely 4 months old. I just want to report if in case it is outdated.
Thank you so much!

Depends who maintains the tutorial. Ideally zigbee2mqtt should not contain in depth discussion about setting up mqtt. I do however think that at least a basic tutorial should exist of dependencies and most likely setup scenario.
However next release will probably contain "auto-setup" for mqtt, without you needing to setup a user / password or finding out the URL, as long as you have the core one installed (or one compatible with supervisor services registration for mqtt).


ROX-25446: Deprecate Central PVC from operator

Description
The second PR of Central PVC deprecation.
The CHANGELOG will be updated later.
User-facing documentation

[ ] CHANGELOG is updated OR update is not needed
[ ] documentation PR is created and is linked above OR is not needed

Testing

[ ] inspected CI results

Automated testing

[ ] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[ ] modified existing tests

How I validated my change

change me!

/test ocp-4-12-nongroovy-e2e-tests
/test ocp-4-16-nongroovy-e2e-tests


Could not create temporary directory: 权限被拒绝

VSCode Version: Code 1.9.1 (f9d0c687ff2ea7aabd85fb9a43129117c0ecf519, 2017-02-08T23:31:51.320Z)
OS Version: Darwin x64 16.5.0
Extensions:

Extension
Author
Version

output-colorizer
IBM
0.1.0

vscode-html-scss
P-de-Jong
0.0.42

html-snippets
abusaidm
0.1.0

vscode-caniuse
akamud
0.5.3

vscode-javascript-snippet-pack
akamud
0.1.5

vscode-theme-onedark
akamud
1.3.2

project-manager
alefragnani
0.13.5

vscode-color
anseki
0.2.6

npm-intellisense
christian-kohler
1.3.0

path-intellisense
christian-kohler
1.2.0

vscode-eslint
dbaeumer
1.2.8

vscode-instant-markdown
dbankier
1.1.0

githistory
donjayamanne
0.2.0

python
donjayamanne
0.6.0

vscode-great-icons
emmanuelbeziat
1.1.48

auto-close-tag
formulahendry
0.3.10

auto-rename-tag
formulahendry
0.0.11

live-html-previewer
hdg
0.0.1

Python-autopep8
himanoa
1.0.2

vue-snippets
hollowtree
0.1.1

vscode-JS-CSS-HTML-formatter
lonefy
0.2.3

js-patterns-snippets
nikhilkumar80
0.0.5

vetur
octref
0.5.6

view-in-browser
qinjia
0.0.5

react-beautify
taichi
0.3.0

react-redux-es6-snippets
timothymclane
2.0.2

vscode-react-native
vsmobile
0.3.2

Steps to Reproduce:

Could not create temporary directory: 权限被拒绝

@bl1061702060 Hey, it's just a permission denied issue. Any luck when using sudo?

I just fixed the problem by updating vs code, but I don’t know if it will come again.
在 2017年4月12日，下午2:12，guhuajun <notifications<EMAIL_ADDRESS>写道：
@bl1061702060https://github.com/bl1061702060 Hey, it's just a permission denied issue. Any luck when using sudo?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscode/issues/24568#issuecomment-293483473, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APoFpOBczPBx7gsbdMZTWNFQnFUBxaCXks5rvGtBgaJpZM4M66oE.

me too

me too

Closing because this issue is without actionable information.

应该会再来的, 每次更新我都是手动卸载重装的  好几次了 不知道什么鬼 @jrieken  不作为

Click the upgrade item in the menu will appear this prompt:"Could not create temporary directory: 权限被拒绝"
Environment:
MacOS Serria
Visual Studio Code 1.8.0
@jrieken

Closing and updating would not be useful，the problem will come again. btw，I don't know
if there is any lock when using sudo.


Support GCS (Google Cloud Storage) as storage for tfmigrate plan files

From v0.3.7, tfmigrate now supports GCS as history backend.
I believe that it is possible for tfaction to realize #59, so here I'm going to propose a change to close it.
To be honest, I'm not so sure how I should test tfaction.
I've confirmed that the added GitHub action can print expected outputs, but please tell me if it is not enough to keep this new feature tested well. :bow:

Thank you for your contribution!

It looks good.
I'll test.

I've confirmed it works well.
I'm updating document.

Thanks for your review and documentation!

Published the prerelease version https://github.com/suzuki-shunsuke/tfaction/releases/tag/v0.5.16-0
I'll update the document and release v0.5.16.

https://github.com/suzuki-shunsuke/tfaction-docs/pull/57

Released. https://github.com/suzuki-shunsuke/tfaction/releases/tag/v0.5.16


fix(diagnostics): always print without considering the --max-warnings option

closes #1958
--max-warnings is only used to control the exit code, it does not
affect diagnostic printing.

Current dependencies on/for this PR:

main

PR #1996   👈

This stack of pull requests is managed by Graphite.

Merge activity

Jan 11, 7:41 AM: @Boshen merged this pull request with Graphite.


nested focal containers - snapd broken

Not sure if this should be filed here or against snapd. This showed up because we use a focal or bionic LXD container to host nested LXD containers and in those nested containers snap install things. For nested bionic containers, everything works. But nested focal containers have started to have an issue with completing the snapd seeding.
Issue description
It seems recently something broke with nested focal containers and snapd seeding. This happens on LXD 4.16 and 4.17. There is a manual step required to unblock things. On a bionic or focal host:
lxc launch ubuntu:focal
lxc config set <container> security.nesting true
lxc exec <container> -- bash
lxd init
lxc launch ubuntu:focal
lxc exec <container-nested> -- bash
snap install <somesnap>
error: system does not fully support snapd: apparmor detected but insufficient permissions to use it

systemctl list-jobs
JOB UNIT                                 TYPE  STATE
96  snapd.autoimport.service             start waiting
112 snapd.seeded.service                 start running
2   multi-user.target                    start waiting
1   graphical.target                     start waiting
126 cloud-config.service                 start waiting
109 systemd-update-utmp-runlevel.service start waiting
122 cloud-init.target                    start waiting
125 cloud-final.service                  start waiting
100 unattended-upgrades.service          start waiting

But you can fix it by doing this in the nested focal container
apt install squashfuse fuse
mount -t tmpfs tmpfs /sys/kernel/security/
service restart snapd

I guess we can manually install those packages but seems unfortunate that has become a requirement? Any idea why the tmpfs step has become necessary?
Information to attach
Here the config of the top container:
lxc config show more-man --expanded
architecture: x86_64
config:
  image.architecture: amd64
  image.description: ubuntu 20.04 LTS amd64 (release) (20210720)
  image.label: release
  image.os: ubuntu
  image.release: focal
  image.serial: "20210720"
  image.type: squashfs
  image.version: "20.04"
  security.nesting: "true"
  volatile.base_image: cea91a28441af36f088f3ae8b637499061518ea2d83c7560a2f7f33d74298968
  volatile.eth0.host_name: veth2766d9f0
  volatile.eth0.hwaddr: 00:16:3e:b8:48:04
  volatile.eth0.name: eth0
  volatile.idmap.base: "0"
  volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.last_state.power: RUNNING
  volatile.uuid: eb912be2-0ca1-4e20-95ee-37644a84e4b1
devices:
  eth0:
    nictype: bridged
    parent: lxdbr0
    type: nic
  root:
    path: /
    pool: default
    type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""

Inside the top container, here's the config of the nested container:
lxc config show stable-condor --expanded
architecture: x86_64
config:
  image.architecture: amd64
  image.description: ubuntu 20.04 LTS amd64 (release) (20210720)
  image.label: release
  image.os: ubuntu
  image.release: focal
  image.serial: "20210720"
  image.type: squashfs
  image.version: "20.04"
  volatile.base_image: cea91a28441af36f088f3ae8b637499061518ea2d83c7560a2f7f33d74298968
  volatile.eth0.host_name: veth539a8c0a
  volatile.eth0.hwaddr: 00:16:3e:6b:0e:eb
  volatile.idmap.base: "0"
  volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":999900000},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":999900000}]'
  volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":999900000},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":999900000}]'
  volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":100000,"Nsid":0,"Maprange":999900000},{"Isuid":false,"Isgid":true,"Hostid":100000,"Nsid":0,"Maprange":999900000}]'
  volatile.last_state.power: RUNNING
  volatile.uuid: 32a9557b-ebd0-4c3c-9163-cc9e15768927
devices:
  eth0:
    name: eth0
    network: lxdbr0
    type: nic
  root:
    path: /
    pool: default
    type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""

Log of the nested container:
lxc info stable-condor --show-log
Name: stable-condor
Location: none
Remote: unix://
Architecture: x86_64
Created: 2021/08/09 05:07 UTC
Status: Running
Type: container
Profiles: default
Pid: 1234
Ips:
  eth0: inet    <IP_ADDRESS>      veth539a8c0a
  eth0: inet6   fd42:30f6:2a3f:27eb:216:3eff:fe6b:eeb   veth539a8c0a
  eth0: inet6   fe80::216:3eff:fe6b:eeb veth539a8c0a
  lo:   inet    <IP_ADDRESS>
  lo:   inet6   ::1
Resources:
  Processes: 75
  CPU usage:
    CPU usage (in seconds): 69
  Memory usage:
    Memory (current): 321.81MB
    Memory (peak): 348.27MB
  Network usage:
    eth0:
      Bytes received: 67.33MB
      Bytes sent: 1.21MB
      Packets received: 23156
      Packets sent: 16554
    lo:
      Bytes received: 8.43kB
      Bytes sent: 8.43kB
      Packets received: 84
      Packets sent: 84

Log:

lxc stable-condor<PHONE_NUMBER>0741.728 WARN     conf - conf.c:lxc_map_ids:3389 - newuidmap binary is missing
lxc stable-condor<PHONE_NUMBER>0741.733 WARN     conf - conf.c:lxc_map_ids:3395 - newgidmap binary is missing
lxc stable-condor<PHONE_NUMBER>0741.739 WARN     conf - conf.c:lxc_map_ids:3389 - newuidmap binary is missing
lxc stable-condor<PHONE_NUMBER>0741.744 WARN     conf - conf.c:lxc_map_ids:3395 - newgidmap binary is missing
lxc stable-condor<PHONE_NUMBER>0741.744 WARN     cgfsng - cgroups/cgfsng.c:fchowmodat:1296 - No such file or directory - Failed to fchownat(43, memory.oom.group, 999900000, 0, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW )
lxc stable-condor<PHONE_NUMBER>0826.481 WARN     conf - conf.c:lxc_map_ids:3389 - newuidmap binary is missing
lxc stable-condor<PHONE_NUMBER>0826.485 WARN     conf - conf.c:lxc_map_ids:3395 - newgidmap binary is missing
lxc stable-condor<PHONE_NUMBER>2606.721 WARN     conf - conf.c:lxc_map_ids:3389 - newuidmap binary is missing
lxc stable-condor<PHONE_NUMBER>2606.798 WARN     conf - conf.c:lxc_map_ids:3395 - newgidmap binary is missing

Yes, this is unfortunately normal.
AppArmor only supports a single level of namespacing.
So LXD on the host sets up an apparmor namespace which then allows for that first level container to load apparmor profiles, in this case making it possible to use snaps.
Now installing LXD inside that first level container will work but it won't be able to create new namespaces for its nested containers. Those containers therefore just inherit the apparmor policy of their parent and won't be able to load apparmor profiles of their own.
This is what causes snaps to fail inside of nested containers unless you hide apparmor sufficiently so snapd doesn't even try to use it (as you mentioned above).
This wasn't as much of a problem with bionic because LXD wasn't a snap back then, so you could install LXD without having to get apparmor namespacing working first. It still wasn't great though as the nested container still wasn't able to load its own apparmor profiles which would cause a variety of services to occasionally misbehave.
Our desire for apparmor to support more than one level of namespaces is feedback we've given the apparmor team quite repeatedly over the years, but hasn't seen much movement so far...
Closing this issue as there's nothing actionable for LXD here. It's behaving as best it can given the environment (detecting the use of nesting and using the parent profile).


QueryResult will lose the column metadata

sql:
CREATE PROCEDURE p_test
AS
BEGIN

	---uncomment this line,will be ok
	---SET NOCOUNT ON;

	---or comment this statement,also will be ok
	IF 1 = 0
	BEGIN
		SELECT 'test' AS COL
		RETURN;
	END

	SELECT 'test' AS COL
END
GO

rust:
let rs = client.simple_query("EXEC p_test").await?;
println!("{:?}",rs.columns()); //None

Yep. Bug is a bug, fixing :)
I'm actually also thinking of rewriting the whole stream handling very soon... The way it's currently done is quite hacky and we should follow rust guidelines a bit better with it. Stay tuned.

:+1:

And, meanwhile, you should be able to use methods such as into_results to get the correct columns. I'm working on a new API today, but this is going to be a breaking change for stream handling and will be a major version change.

Hey @gaoqiangz, check out my PR above and see how do you like the interface. Your example changes a bit, but this gives the correct result:
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    use futures::TryStreamExt;

    let config = Config::from_ado_string(&CONN_STR)?;

    let tcp = TcpStream::connect(config.get_addr()).await?;
    tcp.set_nodelay(true)?;

    let mut client = Client::connect(config, tcp.compat_write()).await?;
    let mut rs = client.simple_query("EXEC p_test").await?;

    while let Some(item) = rs.try_next().await? {
        match item {
            QueryItem::Metadata(meta) => {
                println!("Metadata: {:?}", meta);
            }
            QueryItem::Row(row) => {
                println!("Row: {:?}", row);
            }
        }
    }

    Ok(())
}

It looks good, I have tested it without problems.

In most cases, the query contains only one resultset, which may provide a simpler interface for these most cases.
In my project case,I will get the meta info to check out if the result has the expected columns before fetch the rest rows.

There is a nice edge case for the new architecture, that allows me to actually implement fn metadata() to the stream... That might help in your case. I'll write it next, seeing how it feels like...

If you pull my latest changes from the branch, I added two new things to the QueryResult:

columns method
into_row_stream method that converts the stream into a Stream<Item = Row>, skipping the metadata for non-MARS use-cases.

Released in v0.6.0 https://crates.io/crates/tiberius


[Task] should support basic (manual) autoscaling group with load balancer

Spark server seems overloaded and crashes, we should support autoscaling and load balancer to support fast recovery and server redundancy
This issue details the most basic requirement to improve stability in minimal time
overview of expected outcome

[ ] AMI with support for getting Spark version along with the .env file in userdata
[ ] Launch configuration with latest Spark version and a copy of the current Spark .env file
[x] Load balancer
[ ] update deployment documentation - for this stage, will stop using the spark slack command, instead, will have to manually duplicate launch configuration, modify release, increase number of servers in scaling group, then decrease

seems we already have a load balancer - it's just not in use yet.. @amotenko - could you please link to the issue where this load balancer was added? Can I use this load balancer? Is someone else working on this?
Waiting for your reply before I continue to work.. It seems there is someone else working on similar issue

load balancer is called "spark-production" - seems that it's configured correctly with SSL (different certificate from production server though) - and it contains the spark-production instance
it's just that DNS is not pointing to this load balancer so it's not in use

ok, I'm going to create a new load balancer "the-real-spark-production" and use that..

[x] create AMI from spark-production instance (Without reboot) - spark-production-2017-04-22 ami-aed9dfc8
[ ] launch instance from that AMI
ssh and modify configurations:

[ ] modify nginx - remove ssl, listen on port 80
[ ] modify /opt/spark/deploy.sh - to enable using it from cloud-init

userdata template
#!/usr/bin/env bash
echo "
DEPLOYMENT_PACKAGE_URL="slack package url for release to deploy"

-- REST OF SPARK ENV HERE --
" > /opt/spark/.env
sudo -u ubuntu /opt/spark/deploy.sh

/opt/spark/deploy.sh
#!/usr/bin/env bash

set -e  # exit on errors

LOG_FILE="/var/log/spark-deploy.log"

log() {
    echo `date "+%F %T "`${1} | tee -a $LOG_FILE
}

logger -stspark-deploy "started spark deployment, see log file: ${LOG_FILE}"

log "Setting up the environment..."
source /opt/spark/.nvm/nvm.sh
source /opt/spark/.env

if [ "${DEPLOYMENT_PACKAGE_URL}" == "" ]; then
    log "no DEPLOYMENT_PACKAGE_URL"
    exit 1
fi

log "Downloading package from ${DEPLOYMENT_PACKAGE_URL}"
curl -H "Authorization: Bearer ${SLACK_API_TOKEN}" -g "${DEPLOYMENT_PACKAGE_URL}" -o- > /opt/spark/package.tar.gz

log "Extracting..."
rm -rf /opt/spark/latest
mkdir -p /opt/spark/latest
pushd /opt/spark/latest
    tar xzf /opt/spark/package.tar.gz 2>&1 | tee -a $LOG_FILE
popd

log "Copying configurations..."
cp /opt/spark/.env /opt/spark/latest/.env

log "Setting up the deployment directory..."
pushd /opt/spark/latest
    nvm install 2>&1 | tee -a $LOG_FILE
    nvm use 2>&1 | tee -a $LOG_FILE
    ln -s node_modules/.bin/knex knex
    npm run deploy 2>&1 | tee -a $LOG_FILE
    ./knex migrate:latest 2>&1 | tee -a $LOG_FILE
popd

log "starting the services"
sudo service midburn-spark start
sudo service midburn-spark status 2>&1 | tee -a $LOG_FILE
sudo service nginx start
sudo service nginx status 2>&1 | tee -a $LOG_FILE
log "DONE"

done, see v2.2.3


Could not resolve dependencies

hi，
Moquette - Parser Commons .......................... SUCCESS [  1.314 s]
[INFO] Moquette - MINA Parser ............................. SUCCESS [  1.377 s]
[INFO] Moquette - Netty Parser ............................ FAILURE [  0.012 s]
[INFO] Moquette - broker .................................. SKIPPED
[INFO] Moquette - Benchmarking tool ....................... SKIPPED
[INFO] Moquette MQTT library .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.799 s
[INFO] Finished at: 2017-02-09T17:07:16+08:00
[INFO] Final Memory: 17M/170M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project moquette-netty-parser: Could not resolve dependencies for project org.dna.mqtt:moquette-netty-parser:jar:0.3: Failure to find org.dna.mqtt:moquette-parser-commons:jar:0.2 in http://maven.aliyun.com/nexus/content/repositories/central/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
can you help me? thanks!

Do you use the last github version? From your logs seems you are using 0.2 "
org.dna.mqtt:moquette-parser-commons:jar:0.2" i switched from org.dna to
io.moquette more than a year ago.
On Thu, Feb 9, 2017 at 10:30 AM, lawas2008<EMAIL_ADDRESS>wrote:

hi，
Moquette - Parser Commons .......................... SUCCESS [ 1.314 s]
[INFO] Moquette - MINA Parser ............................. SUCCESS [
1.377 s]
[INFO] Moquette - Netty Parser ............................ FAILURE [
0.012 s]
[INFO] Moquette - broker .................................. SKIPPED
[INFO] Moquette - Benchmarking tool ....................... SKIPPED
[INFO] Moquette MQTT library .............................. SKIPPED
[INFO] ------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------
[INFO] Total time: 2.799 s
[INFO] Finished at: 2017-02-09T17:07:16+08:00
[INFO] Final Memory: 17M/170M
[INFO] ------------------------------------------------------------
[ERROR] Failed to execute goal on project moquette-netty-parser: Could not
resolve dependencies for project org.dna.mqtt:moquette-netty-parser:jar:0.3:
Failure to find org.dna.mqtt:moquette-parser-commons:jar:0.2 in
http://maven.aliyun.com/nexus/content/repositories/central/ was cached in
the local repository, resolution will not be reattempted until the update
interval of alimaven has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
can you help me? thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/andsel/moquette/issues/266, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_Y0bFI6_5NgQFqynTll0R6VNiJ9tZWks5ratzEgaJpZM4L75Hi
.

OK，I try again,thank you.

it's ok, but, can I  do maven-built moquette-parent only?

with maven you can install it on your local .m2 repository or use a public version, as described in  in the "Embedding in other projects" paragraph.


docs: Add interactive debugging examples

@gerhard @matiasinsaurralde this PR shows CI failures related to Java and Rust, but the PR doesn't contain any examples for those languages. Also, the TypeScript failure is related to a timeout and I'm not sure how to rerun just that one test. Please let me know your thoughts (I'm trying to merge this one as it's approved but not sure how to handle the above failures).

Are we missing the discussion of two ways of debugging (Terminal and -i). Also the first line of the whole section that introduces feels a little sparse .. can't we say more about when/why you'd want to use this killer feature.

Are we missing the discussion of two ways of debugging (Terminal and -i).

No, both are discussed: https://github.com/dagger/dagger/pull/8050/files#diff-4acff5df3745af1178fb8a7f35ccba20aa4d6499b55b318cc36f3d8fc059b954R14

Also the first line of the whole section that introduces feels a little sparse .. can't we say more about when/why you'd want to use this killer feature.

Which line/section are you referring to? Also, happy to make changes, are there any specific things you'd like to add?

I must have been looking at the an earlier PR, you're right both models are well discussed here.
Re my other comment: "If you come across bugs, here are some simple debugging suggestions." I was thinking of something more along the lines of: Pipeline failures can be both frustrating and lead to wasted resources as the team seeks to understand what went wrong and why. Dagger provides two features that can help greatly when trying to debug a pipeline - at the failure point or by inserting explicit breakpoints throughout your pipeline code.

Pipeline failures can be both frustrating and lead to wasted resources as the team seeks to understand what went wrong and why. Dagger provides two features that can help greatly when trying to debug a pipeline - at the failure point or by inserting explicit breakpoints throughout your pipeline code.

Added to cookbook section


Methods / @Click not working on NUXT static generator

Version
v2.8.1
Reproduction link
https://jsaberon.github.io
Steps to reproduce
Hit the about link on the navbar then go down about 100vh then click the other links
What is expected ?
When link the link in about on the 2nd section, I want to trigger the active class or the active value on my navigation and the content on the right side not changing
What is actually happening?
when I click the navigation nothing happens.
Additional comments?
why method and @click not working on static generated site. Should I create another vanilla Javascript after generation?

This bug report is available on Nuxt community (#c9755)

@jsaberon The problem is that your JavaScript files can't be downloaded - they are returning 404 errors - so your generated site is not hydrated. For example, try this link. I would suspect something has gone awry with the deployment.

@danielroe https://jsaberon.github.io this is the repo of my code.
When I run it in my computer I change the initial code for about page. I am using prettier so I can reformat the generated code. I also change the path of my code:
<link rel="preload" href="/_nuxt/e8e6805c616a0739f432.js" as="script" />
<link rel="preload" href="/_nuxt/725071e83c0a71a48942.js" as="script" />
<link rel="preload" href="/_nuxt/b1731a955fca3418a279.js" as="script" />
<link rel="preload" href="/_nuxt/4d9f75ccf9b467a07057.js" as="script" />

<script src="/_nuxt/e8e6805c616a0739f432.js" defer></script>
<script src="/_nuxt/4d9f75ccf9b467a07057.js" defer></script>
<script src="/_nuxt/725071e83c0a71a48942.js" defer></script>
<script src="/_nuxt/b1731a955fca3418a279.js" defer></script>

To this:
<link rel="preload" href="../_nuxt/e8e6805c616a0739f432.js" as="script" />
<link rel="preload" href="../_nuxt/725071e83c0a71a48942.js" as="script" />
<link rel="preload" href="../_nuxt/b1731a955fca3418a279.js" as="script" />
<link rel="preload" href="../_nuxt/4d9f75ccf9b467a07057.js" as="script" />

<script src="../_nuxt/e8e6805c616a0739f432.js" defer></script>
<script src="../_nuxt/4d9f75ccf9b467a07057.js" defer></script>
<script src="../_nuxt/725071e83c0a71a48942.js" defer></script>
<script src="../_nuxt/b1731a955fca3418a279.js" defer></script>

https://nuxtjs.org/faq/github-pages/#deploying-to-github-pages-for-repository

Loading is fine now, but now you have an error in your code

Not a Nuxt issue, closing here.
PS: I'd highly suggest not to use jQuery in a Nuxt project ☺


3.6.4 reduced the never type on custom object type

TypeScript Version:  3.6.3 and 3.6.4

Search Terms:

reduce type to never

Code
I have updated typescript to v3.6.4 from v3.4.5.
In a single typed object, the property can have the different type.
The problem is caused when i need to set the value of specific property of the object dynamically. The type object is reduced never type.
I solved the this issue by wrapping as assertion. However, I think that typescript not throw the error. The example code is as below.
interface RowAttributes {
  rowNum: boolean;
  checked: boolean;
  disabled: boolean;
  height?: number;
  expanded?: boolean;
}

type RowAttributeValue = RowAttributes[keyof RowAttributes];

const attr: RowAttributes = { rowNum: true, disabled: true, checked: true };

function setRowAttribute(
  attrName: keyof RowAttributes,
  value: RowAttributeValue
) {
  attr[attrName] = value;
}

Expected behavior:
TypeScript not to show the error about the typings.
Actual behavior:
The compile-time error is thrown.

Playground Link:
https://www.typescriptlang.org/play/?target=99&ssl=18&ssc=2&pln=1&pc=1#code/JYOwLgpgTgZghgYwgAgEoHsDuBBMYrABGArpAM7IDeAUMslFgHLEC2AXMoeugDYRwgA3LWQIAFhAQBrCABMOXXvyEjZwMnEJ95nbnwHC6E4AHMxYAPwcQrQtEPIIADwAOA2XKu6lB6gF9qajAATxcUDBw8AhJIADU4HmIUAF40LFx8IlIIMgBtGWD0GDTIzJicgF1hagR0EDIwZDgojgiM6OyKVMp6JlYOfCSAGmQ1DS05Aahh0QlpSeRBlD9qmGIQBDBgOuQyCDA2qKzIAAoRZvxGOBYIDgKikvbjnKGRADcEpNb0o-L4xIg1AAlFRzlFchcoFcbhVkKkPgDhH4gA
Related Issues:

This was updated in 3.5 by #30769, and working as intended.

To be clear on why this is an error, the type system is only looking at the types.  If all you know is that you have a keyof T but not which keyof T, and you want to write a value at T[keyof T], then you need an intersection of the selected property types to guarantee the access is sound.  In this case you get never because number & boolean & undefined is an empty intersection--there's no value you can provide that's guaranteed to be safe.
While many of the errors introduced by #30769 are annoying, this one is actually good: there's no guarantee at the type level that value is a compatible value for whatever property attrName happens to be, and the compiler is alerting you to this fact.  For example, setRowAttribute("disabled", -345) is a perfectly legal call of your function but prior to #30769 would silently write the wrong type to attr.disabled!
You can work around the error by making the function generic, which also has the bonus of enforcing you get a compatible value:
function setRowAttribute<K extends keyof RowAttributes>(
    attrName: K,
    value: RowAttributes[K]
) {
  attr[attrName] = value;
}

I'll agree that having an indexed access type reduced to never is confusing, though.

@jack-williams On a side note:

value: RowAttributes[K]

Per our discussion a few months back, this is a case where I'd really like to be able to explicitly ask for the "write type" RowAttributes:=K  The generic function as written is not 100% type safe, even though the type system accepts it.  For example right now one could still accidentally write the wrong type given a dynamic key:
// randomly select a key just to illustrate the blind spot in the type system
let key: keyof RowAttributes = Math.random() > 0.5 ? "disabled" : "height";
setRowAttribute(key, -345);

@fatcerberus I have a PR that implements that internally to fix a bug, but I haven't done the work to surface the type constructor as a new operator. I'm considering putting a proposal together for write indexed access type.


[BugFix] refact pg table to compatible with authorization system

Fixes #issue
What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[ ] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[BE Incremental Coverage Report]
:heart_eyes: pass : 0 / 0 (0%)

[FE Incremental Coverage Report]
:heart_eyes: pass : 7 / 8 (87.50%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/catalog/JDBCTable.java
3
4
75.00%
[186]

:large_blue_circle:
com/starrocks/connector/jdbc/PostgresSchemaResolver.java
4
4
100.00%
[]

[BE Incremental Coverage Report]
:heart_eyes: pass : 0 / 0 (0%)


Refactor framework

Describe your changes
Describe any testing you have performed
Please add any demo scripts to CIL-Demos/misc/
Link relevant issues
Closes #1686
Checklist when you are ready to request a review

[x] I have performed a self-review of my code
[ ] I have added docstrings in line with the guidance in the developer guide
[ ] I have implemented unit tests that cover any new or modified functionality
[ ] CHANGELOG.md has been updated with any functionality change
[ ] Request review from all relevant developers
[ ] Change pull request label to 'Waiting for review'

Contribution Notes
Please read and adhere to the developer guide and local patterns and conventions.

[x] The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License.
[x] I confirm that the contribution does not violate any intellectual property rights of third parties

Oh so this is actually very broken, as tests weren't testing. Don't do it!


bower added

I have registered the repo to bower. Maybe github repo should be changed after (and if) merge.

Thank you kindly

Sorry I neglected to register this package after your contribution, @vlio20. I see you registered it and then deleted the corresponding repo, but didn't unregister. If you could unregister it, I'd be very appreciative!


general fixes on phase 1

you need to separate pages in the component folder each in separate folder and all placed in pages folder.
use object destruction as discussed this morning. for example in courses object in CourseCarousel and CourseCard components.
move tabs constant array in separate constant folder that contains all the constants needed in the project
enable enlarge on hover in the top categories section

Fixed, but the first point is still not clear.


Fix SaveToDiskSender on non Windows environments

Using Path.Combine instead of manually concatenating path with \

Ping.


feat(users): setup org authentication methods schema and apis

Type of Change

[ ] Bugfix
[x] New feature
[ ] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description
The PR:

Sets up schema for org authentication method
adds queries to interact with shcema
adds endpoints to create, update and list org authentication methods

Additional Changes

[x] This PR modifies the API contract
[x] This PR modifies the database schema
[x] This PR modifies application configuration/environment variables

config/config.example.toml
config/deployments/env_specific.toml
config/development.toml
config/docker_compose.toml

Motivation and Context
Closes #4998
How did you test it?
To create org authentication method, ( auth is admin_api_key only):
curl --location 'http://localhost:8080/user/auth' \
--header 'api-key: test_admin' \
--header 'Cookie: Cookie_1=value' \
--data '{
  "org_id": "test_okta",
  "auth_method": "okta",
  "auth_config": "{name: Octa test}"
}'

Response: 200 OK if org auth method got created successfully.
In case auth method already present, reponse will be bad request
{
    "error": {
        "type": "invalid_request",
        "message": "Org authentication method already exists",
        "code": "UR_43"
    }
}

To update
curl --location --request PUT 'http://localhost:8080/user/auth' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--header 'Cookie: Cookie_1=value' \
--data '{
  "org_id": "test_okta",
  "auth_method": "okta",
  "auth_config": "{name: Octa test update}"
}'

Response will be 200 OK for success full auth config update:
To get list of authentication methods
curl --location --request GET 'http://localhost:8080/user/auth/list?org_id=test_okta' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--header 'Cookie: Cookie_1=value' \
--data-raw '{
  "email"<EMAIL_ADDRESS>}'

Response
{
    "org_authentication_methods": [
        {
            "org_id": "test_okta",
            "auth_method": "okta",
            "auth_config": "{name: Octa test update}"
        },
        {
            "org_id": "test_okta",
            "auth_method": "password",
            "auth_config": "{name: Octa test update}"
        }
    ]
}

Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed the submitted code
[ ] I added unit tests for my changes where possible

auth_config should not be exposed.
Create a auth_config type in application.

Where are we going to store totp_required? Neither we have a column in the table nor AuthConfig have any field for this.

@ThisIsMani for now we can assume totp_required: true for password and magic link flow and totp_required: false for sso. will add a column/config later when exceptions come.


In Godot4 alpha 15 billboard particles are now missing Quad mesh option in the draw pass and shaders act weird

Godot version
4.0.alpha15
System information
Windows 10, Vulkan, Nvidia Gefore 1080, Nvidia Gefore 1070, Amd Ryzen 2700x
Issue description
I have noticed that particles looked weird in the newest alpha release of Godot 4. At first I thought that it might be the problem with how engine renders mesh with materials that have billboard particles turned on. But then I noticed that in particle mode I don't even have an option to generate quad mesh:

All the GPUparticles that have had Quad mesh assigned in the draw pass, are now automatically substituted with Plane mesh, where Particle Billboard in the material options looks skewed (Should it look like that, or is it also a bug?).
For example, this used to be normal fire particle in Godot alpha 14, now it's broken in Godot alpha 15.

Also, I have noticed that Godot4 alpha 15 permanently breaks compatibility of majority of shaders both visual and spatial and GPUparticles made in Godot4 alpha 14, completely corrupting the project? But that is my assumption so far. I don't know if it is intentional and now I should start everything from scratch in GD4alpha15.
Same scene in Godot4 alpha15 looks like this (previously made in Godot4 a14):
Same project in Godot4 loaded again in Godot4 alpha14:

P.S. The whole project is weird now, even when shader cache is deleted and .godot folder inside the project is wiped.
Steps to reproduce
1 - Add a GPUparticle scene
2 - Go to draw pass tab and look at the list of objects to draw
To reproduce the weirdness with shaders I experience:
1 - open a project with different shaders and GPUparticles made in GD4 alpha 14 with GD5 alpha 15, compare the two differences, it is impossible to not notice problems.
Minimal reproduction project
No response

Quad was merged with PlaneMesh. Pick the planemesh from the list and check if it fixes it?
If not, this is likely caused by octahedral compression...

Same.

I did that just now, and the first time I launched the project, that was my first thought that Quad mesh got merged with Plane mesh, because it was strange for me to have both. But, Plane mesh always skewed with Billboard particle mode turned on in the materials, so I guess when they merged the two, they forgot to fix Plane meshe Billboard particle mode bug.
To reproduce it do the following:

Add GPUparticles scene
go to drawing pass
select plane mesh
assign a material with Billboard particles mode turned on or make a new one
observe that it is rendered incorrectly in the viewport.

For the QuadMesh/PlaneMesh issue, you need to set the orientation property of the PlaneMesh to FACE_Z then it will behave the same as QuadMesh did.
For the other issues, it indeed looks like an Octahedral compression issue. To fix it, you just need to reimport your assets

For the QuadMesh/PlaneMesh issue, you need to set the orientation property of the PlaneMesh to FACE_Z then it will behave the same as QuadMesh did.
For the other issues, it indeed looks like an Octahedral compression issue. To fix it, you just need to reimport your assets

OMG, thank you for your tip on resolving particle issue, I didn't even see that option there until you mentioned, always used QuadMesh because of that, thank you!


./.libs/libmitlm.so: undefined reference to `__cxa_get_exception_ptr'

What steps will reproduce the problem?
1../autogen.sh
2.make

Error messages:
src/NgramModel.cpp:325: error: call of overloaded 'pow(int, int)' is ambiguous
/usr/include/bits/mathcalls.h:154: note: candidates are: double pow(double,
double)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:345:
note:                 float std::pow(float, float)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:349:
note:                 long double std::pow(long double, long double)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:353:
note:                 double std::pow(double, int)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:357:
note:                 float std::pow(float, int)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/cmath:361:
note:                 long double std::pow(long double, int)
make[1]: *** [src/NgramModel.lo] Error 1
make[1]: Leaving directory `/home/wyz/lm/mitlm-0.4.1'
make: *** [all-recursive] Error 1

Solution
Changed src/NgramModel.cpp:325 from
assert(prob <= std::pow(10, -99));

to
assert(prob <= std::pow(10.0, -99.0));

Again, rum `make'

Error message

make[1]: *** No rule to make target `lbfgs.lo', needed by `libmitlm.la'.  Stop.
make[1]: Leaving directory `/home/wyz/lm/mitlm-0.4.1'
make: *** [all-recursive] Error 1

Solution,
according to http://code.google.com/p/mitlm/issues/detail?id=26
Change Makefile and Makefile.in

Error message

./.libs/libmitlm.so: undefined reference to `__cxa_get_exception_ptr'
collect2: ld returned 1 exit status
make[1]: *** [evaluate-ngram] Error 1
make[1]: Leaving directory `/home/wyz/lm/mitlm-0.4.1'
make: *** [all-recursive] Error 1

Then I have no idea about how to solve this problem.

What version of the product are you using? On what operating system?
mitlm-0.4.1.tar.gz
Description:    Red Hat Enterprise Linux Server release 5.8 (Tikanga)
autoconf (GNU Autoconf) 2.69 (the original version is 2.59)

Please provide any additional information below.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 16 Jun 2014 at 4:34

Hi, did you manage to solve the issue? Does this issue still apply with latest revision on github?


Unable to update npm when on nvm

Hey!
So when I'm trying to update NPM on a system which uses NVM, things break:
[docker@devenv] /storage
$ node --version
v8.7.0
[docker@devenv] /storage
$ npm --version
5.4.2
[docker@devenv] /storage
$ npm install -g<EMAIL_ADDRESS>/home/docker/.nvm/versions/node/v8.7.0/bin/npm -> /home/docker/.nvm/versions/node/v8.7.0/lib/node_modules/npm/bin/npm-cli.js
/home/docker/.nvm/versions/node/v8.7.0/bin/npx -> /home/docker/.nvm/versions/node/v8.7.0/lib/node_modules/npm/bin/npx-cli.js
+<EMAIL_ADDRESS>added 52 packages, removed 2 packages and updated 29 packages in 8.252s
[docker@devenv] /storage
$ npm --version
module.js:529
    throw err;
    ^

Error: Cannot find module 'semver'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/docker/.nvm/versions/node/v8.7.0/lib/node_modules/npm/lib/utils/unsupported.js:2:14)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)

This is on a system which isn't using NVM (just a straight install):
14:00:01 $ npm install -g<EMAIL_ADDRESS>/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+<EMAIL_ADDRESS>added 151 packages, removed 37 packages and updated 72 packages in 13.084s

kstoney at macbook in [~/git/stono/devenv]  on git:master ✗  Removed the PeopleDa
14:00:23 $ npm --version
5.5.1

Any ideas?

Okkkkkkkkkk this turned out to be a volume mount persisting some old nvm files.
Thanks anyway :-)

Actually nope, it's definitely an issue:
 ---> Running in 5e1ca1cf9afc
Downloading and installing node v8.7.0...
Downloading https://nodejs.org/dist/v8.7.0/node-v8.7.0-linux-x64.tar.xz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v8.7.0 (npm v5.4.2)
Creating default alias: default -> 8.7.0 (-> v8.7.0)
Now using node v8.7.0 (npm v5.4.2)
Cache cleared.
 ---> abc5afc5f8e6
Removing intermediate container 5e1ca1cf9afc
Step 53/61 : ARG DEVENV_NPM_VERSION
 ---> Running in 9e9df1a34fed
 ---> 0d7522639005
Removing intermediate container 9e9df1a34fed
Step 54/61 : RUN /bin/bash -l -c "npm install -g npm@$DEVENV_NPM_VERSION"
 ---> Running in f47187f2723a
/usr/local/nvm/versions/node/v8.7.0/bin/npm -> /usr/local/nvm/versions/node/v8.7.0/lib/node_modules/npm/bin/npm-cli.js
/usr/local/nvm/versions/node/v8.7.0/bin/npx -> /usr/local/nvm/versions/node/v8.7.0/lib/node_modules/npm/bin/npx-cli.js
+<EMAIL_ADDRESS>added 52 packages, removed 2 packages and updated 29 packages in 7.951s
 ---> 98375c8f7995
Removing intermediate container f47187f2723a
Step 55/61 : RUN /bin/bash -l -c "npm install -g --depth=0 --no-summary --quiet grunt-cli npm-check-updates nsp depcheck jshint hawkeye-scanner thoughtdata-cli && npm cache clean --force"
 ---> Running in c424bb3e6bbc
module.js:529
    throw err;
    ^

Error: Cannot find module 'semver'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/nvm/versions/node/v8.7.0/lib/node_modules/npm/lib/utils/unsupported.js:2:14)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v8.7.0 --silent` to unset it.
/bin/bash: npm: command not found

This part seems problematic:
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v8.7.0 --silent` to unset it.
/bin/bash: npm: command not found

Are you sure your RUN /bin/bash command is properly sourcing nvm.sh prior to running its npm command? Can you RUN nvm debug in the same way, and provide its output?
(Note that "docker" isn't the same as "a generic system", and there's a Dockerfile in this repo that might be helpful)

delete code by nvm.sh
if ! nvm_die_on_prefix "$NVM_DELETE_PREFIX" "$NVM_USE_CMD"; then
return 11
fi

@kkfd008 yes, that would bypass that necessary check; but since that's a bad idea, i'm going to delete your comment.

I am having this same issue on Ubuntu for Windows 10.  nvm install --lts installs node v6.11.5 and npm v3.10.10.  If I try to update npm using either nvm install --lts --latest-npm or npm i -g npm@latest it fails and can no longer find npm.

@msroberts being on windows means you might have a different issue. Can you file a new one about it?

@ljharb I will check that I have the latest WSL and open an issue if the problem persists.

I ran into a similar issue on macOS - doing nvm uninstall [problematic version] && nvm install [my desired version] resolved this for me.

This seems resolved, so I'm going to close it - please file a new issue if not.


Lyrics+ might be crash when exiting the obs after using a little while.

Lyrics+ might be crash when exiting the obs after using a little while.

Not resolved. The developers seem to have abandoned the project.


paginate pvp kills?

at the minute, it doesnt look like its going too, unless the page threshold is very large!

With the default theme, pvp stats should be paginated


Redo of API, releasing 1.0.0

@yaccz please review... also, I'm not added as maintainer on hackage, so I cannot upload releases I think
Lots of the files are just golden tests. I tested with ghc-8.4.1 up to 8.10.1. Haddock output looks clean: https://files.hasufell.de/jule/os-release/System-OsRelease.html

To be honest I dont know how several parts of the code works but looks well done :+1:
Good idea with the golden tests.


No docs for using/creating inventories

these pages are blank: https://github.com/expressobits/inventory-system/wiki/Inventory-Database

Would love to see this section filled out, as I have no idea how to use this amazing inventory system. It wouldn't need to be fancy, just some text explaining what the key features are, and how to use/create them is all.


Side menu accessible when loading component active

Short description of the problem:
When using the loading component if an app has a side menu it can still be accessed by swiping the screen.
What behavior are you expecting?
All app functionality to be blocked while the loading component is active.
Steps to reproduce:

Download the ionic conference app.
Add a loading component to the app.
On a physical device or emulator, with the loading component triggered, swipe the screen from the left side inwards.

<button (click)="presentLoading()">Loading Component Test</button>

let loading = Loading.create({
    content: "Please wait...",
    duration: 30000
});
this.nav.present(loading);

Which Ionic Version? 2.0.0-beta.10

Hello, thanks for using Ionic! This has been fixed as of RC4. Because of this I am going to close this issue for now.


Incorrect parameter specified in examples - no url only uri available for az rest

https://docs.microsoft.com/en-us/cli/azure/use-cli-effectively?view=azure-cli-latest#rest-api-command---az-rest
Incorrect parameter specified in examples - no url only uri available for az rest
For example, the following is correct using uri instead of url as documented.
az rest --method GET \
 --uri 'https://graph.microsoft.com/v1.0/applications/b4e4d2ab-e2cb-45d5-a31a-98eb3f364001'

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

ID: 2e51daa3-30c5-f449-36a1-9f33c70ca2fc
Version Independent ID: a21e188b-4ff4-0aca-531b-d4b179665be1
Content: Tips for using Azure CLI effectively
Content Source: docs-ref-conceptual/use-cli-effectively.md
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

Hi @vairakkumar-vairaperumal, Thanks for the feedback! We are currently investigating and will update you shortly.

@vairakkumar-vairaperumal -
Thanks again for bringing this to our attention. We have updated the Doc and it will be live once its merged.  We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Fix code snippet

Fixes #47680

@Potapy4 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@Potapy4 Thanks for helping us improve our docs, we appreciate it!
The change looks good so:
#sign-off


Views: Reset view puts it in the wrong place

From @grantborthwick:

I've now gotten it into a state where when I reset its location, it goes next to the Problems area at the bottom!
Steps (some of the screenshots reused - that's why the branch changes in the middle):

Open the terminal

Drag the source control icon to the terminal and split it with the terminal

Drag it up to make it a new area at the bottom instead of splitting it with the terminal

Drag source control back to the sidebar

Right click the "new" source control icon and select Reset Location

Expected: It fixes the icon and puts it in the right place
Actual: It moves it back to the bottom!

Resetting it again here moves it to the correct place. I also can repro this with the search panel except without the icon change.

what happens here is logically correct, but not intuitive. making this case intuitive would be quite convoluted. there are a too many cases and fixing this will likely break other cases. what is more noticeable in this case is that a "reset" is desired because of the icon issue. that has since been fixed so I think we can close this one.


Lint

Brief Description of the PR
Checklist

[] Demo
[] Document

Messages

:book:
has no jsfm file changed.

:book:
jsfm test finished.

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
No Changelog changes!

Messages

:book:
danger test finished.

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
No Changelog changes!

Messages

:book:
danger test finished.

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
No Changelog changes!

Messages

:book:
danger test finished.

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
No Changelog changes!

Messages

:book:
danger test finished.

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
No Changelog changes!

Messages

:book:
danger test finished.

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
No Changelog changes!

Messages

:book:
danger test finished.

  Generated by :no_entry_sign: dangerJS

Fails

:no_entry_sign:
Running your Dangerfile has Failed

Danger has errored
Error: SyntaxError
  477 |   }
  478 | }
> 479 | # code format using danger-code_style_validation based on clang-format
      | ^
  480 | code_style_validation.check file_extensions: ['.hpp', '.cpp', '.m' , '.h', 'mm', '.cc', '.java']
  481 |
  482 | message('danger test finished.')

  Generated by :no_entry_sign: dangerJS

Messages

:book:
has no jsfm file changed.

:book:
jsfm test finished.

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
No Changelog changes!

Messages

:book:
danger test finished.

  Generated by :no_entry_sign: dangerJS

          1 Error

:no_entry_sign:
Code style violations detected.

          1 Message

:book:
Hello, this worked

Code Style Check

Code style violations detected in the following files:

android/sdk/src/main/java/com/taobao/weex/adapter/ClassLoaderAdapter.java

ios/sdk/WeexSDK/Sources/Utility/WXVersion.m

Execute one of the following actions and commit again:

Run clang-format on the offending files
Apply the suggested patches with git apply patch.

android/sdk/src/main/java/com/taobao/weex/adapter/ClassLoaderAdapter.java
--- android/sdk/src/main/java/com/taobao/weex/adapter/ClassLoaderAdapter.java
+++ android/sdk/src/main/java/com/taobao/weex/adapter/ClassLoaderAdapter.java
@@ -53,4 +53,3 @@
     }

 }
-

ios/sdk/WeexSDK/Sources/Utility/WXVersion.m
--- ios/sdk/WeexSDK/Sources/Utility/WXVersion.m
+++ ios/sdk/WeexSDK/Sources/Utility/WXVersion.m
@@ -20,7 +20,7 @@
 #import "WXVersion.h"
 #import "WXDefine.h"

-static const char* WeexSDKBuildTime = "2019-07-21 09:08:41 UTC";
+static const char *WeexSDKBuildTime = "2019-07-21 09:08:41 UTC";
 static const unsigned long WeexSDKBuildTimestamp =<PHONE_NUMBER>;

 NSString* GetWeexSDKVersion(void)

  Generated by :no_entry_sign: Danger


Fix maximum number of KB for Basic tier

Maximum number of KB for Basic tier should be 14.
https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/limits
https://docs.microsoft.com/en-us/azure/search/search-limits-quotas-capacity

@nkgami : Thanks for your contribution! The author, @nstulasi, has been notified to review your proposed change.

@diberry Please check this PR, and approve as appropriate.

approved - based on this page https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/limits#knowledge-bases
#sign-off

@diberry: I'm sorry - only the author of this article, @nstulasi, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@cjgronlund Please sign-off.

#sign-off
Approved by content manager
@diberry @nitinme

@cjgronlund: I'm sorry - only the author of this article, @nstulasi, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off
I am the new author for this- (@nstulasi  has left the team)

@tulasim88: I'm sorry - only the author of this article, @nstulasi, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

The PR has been merged.


outline not in a tree view

In a windows-to-linux remote development scenario, the outline are not showing a tree-like view both when opening python and C++ codes. For example:

/needsMoreInfo
Please post info about your VSCode version and the extensions you are using. The Issue Reporter dialog is one way of gathering this in a format ready to post here.
Does the issue only occur on remote development?

It turns out to be an unimplemented cpptools‘ feature. Closing this issue.


Not possible to assign roles to users

Describe the Bug
It is not possible to assign roles to users.
Steps to Reproduce

Go to any user
assing role
save the change
-> not saved
it is also not logged in the Audit-Logs

Expected Behaviour
Roles should be saved and changes should be logged.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v24.05.2

Hello @ssddanbrown

Bookstack was freshly installed 2 years ago via installation script on an ubuntu vm. Only bookstack is running on this vm.
No changes in user settings are saved currently: Name, Profile Pic, Roles, etc

@benjaminbittner-ba thanks for confirming.

Does saving a role work okay?
After saving a user, are you returned to the form or the user list?
Do any inputs have red text after saving?

Specifically check the password fields. Have heard previous reports of user's browser autofill attempting to auto-fill the password field, which then means the submit does not validate since the password confirmation field does not match.

@ssddanbrown thanks your quick assistance, without your hints we wouldn't have found the error. It was indeed a rouge space in the password field...


fixed value formatting

Hello @JosephWoodward and @Falco20019
We had key=value, but got key="value" after that PR https://github.com/JosephWoodward/Serilog-Sinks-Loki/pull/32
Here is the small fix for value formatting.

@jincod Strings should be encased in the key value pairs with double quotes according to the Loki specification. Otherwise it does not know where the boundaries are. Only labels must not contain double quotes. Integers won’t be quoted at all.
So this change was intentional to fix a problem where only the first word was captures. Or do you have a problem with that?

@Falco20019 thank you for quick response!
Based on this article https://grafana.com/docs/grafana/latest/datasources/loki/#derived-fields I used to extract TraceId without quotes. So I have to update regex expecting quotes?

@jincod Yes, I also added quotes in the regex. Something that we COULD do is check the value for whitespace and replace the quotes if none were found. In these cases, they are not necessary. It's an additional piece of logic, but would allow the example to work again.


"piper" crashes on a Raspberry Pi 4B

PROBLEM:
"piper" version 2023.9.27-1 crashes on a Raspberry Pi 4B with 8GB RAM running the newest 64-bit Debian BookWorm OS.
TEST RESULTS:
$ echo 'Hello World' | ./piper --model en_US-hfc_male-medium.onnx --output_file welcome.wav
-bash: ./piper: cannot execute binary file: Exec format error

Here is a script which reproduces the problem:
#!/bin/bash

echo -e '\n  -- Cleanup: remove directory and files from previous run'
rm -rf ./piper*

echo -e '\n  -- Download Piper version 2023.9.27-1 TAR file and extract it (version 2023.9.27-1 FAILS on RPIs)'
[ "$HOSTTYPE" = "x86_64"  ] && wget https://github.com/rhasspy/piper/releases/download/2023.9.27-1/piper_linux_x64.tar.gz     && tar -xvf piper_linux_x64.tar.gz        #Linux  X86_64
[ "$HOSTTYPE" = "aarch64" ] && wget https://github.com/rhasspy/piper/releases/download/2023.9.27-1/piper_linux_aarch64.tar.gz && tar -xvf piper_linux_aarch64.tar.gz    #RPI4   arm64
[ "$HOSTTYPE" = "armv7"   ] && wget https://github.com/rhasspy/piper/releases/download/2023.9.27-1/piper_linux_armv7.tar.gz   && tar -xvf piper_linux_armv7.tar.gz      #RPI3/4 armV7

echo -e '\n  -- cd into "./piper" directory'
cd ./piper

echo -e '\n  -- Download voice version 1.0.0 files into "./piper" directory'
wget https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_US/hfc_male/medium/en_US-hfc_male-medium.onnx
wget https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_US/hfc_male/medium/en_US-hfc_male-medium.onnx.json

echo -e '\n  -- Test "piper" installation'
echo 'Hello World' | ./piper --model en_US-hfc_male-medium.onnx --output_file welcome.wav

SYSTEM:
Raspberry Pi 4 Model B Rev 1.4, 8GB RAM
Debian GNU/Linux 12 (bookworm), Full, 64-bit
piper version 2023.9.27-1 (piper_linux_aarch64.tar.gz)

If I'm doing something wrong, please let me know.
Thank you for the help.

There seems to be a bug in the Github workflow that is building x86_64 binaries for aarch64. Please use the 1.2.0 release for now: https://github.com/rhasspy/piper/releases/tag/v1.2.0

Fixed in the latest release: https://github.com/rhasspy/piper/releases/tag/2023.11.14-2


Should we have call delegation?

I would like to nudge a discussion about if there should be a OPERATION_DELEGATECALL type. Delegating the call will grant unknown code access to the identity storage which could be a pretty huge attack vector (at least from my point of view) since you can just change the owner, etc.
Thoughts?

@filiplazovic It's not about if an unknown identity can call it (you are right, only the owner can call it). The question is more if the identity should support call delegation. I personally don't see why it should since it would grant called contracts access to the identity storage. Which isn't a problem as long as you check every contract that you call. But normal user don't do that. They probably don't even know what call delegation is about. As long as there is no valid use case for call delegation it shouldn't be added from my point of view. But that however just my opinion.

@florianlenz Ah, yeah, sorry. You are right, people wouldn't check what they are calling, so they can be fooled easily. In fact, i can't find a use case for delegatecall at all here.
@tyleryasaka What was the inspiration behind having a delegatecall?

@florianlenz You can do a fix for this if you want


Setup Codeql workflow

What type of PR is this?

chore: setup codeql workflow

What this PR does / why we need it:
Provides a Static Application Security Testing to comply with OSSF rules.
Which issue(s) this PR fixes:
Relates to #2347

I have rebased. This is available for merging when you are ready.

cc @phlax


Creating a SuperTux AppImage: Debian package uses the installation prefix /usr/local and it causes problems

Hi,
I'm creating an AppImage for SuperTux with the following yaml:
app: supertux2

ingredients:
  package: supertux2
  dist:    trusty
  sources:
    - deb http://download.opensuse.org/repositories/home:/maths22:/SuperTux/xUbuntu_14.04/ /
    - deb http://au.archive.ubuntu.com/ubuntu/ trusty main universe
    - deb http://au.archive.ubuntu.com/ubuntu/ trusty-updates universe
    - deb http://au.archive.ubuntu.com/ubuntu/ trusty-security main restricted
    - deb http://au.archive.ubuntu.com/ubuntu/ trusty-security universe

script:
  - cp ./usr/local/share/applications/supertux2.desktop .
  - cp ./usr/local/share/pixmaps/supertux.png .

and the AppImage fails to launch giving the error:
/tmp/.mount_dvpdmJ/usr/bin/supertux2 not found

This is probably because of the fact that the developer of the SuperTux2 package in the home:maths22 OBS repository used the installation prefix /usr/local, the supertux2 binary is in /usr/local/games. Any ideas? The most obvious solution of copying /usr/local/games/supertux2 to /usr/bin/supertux2 failed giving the error:
/home/fusion809/.cache/thumbnails/normal/93db84109f4b928869c58f4af0bbc510.png is missing. Probably not running ./bin//supertux2.wrapper from within a
n AppImage.
Hence falling back to using .DirIcon
[WARNING] /usr/src/packages/BUILD/src/supertux/main.cpp:235 Failed to move contents of config directory: boost::filesystem::rename: Directory not emp
ty: "/home/fusion809/.supertux2/addons", "/home/fusion809/.local/share/supertux2/addons"[WARNING] /usr/src/packages/BUILD/src/supertux/main.cpp:188 C
ouldn't add '/tmp/.mount_WiPodA/usr/bin/share/games/supertux2' to physfs searchpath: not found
[FATAL] /usr/src/packages/BUILD/src/supertux/main.cpp:510 Unexpected exception: Couldn't open 'images/engine/icons/supertux-256x256.png': not found

Thanks for your time,
Brenton

Please try with binpatch: true

Then I get the error:
/home/fusion809/.cache/thumbnails/normal/93db84109f4b928869c58f4af0bbc510.png is missing. Probably not running ./bin//supertux2.wrapper from within a
n AppImage.
Hence falling back to using .DirIcon
[WARNING] ././/src/packages/BUILD/src/supertux/main.cpp:235 Failed to move contents of config directory: boost::filesystem::rename: Directory not emp
ty: "/home/fusion809/.supertux2/addons", "/home/fusion809/.local/share/supertux2/addons"[WARNING] ././/src/packages/BUILD/src/supertux/main.cpp:188 C
ouldn't add '/tmp/.mount_sRF7Vv/usr/bin/share/games/supertux2' to physfs searchpath: not found
[FATAL] ././/src/packages/BUILD/src/supertux/main.cpp:510 Unexpected exception: Couldn't open 'images/engine/icons/supertux-256x256.png': not found

I've branched the OBS project for building SuperTux2 that maths22 created and edited the rules file so that now it uses the /usr installation prefix. So now I have the yaml:
app: supertux2
binpatch: true

ingredients:
  package: supertux2
  dist:    trusty
  sources:
    - deb http://download.opensuse.org/repositories/home:/fusion809:/branches:/home:/maths22:/SuperTux/xUbuntu_14.04/ /
    - deb http://au.archive.ubuntu.com/ubuntu/ trusty main universe
    - deb http://au.archive.ubuntu.com/ubuntu/ trusty-updates universe
    - deb http://au.archive.ubuntu.com/ubuntu/ trusty-security main restricted
    - deb http://au.archive.ubuntu.com/ubuntu/ trusty-security universe

script:
  - cp ./usr/share/pixmaps/supertux.png .
  - cp ./usr/games/supertux2 ./usr/bin/supertux2

but regrettably bugs are still rampant, whenever I run this AppImage I get:
/home/fusion809/.cache/thumbnails/normal/93db84109f4b928869c58f4af0bbc510.png is missing. Probably not running ./bin//supertux2.wrapper from within a
n AppImage.
Hence falling back to using .DirIcon
[WARNING] ././/src/packages/BUILD/src/supertux/main.cpp:235 Failed to move contents of config directory: boost::filesystem::rename: Directory not emp
ty: "/home/fusion809/.supertux2/addons", "/home/fusion809/.local/share/supertux2/addons"[WARNING] ././/src/packages/BUILD/src/supertux/main.cpp:188 C
ouldn't add '/tmp/.mount_uN5jd4/usr/bin/share/games/supertux2' to physfs searchpath: not found
[FATAL] ././/src/packages/BUILD/src/supertux/main.cpp:510 Unexpected exception: Couldn't open 'images/engine/icons/supertux-256x256.png': not found

It shouldn't matter if something is in usr/local or usr because usr/local is beneath usr.
Please ask upstream to make the application relocateable, i.e., not use absolute paths. https://github.com/limbahq/binreloc makes it easy. That is the proper way to fix things like this. binpatch: true is just a hack.

Is this being discussed upstream? If so, can you post a link please?

Add the following line to the yaml script:
  - ln -s ../local/games/supertux2 ./usr/bin/
This will allow for the creation of a working appimage without making any changes to upstream.  That said, I will be updating the OBS package to install to /usr instead of /usr/local  Also, I will be updating the binary to allow its parent directory to change as long as the data can be found .at the same relative path

Thanks @maths22 - the following works for me:
app: SuperTux2
binpatch: true

ingredients:
  package: supertux2
  dist:    trusty
  sources:
    - deb http://download.opensuse.org/repositories/home:/fusion809:/branches:/home:/maths22:/SuperTux/xUbuntu_14.04/ /
    - deb http://archive.ubuntu.com/ubuntu/ trusty main universe

script:
  - ls ../supertux2_*.deb | cut -d "_" -f 2 > ../VERSION
  - cp ./usr/share/pixmaps/supertux.png .
  - ( cd usr/bin ; ln -sf ../games/supertux2 . )

Upstream changes do not seem to be necessary.

May wish to use the original maths22 OBS repo instead of my branch. My branch was only created for when maths22's Debian package installed the package contents to /usr/local. He's since fixed that.

Where is it?

'tis as simple as removing home:, fusion809:, branches: and the redundant backslashes (/) from the above URL. Giving the yaml:
app: SuperTux2
binpatch: true

ingredients:
  package: supertux2
  dist:    trusty
  sources:
    - deb http://download.opensuse.org/repositories/home:/maths22:/SuperTux/xUbuntu_14.04/ /
    - deb http://archive.ubuntu.com/ubuntu/ trusty main universe

script:
  - ls ../supertux2_*.deb | cut -d "_" -f 2 > ../VERSION
  - cp ./usr/share/pixmaps/supertux.png .
  - ( cd usr/bin ; ln -sf ../games/supertux2 . )

You also shouldn't need binpatch anymore.  If you do, there is something I should fix.

@maths22 indeed. Thank you very much. What did you do to make this work?
Would you be interested in providing an official AppImage?

All I did was add that symlink line I posted above.  I'll consider providing an official AppImage, but I need to consider how to integrate it into our build process.

@math22 You are correct, the binpatch was unnecessary. I just built an AppImage without it and it seems to run fine.


[config] remove chain_id from config

We can rely on test chain_id in many cases, so ... let's do that. For
the rest of the cases, chain_id is only on the chain, this makes it
clear what we're doing with chain id... or at least less confusing.

so config builder always build with ChainId::test()? I remember before the prod testnet didn't use that one

No, config-builder works as expected? genesis config builder is only used for smoke tests now.

No, config-builder works as expected? genesis config builder is only used for smoke tests now.

you remove the template there which is how the different chain id being populated iirc.

No, config-builder works as expected? genesis config builder is only used for smoke tests now.

you remove the template there which is how the different chain id being populated iirc.

No, config-builder needs it from the CLI. Passing it via the template won't work even in the current code. The template was only used by the genesis config builder and that's not safe anyway -- so if we want it for that code base, we need to deal with it later.

/land


The secondary menu cannot be selected.

This happened only when i use this theme.

Is this a bug?

I reinstalled this theme ,still the same.

Happens to me too, the only solution for me was to to do a "smiling" motion, but I think it also depends on mouse movement speed.

I'm having this same issue. When I turn the theme off, the bug goes away. So annoying...


Feature request: Hide pages from pathfinder suggestions/results

I would like to be able to hide specific pages from the suggestions/results of a Pathfinder
Suggested solution:

Add a TreeMultiselectField in which I could add objects I want excluded from a Pathfinder's suggestions/results

Added in 0.1


[Bug]:  Custom formula doesn't seem to work

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
I tried editing the custom formula for leveling up, but it didn't seem to work. When I edited the standard values, the x y and z, I did notice that it took longer/shorter to level up based on the numbers I used.
You can find these settings in the main config.yml
reference to our conversation: https://i.imgur.com/eyhyS8f.jpeg
Expected Behavior
When setting the custom formula to true, it should use that formula to determine how much exp you need to level up.
Steps To Reproduce
No response
Environment
- Server Software: Paper 1.17.1
- ProSkillAPI Version: <IP_ADDRESS>.3
- ProMCCore Version: <IP_ADDRESS>
- Plugins: https://i.imgur.com/i55YU2N.jpeg

latest.log
No response
Anything else?
No response

Doesn't appear to be broken, actually.

We can close this. Nobody else reported any issues with it.


Update PropertiesConfigurationBuilder.java

if we have below properties configured in log4j2.properies files, when we will hit NumberFormatException or there will be no logs for custom level.  This issue is happening because we are trying to convert string "VERBOSE" into integer which is not expected.  It is expected to covert the values which is there in property called intLevel only.
customLevels = V
customLevel.V.name = VERBOSE
customLevel.V.intLevel = 525

LOG4J2-3388


WideBVH shrinkingRadiusQuery Support

WideBVH is going to be more optimal for certain distance-to-mesh and FCP queries; it would be good to support WideBVH in shrinkingRadiusQuery. Currently, shrinkingRadiusQuery uses Admin:: and thus is not compatible.

Agreed, will fix ASAP. I actually use WideBVH in my own apps as well, but they haven't been ported from their own traversal code to the cuBQL templates, yet, so this hasn't triggered on my side, yet.
Thx for letting me know, i'll fix asap.

toby - quick update: i'm not all that sure any more that the widebvh will be faster than the binary bvh - i haven't adapted it to shrinking radius queries yet, but at least fixed it for fixedRangeQueries (for which i have test cases at hand in barney), and in that one the wideBVH was generally slower than binaryBVH. Sure, fixedBoxQUery behaves differently than shrinking radius, but still - don't expect too much is all i'm saying.
(still going to fix it, of course, it should't be "broken" no matter if faster or not)

devel should now have a cuBQL::shrinkingRadiusQuery::forEachPrim() also for WideBVH; i also added a sample s01_findClosestPoint_WideBVH, which also gives same results as binary bvh and cpu traversal, so at least for that test seems correct.

Thanks Ingo! Testing it out, it's actually the fastest option for my use-case!


Holistic Landmarker Python Tasks API

Extras

Allows syntax compatibility for task options between Proto2 and Proto3.

@schmidt-sebastian I've resolved the comments.


EXCESSIVE_FUNCTIONS uses absolute path in message

The location.message for EXCESSIVE_FUNCTIONS includes the absolute path to the file. I feel this is unnecessary in the message and is already included in the file attribute. It is also inconsistent with other rules such as COMPONENT_HINT_MISSING which only uses the component name.

Will have a quick look.

Also, to be more grammatically correct, it should be "fewer than 10".

Another issue I found for the same rule: in script components it will report multiple times. It seems to scale with the number of functions and is approximately reported the number of functions over maximum (e.g. there will be about 17 reports for a component with 27 functions and a maximum of 10). Tag components don't seem to be affected.

EXCESSIVE_FUNCTIONS now uses component name, and only reports once.  grammar fix also applied


Tune down the SVGs

@Hjdskes is working on the Piper redesign:
https://github.com/libratbag/piper/wiki/Piper-Redesign
He already talked to @jimmac, so most of the below is from their discussion.
Basically, our SVGs don't look particularly great, have a look at the button mapping picture on that wiki page. They look (imo) good enough as icon in the device list and @raghukamath's font size fixes should've helped with the general looks but I think the drawings we have atm are in the uncanny valley.
So we need to either get a lot better with the graphics or just abstract them a lot more, similar to the gnome tablet design here: https://wiki.gnome.org/Design/SystemSettings/Tablet
It's unlikely we're going to get the almost photo-realism because ETIME and possibly ETALENT, so we should go the other direction and provide them in a more abstract manner.
This makes highlighting buttons and LEDs a bit easier too. And re-usability of the SVGs.
Any comments?

I like how the pen in the gnome tablet settings panel are shown. Here one color scheme with only the outer silhouette and recognizable shape is used for the product. That way the most important parts for us like buttons and LEDs can be highlighted with a bit contrasting colors. If we can achieve something like that with our drawing of mice, then it would be awesome.
Also when creating the logitech g9 artwork,  I was not sure if we could trace the designs of the products as it is still copying someones product shot illustrations and might attract copyright problems.
So yes I like what you are suggesting, remove the product specific branding, colors etc, keep only the recognizable shapes and features. This will make our designs consistent. If possible i'll do a quick mock of how it will look.
So +1 from me.

Currently in progress in #182.

After #209, it's decided that the toned down SVGs fall under the GNOME theme and is in progress in #182 still.
Feel free to reopen if this also applies to the default theme.