Error when get User tokens: Status Code: 400 invalid_grant

Hi,
I try get user token but get error.
$service = new Services\OAuthService([
'credentials' => [
'appId'  => '111',
'certId' => '222',
'devId'  => '333',
],
'ruName'      => 'foo'
]);
$url =  $service->redirectUrlForUser([
'state' => 'bar',
'scope' => [
'https://api.ebay.com/oauth/api_scope/sell.fulfillment'
]
]);
When I got url, paste it on browser, login ebay, grand permision, and got return url with code
v^1.1#i^1#f^0#I^3#r^1#p^3#t^U............
and next step, I call this function to get user token but got error:
$response = $service->getUserToken(new Types\GetUserTokenRestRequest([
'code' => 'v^1.1#i^1#f^0#I^3#r^1#p^3#t^U............'
]));
printf("\nStatus Code: %s\n\n", $response->getStatusCode());
if ($response->getStatusCode() !== 200) {
printf(
"%s: %s\n\n",
$response->error,
$response->error_description
);
} else {
printf(
"%s\n%s\n%s\n%s\n\n",
$response->access_token,
$response->token_type,
$response->expires_in,
$response->refresh_token
);
}
get the error: Status Code: 400 invalid_grant: the provided authorization grant code is invalid or was issued to another client
can tell me where I wrong, I try search and some solution tell encode "code" string before getUserToken, but it still not work.
help me. thank

maybe the parameter grant_type is missing, the docs say:

Request to get a User access token
  HTTP method:   POST
  URL (Sandbox): https://api.sandbox.ebay.com/identity/v1/oauth2/token

  HTTP headers:
    Content-Type = application/x-www-form-urlencoded
    Authorization = Basic

  Request body (wrapped for readability):
    grant_type=authorization_code &
    code=&
    redirect_uri=

grant_type=authorization_code

added grant_type parameter but still got same old error!

in cases like this, don´t focus too much on this SDK. do the whole thing manually with postman and compare the requests with the one this SDK is doing, than you will see a difference somewhere.

has there been any solutions for this? please help if there is away to fix it

@buddyy93 there is a way: do the whole oauth calls by yourself, not with the SDK. check your credentials and if everything is working, THEN use the SDK and compare the calls (request, url, header).

@michabbb would mind showing me the example codes please? i'm new to ebay sdk, i've been reading documentations but it's quite confusing.

@buddyy93 here my full code, it's working.
$service = new OAuthService([
'credentials' => [
'appId'  => 'your_appid',
'certId'  => 'your_certid',
'devId'  => 'your_devid'
],
'ruName'  => 'your_ruName'
]);
//Get GrandCode first
public function postGrandCode(){
$service = //above
$url =  $service->redirectUrlForUser([
'state' => 'bar',
'scope' => [
'https://api.ebay.com/oauth/api_scope/sell.fulfillment',
'https://api.ebay.com/oauth/api_scope/sell.fulfillment.readonly' //You can ad more sope here
]
]);
return $url;
}
Enter url link on browser, login ebay, accept permision and will got grandcode
Now we have grand code, we will get auth code.
public function getUserToken($grand_code){
$service = //above
    $grand_code = urldecode(urldecode($grand_code));

    $response = $service->getUserToken(new GetUserTokenRestRequest([
        'code' => $grand_code
    ]));

    if ($response->getStatusCode() !== 200) {

        $data['status'] = $response->error;
        $data['msg'] = $response->error_description;

    } else {
        $data['status'] = 'success';
        $data['access_token'] = $response->access_token;
        $data['refresh_token'] = $response->refresh_token;
    }
    return $data;
}

Save access_token and refresh_token to database, because access_token only active in 2 hours after create, so we need fresh_token to update access_token.
now we get orders from ebay
$service = new FulfillmentService([
'authorization' => $ebay_access_token
]);
    $request = new GetOrdersRestRequest([]);
    $response = $service->getOrders($request);

    if ($response->getStatusCode() !== 200) {
        dd( $response->error.': '.$response->error_description);
    } else {
     foreach ($response->orders as $ebayOrder){
       //your action here
     }
   }

@buddyy93 you can test your oauth stuff this way very easy:

login into your developer account
setup all your oauth stuff

redirect_url
image
acceptance/decline urls

you should get a Your branded eBay Production Sign In (OAuth) URL (see screenshot)

that´s the URL users can use to connect their account with your app. you can try this with your private ebay account for test. you call this URL, login with your regular ebay credentials, then you will be redirect to the redirect url in that setup, you can use your own github page for testing, i.e. https://github.com/buddyy83 - let´s say you use your github url, you will be redirect to (just an example):
https://github.com/buddyy93/?code=v%5E1.1%23i%5E1%23f%5E0%23p%5E3%23r%5E1%23I%5E3%23t%5EUl41Xzg6Rj77g7g7g7guM3MDkzM0Q5Njc2MDVCRkU3QkFDR&expires_in=299
in that URL you have a code you need to extract, this code expire in expires_in (see url) seconds.
you need to url_decode that code, the you will get this:
v^1.1#i^1#f^0#p^3#r^1#I^3#t^Ul41Xzg6Rj77g7g7g7guM3MDkzM0Q5Njc2MDVCRkU3QkFDR
(just an example)
as described here, you have to make a call to get access_token and refresh_token from the user:
https://developer.ebay.com/api-docs/static/oauth-client-credentials-grant.html
as i already said before.
then, with postman (also mentioned before) you can setup the call explained in the docs:

redirect_uri = RuName (eBay Redirect URL name) (from your developer account page)
code = the code you got after the ebay user login, when you get redirected - from the url
the header of this call is also explained at the ebay docs:

Authorization = Basic <B64-encoded_oauth_credentials>
Basic <B64-encoded_oauth_credentials> = Base64-encoded OAuth credentials <client_id>:<client_secret>
client_id = APP ID (Client ID from your app
client_secret = Cert ID (Client Secret) from your app
after sending this call, you get a valid access_token and refresh_token.
the best, you can use postman to generate PHP code from that call:
<?php

$request = new HttpRequest();
$request->setUrl('https://api.ebay.com/identity/v1/oauth2/token');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
  'Cache-Control' => 'no-cache',
  'Authorization' => 'Basic <client_id:client_secret> base64 encoded',
  'Accept' => 'application/json',
  'Content-Type' => 'application/x-www-form-urlencoded'
));

$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields(array(
  'grant_type' => 'authorization_code',
  'code' => '<code from redirect uri>',
  'redirect_uri' => '<RuName>'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

if this is working for you and you fully understand the oauth process, THEN it´s time to use a SDK, otherwise you have no idea what´s going on and you will never be able to verify, fix or compare working and none working calls with eachother, in other words, you won´t be able to debug your stuff.
if this still in not clear enough, you should start from the very beginning and read the concept of oauth, the whole thing can be tricky if you never had anything todo with that 😏

@congloi thank you so muchh! it worked like a charm :)

@michabbb i haven't tried it though, but i like the details there you gave, will read it thoroughly, thank you

apparently i'm having a trouble as well on refreshing the token.
these are my codes.
function refresh()
{
$response = $this->service->refreshUserToken(new \DTS\eBaySDK\OAuth\Types\RefreshUserTokenRestRequest([
'refresh_token' => 'refresh_token',
'scope'         => [
'https://api.ebay.com/oauth/api_scope/sell.account',
'https://api.ebay.com/oauth/api_scope/sell.inventory'
]
]));
/**
* Output the result of calling the service operation.
*/
printf("\nStatus Code: %s\n\n", $response->getStatusCode());
if ($response->getStatusCode() !== 200)
{
printf(
"%s: %s\n\n",
$response->error,
$response->error_description
);
} else
{
printf(
"%s\n%s\n%s\n%s\n\n",
$response->access_token,
$response->token_type,
$response->expires_in,
$response->refresh_token
);
}
}
i wonder what i did wrong there, any helps is really appreciated, thank you

Hi!
I am getting this same error and while I was searching for possible fixes, I happen to find the thread.
I am already executing the very same requests (w/ my credentials from the ebay dashboard) in postman as you posted, but I am still getting the same issue.
{"error":"invalid_grant","error_description":"the provided authorization grant code is invalid or was issued to another client"}
Here is my javascript code embedded in my redirect link,
app.get('/', function(req, res) {
	var params = req.query

	axios({
		method: 'POST',
		url: 'https://api.ebay.com/identity/v1/oauth2/token',
		headers: {
			'Content-Type': 'application/x-www-form-urlencoded',
			'Accept': 'application/json',
			'Cache-Control': 'no-cache',
			'Authorization': 'Basic QWRlYW5MYWQtTG9naXN0aWMtUFJELTI4MWY0ZTVlOS0zNGQzZmU1ZDpQUkQtODFmNGU1ZTk3YjUxLWE4MGYtNGIzYy0XXXXXXXXXXXX='
		},
		data: qs.stringify({
			'grant_type': 'authorization_code',
			'redirect_uri': 'Xxxxx_Xxxxx-YyyyyYyy-Xxgist-oirla',
			'code': 'v^1.1#i^1#f^0#r^1#I^3#p^3#t^...VeMjYw'
		})
	})
	.then((response) => { res.json(error.response.data) })
	.catch((error) => { res.json(error.response.data) })

});

I am quite lost of what or where I went wrong. If you can point it out, it would be a great help!
Thank you.

@narraressan some say, this error popped up because they encoded something twice. other say, because they used wrong scopes in the very first call, but if you use the call from the developer account:

that shouldn´t happen.
if you follow the steps of my detailed posting, i don´t see any reason why this shouldn´t work 😕
the next thing that comes into my mind, when the user calls the URL (you see in this screenshot) - thiscode has a very short lifetime. the call you are showing here, where u are using this code v^1.1#...
needs to be made very quick, because of its short lifetime. you see the lifetime in the URL where you get the code from.
if nothing helps, you could provide your postman calls (without any real credentials) as an export-file:

create a folder (in postman)
put your calls in there and name them step1, step2, step3 and so on, so we know what your doing
right click: Export
upload json
provide link to this json

i am running out of ideas 😏

Good day!
Sorry for the late reply.
Actually, I think I got it working by just logging out my Ebay account.
It seems that I can't get a new token with grant type authorization_code while having an existing account logged in. This case doesn't apply with grant type client_credentials though.
Weird scenario... :(
Anyway, thank you...

@congloi i guess you can close your issue here

@michabbb's answer is the solution. I was having this problem for days. These are the steps that I followed to generate user access token:
(This should work, assuming you already setup your eBay Redirect URL name) I didn't put anything under "Your auth accepted URL" and "Your auth declined URL" since I don't have one, but this still works)

log in to https://developer.ebay.com/my/auth/
go to "Get a Token from eBay via Your Application"
Select radio button OAuth
Click Test Sign-in
Then click "I Agree"
Copy the code part of the url. URL-encoded authorization code value returned to you by eBay when the user granted their consent. i.e https://signin.ebay.com/ws/eBayISAPI.dll?ThirdPartyAuthSucessFailure&isAuthSuccessful=true&code=v^1.1%23i^1%23f^0%23I^3%23r^1%23p^3%23t^Ul41XzA6QkFCOUNGMzU4MEY2QkI1QUUzMUJFRkI3NTgxMjlDMzNfMl8xI0VeMTI4NA%3D%3D&expires_in=299
decode the string you just copied using urldecode('string here').
Go to postman then paste in request body "code" key when the user granted their consent. i.e https://signin.ebay.com/ws/eBayISAPI.dll?ThirdPartyAuthSucessFailure&isAuthSuccessful=true&code=&expires_in=299
Go to postman then paste the decoded string in request body "code" key. Please see photo posted by @michabbb for complete headers and request body keys.

@michabbb's answer is the solution. I was having this problem for days. These are the steps that I followed to generate user access token:
(This should work, assuming you already setup your eBay Redirect URL name) I didn't put anything under "Your auth accepted URL" and "Your auth declined URL" since I don't have one, but this still works)
log in to https://developer.ebay.com/my/auth/
go to "Get a Token from eBay via Your Application"
Select radio button OAuth
Click Test Sign-in
Then click "I Agree"
Copy the code part of the url. URL-encoded authorization code value returned to you by eBay when the user granted their consent. i.e https://signin.ebay.com/ws/eBayISAPI.dll?ThirdPartyAuthSucessFailure&isAuthSuccessful=true&code=""&expires_in=299
decode the string you just copied using urldecode('string here').
Go to postman then paste the decoded string in request body "code" key. Please see photo posted by @michabbb for complete headers and request body keys.

@michabbb's answer is the solution. I was having this problem for days. These are the steps that I followed to generate user access token:
(This should work, assuming you already setup your eBay Redirect URL name) I didn't put anything under "Your auth accepted URL" and "Your auth declined URL" since I don't have one, but this still works)

log in to https://developer.ebay.com/my/auth/

go to "Get a Token from eBay via Your Application"

Select radio button OAuth

Click Test Sign-in

Then click "I Agree"

Copy the code part of the url. URL-encoded authorization code value returned to you by eBay when the user granted their consent. i.e https://signin.ebay.com/ws/eBayISAPI.dll?ThirdPartyAuthSucessFailure&isAuthSuccessful=true&code={COPY THE STRING HERE}&expires_in=299

decode the string you just copied using urldecode('string here').

Go to postman then paste the decoded string in request body "code" key. Please see photo posted by @michabbb for complete headers and request body keys.

hey all,
in the meantime, I created a little playground for ebay-oauth, feel free to play with it.


new error

? Please select trade configuration?  market-trade-one
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 314, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fcda1753490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.kucoin.com', port=443): Max retries exceeded with url: /api/v1/accounts?currency=USDT&type=trade (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fcda1753490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bot-kucoin.py", line 227, in
balance = acct_balance()
File "bot-kucoin.py", line 95, in acct_balance
acct_balance = user_client.get_account_list(config['trade_configs'][selected_config]['pairing'], 'trade')
File "/usr/local/lib/python3.8/dist-packages/kucoin/user/user.py", line 73, in get_account_list
return self._request('GET', '/api/v1/accounts', params=params)
File "/usr/local/lib/python3.8/dist-packages/kucoin/base_request/base_request.py", line 86, in _request
response_data = requests.request(method, url, headers=headers, timeout=timeout)
File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.kucoin.com', port=443): Max retries exceeded with url: /api/v1/accounts?currency=USDT&type=trade (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fcda1753490>: Failed to establish a new

There's an issue with the bot checking the price during the pump. I'm fixing it now

yea i was thinking about that thats why i biought with it and sold mannualy but the bot would have mad 200% and i only made  20 but thas okay its in work

how long would this take i am always up for testing

I should get it done in the next few hours

how is it going any update? do you know how to fix it?

Yes, I'm mostly there. I'm implementing asyncio for asynchronous function calls

Just tell me when its done

and how does it look

This video gives a brief using Python.
https://www.youtube.com/watch?v=t5Bo1Je9EmE
I was using threads before and while that can work, I didn't realise it wasn't implemented properly.

Repo is updated and new version is live. I have done some testing but please do some testing too. I would like to know if it works well for Kucoin and Binance.
The config file works as intended now. The bot will check for price changes during the process rather than waiting for the set time. You can test this for yourself by uncommenting line 180 for Kucoin and line 169 for Binance.
There is also a timer implemented after the trade to show if the bot was able to sell before the fallback time.

@outrageousmaski have you updated and tested it out yet?

updated yes tested no didnt get the opertunity


Hawk.contains()

Would be good to have a method to check if the key exists
Hawk.contains(key)

added in v1.1


Error: pyo3_runtime.PanicException assertion failed: encoder.len() == decoder.len()

Here's an example of how you can structure your issue:
Env
run  pip list
Package                Version
---------------------- --------------
aiohttp                3.8.4
aiosignal              1.3.1
anyio                  3.6.2
apturl                 0.5.2
async-timeout          4.0.2
attrs                  22.2.0
bcrypt                 3.2.0
blinker                1.4
blobfile               2.0.1
Brlapi                 0.8.3
certifi                2020.6.20
cffi                   1.15.1
chardet                4.0.0
charset-normalizer     3.1.0
click                  8.0.3
colorama               0.4.4
command-not-found      0.3
cryptography           3.4.8
cupshelpers            1.0
dblatex                0.3.12
dbus-python            1.2.18
defer                  1.0.6
distro                 1.7.0
distro-info            1.1build1
dlib                   19.16.0
duplicity              0.8.21
eg                     1.2.2
fasteners              0.14.1
filelock               3.9.0
frozenlist             1.3.3
future                 0.18.2
gpg                    1.16.0-unknown
h11                    0.14.0
httpcore               0.16.3
httplib2               0.20.2
httpx                  0.23.3
idna                   3.3
importlib-metadata     4.6.4
iotop                  0.6
jeepney                0.7.1
keyring                23.5.0
language-selector      0.1
launchpadlib           1.10.16
lazr.restfulclient     0.14.4
lazr.uri               1.0.6
libvirt-python         8.0.0
lockfile               0.12.2
louis                  3.20.0
lxml                   4.9.2
macaroonbakery         1.3.1
Mako                   1.1.3
MarkupSafe             2.0.1
monotonic              1.6
more-itertools         8.10.0
multidict              6.0.4
netifaces              0.11.0
numpy                  1.24.2
oauthlib               3.2.0
olefile                0.46
openai                 0.27.2
OpenAIAuth             0.3.2
opencv-python          <IP_ADDRESS>
paramiko               2.9.3
pexpect                4.8.0
Pillow                 9.0.1
pip                    23.0.1
prompt-toolkit         3.0.38
protobuf               3.12.4
ptyprocess             0.7.0
pycairo                1.20.1
pycparser              2.21
pycryptodomex          3.17
pycups                 2.0.1
PyGObject              3.42.1
PyJWT                  2.3.0
pymacaroons            0.13.0
PyNaCl                 1.5.0
pyparsing              2.4.7
PyQt5                  5.15.9
pyqt5-plugins          <IP_ADDRESS>.3
PyQt5-Qt5              5.15.2
PyQt5-sip              12.11.1
pyqt5-tools            <IP_ADDRESS>.3
pyRFC3339              1.1
PySocks                1.7.1
python-apt             2.4.0+ubuntu1
python-dateutil        2.8.1
python-debian          0.1.43ubuntu1
python-dotenv          1.0.0
pytz                   2022.1
pyxdg                  0.27
PyYAML                 5.4.1
qt5-applications       <IP_ADDRESS>.3
qt5-tools              <IP_ADDRESS>.3
regex                  2022.10.31
reportlab              3.6.8
requests               2.28.2
retrying               1.3.4
revChatGPT             4.0.11
rfc3986                1.5.0
SecretStorage          3.3.1
setuptools             59.6.0
six                    1.16.0
sniffio                1.3.0
socksio                1.0.0
ssh-import-id          5.11
systemd-python         234
tiktoken               0.3.3
tqdm                   4.65.0
ubuntu-advantage-tools 8001
ubuntu-drivers-common  0.0.0
ufw                    0.36.1
unattended-upgrades    0.1
urllib3                1.26.5
usb-creator            0.3.7
vboxapi                1.0
wadllib                1.3.6
wcwidth                0.2.6
wheel                  0.37.1
xdg                    5
xkit                   0.0.0
yarl                   1.8.2
zipp                   1.0.0

run uname -a
Linux jasonos-WU 5.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

python version
Python 3.10.6

Description
I ran into an assertion error while trying to run the project on Ubuntu 22.04 with Python 3.10. The error message reads as follows:
thread '<unnamed>' panicked at 'assertion failed: encoder.len() == decoder.len()', src/lib.rs:458:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/jasonos/.local/lib/python3.10/site-packages/revChatGPT/V3.py", line 556, in <module>
    main()
  File "/home/jasonos/.local/lib/python3.10/site-packages/revChatGPT/V3.py", line 549, in main
    for query in chatbot.ask_stream(prompt):
  File "/home/jasonos/.local/lib/python3.10/site-packages/revChatGPT/V3.py", line 154, in ask_stream
    self.__truncate_conversation(convo_id=convo_id)
  File "/home/jasonos/.local/lib/python3.10/site-packages/revChatGPT/V3.py", line 94, in __truncate_conversation
    self.get_token_count(convo_id) > self.truncate_limit
  File "/home/jasonos/.local/lib/python3.10/site-packages/revChatGPT/V3.py", line 121, in get_token_count
    encoding = tiktoken.encoding_for_model("gpt-4-32k-0314")
  File "/home/jasonos/.local/lib/python3.10/site-packages/tiktoken/model.py", line 67, in encoding_for_model
    return get_encoding(model_encoding_name)
  File "/home/jasonos/.local/lib/python3.10/site-packages/tiktoken/registry.py", line 63, in get_encoding
    enc = Encoding(**constructor())
  File "/home/jasonos/.local/lib/python3.10/site-packages/tiktoken/core.py", line 50, in __init__
    self._core_bpe = _tiktoken.CoreBPE(mergeable_ranks, special_tokens, pat_str)
pyo3_runtime.PanicException: assertion failed: encoder.len() == decoder.len()

After some investigation, I discovered that one of the dictionary variables, mergeable_ranks.
and i print it :
mergeable_ranks: {b'!': 0, b'"': 1, b'#': 2, b'$': 3, b'%': 4,..., b'Application': 5095, b'legate': 5096, b' takes': 5}

it had a rank that wasn't in sequential order. The last key in the mergeable_ranks dictionary had a rank of 5, which caused the assertion error. so why ?
I try to fix the issue, I added the following code in core.py, line 50 :
# FIXBUG
lastRankNum = mergeable_ranks[list(mergeable_ranks.keys())[-2]] + 1
mergeable_ranks[list(mergeable_ranks.keys())[-1]] = lastRankNum
self._mergeable_ranks = mergeable_ranks

Having not submit a pull request yet. I'm sharing this issue in case someone else is experiencing the same problem.

It's not the order, it's probably that you have two tokens with the same value.

The next release of tiktoken will mention this in the error message

Has this problem been solved

@osjason I was facing the same error out of nowhere!!
Thank you so much for the fix!


Inline integrateMartech

See #216
Test URLs:

Before: https://main--mammotome--hlxsites.hlx.page/us/en/
After: https://inline-martec--mammotome--hlxsites.hlx.page/us/en/

@solaris007 - This doesn't save a lot but at least we have one less remote call and we add the gtm script slightly later.


[UI] Add Loading Spinner Component

Signed-off-by: Yash Kamboj<EMAIL_ADDRESS>Description
Missing component in the new refactoring ui branch
Previous PR #4828
This PR fixes #
Notes for Reviewers
Signed commits

[ ] Yes, I signed my commits.

@YashKamboj Could you please revert the changes related yarn.lock and package-lock files?

I think its all good now!

@EmmanuelTheCoder We need the 2 files, yarn.lock & package-lock.json removed from the PR
CC @Abhishek-kumar09

@YashKamboj Would you confirm the spinning behaviour by importing it somewhere in the code and giving a short video?

@YashKamboj the ball is in your court here.

@YashKamboj Could you please update your branch with the upstream meshery-ui-restructuring one?

@adithyaakrishna @leecalcote Ohh!!!, forgot about this pr 😅 , got too involved in the meshery.io migration. I will complete this pr now

@Abhishek-kumar09 Its working fine!!, sorry for the late reply, forgot about this pr
https://user-images.githubusercontent.com/75125203/169272910-17a03c32-a59f-4ba2-8e2a-2f7f3dab19c4.mp4

Can't resolve the conflicts in this pr, it shows the conflicts are complex, made a new pr  #5565


Modernize the Signaling and video calling example

This is done by removing the final vestiges of the
addstream/removestream support, switching from using
tracks to transceivers, and shifting the order of
actions during the signaling process code to make it
more reliable and stable, and to support modern signaling
improvements and practices.
This is in service of MDN issue #1779.

This also introduces flexibility in that if the attempt to load the HTTPS key and certificate fails, or the attempt to create an HTTPS connection fails, the server falls back to HTTP. This is useful for testing on localhost, for instance.

This also introduces flexibility in that if the attempt to load the HTTPS key and certificate fails, or the attempt to create an HTTPS connection fails, the server falls back to HTTP. This is useful for testing on localhost, for instance.


Update jcstress-core

Currently the plugin builds on jcstress sources dated 2015.07. There are many changes to the jcstress repo since that.

Hi,
I'll try to build the most recent Java 8-compatible jcstress and see if works without changing the plugin itself. This week, I hope...

I was able to

build latest jcstress (from repo) with Java 9 b124, but test were failing to build, so I just removed them, to build only core and code-gen.
build your plagin (latest from repo) with 1.0-snapshot jcstress (built on step 1) hard coded in JcstressPluginExtension.groovy
build my test using the version of the plugin, built on step 2, with mavenLocal()

However, running tests produced by this led to some strange crashes.

I've played around with newer jcstress and it looks like some jcstress concepts have changed. So it's going to take some more time.
I'll try to assemble the [d1ed559 version.

Ok, I've released a new version just now.
Can you verify everything works fine?

Ok, I found a bug with 0.7.0 - only unforked runs worked. I've just released and checked the 0.7.1 version - seems to work fine with forks, too.
I've assembled the d1ed559 version, but jcstress required some code changes from my side to make it work with Gradle.


feat(gcs): initial google cloud storage support

Implements google cloud storage as a backend.
TODO:

swap out the siuba-tests project for a dedicated pins one (edit: could take care of when backends are moved in rstudio specific accounts)
implement a board_gcs constructor (done)

edit: requires #126

@juliasilge I think this is ready! Anything more that'd be useful to add here? Note that it runs 35 tests of GCP, which are part of a core "35 tests run per backend" (e.g. can you write then read a pin, compat with stored R pins, etc..).


[6.0][Runtime] Exclude logd_helper from tracing.

Cherry-pick https://github.com/apple/swift/pull/72951 to release/6.0.
logd_helper is part of the log system and we can't safely log from within it.
rdar://126120335

@swift-ci please smoke test

@swift-ci please test


No camera output

Hi,
I'm using a O3D311 and I'm not getting the grayscale image as shown in README.md. The Amplitude image is as shown below. I have updated the camera firmware to latest version. Am I doing something wrong? Or does this camera not support 2D image output?

I'm going to assume the O3D311 resembles the O3D303 enough that the info below applies...
It looks like you are looking at the "Raw Amplitude" image which could be difficult to interpret. Turn on the "Amplitude" image (in rviz), which is actually the "Normalized Amplitude" image. This will look more like an image from a grayscale camera as you would expect.

Thank you Tom, but the Amplitude image shows the same thing. I guess I have the wrong camera. Its really hard to find the difference between the 30x and 31x models in datasheet. As recommended, will try to get a 303 model and try it out

The O3D311 is a stainless steel version of the O3D301 (40 deg opening angle). The 301 and 303 differ only in opening angle. We should see no data difference between all of these articles.

A few other things...
You don't necessarily want to update to the latest firmware, but rather run a supported software stack (i.e., IFM Firmware + libo3d3xx + o3d3xx-ros). The project README files have a matrix that lays this all out.
You may want to play with your imager settings to get a better picture. There are various permutations of number of frequencies, number of exposure, exposure times (short and long), etc. You likely just need to play with those settings to get something usable.
Finally, be mindful of what you are trying to image -- surface material, reflectance properties, distance to it, etc. Take a look at the "Good Bad Pixels" image. This is a binary image that will show you the count (and spatial location) of good vs bad pixels.

Hmm. Ok will give it a go again 2moro. Im hoping its just out of focus. Thanks guys

@aswinhope what scene you are looking at? Your image looks really strange.  I recommend mounting the camera looking at the ceiling in ~2m distance in this set-up you can use your hand to check the sharpness of the camera. The recommended way is to double check the camera with the ifm Vision Assistant.

Hi,
I wasnt able to view the camera output in ifmVisionAssistant. I chose both 2D and 3D options, but I saw nothing like a grayscale image

Dont know how true this is, but I was just told by an ifm sales person that the 313 cannot view image

@aswinhope I apologize for the confusion.  All articles in the O3D3 series have the ability to view both depth and amplitude data.
Articles ending in a "0" or "2" are considered sensors and work directly with the ifm Vision Assistant.  An example is O3D302.
Articles ending in a "1" or "3" are considered cameras.  These are designed to be used in conjunction with ROS, Halcon or with the ifm SDK.
I hope this helps.


Optional sensitive fields are not supported

What happened?
First reported in https://github.com/crossplane-contrib/provider-tf-equinix-metal/issues/8, fields that are optional and sensitive in the Terraform provider will not prevent resource creation but will cause errors when the resource is being refreshed - thus preventing deletion.
In the Equinix Metal provider's metal_device resource, optional sensitive fields userdata and custom_data are set on device create are not refreshed on subsequent reads. These fields are not forcenew.
https://github.com/equinix/terraform-provider-metal/blob/main/metal/resource_metal_device.go#L268-L282
In Terraform, these fields may appear to be null in the terraform.state resources[*].instances[*].attributes map.
When encountering these values, Terrajet errors out (with a warning):
Warning  CannotObserveExternalResource  30m
managed/device.equinixmetal.jet.crossplane.io/v1alpha1, kind=device
cannot get connection details: cannot get connection details:
cannot not get a string for fieldpath "user_data": user_data: not a string

https://github.com/crossplane-contrib/terrajet/blob/6abd89a444231a61237788434f38d6e92dbae150/pkg/resource/sensitive.go#L119

How can we reproduce it?

Attempt to create and then delete the following resource:
https://github.com/crossplane-contrib/provider-tf-equinix-metal/blob/main/examples/device/device.yaml
Or, attempt to delete any resource with an optional sensitive attribute value that has no assigned value.

@displague  Could this be same as https://github.com/crossplane-contrib/terrajet/issues/118 ?

@muvaf The descriptions sound similar, the problem I am running into is at observation time, I can't tell if the problem in #118 was in any way focused on parsing the schema and defining creations parameters.
The conversation in https://github.com/crossplane-contrib/terrajet/pull/149/files#r751621390 makes me wonder if there are some edge-cases to consider.
In the AWS and GCP provider, perhaps the values returned are empty strings rather than nil?

@turkenh would you mind taking a look?


exports field in package.json missing a types field (required even if there is already a top level "types" field)

Current behaviour

importing html-bundler-webpack-plugin causes typescript error:

Could not find a declaration file for module 'html-bundler-webpack-plugin'. '/home/david/code/test/empty/node_modules/html-bundler-webpack-plugin/src/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/html-bundler-webpack-plugin if it exists or add a new declaration (.d.ts) file containing declare module 'html-bundler-webpack-plugin';ts(7016)

Expected behaviour
Types should work in latest typescript with "module": "node16" and "strict": true.
Here is some information about how typescript resolves types fields:
https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-typesversions
I think you need to add a "types" field to the "exports" in the package.json. Something like (but I'm not entirely sure this is 100% correct):
  "exports": {
-   ".": "./src/index.js",
+   ".": {
+     "require": "./src/index.js",
+     "import": "./src/index.js",
+     "types": "./types.d.ts"
+   },
    "./plugins": "./plugins/index.js",
    "./plugins/favicons-bundler-plugin": {
      "types": "./plugins/favicons-bundler-plugin/index.d.ts",
      "require": "./plugins/favicons-bundler-plugin/index.js",
      "import": "./plugins/favicons-bundler-plugin/index.js"
    }
  },

Reproduction Example
Create the 3 files below then run yarn && npx -y tsc.
// package.json
{
  "private": true,
  "devDependencies": {
    "html-bundler-webpack-plugin": "^3.5.1",
    "typescript": "^5.3.3",
    "webpack": "^5.90.3"
  }
}

//webpack.config.ts
import HtmlBundlerPlugin from 'html-bundler-webpack-plugin';

export default {
    plugins: [
        new HtmlBundlerPlugin()
    ]
}

// tsconfig.json
{
    "compilerOptions": {
      "module": "node16",
      "strict": true
    }
  }

Environment

OS: Ubuntu
version of Node.js: 20.11.0
version of Webpack: 5.90.3
version of the Plugin: 3.5.1

Additional context
n/a

Hello @davidmurdoch,
Thank you for the issue report and the solution!
The fixed version is 3.5.2.
I have added the fields require, import, types into the exports section of the package.json.
This just works fine, but I got another error: TS1479 by import { Options as MinifyOptions } from 'html-minifier-terser';
To fix it you should use following TS options:
// tsconfig.json
{
  "compilerOptions": {
    "strict": true,
    "module": "es2020",
    //"module": "node16", /* ERROR TS1479 by import { Options as MinifyOptions } from 'html-minifier-terser'; */

    "moduleResolution": "node",
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true
  }
}


Waiting for Createchannel job to be completed

It hangs at "Waiting for Createchannel job to be completed".. any suggestions please

Hi @swapmote , please check https://github.com/IBM/blockchain-network-on-kubernetes/issues/54, it will help. It is because of changes in latest version of Kubernetes. I'll update repository soon with this. Let me know if it helps or not.

@maheshwarishikha I referred to issue 54 and made the changes regarding dind version, but no luck.. Still facing the same error while channel creation. Any more suggestions please

@swapmote , Please share the output of following command.
kubectl version --short

Also, I assume you retried after proper clean-up in your environement and that also did not work.

@maheshwarishikha Yes.. I did a cleanup and tried.
kuberctl version --short output:
Client Version: V1.14.7-eks-1861c5
Server Version: V1.14.6-eks-5047ed

Does anybody have a fix for this? This repo is unusable right now. Trying to launch this on IBM instead of GCP to try out IBM Cloud for the first time, but having no such luck because of the createChannel issue 🤷♂

@JohnAntonusMaximus , did it work for you?

hi i got the siillar error, but internall i found in blockchain-orderer pod i found:
[33m2020-06-12 10:06:41.952 UTC [common.deliver] Handle -> WARN 00d[0m Error reading from <IP_ADDRESS>:44062: rpc error: code = Canceled desc = context canceled
[34m2020-06-12 10:06:41.952 UTC [comm.grpc.server] 1 -> INFO 00e[0m streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=<IP_ADDRESS>:44062 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=8.489745ms
[31m2020-06-12 10:06:51.373 UTC [cauthdsl] deduplicate -> ERRO 00f[0m Principal deserialization failure (the supplied identity is not valid: x509: certificate signed by unknown authority (possibly because of "x509: ECDSA verification failure" while trying to verify candidate authority certificate "ca.org1.example.com")) for identity 0
[33m2020-06-12 10:06:51.373 UTC [orderer.common.broadcast] ProcessMessage -> WARN 010[0m [channel: channel1] Rejecting broadcast of config message from <IP_ADDRESS>:60622 because of error: error validating channel creation transaction for new channel 'channel1', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group]  /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied
[34m2020-06-12 10:06:51.373 UTC [comm.grpc.server] 1 -> INFO 011[0m streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=<IP_ADDRESS>:60622 grpc.code=OK grpc.call_duration=2.980217ms
[33m2020-06-12 10:06:51.377 UTC [common.deliver] Handle -> WARN 012[0m Error reading from <IP_ADDRESS>:60620: rpc error: code = Canceled desc = context canceled
[34m2020-06-12 10:06:51.377 UTC [comm.grpc.server] 1 -> INFO 013[0m streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=<IP_ADDRESS>:60620 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=12.040193ms
[root@oc4458204364 blockchain-network-on-kubernetes]# kubectl version --short
Client Version: v1.17.0
Server Version: v1.16.2
Can you suggest anything

@basurohit77 - are you still facing issue?

Old issue. Not active. Hence closing.


[BUG] Formatted code is too expanded

Expected behavior
The code is formatted and well-readable.
Actual behavior
The code is formatted, but not readable or too expanded.
To Reproduce

The code formatted with the previous version:

validateUrlScheme =
    (url as text) as text =>
        if (Uri.Parts(url)[Scheme] <> "https") then
            error "Url scheme must be HTTPS"
        else
            url

The code formatted with the recent version:

validateUrlScheme = (
        url as text
    ) as text =>
        if (
            Uri.Parts(
                url
            )[
                Scheme
            ] <> "https"
        ) then
            error
                "Url scheme must be HTTPS"
        else
            url

Additional context
This is a simple example. We have a file with ~250 rows, which has grown to 100%.
The issue began a few days ago. Not sure when exactly, but I guess on the powerquery.vscode-powerquery extension update from 08/09/2022, 16:30:25.

Could you do something with this, please? Would be nice to have some formatting settings at least to disable such an over-extended version.
Thanks!

Could you give me the exact version of the extension that's being used? You can get the exact version of the extension by bringing up the list of installed extensions and hovering over it:

Seems the same as yours - 0.1.44

Strange. It appears that there's something more to it than the sample code provided, because this is how it formats your code as an expression:
let     validateUrlScheme = (url as text) as text =>         if (Uri.Parts(url)[Scheme] <> "https") then             error "Url scheme must be HTTPS"         else             url in     1
And as a section document:
`section foobar;
validateUrlScheme = (url as text) as text =>
if (Uri.Parts(url)[Scheme] <> "https") then
error "Url scheme must be HTTPS"
else
url;`
Does this match with your experience? It could be that you're code is a snippet of something larger which doesn't give the full context. For example one variable used during formatting is line length, and if it's a snippet it probably had additional indentation.

It's a part of the larger code, yes. But I've just created a new file:

The same behavior with a fresh vscode and the only extension installed :(

Oh, you're right! Much better now :+1:
Still, a completely different format compared to the previous version, so I have the whole file changed in git...
I understand that the vscode extension is actively developing, and I appreciate your efforts. But could you clarify if the format/code style will be subject to further big changes? I mean, git tracking is getting a bit confusing, and maybe we should consider stopping using auto-formatting on save for a while.

We planned one big formatter change, though the non-experimental mode seems to have a regression regarding verticality. I'd recommend using the experimental mode as it's closer to what the intended format is going to be here on out.

Ok, thanks!
Do you think it's worth keeping this ticket open to track the progress on the non-experimental mode? If not - I don't mind if you close it.

I'm going to close it as we'll be making the experimental formatter the default formatter. Thank for bringing the issue up to begin with, it helped us re-prioritize the experimental formatter.


WebjarService should assume pathInfo starts with a /

In the real world, pathInfo always begins with a '/' unless it's
empty.  In the current implementation, it's assuming no leading slash,
leading to the webjar segments being off by one.
/cc @Busti

Build failure was a result of mistargeted branch when opened.


Make it possible to import buildings

Includes database changes
Includes changes to the demand attribute for house builder
Changed specs accordingly

Fixes #162 & #154

@antw if you could take a look :smiley:

Looks good to me, @grdw! Thanks.


Use volume size as the ground truth while creating the engine process

Longhorn 3601
Depends on https://github.com/longhorn/longhorn-engine/pull/740
Depends on https://github.com/longhorn/longhorn-instance-manager/pull/133
Signed-off-by: Derek Su<EMAIL_ADDRESS>

Is there method forcing users upgrade the volume's engine image?
cc @shuo-wu @innobead

We really need to fix the engine binaries so that we can add arbitrary parameters which will be ignored instead of crashing.
One big reason to switch to the GRPC communication instead of the direct binary invocation was that we are able to change/improve the api in the long run.

We really need to fix the engine binaries so that we can add arbitrary parameters which will be ignored instead of crashing.
Great idea

The backward compatibility issue is addressed. Please help review the PR. Thank you.

@derekbit https://github.com/longhorn/longhorn-instance-manager/pull/133 merged, please update this PR and also update related manifests in longhorn as well.


ocamlPackages.git: 3.5.0 -> 3.9.1

Description of changes
Updated ocaml git package.
Built on top of #180724 and #180726

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

@vbgl This breaks irmin-git, should I update irmin and friends in this PR as well or can I do it in a upcoming PR?

Supersedes #180436

Indeed, it seems that irmin and git must be updated simultaneously.

However, fixing git-unix at the expenses of breaking irmin-git might be a good deal (i.e., updating irmin, repr and who knows what more can wait for a follow-up PR).

@vbgl I already had a mostly OK irmin commit so I did a fixup on that and pushed it here if you want to review again. I tried go through all the META files to clean up dependencies as @superherointj suggested to me on Discord.
I removed irmin-unix from wodan-unix without fixing it since it's already marked as broken.

I tried go through all the META files to clean up dependencies as @superherointj suggested to me on Discord.

To clarify, I said that the list of propagatedBuildInputs (usually) comes from META file.

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

1 package failed to build:

ligo

10 packages built:

comby
dune-release
jackline
libbap
liquidsoap
python310Packages.bap
python39Packages.bap
soupault
stog
wayland-proxy-virtwl

Marked LIGO as broken, it's super out of date (because I couldn't update it with old Irmin) anyway. I'll fix it in a follow up PR when I have time

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

1 package marked as broken and skipped:

ligo

10 packages built:

comby
dune-release
jackline
libbap
liquidsoap
python310Packages.bap
python39Packages.bap
soupault
stog
wayland-proxy-virtwl

duff does not exist in git package and is being propagated.

There is an update of ligo in #184394. Might be incorporated here.

On git-paf:
mirage-stack is not listed at:
https://github.com/ocaml/opam-repository/blob/master/packages/git-paf/git-paf.3.9.1/opam
Also bigarray-compat is not listed too. Is it necessary?

On git-unix:
Not listed in opam (shouldn't be included?):

mmap
cohttp-lwt-unix

Not listed in META: (Should be buildInputs?)

uri
mtime

At carton:

Remove: useDune2 = true;
stdlib-shims is still at line 2 despite not being used anymore.

I'd prefer irmin fix was made as a separate PR because it is already a fairly large PR for review. And irmin is changing 19 files. I have mostly reviewed the git PR today exception being irmin. In case you cherry-pick irmin to another PR, we can finish git PR first.

There is an update of ligo in #184394. Might be incorporated here.

We need to update BLS12-381 (and maybe more) to update LIGO so I would rather do it in an other PR.
Other than that I have now update this PR and I think it's in good shape to merge

I’ve just added the ligo and related updates from that other PR. cc @bezmuth.

I started creating a branch updating to 0.52 of LIGO as well but it needs a bunch of new and updated packages. I'll see if I can open a PR to update LIGO itself to use 0.15 of Jane Street packages so that we can remove the commit.


Fixed telemetry data sharing exception

Do we have any test ensuring we won't regress on the cleaning of the metrics in both Initialize methods?

Sorry, missed this comment. We don't have any such tests yet but I am working on adding them.


How would use a stored procedure with query types?

This document only shows an example of a view. How would you use a stored procedure with query types to return something that is not "*" and more than one column?

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

ID: ace630fc-7310-10b7-39bb-26fcfe3f3950
Version Independent ID: dbe96b32-0589-0f8c-6558-11a065d84dff
Content: Query Types - EF Core
Content Source: entity-framework/core/modeling/query-types.md
Product: entity-framework
GitHub Login: @anpete
Microsoft Alias: divega

You can do this, given you have a DbQuery<BlogPostsCount> BlogPostCounts in you model:
modelBuilder.Query<BlogPostsCount>().ToQuery(() => BlogPostCounts.FromSql(<SQL to execute stored procedure>));

What about passing parameters to the sp on runtime?

You can pass parameters to SP on runtime like this:

In your Context class, add OnModelCreating

protected override void OnModelCreating(ModelBuilder builder)
{
base.OnModelCreating(builder);
builder.Query();
}

Call SP:

var testList = Context.Query().AsNoTracking().FromSql(
"SP_Name @p0, @p1",
"p0 value",
"p1 value"
).ToList();

Thank you for the information.
BTW, I am using views with EF Core, I should have figured this out earlier.
But, one more question arises, how can you handle multiple result sets from an SP?
Haven't tried that so far... I suppose EF preserves the last one?

I don't know how to handle multiple result sets but in this case EF will get the first result set to list.

I'm also having the same issue. My stored proc returns a list of records without any unique key and I need to map it to my entity because field names in the database are chaotic (legacy database).
So, as usual, I add:
    public class MySprocResultEntityConfiguration : IEntityTypeConfiguration<MySprocResultEntity>
    {
        public void Configure(EntityTypeBuilder<MySprocResultEntity> builder)
       {
            ... mapping all ugly db field names here; not using ToTable or ToView because the entity comes from sproc

But EF throws on initialization:
System.InvalidOperationException: The entity type 'MySprocResultEntity' requires a primary key to be defined.
   at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model)

So, how do I add custom mapping to my query type that has no primary key?

Oh, I just found IQueryTypeConfiguration, which was not documented in the article - I just replaced IEntityTypeConfiguration with IQueryTypeConfiguration, mapped my entity to my stored proc results without HasKey, and used the following code:
var sprocResults = await _dbContext.Query<MySprocResultEntity>()
                .FromSql("Get_MySprocResultEntities @Param1 = {0}, @Param2 = {1}", p1, p2)
                .AsNoTracking()  // I guess, this is redundant but I like to be explicit
                .ToListAsync();

@progmars How did you define the query expression to builder.ToQuery() for stored procedure?  A sample will be helpful.

@gopala000
In my case, I didn't use ToQuery at all. I just defined all my entity fields using builder.Property and that was enough.

@progmars Thanks for your response. I'm looking for how to map the sproc and parameters using builder.*.

Duplicate of #969


Issue with Address Undefined When Switching Accounts in MetaMask Using "@reown/appkit-adapter-ethers

Link to minimal reproducible example
const { address, isConnected, caipAddress } = useAppKitAccount();
const { open } = useAppKit();
<Button
style={{
borderRadius: '10px',
background: themeGlobal.palette.button.background,
marginLeft: 'auto',
color: '#fff',
width: '159px',
height: '40px',
flexShrink: '0',
}}
onClick={() => open()}>
{formatAddress(address)}

Summary
I'm using "@reown/appkit-adapter-ethers": "^1.1.4" and I'm connected to MetaMask with account 1. When I switch from account 1 to account 2 in MetaMask and connect with account 2, I get undefined for the address:
const { address, isConnected, caipAddress } = useAppKitAccount();
While I do get account 2's address in caipAddress, the address being undefined is causing issues with disconnecting and other functionalities since the app relies on the address field.
Here’s the button code:
const { open } = useAppKit();
<Button
style={{
borderRadius: '10px',
background: themeGlobal.palette.button.background,
marginLeft: 'auto',
color: '#fff',
width: '159px',
height: '40px',
flexShrink: '0',
}}
onClick={() => open()}>
{formatAddress(address)}

Because the address is undefined, the UI breaks when handling disconnect and other actions.
Could you please guide me on how to resolve this or suggest an alternative approach to handle the address field properly in AppKit?
List of related npm package versions
@reown/appkit-adapter-ethers : "^1.1.4,
ethers :6.13.2,

It's working ok in 1.2.1


Allow indoor map markers to be removed

If indoor map markers are visible, the indoor map can be entered. This means the embed has to provide a mechanism of existing the indoor map (typically a button that calls the indoor map API to exit). Rather than requiring all embeds to provide an exit trigger, allow indoor map markers to be hidden.
This can be a config option, an API point, or both.

Added "indoorsEnabled" option to L.eeGeo.map. Available from v0.1.173.


Encryption doesn't work with default settings.

If you enable encryption and use the default journal filename format then Emacs will throw an error because the journal buffer doesn't have org mode enabled and it uses org-set-tags-to here. org-set-tags-to relies on org buffer-local variable which since org-mode is not on is not initialized properly.
I suppose the best fix would be to enable org-mode when opening/creating/operating on journal files. Currently I fixed it by changing org-journal-file-format to %Y-%m-%d.org (I wanted that anyway so it's fine for me).

Normally, org-journal appends the org-journal-file-pattern to your auto-mode-alist (in the function org-journal-update-auto-mode-alist). This runs whenever org-journal-dir or org-journal-file-format is changed, or when org-mode is loaded. With the auto-mode-alist entry, journal files are automatically opened in org-journal-mode and thus load org-mode. This is probably why changing the format solves the problem for you.
However, I can't reproduce your problem on my machine. With encryption enabled and no further customization, I can C-c C-j no problem. What version of Emacs and org-mode are you running?

Emacs version:
GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2)
Org mode:
Org-mode version 8.2.10 (8.2.10-42-g2e1bc4-elpaplus @ .../24.5.1/elpa/org-plus-contrib-20150706/)
I reverted my fix to get the stack trace (upon C-c C-j):
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  looking-at(nil)
  org-set-tags-to("crypt")
  org-journal-new-entry(nil)
  call-interactively(org-journal-new-entry nil nil)
  command-execute(org-journal-new-entry)

This is how my org-journal was setup to produce the stack trace:
(use-package org-journal
  :init
  (setq org-journal-dir "~/Journal"
        ;; org-journal-file-format "%Y-%m-%d.org"
        org-journal-enable-encryption t))

Note that org-journal-dir is still changed.

If I run Emacs with your settings, I am not getting the error you are describing. However, my file names are all wrong unless I change org-journal-dir to "~/Journal/" (note the trailing slash). Could this be the problem? This might be messing up your auto-mode-alist.
When you run Emacs, but did not interact with org-journal yet, what is the value of org-journal-file-pattern and org-journal-dir? Also, does your auto-mode-alist contain an entry for org-journal-mode? (You can check with C-h v)

I added the slash and after two restarts it works. Strangely change->restart doesn't do anything, but change->restart->restart works. Some sort of cache?
org-journal-dir is a variable defined in `org-journal.el'.
Its value is "~/Journal/"
Original value was
"~/Documents/journal/"

org-journal-file-pattern is a variable defined in `org-journal.el'.
Its value is
"^\\(?1:[0-9]\\{4\\}\\)\\(?2:[0-9][0-9]\\)\\(?3:[0-9][0-9]\\)$"

auto-mode-alist does have org-journal entries:
 ("/home/maiku/Journal/^\\(?1:[0-9]\\{4\\}\\)\\(?2:[0-9][0-9]\\)\\(?3:[0-9][0-9]\\)$" . org-journal-mode)
 ("/home/maiku/Journal/\\(?1:[0-9]\\{4\\}\\)\\(?2:[0-9][0-9]\\)\\(?3:[0-9][0-9]\\)$" . org-journal-mode)

The regexes seem a bit odd to me. First one shouldn't work at all. Also according to this $ shouldn't be used.

Interesting. I'll put in a fix that appends the slash if it is not there already. That should fix this issue for good. Also, thank you for the heads-up regarding $. I'll fix that, too.
Thank you for your help in analyzing this problem. This was very insightful!

OK, this should be fixed in the latest version. Did 1.9.5 solve your issue?

Yeah it did. Sorry for delay, I thought I already responded and it turns out I didn't.
Thanks.

Thank you for the bug report, and your help solving this issue.

Encryption still not working . Here is my configuration:
(setq org-journal-dir "~/wb/journal")
(setq org-journal-file-format "%Y%m%d.org")
(setq org-journal-enable-encryption t)

If I just added
(setq org-journal-enable-encryption t)

and do not change other settings , Encryption worked well.
Version Info:
GNU Emacs 24.5.1 (x86_64-apple-darwin14.1.0)
Org-mode version 8.2.10 (release_8.2.10 @ /opt/local/share/emacs/24.5/lisp/org/)
Mac OSX 10.10.3  with gnupg (gpg) command installed

This error has mysteriously appeared on my emacs config.
I have the following as my configuration:
(setq org-journal-dir "~/home/elias/org/journal/")
(setq org-journal-enable-encryption t)

Before entering/activating a journal entry, auto-mode-alist reveals that my configuration for my journal directory is not respected:
 ("/home/elias/Documents/journal/\\(?1:[0-9]\\{4\\}\\)\\(?2:[0-9][0-9]\\)\\(?3:[0-9][0-9]\\)\\'" . org-journal-mode)

Removing my customized directory made the error go away as it did for @dingmingxin and it works again as expected.
Is there a reason why this would suddenly happen? I just used it yesterday without issue.
I track my dotfiles with version control and reverted edits to my emacs config to see if I could un-break org-journal but none of my recent changes involve org-mode and, unsurprisingly, reverting my config file does not fix this. Would deleting my copy of org-journal under my elpa/ directory possibly help?
As always @bastibe, I really appreciate this emacs mode you maintain.

Weird. But thank you for keeping us informed.

Hmm. I've experienced it again.
Switching themes since I last deleted the package and reinstalled it gave me the same error. I will play with this later when I get the chance because I don't think this has anything to do with my two themes I normally use (I have switched between them plenty before).
I am wondering if the recent integration of Fira Fonts or use of a UTF8 symbol in my org-bullet list is triggering this. These feel like much more likely sources of error? I honestly wouldn't know.

With all your customizations, make sure to setq your variables before org-journal is loaded. Otherwise, it might end up with inconsistent data (or use customize, which takes care of this automatically).
Your error message sounds a bit like one of those inconsistent data cases. Also, what is the value of your org-crypt-tag-matcher?

Your error message sounds a bit like one of those inconsistent data cases. Also, what is the value of your org-crypt-tag-matcher?

With my configuration currently functioning as expected, it is:
org-crypt-tag-matcher is a variable defined in ‘org-crypt.el’.
Its value is "crypt"

With all your customizations, make sure to setq your variables before org-journal is loaded. Otherwise, it might end up with inconsistent data (or use customize, which takes care of this automatically).

How can I ensure this? I use the org-mode babel trick for maintaining my emacs config. Here's my section for org mode. These are the only edits/configs I have for org mode and org-journal mode:
(setq org-bullets-bullet-list (quote ("⬛" "⬤" "▣" "⦿" "►" "◼" "●" "➤")))
;; (setq org-hide-emphasis-markers t)
(setq org-journal-dir "/home/spook/org/journal/")
(setq org-journal-enable-encryption t)

;; stops org-journal from opening previous day's entry
(setq org-journal-carryover-items nil)
;;(emojify-mode 1)
(defun generic-org-minor-modes ()
  (interactive)
  (org-bullets-mode 1)
  (org-cdlatex-mode 1)
  (emojify-mode 1)
  (auto-fill-mode 1))
(add-hook 'org-mode-hook 'generic-org-minor-modes)

;; (setq epa-pinentry-mode 'loopback)
;; (pinentry-start)

;; enable org to evaluate the following PL code blocks with C-c C-c
(org-babel-do-load-languages
 'org-babel-load-languages '((C . t)
                             (python . t)
                             (shell . t)
                             (haskell . t)
                             (emacs-lisp . t)
                             (clojure . t)
                             (js . t)))

I would assume org-journal is only loaded upon opening a new entry, i.e. M-x org-journal-new-entry. My font changes are triggered at the moment of startup. Should I move my org-mode hook before my org-journal settings? My understanding from how e-lisp evaluation works with respect to emacs configuration is far from good.
Again, thank you for even bothering with this small issue of mine. It means a lot you bother to respond to issues like this and I appreciate it.

No problem. Your config looks good. I don't see an issue there.
Does your before-save-hook include org-journal-encryption-hook? This is what org-journal-enable-encryption is supposed to do.

Using Spacemacs here, encryption does not seem to work (org-journal itself works, https://github.com/syl20bnr/spacemacs/tree/develop/layers/%2Bemacs/org#org-journal-support)
(setq org-journal-enable-encryption t) is set, may I have forgotten something?


[Feature Request] pf run remove

Is your feature request related to a problem? Please describe.
Currently, run are managed by subcommands under pf run. However, it is not possible to remove runs if they are not needed any more.
Describe the solution you'd like
Add a command pf run remove --name to remove a specific run using its name.

+1 would be nice to have a auto-clean based on "older than X days"

Hi @ZhiliangWu @stewartadam , we currently have pf run archive --name to archive a run and it won't be shown in run list view.
Does that meet your needs? Or you want to delete the run and all it's data permanently from disk?

Remove from disk in my case

Thanks @stewartadam , we'll use this issue to track pf run remove/delete feature request. Batch deletion can be supported with user script on top of pf run remove/delete. We have no plan to support batch run deletion in near future. If you still need auto-clean provided by prompt flow in your scenario. Please open another issue for it.

Hi @D-W-, thanks for your reply. Similar to @stewartadam, I would want to remove it from my disk.
Currently, all runs seem to be saved under .promptflow/.run if I develop locally. Are there any way to remove the runs manually before you release the pf run remove/delete. I have tried to delete the corresponding folder but they got recreated again automatically (with empty contents).

pf run delete will be prepared in 1.4.0


Cordova application

Hello again,
Any chance to have an upcoming tutorial on how to transform the WEB application to a Cordova mobile application ? This is taken from your first part of the tutorial :

So in this article series, we will start by setting up a web app that allows for a consumable API in the back end and authentication with social providers. We will then move to a mobile app using Cordova and the same components we used. The app will be an SPA on the web side and the mobile side. When the web side is complete there should be very little configuration to transfer the app using the same components, styles, and structure to turn it into a mobile app. Of course there are a few tweaks that should be made, but we should be able to isolate those easily. This will allow for simultaneous development that’s easily transferred between web and mobile.

Thanks in advance !

Sorry for the long delay on this, but just letting you know that what you are asking for is coming very soon!
We just launched a brand new version of Roast at https://roastandbrew.coffee
We have everything that you will need in our upcoming book: https://serversideup.net/ultimate-guide-to-building-apis-and-spas-with-laravel-and-vuejs/
We actually just got the app into the Google Play store the other day (hoping Apple will approve ours soon): https://play.google.com/store/apps/details?id=coffee.roastandbrew.mobile
I hope you will find our book as a useful resource!


always types on us layout

Steps to reproduce:
create a pass file with a password containing special caracters. ( #?/ etc.)
switch your keyboard layout to german
[user@hostname ~]$ setxkbmap de

try to autotype this password. It wil come out mangled based on the differences between de and us layout.

Correction you have to edit the file in de layout. then it will break.
Editing it in us layout and autotypeing in de works.

All of the sudden I can't reproduce it. Weird.


Fix Team Header Level offset

For new h7 class

Coverage remained the same at 91.862% when pulling 7cec49e52d8f3ff3d4a5cdc1d3652c3d946b0a5d on ZY-Ang:AlexDocumentation into 291b723158d5692f7549fb032d00044a72bf88f1 on CS2103AUG2017-W11-B2:master.


🐛 [bug] - Build failure for git-sync

📝 Description
Cloning "https://gitlab-ce.apps.osc-cl4.apps.os-climate.org/osclimate-datamesh/data-mesh-pattern" ...
Commit: efb9821cee326adb0256eaa715d14ab17deb4bae (UPDATE - project rename)
Author: Derek Dinosaur<EMAIL_ADDRESS>Date: Tue Jun 13 07:40:45 2023 +0000
time="2023-06-21T15:57:03Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled"
I0621 15:57:03.856489 1 defaults.go:102] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
Caching blobs under "/var/cache/blobs".
Pulling image registry.access.redhat.com/ubi8/ubi:8.7-1112 ...
Trying to pull registry.access.redhat.com/ubi8/ubi:8.7-1112...
Getting image source signatures
Copying blob sha256:6208c5a2e205726f3a2cd42a392c5e4f05256850d13197a711000c4021ede87b
Copying config sha256:768688a189716f9aef8d33a9eef4209f57dc2e66e9cb5fc3b8862940f314b9bc
Writing manifest to image destination
Storing signatures
Adding transient rw bind mount for /run/secrets/rhsm
[1/2] STEP 1/11: FROM registry.access.redhat.com/ubi8/go-toolset:1.17.12-3 AS builder
Trying to pull registry.access.redhat.com/ubi8/go-toolset:1.17.12-3...
Getting image source signatures
Copying blob sha256:7e3624512448126fd29504b9af9bc034538918c54f0988fb08c03ff7a3a9a4cb
Copying blob sha256:e0dc1b5a4801cf6fec23830d5fcea4b3fac076b9680999c49935e5b50a17e63b
Copying blob sha256:db0f4cd412505c5cc2f31cf3c65db80f84d8656c4bfa9ef627a6f532c0459fc4
Copying blob sha256:354c079828fae509c4f8e4ccb59199d275f17b0f26b1d7223fd64733788edf32
Copying blob sha256:26f52032c311fbc800e08f09294173c94c35c8fcd36ed2d43ee3255bda598373
Copying config sha256:068b656b38eb7ca9715019ba440d0cd2dade3154390e13b6397d4601a8bdce66
Writing manifest to image destination
Storing signatures
[1/2] STEP 2/11: ARG ARG_OS=linux
--> ef8de5d13a9
[1/2] STEP 3/11: ARG ARG_ARCH=amd64
--> f7bf97ebc3e
[1/2] STEP 4/11: ARG ARG_BIN=git-sync
--> 010315e264e
[1/2] STEP 5/11: ARG TARGETOS=linux
--> d643f9978f3
[1/2] STEP 6/11: ARG TARGETARCH=amd64
--> decd079af01
[1/2] STEP 7/11: WORKDIR /workspace
--> 5fe2777e29d
[1/2] STEP 8/11: RUN git clone https://github.com/kubernetes/git-sync.git /workspace
Cloning into '/workspace'...
/workspace/.git: Permission denied
error: build error: error building at STEP "RUN git clone https://github.com/kubernetes/git-sync.git /workspace": error while running runtime: exit status 1

@redmikhail did you grant @jpaulrajredhat access to OS-C cluster?

access granted - @jpaulrajredhat do you have an update


Off-placed text on basic swal() - conflict with ...bootstrap or something?

https://i.imgur.com/4D4NiSI.png
See this screenshot, I just call swal("title", "text"); and the text seems to be floating right. I tried using html instead and center text, but it still wants to stay right.
Bootstrap conflict or something (exported from Webflow)? I placed the css for swal2 BELOW everything else, though, shouldnt swal override?

I have no idea which libraries you're using beside swal2.
In future issues please try to reproduce issues by using jsfiddle.


Namespace of the compiled MASM module for the Rust code

The compiler produces compilation artifacts in a form of one MASM file per module using module ID for the file name. The Rust code resides in a module with an ID corresponding to the crate name. If we load the MASM module without specifying the namespace, it gets assigned a #anon namespace. But I cannot figure out the way to call the procedure from the module with #anon namespace.
I've tried to call the procedure without importing the module assuming the #anon namespace is the default one, but it doesn't work.  I've tried the use directive with the #anon namespace, but it doesn't work either.
At the end I went with a workaround by assigning a synthetic namespace user_ns to the module, but the DX is not ideal.

Procedures from anonymously parsed modules should be callable after https://github.com/0xPolygonMiden/miden-vm/pull/1363 is merged.

To elaborate a bit on how we should address this once 1363 is merged:

We need to ensure that we use absolute paths for all procedure references, and elide emitting imports (unless we have a specific reason to use relative paths and imports on a case-by-case basis). The syntax for this is the usual path syntax, but prefixed with ::, e.g. ::foo::bar, and can be used anywhere that you specify paths in MASM.
The assembler parser has been modified so that when an absolute path with a single component is parsed, it treats it as implicitly in the #anon namespace, e.g. exec.::foo is treated as a procedure defined in an anonymous module. More precisely, in a procedure context like that, it parses it as a ProcedurePath::Absolute, whose path field is a LibraryPath with LibraryNamespace::Anon and no additional path components, and whose name field is simply the identifier foo. If used in a module path context, it is essentially the same, except the resulting LibraryPath contains foo as the sole path component.
Raw identifiers can be used anywhere that a procedure name is expected, so the following is valid syntax exec.::"miden:tx-kernel/get-inputs", and would refer to a procedure named miden:tx-kernel/get-inputs in the anonymous module.
When emitting a program, where the program is all in a single anonymous module, we can combine the two points above to reference all procedures in the program absolutely.

I'm planning a subsequent expansion of the path syntax in the assembler so that Wasm Component Model identifiers are also valid Miden Assembly identifiers, e.g. exec.::miden:tx-kernel/get-inputs would be parsed as ProcedurePath::Absolute with a path given by LibraryPath::new_from_components(LibraryNamespace::User("miden"), ["tx-kernel".into()]), and a name given by Ident::new("get-inputs"). This would be able to be combined with other options, such as raw procedure name identifiers, to allow for things like exec.::foo:bar/"baz::<T>::new".
That change I'll land after 0xPolygonMiden/miden-vm#1363, but at the moment we don't have packages, so we can get away without it since we don't need to reference items in other Wasm-compiled modules yet. For the time being, we can simply make use of what is provided in 1363 to handle referencing items much more seamlessly.

I'm planning a subsequent expansion of the path syntax in the assembler so that Wasm Component Model identifiers are also valid Miden Assembly identifiers, e.g. exec.::miden:tx-kernel/get-inputs would be parsed as ProcedurePath::Absolute with a path given by LibraryPath::new_from_components(LibraryNamespace::User("miden"), ["tx-kernel".into()]), and a name given by Ident::new("get-inputs"). This would be able to be combined with other options, such as raw procedure name identifiers, to allow for things like exec.::foo:bar/"baz::<T>::new".

As mentioned on the call, we could also consider making this the canonical way to define paths in MASM. So:
use.std:math::u64

begin
    exec.u64/add
end

Would be the same as:
begin
    exec.std:math::u64/add
end

And in both cases, the absolute path would be:
LibraryPath::new_from_components(LibraryNamespace::User("std"), ["math".into(), "u64".into()])

The primary motivation for this would be to reduce the complexity in the assembler at the cost of introducing some breaking changes (which I think may be OK).

Closing as completed for now. The assembler refactoring has made this largely redundant, though there are still improvements we can make to paths/identifiers in MASM.


Allow configuring when Celery tasks should expire

Allow an expiry time to be configured for the Celery tasks created by
the scheduled update job.
This will be useful to help avoiding a forever growing Celery task
queue.
Use a value of 23 hours as a default value in the deployment role.
Signed-off-by: Hunor Csomortáni<EMAIL_ADDRESS>

Build failed.

dist2src-tests  : FAILURE in 26m 37s

The failure of tests/test_update.py::test_update[alsa-lib-c8s] seems to have been a flake. It passed locally.


Possible explanation of "magic byte" in SBVJ01 files

Per Kawa in the Starbound Discord, 0x01 is used if the SBVJ01 file is versioned.  If it isn't versioned, it'll be 0x00 and will skip the Int32 field for the entity version, immediately going straight to the entity data itself (the SBON dynamic type structure).
Needs to be verified, but if this is the case, that's more for the formats file.

Cool! Thank you for the update. I haven't encountered any files that don't have the flag set, but if they exist, they'd probably read as corrupted files so fixing this is important (assuming we can verify it).

I believe Kawa was trying to load SBVJ01 files in SB directly a bit ago - some logs:

katana - Today at 1:15 PM
@Kawa-oneechan about the sbvj01 magic byte - anything sb ships with or makes that it can be verified with?
Kawa-oneechan - Today at 1:16 PM
That's six magic bytes, silly.
katana - Today at 1:16 PM
trying to justify changes in a couple other language libraries for it
I'm talking about the 0x00/0x01
Kawa-oneechan - Today at 1:16 PM
Which one?
katana - Today at 1:16 PM
the versioning toggle
Kawa-oneechan - Today at 1:16 PM
Ah.
I'll check.
I have a piece of code from Kyren around here...
No wait that's paks.
Other source
Actually, let's just try it.
katana - Today at 1:21 PM
ooh, yes, the Leeroy verification method.
Kawa-oneechan - Today at 1:22 PM
Test 1: use 0x02, with version u32
katana - Today at 1:22 PM
:D
Kawa-oneechan - Today at 1:22 PM
0x02 with version stamp: WORKS
0x04 also works.
PParrot - Today at 1:23 PM
does 0xff work?
Kawa-oneechan - Today at 1:23 PM
Nonzero, no stamp: root object is mistaken for stamp, content is null.
@PParrot: with or without a version u32?
PParrot - Today at 1:24 PM
with
Kawa-oneechan - Today at 1:24 PM
Yes.

Might be able to use the same method to verify, though; I've got my hands full on trying to get SBAsset6 write support implemented in js-starbound, so if you'd like to take a shot, @blixt - be my guest.

Hi~
I'd like to elaborate that when I wrote my webpage on the format of SBVJ files, I had assistance from Kyren herself on matters like the versioning flag. And to restate the Discord log in clearer terms, 0x00 means unversioned, any other value means versioned, and if it's unversioned there is no version # u32.

@Kawa-oneechan @damianb Thank you for the additional information! I'll assume this is the case and update the document and code (obviously no one knows better than Kyren. :)
I was just a bit confused since I would have expected the notion of "no version" to either just be version 0, or a magic constant (e.g., -1 or MAX_INT) as opposed to an additional byte.
If you guys ever talk to the Starbound team I would appreciate if you asked them to help us fill out some more blanks in the FORMATS doc, as it's starting to get pretty complete now. :)


getting error while deploying smart contract

General information

Description
Value

Project version
X.Y.Z

Operating system and version
???

NodeJS version
X.Y.Z

NPM version
X.Y.Z

Yarn version
X.Y.Z

Truffle version
X.Y.Z

Describe the bug
A clear and concise description of what the bug is.
How to Reproduce
Steps to reproduce the behavior (please provide a reproducer project for complex bugs):

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

may be there was a issue from network , i switched it to rinkeby and it worked


I have a problem in platformio

Prerequisites

[ ] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
[Description of the issue]
Steps to Reproduce

[First Step]
[Second Step]
[and so on...]

Expected behavior: [atom is hung up when i install platformio]
Actual behavior: [What actually happens]
Reproduces how often: [What percentage of the time does it reproduce?]
Versions
You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.

Please report this to PlatformIO.


Game Crashes When Licker Is Supposed To Crawl Past Window In The Room Before You Meet It!

Seed: R521-F8FN-XLX73B3LLE03

Duplicate of #153


Skiing has diving water bodies as filtering subtypes

Water skiing below the surface :laughing:

This is related to: relatedSubtypeGroups in psgeoCreateActivityAndSubactivityFilters()

Problem found:
psgeoCreateActivityAndSubactivityFilters() calls psgeoMakeSubtypeSelectionVisible(), which then does document.getElementById(group.descriptionTextId)
BUT descriptionTextId is NOT a unique identifier!
descriptionTextId="place" is used for divingEnvironmentSearch, waterbodySearch, skiingPlaceSearch

The name of the function (which are used as indirections in psgeo a lot) which generates the checkboxes for a specific subtype group can be used as an unique identifier both in the document and in the list (array) of visible subtype groups.
Which has been done.
Which resolves this issue.


Pretty print strings correctly

Addresses #34

Closing as this is not a bug. See #34.

Note that using show here would have printed the strings using Haskell's string format, which isn't the same as Lua's.


[Backport 2.x] [Feature] Traces/Services UI update (#2078)

traces and services UI update

Signed-off-by: Adam Tackett<EMAIL_ADDRESS>
small ui adjustments to match mocks, update snapshots

Signed-off-by: Adam Tackett<EMAIL_ADDRESS>
remove all custom styling

Signed-off-by: Adam Tackett<EMAIL_ADDRESS>
remove comment

Signed-off-by: Adam Tackett<EMAIL_ADDRESS>
allign add filter and mode picker using flush-left

Signed-off-by: Adam Tackett<EMAIL_ADDRESS>
update snapshots

Signed-off-by: Adam Tackett<EMAIL_ADDRESS>
update snapshots from osd

Signed-off-by: Adam Tackett<EMAIL_ADDRESS>
Signed-off-by: Adam Tackett<EMAIL_ADDRESS>Signed-off-by: Adam Tackett<EMAIL_ADDRESS>Co-authored-by: Adam Tackett<EMAIL_ADDRESS>(cherry picked from commit de3acb06378334cc61714bf4d95fc7602ecf9714)
Description
Backport 2078 Traces/Services UI update to 2.x
Issues Resolved
Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

FTR and e2e tests are failing as SQL plugin wasn't incremented to 2.17.0 version https://github.com/opensearch-project/sql/pull/2892


BID-140 added deploy.sh script

Thanks for your contribution. I don't object to the concept of an easy-deploy mechanism for snapshots, but it looks like you've hardcoded the URL for your nexus repository into the script. This means its only really a good script for you. Couldn't you take that as a commandline parameter?

Thanks Richard, let me create separate more clear pr


SIM118 Incorrect error message and autofix

Given the following code:
x: dict[str, str] | None = None

y = "abc" in (x or {}).keys()

Ruff returns the following error:
$ ruff file.py
file.py:3:5: SIM118 [*] Use `"abc" in x or {}` instead of `"abc" in x or {}.keys()`
Found 1 error.
[*] 1 potentially fixable with the --fix option.

The error is correct except the x or {} part of the error message isn't wrapped in parenthesis. And, when running with --fix, the following (incorrect) code is produced:
x: dict[str, str] | None = None

y = "abc" in x or {}

If x is None, this code will now cause a NoneType error, and if x is a dict but doesn't contain "abc", then y will be a dict instead of a bool.
There might be other checks that have a similar issue, this just happened to be the first one I came across.
Currently using Ruff v0.0.258

Oh yeah, definitely. Thanks for filing.

Sorry @charliermarsh, I already finished implementing it before seeing that you self-assigned this issue.

No worries, this is great! I'd started on this but got sidetracked IRL.


Matlab bindings?

In order to reduce Shogun's complexity, it might be a good idea to drop the static interfaces (they have a long tail of tests, scripts, etc that make Shogun hard to overview). All but a single language are supported via the modular interfaces. The latter are way easier to maintain than the static ones for various reasons.
However, Shogun's Matlab support is only via static interfaces, and since SWIG does not support Matlab, we would loose the interface, which is unacceptable.
Possible solutions:
Matlab via Java
It seems to be possible to call Java code from Matlab. Since we support Java modular, that might be a way. Somebody would have to prototype a single example. See for example
http://www.mathworks.com/matlabcentral/answers/99993-how-do-i-call-a-simple-hello-world-java-program-in-matlab
SWIG and Matlab
An even better approach might be to help the SWIG team to get Matlab support running. This would solve all our problems straight as Matlab would just be another language for Shogun. See
https://github.com/jaeandersson/swig/commits/matlab

Swig and matlab is the way to go, see https://github.com/shogun-toolbox/shogun/wiki/GSoC_2017_project_swig


Trebuchet (the launcher) contains a proprietary tracking solution

Tracking and reference to ambient sdk, a proprietary library by Cyanogen Inc., was added with commit https://github.com/CyanogenMod/android_packages_apps_Trebuchet/commit/90106d85b75a60a8bdc9c4ad891e4a2e7ce548dd

AFAIK, the only option here is to have the script remove Trebuchet. Though that would potentially leave some without a functioning system.
Two options come to mind:

Make the user responsible for having another launcher installed.
Package a free launcher with the script.

As a safe guard, there might be a way for the script to verify that another launcher is installed before removing. I'm not aware of how to do this.
Taking suggestions. I'm leaning to providing two versions of the script:

A release containing an alternative launcher and potentially browser ( #23 ).
A minimal, remove-only script that does not contain alternative apps.

Unfortunately, the launcher doesn't seem to be the only app subject to this.
AudioFX: https://github.com/CyanogenMod/android_packages_apps_AudioFX/blob/cm-13.0/Android.mk#L25
Contacts: https://github.com/CyanogenMod/android_packages_apps_Contacts/blob/cm-13.0/Android.mk#L25
ContactsCommon: https://github.com/CyanogenMod/android_packages_apps_ContactsCommon/search?utf8=✓&q=com.cyanogen.ambient&type=Code
ContactsProvider: https://github.com/CyanogenMod/android_packages_providers_ContactsProvider/blob/cm-13.0/Android.mk#L34
Dialer: https://github.com/CyanogenMod/android_packages_apps_Dialer/blob/cm-13.0/Android.mk#L47
The worst part however is that while it's fairly easy to remove ambientsdk in both Trebuchet and AudioFx, it's pretty deeply woven into Contacts{,Common,Provider} and Dialer.

Sigh, this is what I've feared. I've since considered switching to CopperheadOS, though the fact that it only supports a small number of Nexus devices is off-putting.
Anyway, I'm curious if those apps could be forked and made standalone. Much like how I prefer Etar (from F-Droid) to the included calendar app in CyanogenMod, I would want these apps to be decoupled from the ROM itself.

I'm not sure what would be the advantage of having these apps be standalone. If you want to redistribute an update zip with prebuilt, patched versions, I think there are methods to do that reliably in-tree.
After an hour of trying to untangle Contacts and Dialer, I gave up. Apparently there's some plugin interface that depends on ambientsdk, and the hooks for that are scattered all over the place, sometimes even replacing the old functionality. I think building the AOSP version of those might be a better idea.

After an hour of trying to untangle Contacts and Dialer, I gave up. Apparently there's some plugin interface that depends on ambientsdk, and the hooks for that are scattered all over the place, sometimes even replacing the old functionality. I think building the AOSP version of those might be a better idea.

Exactly my point in making them standalone apps. You shouldn't have to untangle ROM-specific changes from an app. IMO, I want a ROM to provide the bare minimum in terms of an Android experience. Apps like contacts, dialer, calendar, etc. should be provided outside of the ROM releases. This is the direction Google is taking Android and I feel like the FOSS community should also follow route. It would be so much easier if one could install contacts, dialer, calendar, etc. updates separate from the core ROM's updates.
I also have to mention that outside of compiling various open source Android apps, I am not an Android developer.

Is not possible/viable to decompile those apps and replace the library with a dummy one, just like NoAnalytics?
Another chance could be integrating an AROMA-alike installer for launcher, browser and, maybe, app store, but that will add complexity.
@BRNmod is coming to my mind right now... How will the Replicant team tackle this dependency issue?

BRNmod sounds exactly like what I've been looking for for a while. Too bad it hasn't been updated in a while.

Update: Apparently cm-14.1 stopped using AmibentSDK? It was removed from vendor/cm and it isn't refferenced anymore in Trebuchet. Can someone verify I'm right and it's not somewhere I haven't looked?


Enhance completion results in extends/satisfies

9 times out of 10, when I try to complete a class name in an extends clause, the class I'm looking for does not appear because it turns out it's an interface, and the completion manager tries to be too smart and restricts results to classes only.
In this case, it would be nice to also suggest interfaces, then automatically replace extends with satisfies (or drop the extends and add & MyInterface to an existing satisfies clause).
This would also work with class proposals in satisfies clauses.
WDYT?

Rrrrrm. I don't like it.

Then make it configurable.
IntelliJ's API is so big that I can never remember if what I'm implementing is a class or an interface.

I can think of lots of circumstances where it would be much more unhelpful than helpful. I would not want it to be the default.

What do you have in mind, other than "it will clutter up the list of proposals"?


Cannot scan ean13 horizontal view

When I try to scan ean13 codes I have to rotate the barcode 90 degreese. Look at the images - it makes no sence!!
QR code works perfect!
iOS11, iPhone 7.

@raymondarvidsson
Hey, I'm haing the same problem, did you find some answer for that?

Hi @karpie28
Yes I really think I did! Tried to find anything regarding this in my emails but couldn´t find anything. And I cannot find my project files eighter. Don´t use that projekt any more.
But i´m pretty sure I fixed it! Did I rotate some component 90 degreese? Sorry, really cant remember. Has the component at all been updated? I gave it up because it had not been updated for two years or so. Doesn´t feel good...

Thanks for reporting this issue!  Unforunately it took me way too long to respond 😭.  Sorry, I apologize!  Recently the source code for this project was completely refactored to modernize it.  Many PR's were included in this effort, and many bugs were hopefully fixed.  Please try out the latest 3.x series of NuGet packages (currently in prerelease).  To try and make the project more maintainable in my spare time going forward, I've decided to close all existing issues to start with a clean slate.  If you're still experiencing this issue on the newest version, please open a new issue with as much detail as possible.  Thank you for your patience and understanding!  Happy scanning!


Updating space select functionality

selecting space on both resource create/select
updating azds osx url

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/saurabsa/azure-cli-extensions.git@saurabsa/DevSpacesFix#subdirectory=src/$EXT&egg=$EXT"


[BUG]: The UX is kinda bad.

Describe the bug
The flow through the website is not as good enough to match with the UI 🤩.
To Reproduce
Steps to reproduce the behavior:

Navigate through our site.

Expected behavior
Much better flow design.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context
Add any other context about the problem here.

First of all, we should try adding some animations to the elements that are loaded into the homepage.

[ ] Add MoveIn Animation to NavBar
[ ] Add FadeIn Animation for Body
[ ] Add Floating Blobs behind the main element

Floating Blob has been removed

from list


Fix SQLServer write data intercept failure (#10741)

Fix SQLServer write data intercept failure
The issue link: https://github.com/apache/skywalking/issues/10741

[ ] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.
[ ] Update the CHANGES log.

[INFO] Starting audit...
Error:  /home/runner/work/skywalking-java/skywalking-java/apm-sniffer/apm-sdk-plugin/jdbc-commons/src/main/java/org/apache/skywalking/apm/plugin/jdbc/PSSetterDefinitionOfJDBCInstrumentation.java:27:52: Using the '.*' form of import should be avoided - net.bytebuddy.matcher.ElementMatchers.*. [AvoidStarImport]
Audit done.
[INFO] There is 1 error reported by Checkstyle 9.3 with /home/runner/work/skywalking-java/skywalking-java/apm-checkstyle/checkStyle.xml ruleset.
Error:  src/main/java/org/apache/skywalking/apm/plugin/jdbc/PSSetterDefinitionOfJDBCInstrumentation.java:[27,52] (imports) AvoidStarImport: Using the '.*' form of import should be avoided - net.bytebuddy.matcher.ElementMatchers.*.

It seems you don't check the code style locally.
And you should update the changelog according to the PR template.

[INFO] Starting audit...
Error:  /home/runner/work/skywalking-java/skywalking-java/apm-sniffer/apm-sdk-plugin/jdbc-commons/src/main/java/org/apache/skywalking/apm/plugin/jdbc/PSSetterDefinitionOfJDBCInstrumentation.java:27:52: Using the '.*' form of import should be avoided - net.bytebuddy.matcher.ElementMatchers.*. [AvoidStarImport]
Audit done.
[INFO] There is 1 error reported by Checkstyle 9.3 with /home/runner/work/skywalking-java/skywalking-java/apm-checkstyle/checkStyle.xml ruleset.
Error:  src/main/java/org/apache/skywalking/apm/plugin/jdbc/PSSetterDefinitionOfJDBCInstrumentation.java:[27,52] (imports) AvoidStarImport: Using the '.*' form of import should be avoided - net.bytebuddy.matcher.ElementMatchers.*.

It seems you don't check the code style locally. And you should update the changelog according to the PR template.

Sorry! Let me check it.


sort scenarios based on directory name

It is sometimes useful to run simple scenarios first and more complex
and lengthy ones only if the later were fine. Scenarios can be simply
ordered on the filesystem while avoiding ugly scenario names.
Signed-off-by: Marc Dequènes (Duck<EMAIL_ADDRESS>Please include details of what it is, how to use it, how it's been tested
See above for how it works. I used molecule matrix to check the order while changing the path.
PR Type

Feature Pull Request

@lwm I added a test. I have no idea how to make it configurable. Honestly I don't think it is really needed. Currently there is no behavior specified and there is none people could rely on, so it is not breaking anything expected. And as you said yourself, it is quite a usual order in many softwares using split conffiles.