Having the error "'error': 'not_authed'"

Description
I followed the setup tutorial (created an app, added a bot, etc.), then I copy my Bot User OAuth Access Token to the following code:
import os
import slack

slack_token = os.environ.get("xoxb-THE_REST_OF_AUTH_IS_HERE")
client = slack.WebClient(token=slack_token)

client.chat_postMessage(
  channel="#MY_CHANNEL_IS_HERE",
  text="Hello from your app! :tada:"
)

...and I'm getting the following error:
    raise e.SlackApiError(message=msg, response=self)
slack.errors.SlackApiError: The request to the Slack API failed.
The server responded with: {'ok': False, 'error': 'not_authed'}

How do I "Auth" my bot's token then?
I did see a similar issue from another user, but no answer was provided to fix it.
What type of issue is this? (place an x in one of the [ ])

[ ] bug
[ ] enhancement (feature request)
[X] question
[ ] documentation related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[X] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[X] I've read and agree to the Code of Conduct.
[X] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slackclient version: 2.3.1
python version: 3.6
OS version(s): Windows 10
Steps to reproduce:

I had to change the "os.environ[]" to "os.environ.get()" to make it work without a keyerror.
Followed 2 different tutorials and tried a myriad of different codes and other how to's.

Expected result:
To be able to post a message to my Slack channel from my python script.
Actual result:
The mentioned error
Attachments:

Scratch that, I'm using the below code to post messages to my channel:
import requests
import json

web_hook_url = 'https://hooks.slack.com/services/THE_REST_OF_MY_APPS_URL' # Need to encrypt this value in future

slack_msg = {'text': 'Alert from Python'}

requests.post(web_hook_url, data=json.dumps(slack_msg))

try this:
import os
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError
from dotenv import load_dotenv

load_dotenv()
key = os.environ.get('token') #token in a .env file
client = WebClient(token = key) #or if not in a .env file, (token="xoxb-res_of_the_token")
result = client.chat_postMessage(
        channel='#push-notifications',
        text="Hello world"
    )

was trying today and got the error, and after seeing the errors in the docs, it was not getting initialised properly and the getenv was returning a "NoneType" object
had forgotten to add this line:
load_dotenv()

fml


chore: release main

:robot: I have created a release beep boop
autonat: 1.0.9
1.0.9 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5

bootstrap: 10.0.12
10.0.12 (2024-01-16)
Bug Fixes

mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5

circuit-relay-v2: 1.0.12
1.0.12 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/peer-collections bumped from ^5.1.4 to ^5.1.5
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-record bumped from ^7.0.5 to ^7.0.6
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

crypto: 4.0.1
4.0.1 (2024-01-16)
Bug Fixes

mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2

dcutr: 1.0.9
1.0.9 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7

fetch: 1.0.9
1.0.9 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

floodsub: 9.0.8
9.0.8 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/pubsub bumped from ^9.0.6 to ^9.0.7

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-collections bumped from ^5.1.4 to ^5.1.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

identify: 1.0.11
1.0.11 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-record bumped from ^7.0.5 to ^7.0.6

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

interface: 1.1.2
1.1.2 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

interface-compliance-tests: 5.1.3
5.1.3 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/multistream-select bumped from ^5.1.1 to ^5.1.2
@libp2p/peer-collections bumped from ^5.1.4 to ^5.1.5
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

interface-internal: 1.0.7
1.0.7 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/peer-collections bumped from ^5.1.4 to ^5.1.5

kad-dht: 12.0.4
12.0.4 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/crypto bumped from ^4.0.0 to ^4.0.1
@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/peer-collections bumped from ^5.1.4 to ^5.1.5
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-store bumped from ^10.0.6 to ^10.0.7

keychain: 4.0.7
4.0.7 (2024-01-16)
Bug Fixes

mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/crypto bumped from ^4.0.0 to ^4.0.1
@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

logger: 4.0.5
4.0.5 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2

devDependencies

@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5

mdns: 10.0.12
10.0.12 (2024-01-16)
Bug Fixes

mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

mplex: 10.0.12
10.0.12 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5

multidim-interop: 2.0.16
2.0.16 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/circuit-relay-v2 bumped from ^1.0.11 to ^1.0.12
@libp2p/identify bumped from ^1.0.10 to ^1.0.11
@libp2p/mplex bumped from ^10.0.11 to ^10.0.12
@libp2p/ping bumped from ^1.0.9 to ^1.0.10
@libp2p/tcp bumped from ^9.0.11 to ^9.0.12
@libp2p/webrtc bumped from ^4.0.15 to ^4.0.16
@libp2p/websockets bumped from ^8.0.11 to ^8.0.12
@libp2p/webtransport bumped from ^4.0.15 to ^4.0.16
libp2p bumped from ^1.1.2 to ^1.2.0

multistream-select: 5.1.2
5.1.2 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5

peer-collections: 5.1.5
5.1.5 (2024-01-16)
Bug Fixes

mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5

devDependencies

@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

peer-id: 4.0.5
4.0.5 (2024-01-16)
Bug Fixes

mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2

peer-id-factory: 4.0.5
4.0.5 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/crypto bumped from ^4.0.0 to ^4.0.1
@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5

peer-record: 7.0.6
7.0.6 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/crypto bumped from ^4.0.0 to ^4.0.1
@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

peer-store: 10.0.7
10.0.7 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/peer-collections bumped from ^5.1.4 to ^5.1.5
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-record bumped from ^7.0.5 to ^7.0.6

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

perf: 3.0.12
3.0.12 (2024-01-16)
Bug Fixes

mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5

ping: 1.0.10
1.0.10 (2024-01-16)
Bug Fixes

mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/crypto bumped from ^4.0.0 to ^4.0.1
@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

plaintext: 1.0.12
1.0.12 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

prometheus-metrics: 3.0.12
3.0.12 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

pubsub: 9.0.7
9.0.7 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/crypto bumped from ^4.0.0 to ^4.0.1
@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/peer-collections bumped from ^5.1.4 to ^5.1.5
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

tcp: 9.0.12
9.0.12 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5

upnp-nat: 1.0.10
1.0.10 (2024-01-16)
Bug Fixes

mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

utils: 5.2.2
5.2.2 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/logger bumped from ^4.0.4 to ^4.0.5

devDependencies

@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5

webrtc: 4.0.16
4.0.16 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/circuit-relay-v2 bumped from ^1.0.11 to ^1.0.12
@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5
@libp2p/websockets bumped from ^8.0.11 to ^8.0.12
libp2p bumped from ^1.1.2 to ^1.2.0

websockets: 8.0.12
8.0.12 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/logger bumped from ^4.0.4 to ^4.0.5

webtransport: 4.0.16
4.0.16 (2024-01-16)
Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5

devDependencies

@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5
libp2p bumped from ^1.1.2 to ^1.2.0

libp2p: 1.2.0
1.2.0 (2024-01-16)
Features

add private key to libp2p components (#2348) (092861e)

Bug Fixes

align dependency versions and update project config (#2357) (8bbd436)
mark all packages side-effect free (#2360) (3c96210)

Dependencies

The following workspace dependencies were updated

dependencies

@libp2p/crypto bumped from ^4.0.0 to ^4.0.1
@libp2p/interface bumped from ^1.1.1 to ^1.1.2
@libp2p/interface-internal bumped from ^1.0.6 to ^1.0.7
@libp2p/logger bumped from ^4.0.4 to ^4.0.5
@libp2p/multistream-select bumped from ^5.1.1 to ^5.1.2
@libp2p/peer-collections bumped from ^5.1.4 to ^5.1.5
@libp2p/peer-id bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-id-factory bumped from ^4.0.4 to ^4.0.5
@libp2p/peer-store bumped from ^10.0.6 to ^10.0.7
@libp2p/utils bumped from ^5.2.1 to ^5.2.2

devDependencies

@libp2p/circuit-relay-v2 bumped from ^1.0.11 to ^1.0.12
@libp2p/identify bumped from ^1.0.10 to ^1.0.11
@libp2p/interface-compliance-tests bumped from ^5.1.2 to ^5.1.3
@libp2p/mplex bumped from ^10.0.11 to ^10.0.12
@libp2p/plaintext bumped from ^1.0.11 to ^1.0.12
@libp2p/tcp bumped from ^9.0.11 to ^9.0.12
@libp2p/websockets bumped from ^8.0.11 to ^8.0.12

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/multidim-interop-v2.0.16 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/plaintext-v1.0.12 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/crypto-v4.0.1 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/interface-v1.1.2 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/interface-compliance-tests-v5.1.3 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/interface-internal-v1.0.7 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/kad-dht-v12.0.4 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/libp2p-v1.2.0 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/logger-v4.0.5 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/prometheus-metrics-v3.0.12 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/peer-collections-v5.1.5 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/bootstrap-v10.0.12 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/mdns-v10.0.12 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/peer-id-v4.0.5 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/peer-id-factory-v4.0.5 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/peer-record-v7.0.6 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/peer-store-v10.0.7 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/autonat-v1.0.9 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/dcutr-v1.0.9 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/fetch-v1.0.9 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/identify-v1.0.11 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/perf-v3.0.12 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/ping-v1.0.10 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/floodsub-v9.0.8 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/mplex-v10.0.12 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/circuit-relay-v2-v1.0.12 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/tcp-v9.0.12 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/websockets-v8.0.12 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/webtransport-v4.0.16 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/upnp-nat-v1.0.10 :sunflower:

:robot: Release is at https://github.com/libp2p/js-libp2p/releases/tag/utils-v5.2.2 :sunflower:


[SPARK-28856][FOLLOW-UP][SQL][TEST] Add the namespaces keyword to TableIdentifierParserSuite

What changes were proposed in this pull request?
This PR add the namespaces keyword to TableIdentifierParserSuite.
Why are the changes needed?
Improve the test.
Does this PR introduce any user-facing change?
No
How was this patch tested?
N/A

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

ok to test

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/15454/
Test PASSed.

Test build #110477 has started for PR 25758 at commit e9a78f8.

Test build #110477 has finished for PR 25758 at commit e9a78f8.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/110477/
Test FAILed.

retest this please

Test build #110497 has started for PR 25758 at commit e9a78f8.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/15472/
Test PASSed.

Test build #110497 has finished for PR 25758 at commit e9a78f8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/110497/
Test PASSed.

cc @maropu

Thanks for your help, @highmoutain. This is only one missing entry there?

hi @maropu , I think this is the only one missing.


cannot run example windows

Man I like the language, but around 90% of the examples I run from repos just fail or don't even build.
cargo run --example macos
   Compiling tray-item v0.9.0 (C:\Users\...\Projects\Rust\tray-item-rs)
error[E0599]: no method named `add_quit_item` found for mutable reference `&mut tray_item::api::windows::TrayItemWindows` in the current scope
  --> examples\macos.rs:14:11
   |
14 |     inner.add_quit_item("Quit");
   |           ^^^^^^^^^^^^^ help: there is a method with a similar name: `add_menu_item`

error[E0599]: no method named `display` found for mutable reference `&mut tray_item::api::windows::TrayItemWindows` in the current scope
  --> examples\macos.rs:15:11
   |
15 |     inner.display();
   |           ^^^^^^^ method not found in `&mut TrayItemWindows`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `tray-item` (example "macos") due to 2 previous errors

In this particular case, you're building the MacOS example. That will not work on Windows.

Works perfectly, I was just in a frenzy yesterday cloning repos and trying every example, didn't even stop to think about what macos ment. Thanks for your help!


Question: Is there any upper limit for NER task?

I need to annotate around 100k lines of text under 1 project. is it possible?

@teohsinyee yes, it's possible, LS doesn't have any task or annotation limits. Everything is limited by your hardware and database performance.


fix jinja2 unicodedecodeerror

if template file contains Chinese, it will raise error as follow:
Traceback (most recent call last):
  File "./paictl.py", line 449, in <module>
    main()
  File "./paictl.py", line 426, in main
    pai_build()
  File "./paictl.py", line 278, in pai_build
    center.run()
  File "/home/pai/paiflow/deploy-pai/pai/pai-management/paiLibrary/paiBuild/build_center.py", line 169, in run
    self.build(image_name)
  File "/home/pai/paiflow/deploy-pai/pai/pai-management/paiLibrary/paiBuild/build_center.py", line 121, in build
    image_build_worker.run()
  File "/home/pai/paiflow/deploy-pai/pai/pai-management/paiLibrary/paiBuild/image_build.py", line 149, in run
    self.prepare_template()
  File "/home/pai/paiflow/deploy-pai/pai/pai-management/paiLibrary/paiBuild/image_build.py", line 78, in prepare_template
    generated_data = template_handler.generate_from_template_dict(template_data, map_dict)
  File "/home/pai/paiflow/deploy-pai/pai/pai-management/paiLibrary/common/template_handler.py", line 27, in generate_from_template_dict
    generated_file = jinja2.Template(template_data).render(
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 926, in __new__
    return env.from_string(source, template_class=cls)
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 862, in from_string
    return cls.from_code(self, self.compile(source), globals, None)
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 551, in compile
    source = self._parse(source, name, filename)
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 470, in _parse
    return Parser(self, source, name, encode_filename(filename)).parse()
  File "/usr/lib/python2.7/dist-packages/jinja2/parser.py", line 31, in __init__
    self.stream = environment._tokenize(source, name, filename, state)
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 501, in _tokenize
    source = self.preprocess(source, name, filename)
  File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 495, in preprocess
    self.iter_extensions(), text_type(source))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 265: ordinal not in range(128)

Coverage decreased (-28.9%) to 51.346% when pulling 7bf44c63527fd902f068d80a2c18f42b34be5506 on ueqt:fix-jinja2-unicodedecodeerror into a97798ab429fb11d040e019ac2872eb8778d4818 on Microsoft:master.

ok, I changed to use str.decode() at every place where jinja2 read template file.


${Exception} allowing Layouts for Separators

See also https://github.com/NLog/NLog/pull/2256

breaking change, thus no-go


Test failure in NotebookRendererMessaging: 43 leaking disposables

This just failed for a PR which was unrelated. On a retry, it passed
https://dev.azure.com/vscode/VSCode/_build/results?buildId=102654&view=logs&j=f3dd96f0-7bf9-51c6-1e87-22c4cfa2ad69&s=96ac2280-8cb4-5df5-99de-dd2da759617d&t=dc9350bd-9972-5ec1-4dbd-7003b29c63a7&l=12256

Based on offline discussion with Connor, this can happen before we ensure all disposables are tracked in tests.


Add additional labels flag

In order to add additional parsed tags from each reasource. I've added the flag-additional-labels.
The flag takes a comma separated string, which is first parsed as a slice.
Then inserted into each fetcher into a slice.
The slice is later compared to the labels-map for each resource and labels are added with their corresponding value, or as an empty string if not available in resource map.

Hello again Jan!
Thank you so much for the code review, and that you considered to merge my PR!
I've gone ahead and made the changes you proposed, but will have to ask some help from you with the e2e tests.
Kind regards, Rikard

I've gone ahead and made the changes you proposed, but will have to ask some help from you with the e2e tests.

Looks really good! I just made some additional minor remarks, based on the changes you made.
As I said, writing e2e tests is optional and I will merge this regardless.
You can find the existing test in the e2e folder of the repository root. They basically create real resources by using the Hetzner API, run the fetcher under test and check, if the result is what is to be expected. Afterwards, every resources gets torn down again. Part of every test is, that the metrics produced by the fetcher have the expected labels and that calling the metric without the correct labels, gives a zero result. These test could be extended to also use the newly introduced additional labels, at least here and there, to verify everything is working correctly.
If you want to run the tests, you can do so by executing this command: go test ./.... It will require an environment variable called HCLOUD_API_TOKEN with an API token that can create resource inside your Hetzner Coud Account. This will produce some expenses, but its less then a few cents.
If you don't feel like spending your own, hard earned money, or just don't want to write tests, thats totally fine by me. It's just a couple minutes for me to add them later on, before build the release 😉

Hey @rgynn,
just checking in: Are you still working on this or is this good to merge? I am unsure if you still doing anything or you just wait for me now? If you are all set, I will merge this ASAP.
With kind regards 🙂

Hello again
Sorry for the late response. I'm done for now, you can go ahead and merge it. Thanks for the feedback!


Changing variable doesn't update CSS class in Chrome Dev

There is small issue after changing a variable in order to set a CSS class. This is better explained using an example:
Demo
The idea is that after clicking one of the words, the property that controls a CSS class will be updated to reflect the selected word.
<div ng-click="changeStatus(button)" ng-repeat="button in buttons" ng-class="{value: button.status}">
        {{ button.name }}
</div>

So there are a couple of objects in an array called buttons and we want to show a different color for the element with class value which is set if the property button.status is true.
The problem is that if you alternate between clicking on "button1" and "button2" several times, eventually you will find that the recently clicked element doesn't change color as it should. However, modifying something in the browser or moving the mouse over other elements in the page triggers the appropriate change. As far as I can tell, this only happens in Chrome dev. I tested in Firefox and Chrome stable (on Ubuntu 15.10) and I believe this problem doesn't occur (although maybe I'm not repeating the process enough times).
I initially thought this was due to the digest cycle not being triggered immediately, but I'm not sure why this only occurs occasionally and other browsers seem to be producing the correct behavior. Any ideas?

So what I should be seeing is that the currently red button loses its color, but the clicked button doesn't become red? I have tested this in Chrome 48.0.2556.0 canary (64-bit), but I do not see this behavior.

Correct. This is what I see in Chrome dev:

When I'm moving the cursor over a word, I'm actually clicking but as you can see, nothing happens. Usually, it takes a few trials before getting this behavior although in the gif this is occurring very frequently.

Hm, I can reproduce it. Im on Windows btw, maybe that's another factor.
At the moment it looks like a bug in Chrome that's hopefully temporary and won't make it into a full release.

I hope so. It works in Chrome beta, by the way. I will keep testing the following releases.

Thanks @rsmith31415 . If it shows up in a beta, we need to worry.

@Narretz Bad news. This is now occurring in 48.0.2564.41 beta.

I reckon this is related to https://github.com/angular/angular.js/issues/13494, and we are working on a fix for that.

Arg, the demo doesn't even include ngAnimate, so it can't be that. Do you have any plugins running etc.?

No, I'm running a clean installation of Chrome beta. It only includes the default extensions (Google Docs, Google Sheets, Google Slides)

@Narretz A little update.
In the most recent version of Chrome dev (49.0.2618.8), the bug is not occurring anymore. However, it  reappears when I tested in incognito mode. That's very unusual.
Can you reproduce this behavior?
The bug is still showing up in Chrome beta but still absent in Chrome stable.

@rsmith31415 I can't reproduce it. Maybe ypu should open an issue with the Google Chrome tracker.

@Narretz I just tested in the latest Chrome dev (49.0.2623.0 dev) and now this bug is also occurring with and without incognito mode. Should I still report this as a bug to the Chrome tracker?

@Narretz Bad news. Now this bug can be seen in Chrome stable (48.0.2564.82)

I cannot reproduce this.
But you should report it yes.

I reported the bug here.

I could repro on Chrome 47 or 48.0.2564 (OS/X) (or in Incognito mode)

@petebacondarwin Hm, that's bad! Did you also try with 1.4.9? I wonder if this is related to the animation timekeeping - should be fixed in 1.4.9

Sorry I have edited my comment :-)

You scared me there for a moment!

Based on the reported bug it seems to affect specific distributions only (Ubuntu GNOME) and if anything shouldn't be related to Angular.
Closing due to lack of reproduction.


Using github.com/apache/thrift instead git.apache.org.

github.com/apache/thrift/lib/go is now the official Thrift repository (see https://thrift.apache.org/developers).
git.apache.org location is deprecated and git.apache.org seems to be down for the last few days (see https://status.apache.org/). The git.apache.org downtime is likely accidental, but it's a good enough reason to speed up the migration to a github.com repo.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Quick note: I'm not sure about the nature of the failing CircleCI check. Doesn't seem to be related to this PR.

seems to be a transient failure, re-running the build fixed it ¯_(ツ)_/¯

LGTM to me too,
We should update https://github.com/kolide/launcher/blob/master/go.mod#L5 too


Showing another formsheet above another

I'm looking at using MZFormSheetController for our AlertViews. Alert views can be shown over our modal views in our app, when doing this right now the alert views show up without a blurred background.
Adjusting the window level for the background window works but the previous modal view isn't contained within the blurred background.
Is displaying multiple form sheets possible while keeping the previous modals visable within the blur?

I rewritten MZFormSheetController to MZFormSheetPresentationController which is build on iOS8+ and don't use UIWindow tricks. I am sure that you will not have problem if you want to still show another formsheet above another.

Thanks for the awesome work @m1entus! :+1: Will check it out now!


Download comments

Download comments.
Maybe as separate XML files, together with other metadata such as the image caption.

@Thammus How i can use this product. Is there any video.


Add badge color choise closes 24

I don't really think it's a good idea to refresh the whole page every time you choose a new color


refactor: time master

refactor: update DIP link
fix: make sure that the start & end fields exist

Codecov Report

Merging #844 (d57130d) into master (62ef2e5) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head d57130d differs from pull request most recent head 7b2f4a4. Consider uploading reports for the commit 7b2f4a4 to get more accurate results

@@           Coverage Diff           @@
##           master     #844   +/-   ##
=======================================
  Coverage   57.14%   57.14%
=======================================
  Files           1        1
  Lines          70       70
  Branches       18       18
=======================================
  Hits           40       40
  Misses         30       30

Continue to review full report at Codecov.

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


❓ [QUESTION] How to perform transfer training with nequip?

I have trained a nequip model M with a large dataset A. What can I do to make M also applicatable to a small but different dataset B? (except training a new model with A+B)

See https://github.com/mir-group/nequip/discussions/235 for discussions on how to do fine-tuning (which seems to be what you are asking?) in nequip.
Note that if A and B are very different this might not work very well... in general I believe this is still an open questions for machine learning atomic systems. Please let us know if you find anything interesting!
In particular, do note that B cannot contain any species that were not defined in the original model. (Technically it is possible to define a species in the original model that is not present in the original data A, though I don't know how well that would work in terms of accuracy.)

Thank you very much! That is what I want.


Constrain date picker to screen

When the DatePickerButton's available space is less than the size of the calendar and when the button is close to the left margin, the calendar will be displayed out of the window.  See screen shot in issue 1685.
This pr simply equates the pos.x to the left margin when it is less than the left margin.
Closes https://github.com/emilk/egui/issues/1685.

cargo fmt - passed
cargo clippy - passed
./sh/check.sh - failed with the following error, which has nothing to do with this PR
error: failed to run custom build command for speech-dispatcher-sys v0.7.0
Caused by:
process didn't exit successfully: /home/xxxx/Documents/rust/egui_DatePickerButton-displays-calendar-out-of-window-issue--1685/target/debug/build/speech-dispatcher-sys-9963806cc4d76e13/build-script-build (exit status: 101)
--- stdout
cargo:rustc-link-lib=speechd
--- stderr
wrapper.h:1:10: fatal error: 'speech-dispatcher/libspeechd.h' file not found
wrapper.h:1:10: fatal error: 'speech-dispatcher/libspeechd.h' file not found, err: true

Thanks for that catch, I'm fairly new to rust and have used max in other cases but it didn't occur to me in this situation.  Something I hope to remember in the future.

You closed this before I had a chance to merge it!

No, I have just been busy with other stuff :)


Smart Contract Developer Experience

First step for the tooling is to review it and create a feasibility report in order to divide tasks further.

For each (EthersJS / Web3Js):

Define the changes in the interfaces
Estimate the effort in implementing the changes


Requests hang when running standalone with --verbose in a detached Docker container

I'm submitting this to document the issue, but there's probably no change required in WireMock.
I start WireMock in standalone mode via docker-compose, as a dependency of my test run container. Everything works fine without --verbose. With --verbose it works for a while, then gets to a point where it will accept a request but not answer it, causing timeouts. It works if the output is printed out in the terminal, by running it in the foreground. It works if the output is redirected to a file.
Logging is done synchronously. When --verbose is on it will log between receiving a request and responding to it. I suspect I'm getting the problem because the call to write the log output is blocking.
This kind of blocking does happen, for example, if you pipe to less and don't page through it quickly enough. It may be that Docker is mismanaging the output of the detached container. However, just cating a log of the 2MB output in a detached container does work.
I'm using Docker 17.05.0 on Linux.
Workarounds:

Don't use --verbose
Run WireMock in the foreground
(e.g. docker-compose up wiremock in separate terminal before bringing up the other containers)
Redirect the output to a file

Thanks for writing this up.
I'll close this for now as (like you say) it doesn't seem there's anything to be done on the WireMock side.
It might be worth posting a note on a mailing list and linking to this issue, just to boost visibility.

Actually, even without --verbose, I observe the same behaviour - wiremock docker will accept a request but not answer it, causing timeouts.
I am using gatling to load test an application which makes calls to wiremock stubs. With --verbose the container stops responding after 1 test. Without --verbose it stops responding after 3 tests.


Concatenate to Long Text Area

I am trying to create a rollup that concatenates to a long text area. I am running into some errors on the record. Is this not possible? Is there a workaround because the Text area field character limit is an issue.
Thanks,
Tami

What are the errors?

The error was connected to another rollup. I have it figured out, you can close the ticket.
Thanks!
Tami Lust
Abel Cine NY
609 Greenwich Street, 4th - 5th Floors New York, NY 10014
888.223.1599 |<PHONE_NUMBER> |
tlust<EMAIL_ADDRESS>| www.abelcine.comhttp://www.abelcine.com/
New York • Chicago • Los Angeles
On May 12, 2016, at 11:02 PM, Andrew Fawcett <notifications<EMAIL_ADDRESS>wrote:
What are the errors?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com/afawcett/declarative-lookup-rollup-summaries/issues/336#issuecomment-218940980


Boss Idea(Kit ,not the lore). Any Tier.

The boss is supposed to be very harsh on positioning. The main theme for the boss is going to be explosions and void zones(Somewhere where you can't stand,else you will die).
So he is supposed to have different phases. The first one is easy:
Spell  1: Instead of normal attacks he throws bombs/fireballs/explosives(which ever is more fitting  at the target which it is aggroed on. It should be clear where the spell is going to land to enable dodging. That would add a complexity to the tanking process of a fight, so the one tanks wouldn't just stand there and take hits, he will have to laydown explosions away from his team.
Spell  2: Every once in a while he will spawn a few locations, where a delayed explosion is going to happen, like in 3,4 seconds, so that is going to make dodging primary attacks harder and will make everyone else who is not being attacked by the boss to pay attention.
So that  phase shouldn't be too long and just to show primary pattern, then at around 85% hp second phase should start:
Both Spell 1 and Spell 2 after it explodes leaves a fire burning dealing significant DoT,for 5-6 seconds , which makes kiting bombs even more difficult.
Also Phase 2 adds Spell 3: The boss stomps on a ground making an impassible terrain for 10-15 seconds , to block of some paths for kiting, however of the main attack of the boss is going to explode near the created terrain that will make a hole in it, so you can open the path like this.
Phase 2 should be rather lengthy so at about 45-50% HP the boss should move to the Phase 3.
This phase further empovers all of the spells.
Fire from Spell 1 and  2 now last forever and Fire from Spell  1, boss's default attack slowly increases in radius.
Spell 3  now also last forever unless broken by Spell 1 and has small area around the whole terrain that deals DPS.
This Phase could last until the boss has around 7-10% HP and then the last Phase kicks in.
The boss locks the arena down, by a wall or may be fire, something to prevent walking out. Then he starts uniterrupteble spell, which if he finishes then he kills himself along with everyone in the arena, then drops items.
That Phase is supposed to make players hold their burst damage, may be big spells till the end of the fight under the risk that they might not be able to finish him off fast enough and let the other team, if they react fast enough to steal the loot, at least that is the idea.
If you read till this part, thank you for the attention and have an nice day.

Definitely some good stuff in here.


Structured files and folders

Issue Number
ISSUE #122
Describe the changes you've made
Stuctured the files and folders of the projects and changed the paths
Checklist

[ ] I have added my name in the contributors list at the end of README.md file.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[x] The title of my pull request is a short description of the requested changes.
[x] Open Source Program names - LGMSOC'21

Resolve conflicts.


Fix removal of rect_min_size not triggering resize

When you had a minimum size and remove it, the control wasn't be resized. Instead it jumped to the automatically calculated size on the next change of the actual size. With this change the control will recalculate it's size, when the minimum size is removed (Vector(0,0))
fixes #46672
Bugsquad edit: Fixes #21803 Fixes #40454

fixed

Now, it updates on any min size change.

I don't understand the issue. From what i read in the original issue, this is the expected behavior. I don't think a control should shrink automatically because its minimum size reduced.
A minimum size is constraining the lower bound of a control's size, not the size itself. So unless the minimum size ends up greater than the current size, the current size should not change when it's minimum size is modified. Otherwise that means that the minimum_size property completely drives the size one, which, IMO, is not a desirable behavior.

@groud See the two issues I linked. The current behavior is the same, except the size will refresh on scene reload or just randomly when editing. It's bugged.

I didn't change the behaviour of the resize. All I do is to calculate the minimum size immediately. The actual change in behaviour is the time when this happens.
KoBeWi was faster ^^

I didn't change the behaviour of the resize. All I do is to calculate the minimum size immediately. The actual change in behaviour is the time when this happens.
KoBeWi was faster ^^

Oh ok, if that does not cause the Control to shrink when updating the minsize, I guess that's alright then.
(Note, I deleted a comment, forget about it it was not a good idea)

Thanks!

Cherry-picked for 3.4.

Fixed? I don't think so. I need the following code to recalculate the container rect_size when the container element decreases.
var panel_container = $".".find_node("panel_container")
panel_container.visible = false
panel_container.call_deferred("set_visible", true)
I am using the standard version 3.4.4


[Identity] Should CredentialUnavailable be called CredentialUnavailableError?

At the moment, errors CredentialUnavailable and AuthenticationRequired in Identity do not end in Error. Should they?
CredentialUnavailable was GAd with v1, but we could do this change since we're releasing v2 soon.
This issue is only about the name of those errors!

We generally do have the Error suffix on the custom error classes in Identity and in other packages. In Identity itself,  we already have AuthenticationError and AggregateAuthenticationError.
I would definitely recommend AuthenticationRequired that was introduced in v2 beta to be renamed to AuthenticationRequiredError
For the CredentialUnavailable case, I don't mind renaming it to CredentialUnavailableError. We are doing a major version update and we can document it as a breaking change. Moreover, user's tooling will surface the error as the old class is no longer exported and they can react appropriately.
My concern is around the "name". I would hesitate to change the name on the CredentialUnavailable class to also get the "Error" suffix. This is because no tooling will catch any problems with this old code if (err.name === "CredentialUnavailable")
@maorleger, @bterlson Thoughts?

My concern is around the "name". I would hesitate to change the name on the CredentialUnavailable class to also get the "Error" suffix. This is because no tooling will catch any problems with this old code if (err.name === "CredentialUnavailable")

But this might also end up confusing users who might see the class CredentialUnavailableError and expect the name to also be CredentialUnavailableError. :(

Let's also get @bterlson or @xirzec here to see one additional perspective. We have some time (couple of weeks) to make this decision.

I like the general rule of Errors having constructor names that end in Error. I strongly think the name property should match the constructor name. I am supportive of renaming errors across a major version change, assuming we rename both the property and the constructor.


Check, if a product has a leading repository defined

What
A lot of Tractus-X products use multiple repositories to manage sourcecode for the application, like a separate front- and backend repository for example. This sometime makes it hard to find documentation related to specific aspects of the product.
To address this issue, TRG-2.04 and TRG-2.05 have been defined.
We now need an automated check, that will identify, if the leading product repository is defined
How
The metadata file described in TRG-2.05 is a perfect start for automation. A contributing dedicated to solve this issue should add code, that can interpret the metadata file. It might be a good idea to place that code somewhere, where it can also be consumed as a library for other Tractus-X related tools like dashboards with product info.

Fixed with the merge of #14


Wrong Validation message is shown on change password page.

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open Change Password Page on newDot Web.
Click on the New Password field. Do not type anyting.
Click on Confirm Password Field. Do not type anyting.

Expected Result:
No validation error should be shown
Actual Result:
Validation error Password must match is shown.
Workaround:
None. UI issue.
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: <IP_ADDRESS>
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
View all open jobs on Upwork

Triggered auto assignment to @michaelhaxhiu (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

Looks like a regression from my PR #4367. On it.

PR Raised.

Cool, please close this issue via that PR.

PR merged

@michaelhaxhiu Huh... This is 4 days overdue. Who can take care of this?

@michaelhaxhiu we can close this issue as the fix was merged and deployed

@michaelhaxhiu Still overdue 6 days?! Let's take care of this!

The issue is resolved and fixed here https://github.com/Expensify/App/pull/4607


offat: init at 0.16.0

Description of changes
Tool to test APIs for prevalent vulnerabilities
https://github.com/OWASP/OFFAT/
Related to https://github.com/NixOS/nixpkgs/issues/81418

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 300765 run on x86_64-linux 1

2 packages built:

offat
offat.dist


Bounded not defined

I tried running the first example listed in README and I got the following error:
julia> topology = (Periodic, Periodic, Bounded)
ERROR: UndefVarError: Bounded not defined
Stacktrace:
 [1] top-level scope at REPL[45]:1

I'm running Julia 1.4 RC2 on macOS 10.15.3.

Thanks @truedichotomy ! What version of Oceananigans are you using (eg, can you post output from using Pkg; Pkg.status())?

I installed 1.4-rc2, but couldn't reproduce the issue with Oceananigans v0.25.0:
(@v1.4) pkg> st
Status `~/.julia/environments/v1.4/Project.toml`
  [9e8cae18] Oceananigans v0.25.0

Nevertheless we should not specify topology for that first example, which should be trivial. Try this instead:
using Oceananigans
grid = RegularCartesianGrid(size=(100, 100, 50), length=(2000, 2000, 1000))
model = IncompressibleModel(grid=grid)
simulation = Simulation(model, Δt=60, stop_time=3600)
run!(simulation)

README will be updated by #681

Thanks! Strange that I'm stuck on v0.18.1 which would likely explain the error. But when I tried to update it, it won't upgrade to 0.25...almost seems like a dependency issue.

Thanks for opening this issue @truedichotomy!
Oh that's interesting... Do you still have the error you got when trying to update Oceananigans?
Might be good for us to add some information to the README or documentation about how to check the current version and how to update to the latest version (mentioning your error could help other users).

I found the issue.  Once, I removed it, Oceananigans is able to upgrade to 0.25.0 and now everything works as expected!

Ah that makes sense, thank you for investigating!
I think Oceananigans.jl depends on the latest CUDA packages (CUDAnative.jl, CUDAdrv.jl, CuArrays.jl, etc.) while other packages might require older versions of them.
PS: Apologies in advance if parts of the documentation has gone out of date as we've made a lot of improvements recently. But please open another issue if you hit any problems!

No problem, thanks for the rapid response!


For some? machine-dependent character ("機種依存文字"), it doesn't report that when U+xxxxx is typed for the first time.

I noticed that there is slight behavioral difference between first-time and
afterwards, that when we type U+xxxxx to convert a character based on codepoint
it may or may not report the warning that the character is machine-dependent
(機種依存文字).

What steps will reproduce the problem?
1. Enter mozc hiragana mode.
2. Type U+2F81E.

What is the expected output?

- See this screenshot: https://twitter.com/atsushieno/status/552138494982643715

What do you see instead?

- See this screenshot: https://twitter.com/atsushieno/status/552136801335267328

What version of the product are you using? On what operating system?

- Ubuntu 14.04, mozc-server 1.13.1651.102-2, fcitx-mozc 1.13.1651.102-2

Please provide any additional information below.

- Should be cosmetic issue, but this kind of behavioral differences could be a
glitch when reporting bugs :-)

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 5 Jan 2015 at 4:37

> 2. Type U+2F81E.

I mean, literally type those ASCII characters.

Original comment by<EMAIL_ADDRESS>on 5 Jan 2015 at 4:39

Thank you for the report.  I can confirm the glitch you reported with the
following steps on Ubuntu 14.04 with ibus-mozc 2.16.2013.102.

1. Enter mozc hiragana mode.
2. Type "U+2F81E".
3. Hit space key to convert the preedit text.
4. Hit backspace key to revert the converted text to the preedit state.
5. Hit backspace to delete the last character of "U+2F81E" with keeping preedit
state.
6. Hit E key to add the "E" at the last of "U+2F81" with keeping preedit state.

Basically Mozc tries to add annotations like <機種依存文字> only for
conversion results, not for suggestion results.  So the expected behavior is
that <機種依存文字> is shown only after step 3, where you intentionally
entered conversion state by hitting space key.  The state after step 2, 4, 5,
and 6 is the so-called "suggestions" hence <機種依存文字> shouldn't be
shown there.

However, as you reported, we see <機種依存文字> even after step 4 for
some reasons. So the expected behavior and actual behavior would be:

Expected behavior:
The candidate is annotated with <機種依存文字> after step 3 only.

Actual behavior:
The candidate is annotated with <機種依存文字> after step 3 and step 4.

Original comment by<EMAIL_ADDRESS>on 5 Jan 2015 at 11:32

Changed title: Machine-dependent character annotation , it doesn't report that when U+xxxxx is typed for the first time.
Changed state: Accepted
Added labels: OpSys-All

Oops, I didn't intend to change the issue title.  Revert to the original one.

Original comment by<EMAIL_ADDRESS>on 5 Jan 2015 at 11:34

Changed title: * For some? machine-dependent character ("機種依存文字"), it doesn't report that when U+xxxxx is typed for the first time.*


API Documentation should indicate obsolescence

When trying to build a new project using System.Collections I ran into trouble trying to get my work to compile. It was only after help from someone on the .NET Slack channel and a chance click on the "View Source" button on the docs that I saw this:
https://github.com/dotnet/corefx/blob/master/src/System.Collections.NonGeneric/src/System/Collections/SortedList.cs/#L64
As you can see on https://docs.microsoft.com/en-us/dotnet/core/api/system.collections.sortedlist#System_Collections_SortedList, there's no indication that this is the case.
It would be great if this information could somehow be included. Thanks!

Ping @terrajobst for advice on what the best forward-looking guidance should be.

You're right @dnch. The doc page should display a boilerplate and the obsolete attribute also needs to be displayed. I'll check if we're tracking this issue internally already.

We generally don't think that the [Obsolete] marker is appropriate for cases where large chunks of API surface have been replaced with something better, such as the case with non-generic collections.  That's often not actionable.
ObsoleteAttribute works best for cases where an API shouldn't be called because it's always a bad idea (rare) or when a single method is replaced with another method. Both of these cases seem to be better suited by analyzers because:

Analyzers have more context. Often, it's not that an entire API is banned but certain ways to call it are (combination of arguments etc).
Analzyers can be accompanied by fixers. Nothing is more frustrating than having to mechanically do what a tool tip tells you. Ctrl . is much easier to use and also has a way to apply the fix to the entire project or even solution.

Does this help?

As we think about how we want to surface those in the docs, how do we make the distinction? Historically, reflection would see the attribute and add a boilerplate on MSDN.

We haven't designed the end-to-end yet. I think whatever the option is we'll try to make it data driven rather than writing custom code for all the analyzers. And if it's data driven, I think there would be a way to extend the doc tooling to pull in that information, akin to how the attribute worked. In this world, though, it would probably not manifest itself in the syntax section but probably as a custom section in the docs.

In the fullness of time, I'd love an experience where tools read what platform(s) I want to support in a library, and reports on any API that would have problems. In particular:

Changing the build configuration would cause any analyzers to run again and either add new reports, or remove those no longer applicable in the selected platforms.

Including a NuGet package not supported on the chosen platforms would generate some kind of warning. (This probably requires some NuGet enhancements too.)

Squiggles when I use an API not supported for a platform.

I've run into this issue myself, and there's not a lot of obvious help why an API isn't included. Is there a short-term solution that moves us along the path we want to travel?

Agreed. We're still fleshing out how the story will work in the build tools and our IDEs. Whatever mechanism we invent, we should make sure the docs echo it.

@terrajobst any ideas on when you will have a proposal to this? we're going through our features for docs and don't want to implement things when they're still unstable

Multi-targeting and .NET Standard is the number thing my team works on right now. I think we should have a committed high-level plan by EOW this week. From there on, it's mostly a matter of us designing the concrete UX up the stack. Unfortunately, I don't have an ETA for that.

Any updates on this @terrajobst?

Yes, I've added a PR to my tool. The experience looks like this:

This is neat! Let's sync on how we want to surface this information on the docs then, @terrajobst.
/cc @dend

We'll add info to the API docs from https://github.com/dotnet/platform-compat/tree/master/docs to indicated deprecated APIs.

During Sprint 143, I'll add information on APIs that are not recommended and their suggested replacements.

This is awesome! 😄


Postgresql 10.x

Hello
First, congratulations for this project! My project uses a postgresql 10.x database, marten isn't compatible, am I right? Is there a beta version for 10.x?

I'm on Postgres 10 and Marten works just fine, not sure what would have given you the impression otherwise?


RAM Consumption during training

When I am training the cell pose with the below command, i see that memory consumption is very high and eventually  whole RAM gets filled in .
Any suggestions ?
model.train(X,Y, train_files = train_fileNames,
            test_data=x, test_labels=y, test_files = test_fileNames,
           channels = [0,0],
           save_path = "../",
           batch_size = 32,
           n_epochs = 30
           )

edit the code, in labels_to_flows function,  save  _flows.tif in [for n in range(nimg)] loop

@N0ooone could you please help more here, i can find the function but not the place.
Thanks n advance
def labels_to_flows(labels, files=None, use_gpu=False, device=None, omni=False,redo_flows=False):
    """ convert labels (list of masks or flows) to flows for training model
    if files is not None, flows are saved to files to be reused
    Parameters
    --------------
    labels: list of ND-arrays
        labels[k] can be 2D or 3D, if [3 x Ly x Lx] then it is assumed that flows were precomputed.
        Otherwise labels[k][0] or labels[k] (if 2D) is used to create flows and cell probabilities.
    Returns
    --------------
    flows: list of [4 x Ly x Lx] arrays
        flows[k][0] is labels[k], flows[k][1] is cell distance transform, flows[k][2] is Y flow,
        flows[k][3] is X flow, and flows[k][4] is heat distribution
    """
    nimg = len(labels)
    if labels[0].ndim < 3:
        labels = [labels[n][np.newaxis,:,:] for n in range(nimg)]

    if labels[0].shape[0] == 1 or labels[0].ndim < 3 or redo_flows: # flows need to be recomputed

        dynamics_logger.info('NOTE: computing flows for labels (could be done before to save time)')

        # compute flows; labels are fixed in masks_to_flows, so they need to be passed back
        labels, dist, heat, veci = map(list,zip(*[masks_to_flows(labels[n][0],use_gpu=use_gpu, device=device, omni=omni) for n in trange(nimg)]))
        # concatenate labels, distance transform, vector flows, heat (boundary and mask are computed in augmentations)
        if omni:
            flows = [np.concatenate((labels[n][np.newaxis,:,:], dist[n][np.newaxis,:,:], veci[n], heat[n][np.newaxis,:,:]), axis=0).astype(np.float32)
                        for n in range(nimg)]
        else:
            flows = [np.concatenate((labels[n][np.newaxis,:,:], labels[n][np.newaxis,:,:]>0.5, veci[n]), axis=0).astype(np.float32)
                    for n in range(nimg)]
        if files is not None:
            for flow, file in zip(flows, files):
                file_name = os.path.splitext(file)[0]
                tifffile.imsave(file_name+'_flows.tif', flow)
    else:
        dynamics_logger.info('flows precomputed')
        flows = [labels[n].astype(np.float32) for n in range(nimg)]
    return flows

I have the same problem, when my dataset is very large, cellpose loads all the data until it fills up all the memory and the program crashes and exits.

you need to use more RAM on your computer, or downsample the size of your images in your training set. we don't plan to support other ways of training in the short term -- the whole Cellpose dataset easily fits in RAM


docker: add script to publish image

This script can be used to publish an image based on a tag or commit:

./container/publish_image.sh 863bf4a7faec3b13eba57a0864e63f5e416cd6e3

Converted to draft because docker-compose needs some work


Wraith command-line help doesn't list all options

The command-line options documentation lists many Wraith command options:
  wraith capture [config_name]              # Capture paths against two domains, compare them, generate gallery
  wraith compare_images [config_name]       # compares images to generate diffs
  wraith copy_base_images [config_name]     # copies the required base images over for comparison with latest images
  wraith crop_images [config_name]          # crops images to the same height
  wraith generate_gallery [config_name]     # create page for viewing images
  wraith generate_thumbnails [config_name]  # create thumbnails for gallery
  wraith help [COMMAND]                     # Describe available commands or one specific command
  wraith history [config_name]              # Setup a baseline set of shots
  wraith latest [config_name]               # Capture new shots to compare with baseline
  wraith multi_capture [filelist]           # A Batch of Wraith Jobs
  wraith reset_shots [config_name]          # removes all the files in the shots folder
  wraith save_images [config_name]          # captures screenshots
  wraith setup                              # creates config folder and default config
  wraith setup_folders [config_name]        # create folders for images
  wraith validate                           # checks your configuration and validates that all required properties exist

However, none of this shows when I run wraith -h:
  Usage: wraith [options] <file ...>

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -c, --config [config]  Specify the location of the configuration file
    -q, --quiet            All logging is hidden

I would either expect these to be listed by default or else have wraith -h output provide a command to get this list, for example, wraith -h full.

Closed for reasons outlined in #383.


Fix groupId in example

Fix groupId in example (the com. prefix was missing)

Thanks for the pull request, apologies for the delay!


Cannot run update-ca-certificates

Even though we add the ca-certificates package, we can't run the update-ca-certificates script. Currently it fails because rm and mktemp are not present in the bare image.
$ docker run ghcr.io/canonical/kratos:1.0.0 exec update-ca-certificates
2023-09-11T14:09:32.773Z [pebble] Started daemon.
2023-09-11T14:09:32.781Z [pebble] POST /v1/exec 7.802789ms 202
2023-09-11T14:09:32.787Z [pebble] GET /v1/tasks/1/websocket/control 5.682901ms 200
2023-09-11T14:09:32.787Z [pebble] GET /v1/tasks/1/websocket/stdio 38.334µs 200
2023-09-11T14:09:32.788Z [pebble] GET /v1/tasks/1/websocket/stderr 27.827µs 200
/usr/sbin/update-ca-certificates: 84: mktemp: not found
/usr/sbin/update-ca-certificates: 75: rm: not found
2023-09-11T14:09:32.806Z [pebble] GET /v1/changes/1/wait 18.323217ms 200

I added all the packages to run update-ca-certificates, on this branch: https://github.com/canonical/kratos-rock/blob/IAM-483-Enable-certificates-update/rockcraft.yaml
I got this error message:
sed: can't read /etc/ca-certificates.conf: No such file or directory
I verified that the file isn't there. I guess this file gets created when a package manager triggers a script.
I'm not sure what's the best way to proceed. Seems like other charms that use ca-certificates don't use the bare build for ubuntu.

I tried it out a little and I have a couple of comments:

the reason that this happens is that /etc/ca-certificates.conf is created by a maintainer script in the package. Rockcraft installs the debian packages, but does not run the maintainer scripts.
The error that you see is a soft error, meaning that the script does not fail. If you place a cert in /usr/local/share/ca-certificates, after you run update-ca-certificates you will see that cert in /etc/ssl/certs.
The problem is that even though the certificates in /usr/local/share/ca-certificates are taken into account, all of the certs from the mozzila package are ignored because of the missing ca-certificates.conf file.
This is a rockcraft issue unrelated to our base image.

It is not clear how to move forward:

we can try to create the conf file manually (should not be too hard) in rockcraft.yaml
we can move all the certificates from /usr/share/ca-certificates/mozilla/ to /usr/local/share/ca-certificates/
we can create a chisel for the package that run the script (?)
TBH all of the above solutions are far from ideal and I would not want to go forward with any of them. Maybe the rockcraft team can help us on this.

You can try to install the ca-certificates in the overlay-packages (@amandahla suggested me that approach and it worked).


[pigment-css] Add stringifyTheme for Pigment CSS integration

~blocked by https://github.com/mui/pigment-css/issues/124~
closes mui/pigment-css#130
For https://github.com/mui/pigment-css/pull/105
To make the serializable theme available at runtime because some components are accessing runtime theme with useTheme.
Usage with Pigment CSS:
// next.config.js
const { extendTheme, stringifyTheme } = require('@mui/material/styles');

const theme = extendTheme();

theme.toRuntimeSource = stringifyTheme;

module.exports = withPigment({
  theme,
})

[x] I have followed (at least) the PR section of the contributing guide.

@brijeshb42 the build passes, I believe that it's ready for the final review.

stringifyTheme doesn't seem to be exported from @mui/material/styles anymore, although it is still mentioned in the docs.

stringifyTheme doesn't seem to be exported from @mui/material/styles anymore, although it is still mentioned in the docs.

Sorry, that's a mistake. It should not appear in the docs, I am fixing it.


[AIRFLOW-2476] allow tabulate up to 0.8.2

Make sure you have checked all steps below.
JIRA

[X]

https://issues.apache.org/jira/browse/AIRFLOW-2476

Description

[X] As discussed on the dev list, tabulate==0.8.2 is good to go with Airflow

Tests

[X] tested manually

Commits

[X] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message"

@Tagar Can you please squash commits? and as Sid requested can you please provide a little more details on this upgrade in the JIRA?

@Tagar kindly rebase

@r39132 sorry for the delay. I've moved to some other projects and don't have airflow handy to fix this. if somebody can take over this PR, this will be totally fine with me. Thanks!


Add debug mode support for client

We actually have logrus.Debug usage on client side for a long time,
they seem never worked.
Signed-off-by: Qiang Huang<EMAIL_ADDRESS>

Moving to design review, because this is not only a documentation change, it also contains changes to pkg/mflag/flag.go
IIRC, there has been a debate in the past to remove the -D flag, and use --log-level=debug, but not sure if that's the same thing that's proposed here?
For reference: https://github.com/docker/docker/pull/13221 and https://github.com/docker/docker/pull/11965
ping @duglin for removal of -D / --debug
and ping @calavera and @jfrazelle because Janky won't run because it thinks this is a docs-only PR!

Manually starting Janky seemed to have worked for now

We may not need the code changes since -D and --debug do seem to work on the master.  Granted it could be due to @tiborvass's latest changes.  If so, I think just the doc edits would remain.

@duglin What do you mean -D and --debug do seem to work on the master? I'm trying to enable it on client side, but now if I use it, I got error:
$ docker run -ti --rm -D ubuntu bash
flag provided but not defined: -D
See 'docker run --help'.

I know it's work on daemon side. Is the former approach supposed to support this flag on both daemon and client side, and was somehow broken now? I didn't dig the history.

@hqhq try docker -D run ...

@duglin I see... then I think we don't need these docs changed either, because -D is in the common options which is already in man docker, so close it, thanks all.


test: set up basic test framework

This PR adds the foundation for a basic testing workflow based on CMake's CTest. In follow-up PRs, this foundation can be extended to use a testing framework like Boost.Test or Google Test.

@tanim-ics Are you okay with merging this PR? If so, could you give your approval? :)


Node fs driver not parsing JSON correctly on getItem

Environment
env: nodejs
package: "unstorage": "^1.9.0"
driver: "unstorage/drivers/fs-lite"
Reproduction
JSON data saved using setItem
[
   {
      "id":1696432843813494,
      "topic":"a010c720914211446fa00fbab9ba09f6960ff4b0fe08640da5aaa302893347a4",
      "request":{
         "method":"wc_sessionPropose",
         "params":{
            "requiredNamespaces":{

            },
            "optionalNamespaces":{

            },
            "relays":[
               {
                  "protocol":"irn"
               }
            ],
            "proposer":{
               "publicKey":"89df667763a718f5b254e32c7306a579b2653cb9810e3f3f4309ba0fdfbdc876",
               "metadata":{
                  "name":"Test App",
                  "description":"Test App for WalletConnect",
                  "url":"https://walletconnect.com/",
                  "icons":[
                     "https://avatars.githubusercontent.com/u/37784886"
                  ]
               }
            }
         }
      },
      "expiry":1699024843,
      "response":{
         "result":{
            "relay":{
               "protocol":"irn"
            },
            "responderPublicKey":"ed505a321885bc4452549e34eec5e69b57dce55a7614150a82331be024b42e0c"
         }
      }
   },
   {
      "id":1696432844531432,
      "topic":"c81eb451fafb2f5128b13a1788542b47d7f84bb148a27f63f63a51c60dad32e2",
      "request":{
         "method":"wc_sessionPing",
         "params":{

         }
      },
      "expiry":1699024844,
      "response":{
         "result":true
      }
   }
]

data returned by getItem
[
   {
      "id":1696432843813494,
      "topic":"a010c720914211446fa00fbab9ba09f6960ff4b0fe08640da5aaa302893347a4",
      "request":{
         "method":"wc_sessionPropose",
         "params":{
            "requiredNamespaces":{

            },
            "optionalNamespaces":{

            },
            "relays":[
               {
                  "protocol":"irn"
               }
            ],
            "proposer":{
               "publicKey":"89df667763a718f5b254e32c7306a579b2653cb9810e3f3f4309ba0fdfbdc876",
               "metadata":{
                  "name":"Test App",
                  "description":"Test App for WalletConnect",
                  "url":"https://walletconnect.com/",
                  "icons":[
                     "https://avatars.githubusercontent.com/u/37784886"
                  ]
               }
            }
         }
      },
      "expiry":1699024843,
      "response":{
         "result":{
            "relay":{
               "protocol":"irn"
            },
            "responderPublicKey":"ed505a321885bc4452549e34eec5e69b57dce55a7614150a82331be024b42e0c"
         }
      }
   },
   {
      "id":1696432844531432,
      "topic":"c81eb451fafb2f5128b13a1788542b47d7f84bb148a27f63f63a51c60dad32e2",
      "request":{
         "method":"wc_sessionPing",
         "params":{

         }
      },
      "expiry":1699024844,
      "response":{
         "result":true
      }
   }
]{
   "id":1696432845108483,
   "topic":"c81eb451fafb2f5128b13a1788542b47d7f84bb148a27f63f63a51c60dad32e2",
   "request":{
      "method":"wc_sessionPing",
      "params":{

      }
   },
   "expiry":1699024845,
   "response":{
      "result":true
   }
}
]

Describe the bug
I'm testing out the lib and run into an issue using the fs-litedriver. I'm saving the above stringified JSON but when I attempt to get the data using getItem, the JSON returned is malformed and unusable. I've checked the value stored in the actual file and formatting/contents are correct so the issue is happening when reading/parsing the JSON from the file.
Suggestion:
Would be awesome if the lib allows you to provide custom parsing functions. In my org, we are using safe-json lib to handle json payloads including Bigint although I'm not sure if the issue is related.
Additional context
No response
Logs
No response

Hi. I have made a reproduction from the provided data above, but it seems the stored data is same:
https://stackblitz.com/edit/stackblitz-starters-og7qd4?file=package.json,index.mjs
Can you please try that? (it is possible something happened in concurrency, regardless of JSON serializer)
BTW it is a good idea to support custom serializer apart from this also if there is any issue with destr we shall fix it.

Thanks for the fast response. Indeed, in your sandbox it works so I would dig deeper what might be causing my issue 💯

I'm facing the similar problem but with writing when setItem in loop, event when object is correct:
 voluptatem: [
   { code: '43951', label: 'Sed quaerat estd.', value: 'jRJHnjJo7W' }
 ],
 voluptatibus: [ { code: '78261', label: 'Ullam deseru.', value: 'EFEY1xPTm6' } ]
}

the stored result is wrong:
"{\"voluptatem\":[{\"code\":\"43951\",\"label\":\"Sed quaerat estd.\",\"value\":\"jRJHnjJo7W\"}],\"voluptatibus\":[{\"code\":\"78261\",\"label\":\"Ullam deseru.\",\"value\":\"EFEY1xPTm6\"}]}Kf4QBH\"}]}"

and its completely unpredictable.

Simple switch to memory storage solve the issue, but I need fs (PS its part of "nuxt": "^3.8.1")

fsLite also not working properly

Looks like the problem was with ids, they were duplicated.

@VladimirCores Kindly please open new issue with runnable reproduction so I can check 🙏🏼

@pi0 it was a problem on my side, the used falso random generator and looks like some of their generators (rndText, rndAbbreviation, rndCode) produce duplication on large sets, which resulted in node writing (overwriting) issue.


Support Postgres for custom data layer

Overview

Adds custom Postgres data layer
Inspired by @sandangel work on #796 for MongoDB
Optionally configures ADLS as the blob storage provider (designed to allow other providers in the future)

I only have access to Azure so I can't test/configure other providers

Test System

OS: Windows 11
Python: 3.11.4
Postgres: v11

How to configure
Run this SQL DDL in your postgres database

 DDL
CREATE TABLE users (
    "id" UUID PRIMARY KEY,
    "identifier" TEXT NOT NULL UNIQUE,
    "metadata" JSONB NOT NULL,
    "createdAt" TEXT
);

CREATE TABLE IF NOT EXISTS threads (
    "id" UUID PRIMARY KEY,
    "createdAt" TEXT,
    "name" TEXT,
    "user_id" UUID,
    "tags" TEXT[],
    "metadata" JSONB,
    FOREIGN KEY ("user_id") REFERENCES users("id") ON DELETE CASCADE
);

CREATE TABLE steps (
    "id" UUID PRIMARY KEY,
    "name" TEXT NOT NULL,
    "type" TEXT NOT NULL,
    "threadId" UUID NOT NULL,
    "parentId" UUID,
    "disableFeedback" BOOLEAN NOT NULL,
    "streaming" BOOLEAN NOT NULL,
    "waitForAnswer" BOOLEAN,
    "isError" BOOLEAN,
    "metadata" JSONB,
    "input" TEXT,
    "output" TEXT,
    "createdAt" TEXT,
    "start" TEXT,
    "end" TEXT,
    "generation" JSONB,
    "showInput" TEXT,
    "language" TEXT,
    "indent" INT,
    FOREIGN KEY ("threadId") REFERENCES threads("id") ON DELETE CASCADE
);

CREATE TABLE IF NOT EXISTS elements (
    "id" UUID PRIMARY KEY,
    "threadId" UUID,
    "type" TEXT,
    "url" TEXT,
    "chainlitKey" TEXT,
    "name" TEXT NOT NULL,
    "display" TEXT,
    "objectKey" TEXT,
    "size" TEXT,
    "page" INT,
    "language" TEXT,
    "forId" UUID,
    "mime" TEXT,
    FOREIGN KEY ("threadId") REFERENCES threads("id") ON DELETE CASCADE,
    FOREIGN KEY ("forId") REFERENCES steps("id") ON DELETE CASCADE
);

CREATE TABLE IF NOT EXISTS feedbacks (
    "id" UUID PRIMARY KEY,
    "forId" UUID NOT NULL,
    "value" INT NOT NULL,
    "strategy" TEXT DEFAULT 'BINARY' NOT NULL,
    "comment" TEXT,
    FOREIGN KEY ("forId") REFERENCES steps("id") ON DELETE CASCADE
);

Add POSTGRES_URI environment variable in your .env file
POSTGRES_URI = user=<your_user> host=<your_host> password=<your_password> port=<your_port>sslmode=require dbname=<your_db>

Add this to your app.py
import chainlit.data as cl_data
from chainlit.data.postgres import PostgresDataLayer

cl_data._data_layer = PostgresDataLayer(uri=POSTGRES_URI)

Optional: Blob Storage

Add ADLS client to enable non-text storage

ADLS_SAS_TOKEN = <your_SAS_token>

Install module

pip install azure-storage-file-datalake==12.14.0

Add to app.py

from azure.storage.filedatalake import DataLakeServiceClient

cl_data._data_layer.add_blob_storage_client(blob_storage_client=blob_storage_client, access_token=ADLS_SAS_TOKEN) # Add blob storage client

@hayescode would it make sense to use SQLAlchemy to allow different SQL engines it supports? I'm working on a similar feature and opted for that route.

@dahifi thanks for your review!

Code is fairly complex, and could use some functional refactoring and perhaps a bit more documentation on necessary env or config requirements. There are no tests. I would think a basic sanity check would be needed here, but I'm not sure what the team considers best practices here.
I tried to follow the existing ChainlitDataLayer as much as possible. Could you expand on the documentation you're looking? I imagined once merged comments from my PR description will be added to docs.chainlit.io.

I don't see tests on the other data layers, are you talking about the github workflows?

sql_upsert, sql_select, and sql_delete could use a helper function for the duplicated code. I also have a flag for security considerations against SQL injection. Not sure the risk/effort to support parameterized queries.

This code is already parameterized and based on my reading of the documentation currently guards against SQL injection. Could you share some details about the security flag you speak of?

Database calls should be wrapped with error handling, not just logging. Have you checked in the literalAI SDK to see how the team handles failures currently?

sql_upsert, sql_select, and sql_delete all have try/except blocks in addition to the logging similiar to the literal SDK. I'm not sure I understand.

TODOs shouldn't be in a PR. They need to be completed, or removed prior to approval.

Fair. I moreso put those TODO as an FYI to reviewers that I know this code can be improved in various ways, but imo is un-necessary for merging as many are 'nice-to-haves'. I'll remove those comments now.

Run this through ruff --autofix as well.

I'll look into this. If this is about the mypy test failures i'm running that through GPT4 right now.

Keep up the good work!

Thanks again for looking this over and for your feedback!

@hayescode would it make sense to use SQLAlchemy to allow different SQL engines it supports? I'm working on a similar feature and opted for that route.

@nixent I actually started with SQLAlchemy but ran into a blocker but can't remember exactly what it was but psycopg solved it. Is your feature Postgres?

@nixent ya know I recently upgraded my SQL alchemy version (had to use different version because I was also using it for Databricks) and it seems to work now.
I'm going to close this PR for now and try to use that instead because I agree that would be a better solution and people could plug in their own dialects. Great feedback!

@nixent i just refactored the whole thing using SQLAlchemy 2.0.28 and it WORKS! I dunno what the deal was before. Thanks for your comment inspiring this. I'll try to get the PR out tomorrow, just need to do some more testing and fix these mypy issues. Cheers!

Hey ! Thanks a lot for this, it's very interesting and useful !
I have some kind of bug, I'm not sure if it comes from chainlit, your code or something I did, but maybe you guys can help :
Basically, when you leave the current conversation (conversation A) by clicking on a past chat, then refresh the page and go back to conversation A by clicking on it in the past chats section and resuming, the messages are wrongly ordered, the user messages all come first, then all the AI messages follow. Furthermore, they are not always ordered the way they were typed in. This doesn't happen when you leave the chat session by using new chat or refreshing the page.
I assume this has something to do with the way the messages are ordered when inserting them or retrieving them from postgres, but I'm not sure.
Any idea where this might come from ? How can I adress this ? Thanks a lot guys !
Here is what I mean :

Hey ! Thanks a lot for this, it's very interesting and useful !
I have some kind of bug, I'm not sure if it comes from chainlit, your code or something I did, but maybe you guys can help :
Basically, when you leave the current conversation (conversation A) by clicking on a past chat, then refresh the page and go back to conversation A by clicking on it in the past chats section and resuming, the messages are wrongly ordered, the user messages all come first, then all the AI messages follow. Furthermore, they are not always ordered the way they were typed in. This doesn't happen when you leave the chat session by using new chat or refreshing the page.
I assume this has something to do with the way the messages are ordered when inserting them or retrieving them from postgres, but I'm not sure.
Any idea where this might come from ? How can I adress this ? Thanks a lot guys !
Here is what I mean (the user messages are in the wrong order) :

Are you on the latest code? I also saw this but fixed it (I think). I was sorting by createdAt, but it shoulda been start>

I'm using the 394 lines version of the code currently in the main branch. I tried to change the request code from
        query = """         SELECT DISTINCT t.id, t."createdAt"         FROM             threads t             JOIN             users u on t.user_id=u.id             JOIN             steps s on t.id=s."threadId"             LEFT JOIN             feedbacks f on s.id=f."forId"         WHERE             u."identifier" = %s         """         if filters.search is not None:             query += "AND s.\"output\" ILIKE %s\n"             query_params.append(f"%{str(filters.search)}%")         if filters.feedback is not None and filters.feedback != 0:             query += "AND f.\"value\" IN (%s)\n"             query_params.append(str(filters.feedback))         query += "ORDER BY t.\"createdAt\" DESC\n"         query += "LIMIT %s"         query_params.append(str(pagination.first))
to
        query = """         SELECT DISTINCT t.id, t."createdAt", s."start"         FROM             threads t             JOIN             users u on t.user_id=u.id             JOIN             steps s on t.id=s."threadId"             LEFT JOIN             feedbacks f on s.id=f."forId"         WHERE             u."identifier" = %s         """         if filters.search is not None:             query += "AND s.\"output\" ILIKE %s\n"             query_params.append(f"%{str(filters.search)}%")         if filters.feedback is not None and filters.feedback != 0:             query += "AND f.\"value\" IN (%s)\n"             query_params.append(str(filters.feedback))         query += "ORDER BY s.\"start\" DESC\n"         query += "LIMIT %s"         query_params.append(str(pagination.first))
but I still have issues with messages ordering. Is that what you meant ?

This PR is dead look at #836

@hayescode I have created tables like users,threads,feedback,steps,elements in postgres and created datalayer to store data into it. When I run chainlit application the feedbacks are stored in table but also want to show chat history on UI but not able to show it on UI. Is there any way to show it?

@KillianLachx , I'm also facing this conversation order issue for my custom data layer for azure cosmos db. Can advise how do you resolved the issue?


Thrown weapons with loyalty dupe.

On the 19.2 medieval minecraft pack as a base, if you put a thrown weapon (Trident, Javelin, etc) with loyalty enchant in the tool belt, when you throw it, you will receive a second copy in the regular inventory when it returns.

Oh no! I'll look into it tomorrow, thank you for reporting.

Thanks for reporting


Exit status 1

is there any way to prevent the scaffolding from "Exiting" on sass/ js errors?

home/vagrant/Code/twin-isle/gulpfile.babel.js:70
undefined.emit('end');
^
TypeError: Cannot read property 'emit' of undefined

Hey @karneaud,
The problem is in errorHandler function. When I refactored the code I should have left this as a normal function  and not making it an arrow function because Gulp needs the keyword this to invoke .emit.
Use a traditional function and gulp watch should stay running even when you have errors on your code.
errorHandler: function(error) {
  console.log(error.message);
  this.emit('end');
}

Yeah figured as much once i started diving into the problem.


allow the use of the back facing camera

Allow the user to use either the front or the back camera. This is useful when on a phone.

thanks to @gnargfu, add the ability to use the bake camera


Error handling firecracker

Moved all error types to common code
Added proper error handling to firecracker
Sorry for the huge PR, we can split of moving the error types if needed but the large changes to firecracker.rs can no really be reduced in size.

@Ichmed what's the status here? Do we need this or we can close it?

Code has diverged to far, easier to do this again then to merge


knife vsphere clone error - Exception: NoMethodError: undefined method `ipAddress' for nil:NilClass

What are you trying to do and what's not working?
Trying to clone a VM from existing template in vSphere
Please paste the command and output (run with -VV). Don't forget to X out any passwords or sensitive information
$ knife vsphere vm clone 'xxxx' --template 'xxx' --bootstrap --cips dhcp --ssh-user xxx--ssh-password xxxx  --bootstrap-proxy 'xxxxxxxx' --resource-pool 'xxxxx' --datastore 'xxxxx' --run-list 'xxxx' --node-name 'xxxx'
Cloning template xxx to new VM xxxx
Finished creating virtual machine xxx
Powered on virtual machine xxxx
Waiting for network interfaces to become available...
Found address <IP_ADDRESS>
DEBUG: value for config item bootstrap_nic: 0
C:/Users/Administrator/AppData/Local/chefdk/gem/ruby/2.3.0/gems/knife-vsphere-1.2.23/lib/chef/knife/vsphere_vm_clone.rb:432:in `guest_address': undefined method `ipAddress' for nil:NilClass (NoMethodError)
        from C:/Users/Administrator/AppData/Local/chefdk/gem/ruby/2.3.0/gems/knife-vsphere-1.2.23/lib/chef/knife/vsphere_vm_clone.rb:384:in `run'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.14.89-universal-mingw32/lib/chef/knife.rb:430:in `block in run_with_pretty_exceptions'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.14.89-universal-mingw32/lib/chef/local_mode.rb:44:in `with_server_connectivity'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.14.89-universal-mingw32/lib/chef/knife.rb:429:in `run_with_pretty_exceptions'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.14.89-universal-mingw32/lib/chef/knife.rb:219:in `run'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.14.89-universal-mingw32/lib/chef/application/knife.rb:156:in `run'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.14.89-universal-mingw32/bin/knife:25:in `<top (required)>'
        from C:/opscode/chefdk/bin/knife:68:in `load'
        from C:/opscode/chefdk/bin/knife:68:in `<main>'

Other details, such as gem version and if you're working with a Linux or Windows VM
knife-vsphere-1.2.23 - RHEL VM

Hi, thanks for the details. Does your template have multiple NICs in it? It's getting caught up in a place that looks for the first non link-local address but it doesn't seem to be an IP.
A few thoughts:

Console in and do an ifconfig / ip addr
Does --bootstrap-ipv4 help?
If you have multiple NICs, --bootstrap-nic 1 may also help.


[Bug] Path resolution exception when submitting tasks in remote mode on Windows environment

Search before asking

[X] I had searched in the issues and found no similar issues.

Java Version
1.8
Scala Version
2.12.x
StreamPark Version
2.1.2（The dev branch has not yet addressed that）
Flink Version
1.18.1
deploy mode
remote
What happened
In services running locally on Windows using Idea, there is a path conversion exception when submitting tasks in remote mode.
Do we have a dedicated module or a utility class specifically for converting things for Windows? I've done a quick and dirty conversion and it works fine, but I feel it's not elegant enough. There are likely many more areas that require adaptation for the Windows environment.
Error Exception
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 2: D:\opt\streampark_workspace\workspace\100003\streampark-flinkjob_test-remote-yarn-local.jar
	at java.net.URI$Parser.fail(URI.java:2848)
	at java.net.URI$Parser.checkChars(URI.java:3021)
	at java.net.URI$Parser.parse(URI.java:3058)
	at java.net.URI.<init>(URI.java:588)
	at org.apache.flink.client.program.PackagedProgramUtils.resolveURI(PackagedProgramUtils.java:243)
	at org.apache.streampark.flink.client.trait.FlinkClientTrait.submit(FlinkClientTrait.scala:83)
	at org.apache.streampark.flink.client.trait.FlinkClientTrait.submit$(FlinkClientTrait.scala:60)
	at org.apache.streampark.flink.client.impl.RemoteClient$.submit(RemoteClient.scala:34)
	at org.apache.streampark.flink.client.FlinkClientHandler$.submit(FlinkClientHandler.scala:40)
	at org.apache.streampark.flink.client.FlinkClientHandler.submit(FlinkClientHandler.scala)

Screenshots
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!(您是否要贡献这个PR?)

Code of Conduct

[X] I agree to follow this project's Code of Conduct

https://wiki.avatr.com/pages/viewpage.action?pageId=21660370

I just tested it, and the problem you mentioned does exist. Currently, submitting jobs on Windows does not meet this condition.

I think this is related to the issue of flink. https://wiki.avatr.com/pages/viewpage.action?pageId=21660370

Cannot vist the site. got 403 error
dev-2.1.5 still has this issue


deploy system to Digital Ocean

follow e59 if needed

required for M1

System is deployed for now, will redeploy again after milestone 1 completion. If I need to make a new droplet, I will update the IP address here as well.
Link: http://<IP_ADDRESS>/


[Bug] Crashes when typing into search box immediately after opening manager

Description

Open the manager
Immediately after the window displays, type into the search box "test"

OS X Version
10.12.5
Sketch Plugin Manager Version
1.6
Screenshot
N/A
Logs
Crash Report:
Sketch Plugin Manager_2017-06-20-182209_Jingidy.crash.zip

It happens when I open an existing file, if I open a new document then it doesn't crash. @mludowise Do you have the same results?
Tested with same plugin manager version but with OS X v10.12.6

I know the root cause of the bug, but haven't had the time to figure out exactly how to fix it. The one that I'm running into is a race condition where, if you type in the search box before the plugins list finishes updating in the background, it crashes.
When you open the new document, are you seeing a popup that notifies you of updated plugins? If so, that's probably why it's not crashing for you when opening a new document. The popup opens after it's done loading the list of plugins.

Thanks for the quick response! I see now. I don't get the popup but I managed to replicate the bug when creating new documents.

This should be fixed now.