Urllib errors

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.59.1
Python release (python3 --version):
Python 3.5.4
Component/platform:
Emoncms history
Description of problem:
Several URLLIB errors pop up
2017-12-05 12:50:18 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.kwhday_cv fails
Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py”, line 387, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py”, line 383, in _make_request
httplib_response = conn.getresponse()
File “/usr/lib/python3.5/http/client.py”, line 1198, in getresponse
response.begin()
File “/usr/lib/python3.5/http/client.py”, line 297, in begin
version, status, reason = self._read_status()
File “/usr/lib/python3.5/http/client.py”, line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), “iso-8859-1”)
File “/usr/lib/python3.5/socket.py”, line 576, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.5/dist-packages/requests/adapters.py”, line 440, in send
timeout=timeout
File “/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py”, line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/local/lib/python3.5/dist-packages/urllib3/util/retry.py”, line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File “/usr/local/lib/python3.5/dist-packages/urllib3/packages/six.py”, line 686, in reraise
raise value
File “/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py”, line 601, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py”, line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File “/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py”, line 309, in _raise_timeout
raise ReadTimeoutError(self, url, “Read timed out. (read timeout=%s)” % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host=‘www.URLNAME.nl’, port=80): Read timed out. (read timeout=5)

Expected:
No errors as the webserver at www.URLNAME.nl is up and running and responsive
Problem-relevant configuration.yaml entries and steps to reproduce:
  - platform: emoncms
    api_key: XXXXXX
    url: http://www.URLNAME.nl/emoncms9/
    id: 4
    unit_of_measurement: "kWh/day"
    include_only_feed_id:
      - 9
      - 23
      - 27
      - 31
    sensor_names:
      9: "kWh/day CV"
      23: "kWh/day dryer"
      27: "kWh/day washing machine"
      31: "kWh/day boiler"

Traceback (if applicable):

Additional info:
This problem wasn't happening on 0.57 and Raspbian Jessie. Since the upgrade to Raspbian Stretch (and clean install of HASS 0.58) these errors start popping up.

Same here, since upgrading to Raspbian Stretch

As a test I did a new installation in a blank virtual environment and unfortunately the same errors keep on popping up.

I tried to reinstall all dependencies ignoring the cached versions through "sudo pip3 --upgrade --no-cache--dir -force-reinstall install homeassistant" 2 days ago and untill now I do get the error but it seems like the error is no longer fatal as data keeps on getting through.

Same after updating to 0.66.0

Looks like I dont have any issue with it on 0.80.3.. can maybe someone else confirm that also?


Stopping an APP that has a locked mutex using CFE_ES_StopAppCmd BUG

Describe the bug
An APP cannot be correctly stopped by CFE_ES if the CFE_ES_StopAppCmd is sent in the same moment that the APP has a mutex locked. Although the app is terminated (with errors), when we try to restart it, it doesn't work.
To Reproduce
Steps to reproduce the behavior:

Create a mutex in SAMPLE_APP using OS_MutSemCreate
Take the mutex in the SAMPLE_APP RunLoop using OS_MutSemTake
Perform CFE_ES CMD CFE_ES_StopAppCmd using "SAMPLE_APP" as target
See error CFE_ES_CleanupObjectCallback: Call to OSAL Delete Object (ID:327691) failed. RC=-6

Expected behavior

CFE_ES should be able to unlock the mutexes in a target APP in order to close all its resources.
1.1. In case CFE_ES behavior can't do that, how can we handle apps that have mutexes and may be closed in the exactly same moment that its mutex is locked ("Taken") ?

System observed on:

Ubuntu 18.04 LTS
Version: cFS Caelum Release Candidate 4 (Also tested with Aquila and cFS Bootes Release Candidate 2)

Additional context
An example:

Reporter Info
Igor Luppi

Possibly related: https://github.com/nasa/cFE/issues/701, https://github.com/nasa/osal/issues/470 and the fix in https://github.com/nasa/osal/pull/472.  Although this change was for binary semaphores, may need a similar "fix" for a OS_MutSemTake.

The real problem is trying to create the mutex again when the APP is restarted.
In function OS_MutSemCreate:
  return_code = OS_ObjectIdAllocateNew(LOCAL_OBJID_TYPE, sem_name, &local_id, &record);
The return_code is not OS_SUCCESS, its value is OS_ERR_NAME_TAKEN, so basically as the APP was successfully ended, the mutex still exists in cFE Table. Any way can we get around that?

Really the app should clean up after exiting it's run loop that at minimum releases the mutex.  See HS as an example (not of mutext cleanup, bun unregistering callbacks and closing child tasks).  The CFE_ES_StopAppCmd should cause the CFE_ES_RunLoop to return false and allow the app to clean up.
Runloop: https://github.com/nasa/HS/blob/c5ef5acf65ca346270f721e22620e9321a930075/fsw/src/hs_app.c#L120
Cleanup call: https://github.com/nasa/HS/blob/c5ef5acf65ca346270f721e22620e9321a930075/fsw/src/hs_app.c#L184
Cleanup implementation: https://github.com/nasa/HS/blob/c5ef5acf65ca346270f721e22620e9321a930075/fsw/src/hs_custom.c#L138-L155
This approach is likely cleaner/safer than the possible side effects of OSAL trying to clean up and delete a locked mutex...


Introduce and use an ItemMetadataInterface

ATM, the class ItemMetadata is final but without any interface. This PR introduce an ItemMetadataInterface.

Well, it was done on purpose to not introduce an interface here:
Metadata are value objects used only by the API. It's like the Request class in Symfony HttpFoundation. Introducing an interface will lock us like in symfony/symfony/#17114 when we will need to introduce new attributes to those classes.
A VO should not have an interface IMO. It should be used as is. If someone need to add extra properties in its app, he sould introduce a its own VO (and he can easily embed our metadata by composition).

Well, that's a fair answer, I don't have the use case ATM anyway :wink:


updated NodeUpgradeStrategy.Drain to use a pointer

https://github.com/rancher/rancher/issues/29058
https://github.com/rancher/terraform-provider-rancher2/issues/440
Allow the drain flag on the NodeUpdateStrategy struct to be nil instead of defaulting to false.

@superseb I had removed it because I miss read the reqs I added it back in .

closing in favor of https://github.com/rancher/rke/pull/2278


Template or help with CD/DVD hub labels

Hello,
I need help with how to format a round hub label. The labels are for use with a Zebra printer, but unfortunately I don't have any spec info on what we are using. The label itself is a donut with an outer diameter of 1.25 and an inner diameter of .75 on a backer of about
1.5 inches square.
Hub Label Pics.docx

@kronneCSU, wow...this looks tricky. Is it a roll of labels or a sheet of labels? Looks like a roll from your pic. If a roll, single label wide? Maybe these? https://www.thelibrarystore.com/product/16-11362/h

They are on a roll. I have like four rolls of our current size. I don't know where we got the rolls we have now, and none of them are in their original packaging. The vendor I work with now sent me specs for a slightly larger size, so once we run out of these, I will probably be ordering from them and will need to tweak the template at that point. Here is the spec sheet. It looks like the inside diameter is the same but the outside diameter is .25 inches larger.
Computype Hub Label spec sheet.pdf

@kronneCSU, do you have an example image of what the label should look like when printed?

I'm currently in process of deciding if we still need the barcode number or just the library name.

@kronneCSU, using the Computype specs you attached earlier, here are the settings I'd start with for the layout:
Measurement units: inches
Top margin: .1
Left margin: .125
Page width: 2.25
Orientation: Portrait
Label width: 2
Label height: 1.7
Horizontal gap: 0
Vertical gap: .1125
Labels per page: 1
Left padding: .25
Perhaps you can map these to your current label stock measurement to get a starting point for them.
For wrapping the library name around the center hub in the template, I think the best approach would be to create an image of the library name and use that on the label. Maybe a tool like https://www.fotor.com/features/curved-text/ could be used to create the image. I've attached a quick attempt at it. You'd have to play with the sizing, curvature, and opacity to get it right.

If you aren't including any information from the Alma holdings/items on the label, might your workstation label printer software be a better option for printing just the library name on the label?

What do you mean by workstation label printing software? We already use spine o matic on the desktop.

@kronneCSU, I assumed your label printer came with its own label printing software....my mistake. Sorry.

No worries! That would make everything much simpler! Thank you for your help with this.


Typo error

There is a typo error in the document.

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

ID: c9696766-8f5f-f762-e4f1-1d403b0b3276
Version Independent ID: a6df7c92-facc-8fd5-d8c6-ac3d2668d9e8
Content: Testing with your own test doubles - EF6
Content Source: entity-framework/ef6/fundamentals/testing/writing-test-doubles.md
Product: entity-framework
GitHub Login: @divega
Microsoft Alias: divega

implement is misspelled as 'imeplement'


Unable to run version 4.70

I have upgraded to the latest GAM release from https://git.io/gamreleases and I still have this issue.
I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/gam/wiki

Full steps to reproduce the issue:

Running on Windows 10 subsystem folder
Version 4.65 runs fine, 4.70 doesnt
Simply download gam 4.70 and run ./gam

Expected outcome (what are you trying to do?):
./gam
Actual outcome (what errors or bad behavior do you see instead?):
root@seanwlk:/mnt/c/Users/seanwlk/Desktop# ./gam
Traceback (most recent call last):
  File "gam.py", line 14053, in <module>
  File "gam.py", line 13263, in ProcessGAMCommand
IndexError: list index out of range
[30] Failed to execute script gam

Also tried to delete alias from bashrc and whole folder to reinstall later. Doesn't work with 4.70
uname -a
Linux seanwlk 4.4.0-17763-Microsoft #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

Does:
./gam version
show anything? What about:
gam info domain

None of the two. Error is always the same. Seems like no argument is being parsed.
Tried on both my personal PC and Office one, with version 4.70 it always give the output I sent you before.

OK, I see the issue. Going to push a 4.71 build with fix shortly.

I just pushed 4.71, can you try upgrading and see if that does the trick? Upgrade should be as simple as:
bash <(curl -s -S -L https://git.io/install-gam) -l

All works fine thanks for the fast fix and your work.

Glad it solved the problem. Closing this.


Code for initialize CausalConv3d from pretrained Conv2D.

Hi, I find that you introduce in CausalVideoVAE.md that you use special initialization(tail initialization) for CausalConv3d training. I am interested in this trick, and I would be sincerely grateful if you could share the specific initialization code.

w = vae_2d_ckpt["state_dict"][key_2d]            # conv2d weight
new_w = torch.zeros(shape_3d, dtype=w.dtype)
new_w[:, :, -1, :, :] = w

@vivym thanks, but I have another question about temporal upsample at this line https://github.com/vivym/OmniGen/blob/4f0bf7d7f7dcb6b1b79b50c90153f7477151e139/src/omni_gen/models/video_vae/upsamplers.py#L87, it isn't 2x upsample, it will always be odd frames.

@Birdylx It is indeed an odd number of frames. You can refer to the paper https://arxiv.org/abs/2310.05737

@vivym Do you train the full model? or freeze the model, just train the temporal block?

Thanks:) I will have a try.

It works. Thanks a lot!

I see, "Despite the VAE in Diffusion training being frozen" mentioned in your latest doc. Is that means that you've found freezing 2d-VAE weight ("tail" of casual3d Conv) performs better?

w = vae_2d_ckpt["state_dict"][key_2d]  # conv2d weight
new_w = torch.zeros(shape_3d, dtype=w.dtype)
new_w[:, :, -1, :, :] = w # (batch_size, 3, t, height, width)

w = vae_2d_ckpt["state_dict"][key_2d]  # conv2d weight
new_w = torch.zeros(shape_3d, dtype=w.dtype) # shape_3d = (batch_size, 3, t, height, width)
new_w[:, :, -1, :, :] = w #    --tail initialization
# center : new_w[:, :, T/2, :, :]
# average : new_w[:, :, :, :, :]

w = vae_2d_ckpt["state_dict"][key_2d]  # conv2d weight
new_w = torch.zeros(shape_3d, dtype=w.dtype) # shape_3d = (batch_size, 3, t, height, width)
new_w[:, :, -1, :, :] = w #    --tail initialization
center    : new_w[:, :, T/2, :, :]
average : new_w[:, :, :, :, :]

w = vae_2d_ckpt["state_dict"][key_2d]  # conv2d weight
new_w = torch.zeros(shape_3d, dtype=w.dtype) # shape_3d = (batch_size, 3, t, height, width)
new_w[:, :, -1, :, :] = w #    --tail initialization
# center : new_w[:, :, T/2, :, :]
# average : new_w[:, :, :, :, :]

w = vae_2d_ckpt["state_dict"][key_2d]  # conv2d weight
new_w = torch.zeros(shape_3d, dtype=w.dtype) # shape_3d = (batch_size, 3, t, height, width)
new_w[:, :, -1, :, :] = w #    --tail initialization
# center     : new_w[:, :, T/2, :, :]
# average  : new_w[:, :, :, :, :]

w = vae_2d_ckpt["state_dict"][key_2d]  # conv2d weight
new_w = torch.zeros(shape_3d, dtype=w.dtype) # shape_3d = (batch_size, 3, t, height, width)
new_w[:, :, -1, :, :] = w #    --tail initialization

w = vae_2d_ckpt["state_dict"][key_2d]  # conv2d weight
new_w = torch.zeros(shape_3d, dtype=w.dtype) # shape_3d = (batch_size, 3, t, height, width)
new_w[:, :, -1, :, :] = w #    --tail initialization
# center     : new_w[:, :, T/2, :, :]
# average  : new_w[:, :, :, :, :]


Support discriminator for polymorphic types and support oneOf

Is your feature request related to a problem? Please describe.
When an endpoint returns oneOf several different classes, currently it returns an empty object. Sample component snippet:
    ReturnedObject:
      oneOf:
        - $ref: '#/components/schemas/PolymorphicType'
        - $ref: '#/components/schemas/AnotherPolymorphicType'

Describe the solution you'd like
Support discriminators to be able to deserialize polymorphic types.

I tested this with the latest code on main (roughly 0.7.0-rc.1) and it does attempt to generate proper responses now using the same code it would for unions inside a model (basically a series of try/except). So it's better than nothing, though for sure we still should add discriminators in a future version.


Initial details table

Rename data files
Add data to support table
Refactor state components to use default exports
Add localization messages to support table
Add date ranges to support table
Add label
Add data to support table
Refactor state components to use default exports
Add initial details table

Codecov Report

Merging #158 (5f099b0) into main (e505138) will decrease coverage by 0.88%.
The diff coverage is 0.00%.

Additional details and impacted files

@@           Coverage Diff            @@
##            main    #158      +/-   ##
========================================
- Coverage   6.84%   5.95%   -0.89%
========================================
  Files         41      43       +2
  Lines       1446    1662     +216
  Branches     218     279      +61
========================================
  Hits          99      99
- Misses      1347    1563     +216

Impacted Files
Coverage Δ

src/routes/components/export/ExportSubmit.tsx
0.00% <ø> (ø)

...components/state/empty-filter/EmptyFilterState.tsx
0.00% <0.00%> (ø)

...s/components/state/empty-value/EmptyValueState.tsx
0.00% <0.00%> (ø)

src/routes/components/state/error/ErrorState.tsx
0.00% <0.00%> (ø)

...c/routes/components/state/loading/LoadingState.tsx
0.00% <0.00%> (ø)

src/routes/details/Details.tsx
0.00% <0.00%> (ø)

src/routes/details/DetailsHeader.tsx
0.00% <0.00%> (ø)

src/routes/details/DetailsHeaderToolbar.tsx
0.00% <0.00%> (ø)

src/routes/details/DetailsTable.tsx
0.00% <0.00%> (ø)

src/routes/overview/OverviewHeader.tsx
0.00% <0.00%> (ø)

... and 3 more

Continue to review full report at Codecov.

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


PLNSRVCI-251: bump(*): application service

Vendor in https://github.com/redhat-appstudio/application-service/pull/121 into build-service

/retest

It would be nice to have the reason of the update in the description

description updated @mmorhun  thanks

OK @Michkov all checks are green


Update backup-azure-restore-vms.md

Changed the guidance post restore. Instead of asking customers to recreate, we want them to modify the created end points.

Hi @f2003629, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;


integrate model

Hello，can you integrate this model:NGAT4Rec: Neighbor-Aware Graph Attention Network For Recommendation?
address：https://github.com/ShortVideoRecommendation/NGAT4Rec.git
The performance of this model is better than  lightgcn. I want to have a look at the comparison with layergcn.

Hi, thanks for posting.
I've checked NGAT4Rec model in this file: https://github.com/ShortVideoRecommendation/NGAT4Rec/blob/master/DGLModels/SubgraphModels/NGAT.py
The model is built on DGL, and it may not straightforward for integration. I'll try it and report to you then.
BTW, do you know has this model been published any where under peer-review?

Thank you very much for answering my question, but I'm sorry I don't know this either.

Thank you very much for answering my question, but I'm sorry I don't know this either.

OK, in this case, I would recommend to integrate models or select your baselines that has passed the peer-review. That is, the model/paper has accepted or published under conferences or journals.
Neighbor-Aware Graph Attention Network  is not new concept. I would encourage you find other published paper related to this concept. Thanks.

Got it. Thank you.

Got it. Thank you.
Once you have found a published/accepted model with source code (pytorch/tensorflow), I am glad to integrate it.

Got it. Thank you.

Once you have found a published/accepted model with source code (pytorch/tensorflow), I am glad to integrate it.

Ok, I'm reading a WWW'22 paper "STAM: A Spatiotemporal Aggregation Method for Graph Neural Network-based Recommendation" recently.
In the experimental part of the paper, the performance of this model on MovieLens data set is more than 20% higher than lightgcn.
It's implemented by Tensorflow. Can you integrate this model?
Address: https://github.com/zyang-16/STAM.git

Got it. Thank you.

Once you have found a published/accepted model with source code (pytorch/tensorflow), I am glad to integrate it.

Ok, I'm reading a WWW'22 paper "STAM: A Spatiotemporal Aggregation Method for Graph Neural Network-based Recommendation" recently.
In the experimental part of the paper, the performance of this model on MovieLens data set is more than 20% higher than lightgcn.
It's implemented by Tensorflow. Can you integrate this model?
Address: https://github.com/zyang-16/STAM.git

Got it. Thank you.

Once you have found a published/accepted model with source code (pytorch/tensorflow), I am glad to integrate it.

Ok, I'm reading a WWW'22 paper "STAM: A Spatiotemporal Aggregation Method for Graph Neural Network-based Recommendation" recently. In the experimental part of the paper, the performance of this model on MovieLens data set is more than 20% higher than lightgcn. It's implemented by Tensorflow. Can you integrate this model? Address: https://github.com/zyang-16/STAM.git

Nice to read the paper. I found the paper targets on Sequential Recommendation, you may refer recbole for this topic: https://github.com/RUCAIBox/RecBole
Sorry to say that this repo. focus on General Recommendation.

Got it. Thank you.

Once you have found a published/accepted model with source code (pytorch/tensorflow), I am glad to integrate it.

Ok, I'm reading a WWW'22 paper "STAM: A Spatiotemporal Aggregation Method for Graph Neural Network-based Recommendation" recently. In the experimental part of the paper, the performance of this model on MovieLens data set is more than 20% higher than lightgcn. It's implemented by Tensorflow. Can you integrate this model? Address: https://github.com/zyang-16/STAM.git

Nice to read the paper. I found the paper targets on Sequential Recommendation, you may refer recbole for this topic: https://github.com/RUCAIBox/RecBole
Sorry to say that this repo. focus on General Recommendation.

I see, thank you for your answer.


Feature to Install NVIDIA GPU Drivers and CUDA Toolkit in Windows

This PR adds the feature to Install NVIDIA GPU Drivers and CUDA Toolkit in Windows:
The User can either provide the Web URL to download the drivers or download it from a blob storage using DependencyPackageInstallation followed by Installing the Drivers.

I'm not seeing an example of how we are going to install it in Windows. Please add where did you get the driverInstall.exe, and how we versioned it etc. Ideally we should be getting it with wget, and with custom versions if possible.

Added examples in the documentation. Modified the code to use wget, earlier it was being downloaded using HttpClient.


Handle nonexistent PWD gracefully

Whenever I execute a crystal program in a directory that does not exists, it fails with Unhandled exception: getcwd: No such file or directory (Errno). Even if the program has nothing to do with current directory, like puts "hello".
This issue originates from stackoverflow question, where Asterite has mentioned:

The problem happens because we have a non-documented constant Dir::INITIAL_PWD which is set to Dir.current and that's executed at startup. We should probably fix that.

It seems Dir::INITIAL_PWD is needed for Process.find_executable. But do we need that variable at startup? I guess yes because if Dir.current changes then we won't be able to find the executable anymore (?). But if that's the case maybe we can document that it won't work well if you change the current directory.
Another alternative would be to move this to an external shard, or even making it not be there by default (you'll have to do require "process/find_executable" or something like that). In both cases it won't work if you are working on a non-existent directory, but at least it won't blow up if you don't use Process.find_executable.

It seems however that INITIAL_PWD is only used on OpenBSD. Maybe this constant could be made private and only be defined on specific systems?
There is however an answer on SO that claims there is a way to query the executable path on OpenBSD, which looks similar to the code used on FreeBSD. This would need some verification. But if it works, we might be able to scrap the constant completely.
This SO answer also looks like a pretty decent cross-platform implementation.

Oh, it seems it's also used in Callstack::CURRENT_DIR.

Process.find_executable was added to find the currently running executable (and companion .dwarf file on macOS) to open and parse the DWARF sections, to print pretty backtraces.

Can confirm still an issue.  OS X (#8807 didn't fix this particular issue, FWIW):
Unhandled exception: getcwd: No such file or directory (Errno)
Error while trying to dump the backtrace: Recursion while initializing class variables and/or constants (Exception)


[System Tests] Kroxylicious operator installation

Is your feature request related to a problem? Please describe.
Kroxylicious operator is under development and we would need to start creating simple system tests to check the installation is going fine.
Describe the solution you'd like
We would follow the SetUpClusterOperator approach done in Strimzi project.
Currently we will focus our tests only on the bundle installation (yaml files), but they can be done via olm or helm if required in the future.
Our class could be called SetUpKroxyliciousOperator and may be simplified to our current functionality (without olm and helm) and can be upgraded in the future if needed. We should start always simple.

@franvila to provide a little more detail.

Updated the description of the issue


Test: editor/lineNumber/context API proposal

Refs: https://github.com/microsoft/vscode/issues/175945

[x] anyOS @ulugbekna
[x] anyOS @karthiknadig

Complexity: 3
Create Issue

Background:
This milestone we've added an API proposal for a context menu anchored to the editor line number/gutter area. The initial motivation is to allow extension-contributed sharing links in this menu, but this also satisfies a longstanding feature request for a context menu in the gutter.
Testing:
Please create an extension which contributes a command to the editor/lineNumber/context menu and verify the usability of this context menu for extension-contributed commands. Today we expose the target line number in an argument passed to the extension command, as well as in a context key editorLineNumber which can be referenced in the contribution's when clause.

Good work!!!


Portfolio homepage done

Milestone - Homepage completed
In this pull request I implement the following features:

Added professional README.md file
Added navbar and main content on the html file
Added social media links
Added Media Query styles for mobile version

Hello @RaoAkif!
Thank you so much for your feedback it helps me a lot, I already do all the changes that you suggest, do you think I do it good?

Hello @RaoAkif!
Thank you so much for your feedback it helps me a lot, I already do all the changes that you suggest, do you think I do it good?

Yeah, a  lot better 👌🏻


Removed the zeroing of the md_bg_color of the BaseFlatButton class in the on_disabled function, because it resets the custom color

Faced with the problem that when the button is locked and unlocked, the color resets to the system.
from kivymd.app import MDApp
from kivy.lang.builder import Builder

KV = """
Screen:
    MDFillRoundFlatButton:
        id: btn
        text: 'Text'
        pos_hint: {'center': (0.5,0.5)}
        text_color: [1,1,1,1]
        md_bg_color: [0,0,0,1]
        on_touch_down: app.disable_btn()
"""

class TestApp(MDApp):
    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        self.c = 0

    def build(self):
        return Builder.load_string(KV)

    def disable_btn(self):
        if self.root.ids.btn.disabled:
            self.root.ids.btn.disabled = False
        else:
            self.root.ids.btn.disabled = True

        if self.c == 3:
            self.root.ids.btn.md_bg_color = self.theme_cls.accent_color
            self.c = 0
        else:
            self.c += 1

TestApp().run()

https://user-images.githubusercontent.com/40869738/124334337-768a7300-db9f-11eb-89b5-b2d06e952cf2.mp4

@Neizvestnyj You cannot make such changes so easily. You need a global button test. Did you do that?

@Neizvestnyj https://drive.google.com/file/d/11yC3gS238faGMrImzp-r8eDQZHlKMNy9/view?usp=sharing

@Neizvestnyj https://drive.google.com/file/d/11yC3gS238faGMrImzp-r8eDQZHlKMNy9/view?usp=sharing

Hmm, I did some tests, but not as extensive as you threw off. I will definitely test the buttons completely, but a little later, otherwise it is already very late)

@Neizvestnyj You cannot make such changes so easily. You need a global button test. Did you do that?

Hmm, I did some tests, but not as extensive as you threw off.  I will definitely test the buttons completely, but a little later, otherwise it is already very late)

@Neizvestnyj https://drive.google.com/file/d/11yC3gS238faGMrImzp-r8eDQZHlKMNy9/view?usp=sharing

I checked everything, it seems to work correctly, at least better than it was before


Allow advancing frames in AnimationTree programatically

Godot version:
master / 0ffec7daf
OS/device including version:
Manjaro Linux 17.1
Issue description:
As we don't have a mean to get a notification before and after an animation frame is processed (which might be needed for certain tasks, like advanced IK handling and more. See #17623), AnimationTreePlayer.Advance can be used to circumvent the problem by manually firing events and advancing frames.
However, the new AnimationTree doesn't seem to have an equivalent feature, so the same workaround cannot be applied anymore.
So, I think it'd be desirable if we can have the Advance method back, at least until #17623 could be fixed properly.

I think it's already fixed by c55e269b. I'll close this one since I just tested it to confirm it working.


How change the output file path

Output image file are stay in the root dist  folder. But i want to put them into dist/img folder how can i do this ????

Change the name option to that folder


compare Promise objects by identity in R.equals

Fixes #1616

How does this look, @CrossEye?

Sorry, missed it earlier.  This looks as good as we're going to get.
:herb:
I still hate Promises.


Update materialized view required privileges

Closes #10078

This change is

@taroface TFTR! I've seen 'admin privileges' on a bunch of doc pages, however, I agree that there is still a style question worth considering. With "admin privileges" I of course mean "the privileges conferred by being an admin (which means being a member of the admin role)". To ensure it's possible to discover that detail, I link to the relevant docs section. I don't think it's a perfect solution, but at the same time, in some places such as this, it seems awkward  to say "a member of the admin role". Will leave for now and make a note to revisit this style.


Could not find mappings for OneView's Index Resources

Hi...
Scenario/Intent
The thing I'm trying to answer here is: given an UUID, does it refers to a server hardware, an enclosure or a rack?
Environment Details
We're using OneView 3.00.05-0271823 and it seems the search bar queries this endpoint
I've taken a look at hpOneView and I could not find it... is it already implemented? If not, are there any plans on including this in a near version?
Thanks!

These endpoints are not currently implemented. I'll move them up on the priority list.

Thanks, @fgbulsoni!


Frag scissorScale Why?

In fun glnvg__convertPaint:
frag->scissorScale[0] = sqrtf(scissor->xform[0]*scissor->xform[0] + scissor->xform[2]*scissor->xform[2]) / fringe;
frag->scissorScale[1] = sqrtf(scissor->xform[1]*scissor->xform[1] + scissor->xform[3]*scissor->xform[3]) / fringe;
This is to extract the Scale variable from Mat, right?
so Why not this?
frag->scissorScale[0] = sqrtf(scissor->xform[0]*scissor->xform[0] + scissor->xform[1]*scissor->xform[1]) / fringe;
frag->scissorScale[1] = sqrtf(scissor->xform[2]*scissor->xform[2] + scissor->xform[3]*scissor->xform[3]) / fringe;
Another question: why is this divided by the fringe?
Thanks

The scissor matrix is inverted at this point, thus the reverse indices for matrix access.
The scale is used to calculate 1px gradient, around the scissor box edge. This will create antialiased scissoring.


wasm: fix missing initializer build error

This addresses the following build error in the wasm plugin:
/usr/bin/ccache /usr/lib64/ccache/c++ -DDEBUG -DOPENSSL_API_COMPAT=10002 -DOPENSSL_IS_OPENSSL3 -DPACKAGE_NAME="\"Apache Traffic Server\"" -DPACKAGE_VERSION=\"10.1.0\" -D_DEBUG -Dlinux -I/home/bneradt/src/ts_asf_master_build_proxy_wasm/inclu de -I/home/bneradt/src/ts_asf_master_build_proxy_wasm/build/include -I/home/bneradt/src/ts_asf_master_build_proxy_wasm/plugins/experimental/wasm/lib -isystem /opt/include -pthread -g -std=c++20 -fPIC -fdiagnostics-color=always -Wno-invalid- offsetof -pipe -Wall -Wextra -Wno-unused-parameter -Wno-noexcept-type -Wsuggest-override -Wno-vla-extension -Wno-format-truncation -Wno-stringop-overflow -Werror -MD -MT plugins/experimental/wasm/lib/CMakeFiles/wasmlib.dir/src/wamr/wamr.cc. o -MF plugins/experimental/wasm/lib/CMakeFiles/wasmlib.dir/src/wamr/wamr.cc.o.d -o plugins/experimental/wasm/lib/CMakeFiles/wasmlib.dir/src/wamr/wamr.cc.o -c /home/bneradt/src/ts_asf_master_build_proxy_wasm/plugins/experimental/wasm/lib/src /wamr/wamr.cc
/home/bneradt/src/ts_asf_master_build_proxy_wasm/plugins/experimental/wasm/lib/src/wamr/wamr.cc: In member function ‘virtual bool proxy_wasm::wamr::Wamr::link(std::string_view)’: /home/bneradt/src/ts_asf_master_build_proxy_wasm/plugins/experimental/wasm/lib/src/wamr/wamr.cc:341:84: error: invalid application of ‘sizeof’ to incomplete type ‘wasm_extern_t’
  341 |   wasm_extern_vec_t imports_vec = {imports.size(), imports.data(), imports.size(), sizeof(wasm_extern_t)};
      |                                                                                ^~~~~~~~~~~~~~~~~~~~~

This is currently not seen because we don't currently have wasm plugin cmake build support. A future commit will add this, but we have to fix this error first.

Interesting. "/lib" directory is actually coming from "https://github.com/proxy-wasm/proxy-wasm-cpp-host/tree/master/src"
Supposingly we should not be doing any change there.
I suspect that we may have a problem with the build due to some other issues?

Interesting. "/lib" directory is actually coming from "https://github.com/proxy-wasm/proxy-wasm-cpp-host/tree/master/src"
Supposingly we should not be doing any change there. I suspect that we may have a problem with the build due to some other issues?

That is interesting. And no update on master either. It could be only an issue for recent compiler since I see this in fedora:39 (GCC 13.2.1). This is the only build issue i see.

Considering @shukitchan 's comments, let's avoid modifying the source. I'll instead simply disable the warning. Presumably the library writer knows what their doing.
For reference, see:
https://github.com/apache/trafficserver/pull/11258


Api Permissions

[Enter feedback here]
Unfortunately, the documentation does not contain information on what permissions should be given to our application. Are any specific API Permissions needed?

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

ID: f1962f4b-74fb-74cf-fbbe-3a15ef34d3ea
Version Independent ID: d3123a85-673c-e31f-4e28-e4f44ae9e7a2
Content: Tutorial: Send data to Azure Monitor Logs by using a REST API (Azure portal) - Azure Monitor
Content Source: articles/azure-monitor/logs/tutorial-logs-ingestion-portal.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @guywi-ms
Microsoft Alias: guywild

@Lolek1978 Closing this issue for now. If there are further questions regarding this topic or feedback on the referred documentation, please do let us know and we will gladly continue the discussion.


[Threading] Add the correct scope for lazy_mutex_handle.

Because we're mentioning the type in a macro and it gets used elsewhere, we need to be explicit that the type is inside threading_impl.
rdar://121122202

@swift-ci Please smoke test

@swift-ci Please smoke test


[ES6] Auto imports with completion

It should really fantastic if tsserver completion command could support auto import with completion like WebStorm provides:

See http://blog.jetbrains.com/webstorm/2016/04/angular-2-workflow-in-webstorm/#ng2-imports for more information.

+1

@DanielRosenwasser @mhegazy is there any chance that tsserver could provide this feature? If yes in which RoadMap? Thanks!

This would be really complex and is unlikely to be a priority relative to other work for quite a while

Thank's @RyanCavanaughfor your answer. I understand that it's not your priority but a lot of users from VSCode, typescript.java complains about this missing features compared to Jetbrains.
I know that there are VSCode extension to do that, but it's not clean because there are double TypeScript parsing (one by tsserver and one by the extension). It should be very cool if tsserver provides this feature.

https://github.com/Microsoft/TypeScript/pull/11768 would handle part of that, though not through completion but through quick fixes.

Thanks @mhegazy for your answer. #11768 is a great feature. I'm implementing quickfix support inside Eclipse. I'm very enthousiasm to test it once my implementation will be finished.
Do you think you could use #11768 logic to support auto import with completion?

Do you think you could use #11768 logic to support auto import with completion?

What i meant is the user would get some of the functionality with the quick fix. possibly we can leverage some of the logic later on to support the feature in the OP.
the main issue is that we need to have our completion include some sort of edit ranges, so that accepting the completion would generate multiple changes in the file. which is not that hard to do to be frank, bit it is work.

Thanks again @mhegazy to  have taking time to answer me.

What i meant is the user would get some of the functionality with the quick fix.

Yes it's already a great improvement.

possibly we can leverage some of the logic later on to support the feature in the OP.

It was the answer that I wished:) Hope one day auto import will be implemented.

the main issue is that we need to have our completion include some sort of edit ranges, so that accepting the completion would generate multiple changes in the file. which is not that hard to do to be frank, bit it is work.

Ok I understand. I though the hard task was about the scan files (to have the best performance), because in this case you must scan about the whole ts files in the project and not only declared files as module (with import, require).

Feedback from VS Code users - https://github.com/Microsoft/vscode/issues/818

@mhegazy I'm sorry to insist with this feature, but is there an chance that auto import could be added inside RoadMap https://github.com/Microsoft/TypeScript/wiki/Roadmap ?

We are planning the next release now. should have more information about what we can take on.

Thank's @mhegazy!

This more than anything else is the biggest hurdle for users to move away from Webstorm.
Note sure why it is not yet listed in the Roadmap as of yet :(

@thekalinga If you want to switch from WebStorm to VS Code you can use a plugin to solve this for now. In my experience it works good enough and similar to WebStorm.

@donaldpipowitch
Thanks for sharing this. I just tried using this. It was unable to show suggestion for Optional class
It seems to be searching my source files instead of the dependencies under the source tree.
This seems like a decent attempt to show the suggestions atleast based on the code you already wrote, but not near webstorm
Please let me know if could make Optional import to on an empty project. I could not get this working.

Just looked at their TODO
Follow up ///<reference path="..." /> declarations
Process node_modules/**/*.d.ts
Process typings/**/*.d.ts

They have this in the list of items to do. Hopefully once it is implemented, there will some working version similar to Webstorm.
Thanks in anycase

I just found that there is another plugin called Typescript Hero
This auto detects all classes from the dependencies aswell & allows you to organise imports (incase if you delete a class reference)
Try this. Some relief for TS developers.
Disclosure: I'm in no way associated with the developer

@donaldpipowitch @thekalinga the big problems with thoses kinds of VSCode extensions is that there is a double parsing of TypeScript files (from tsserver and from the extension). I think it should be better than tsserver provides this feature for performance and for the other IDE, Editors.

@angelozerr Sure, it would be better to solve this inside the language service. But most people just asked for feature parity between VS Code and WebStorm and at the end WebStorm probably parses twice as well.

Thank you for your feedback here! Although not tracked on TypeScript's repo, this is an issue we have high on our priority list on the VS Code side. As we nail down the planning more we will make it public.

I use (and maintain) the tsunami-code vscode extension to do this.

@waderyan Whenever you have an update, is it possible to post update here/link to the vscode issue where we can expect updates.
Thanks

@thekalinga yes I can do that.

+1

Like most people, I started out with VS Code but found it nowhere near as productive as WebStorm for these type of issues so I went back to WS.  Every now and then I take another look but whilst it gains more features, it's the basic stuff that WS (and Resharper) does well that makes me far more productive that Code is severely lacking (and the various TypeScript plug-ins just don't work to the required level).  How hard can it be to offer code imports and some level of productivity such as generating fields that I'm referencing that don't exist yet.  Basic, basic stuff.  Much as I like Code and use it for basic coding tasks, it looks like I'm stuck with WS for anything where productivity is required.  Try again in 6 months maybe.

I'm a bit confused about the title of this issue. Is this about adding autoimporting of ES6/Harmony modules? If so, what's all the talk about TypeScript and tssserver about? Or is this tracking TS specific imports?

@nfantone if you look at the repository, you will see that is Microsoft/TypeScript so you can imagine that this is about TypeScript stuff.
Furthermore, the reason of talking about tsserver is because to give the editor the ability to auto-import they, more or less, need to parse the language to know what is written and here is where tsserver comes in. It'll parse the file and let the editor know about what was written. And for know tsserver doesn't give the functionality to let the editor create the auto-imports.
I hope this clear your mind a bit.

@PhoneixS Ok, gotta say: I feel like a fool now. But I have a perfectly good reason for my comment (apart from not having read the repos name in the URL). I was redirected here from https://github.com/Microsoft/vscode/issues/2635, so my mind didn't make the jump and made me believe I was still on the vscode repo. Moreover, that issue is about adding an auto importing feature which isn't really language-specific, further emphasizing the lack of need for my mind to switch.
Thanks for the clarification, though!

I think that now Typescript 2.2 allow adding missing imports as stated on the blog:
https://blogs.msdn.microsoft.com/typescript/2017/02/22/announcing-typescript-2-2/
So, should this issue be closed?

So, should this issue be closed?

I think no. Today it exists import code fix  which generate the import, it's very cool but it means that you must know the full name of the class, variables etc that you wish to import. For instance

you must type

Component

execute the import code fix and it generates the import of Component.

This issue is to provide a completion with classes, variables etc and when completion is applied, it generates the import. For instance, you can type:

Com // do Ctrl+Space to open completion

the completion shows Component

when you apply the completion, it generates the import of Component.

There is a PR for this issue https://github.com/Microsoft/TypeScript/pull/13921 but I don't know when it will be available?
@mhegazy do you know  https://github.com/Microsoft/TypeScript/pull/13921 when will be merged at master.

Fixed by #19069


Fixed export of Union type overload to include the more than 6 subtyp…

…es overload.

This should't have been merged!
It breaks a very important feature, that you get type-error if typescript and isly-type is a missmatch.

Before this merge, you could never forget a union type.
// TypeScript compile error if not working
it("union with missing type (2) (illegal)", () => {
	// @ts-expect-error This should fail, since type for "b" is missing!
	isly.union<"a" | "b">(isly.string("a"), isly.string("a"))
})

Here is why it is not really possible: https://stackoverflow.com/a/55128956


Support passing user ID to POST Signup, Reportback

Add support to pass a user Northstar ID to allow creating a Signup and/or Reportback on behalf of the User ID passed.
Signup User ID is currently based on value passed to Authorization: Bearer field.
Blocks https://github.com/DoSomething/northstar-js/issues/13

This makes sense to me. We can gate this optional user field based on whether the user or client has admin privileges. 👍 🔏

 As a dev, I want to support passing user ID to POST signup and reportback.

Going to close this since we want applications talking directly to Rogue in the future.


src/scheme-lib/init.scm - No such file

should be verbose error
current output
$ ./result/bin/main
No previous history.
Error: No such file or directory (os error 2)

$ strace --trace=file ./result/bin/main 2>&1 | grep 'No such file' | grep -v -e /nix/store -e /etc/ld-nix.so.preload
openat(AT_FDCWD, "history.txt", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "src/scheme-lib/init.scm", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
Error: No such file or directory (os error 2)

https://github.com/MattX/peroxide/blob/a36a6359dba9351533066de7aa5e655855f53760/src/bin/main.rs#L62
the file path src/scheme-lib/init.scm is relative to the current workdir (cwd)
suggestion: allow to set library path via argv or env
peroxide --scheme-lib /usr/share/peroxide/scheme-lib
SCHEME_LIB=/usr/share/peroxide/scheme-lib peroxide

Yeah, that seems like a good option, and there should probably also be a mechanism to specify the library path at build time, probably through a build.rs script?

This should be partially resolved with dee2de6, but I'd also like to add a way to change the library file location at build time, so we can keep this as a tracking issue.


Add meta.name to sample-job

Signed-off-by: Carlos Eduardo Arango Gutierrez<EMAIL_ADDRESS>What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:
This PR fixes the following result
[eduardo@fedora kueue]$ kubectl delete -f config/samples/sample-job.yaml
error: error when deleting "config/samples/sample-job.yaml": resource name may not be empty

After manually creating the sample job, the user has to delete the job from the generated name, but can't do so from the sample file

Umm I see why now, my bad
/close


Problems with numpy1.13.3

In vlm.default_fit_preparation(), numpy1.13 gives the following error:
I'm fairly sure a workaround is to intsall numpy1.11
    129
    130     def __call__(self):
--> 131         return [func(*args, **kwargs) for func, args, kwargs in self.items]
        func = <built-in method query of sklearn.neighbors.kd_tree.KDTree object>
        args = (array([[ -2.5302447 ,  -3.73565713,   4.00488269...0.42542586,
          1.07867484,   2.27431581]]), 1281.0, True)
        kwargs = {}
    132
    133     def __len__(self):
    134         return self._size
    135

...........................................................................
/home/seqteam/programs/miniconda3/lib/python3.6/site-packages/sklearn/neighbors/kd_tree.cpython-36m-x86_64-linux-gnu.so in sklearn.neighbors.kd_tree.BinaryTree.query()
...........................................................................
/home/seqteam/programs/miniconda3/lib/python3.6/site-packages/sklearn/neighbors/kd_tree.cpython-36m-x86_64-linux-gnu.so in sklearn.neighbors.kd_tree.NeighborsHeap.init()
TypeError: 'numpy.float64' object cannot be interpreted as an integer

conda install numpy=1.11.2 Worked for me.

I think this was fixed in latest update. Are you running the last commit?

I won't suggest your fix, I don't support older versions of numpy.
I can patch the problem if it is not already fixed by the latest commit.

I pulled the latest from git and reinstalled but still seem to be getting this issue.

Ok I will look into it to fix it, then.

What's about now? Unfortunately, I can't test this directly right now but I think I figured and fixed the problem. Could you check?

Still not working for me. But maybe when I run pip install -e . it is not putting velocyto in the right place and so I'm not actually functionally updating it?

try again git pull, you might have been a bit too quick, I had to pull the fix, it was on another branch

Ok, trying the new update. Seems to work now. Thanks for the really quick fix!

You are welcome, I care about having all the pipeline working. Sorry for this bug but the default_* functions are a new feature and they haven't been super well tested yet, like in this case.


add find customers by birthday

Codecov Report

Merging #106 (d1ccda5) into master (9b002ab) will decrease coverage by 0.05%.
The diff coverage is 93.75%.

@@            Coverage Diff             @@
##           master     #106      +/-   ##
==========================================
- Coverage   95.47%   95.41%   -0.06%
==========================================
  Files           7        7
  Lines         486      502      +16
==========================================
+ Hits          464      479      +15
- Misses         22       23       +1

Impacted Files
Coverage Δ

service/routes.py
95.65% <91.66%> (-0.25%)
:arrow_down:

service/models.py
99.43% <100.00%> (+0.01%)
:arrow_up:

Continue to review full report at Codecov.

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


Code spliting with webpack's require.ensure can't pass test

I want to learn write test in my app that build with create-react-app, but run npm test cause error:

The routes.js write like this:
export const routes = [
  {
    name: 'cool store',
    path: '/',
    exactly: true,
    load: asyncLoad((cb) => {
      require.ensure([], (require) => {
        cb(require('pages/home'))
      })
    }),
  },
  {
    name: 'login',
    path: '/login',
    exactly: true,
    load: asyncLoad((cb) => {
      require.ensure([], (require) => {
        cb(require('pages/login'))
      })
    }),
  },
]

You can probably "polyfill" it in src/setupTests.js.

If memory serves me correctly to solve this issue I had to polyfill require.ensure within each module that used the feature.
Something along the lines of...
if (!require.ensure) {
  require.ensure = (deps, cb) => cb(require);
}

If memory serves me correctly to solve this issue I had to polyfill require.ensure within each module that used the feature.

Wouldn't putting
require.ensure = (deps, cb) => cb(require);

in src/setupTests.js solve this?
Longer term, we will support this out of the box if dynamic import advances.

Create src/setupTests.js and add these line:
require.ensure = (deps, cb) => cb(require);

But didn't work :(
Put these line to routes.js:
if (process.env.NODE_ENV === 'test') {
  require.ensure = (deps, cb) => cb(require);
  window.matchMedia = window.matchMedia || function() {
    return {
        matches : false,
        addListener : function() {},
        removeListener: function() {}
    };
  };
  window.Moltin = function(){}
}

pass test :)

Wouldn't putting
require.ensure = (deps, cb) => cb(require);

in src/setupTests.js solve this?

We would have hoped so, but I think the require instance that is provided to each module is unique.

Oh that’s interesting, thanks for explaining.
I wonder if we can just hack support for require.ensure into Jest itself. cc @cpojer

require.ensure is not part of CommonJS so I'm not interested in supporting it officially. The transformer (a custom version of babel-jest, which create-react-app is already using) could return something like require.ensure = (deps, cb) => cb(require); ${source} and that would work and I wouldn't mind supporting some kind of feature that makes this easier to integrate but I would probably not be happy shipping this by default.

@suhaotian @ctrlplusb Would you be interested in sending a PR based on what @cpojer suggested?

@gaearon Sure thing, I'll give it a bash this w/end.

Closing this because require.ensure is no longer a supported behavior in master. Please switch to import() when 0.10 is released.
Since this has been a longstanding issue, I see no immediate need to mitigate this (it would have to be in a 0.9.x release anyway).
Feel free to re-open and tag as 0.9.x, @gaearon.


Smarter detection of rustfmt

Now with rustfmt-nightly being tied to a particular nightly compiler, cargo expand fails in a bad way if your rustfmt-nightly was installed by an older nightly than the one running cargo-expand.

rustfmt: error while loading shared libraries: libsyntax-d10704bc7cca04cb.so: cannot open shared object file: No such file or directory

Let's detect this situation and avoid executing rustfmt.

Fixed in f0371839aed568dd0e25a8920c2eb650d28dbe53.


This refers to the 100_structure tutorial and is adressed in #81


Update Testing Dependencies

Description
Updates test dependencies to latest versions to pick up bug fixes and compatibility fixes with Java 19 and 20.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


Create a sample using FastQC

Can be found here: https://github.com/googlegenomics/pipelines-api-examples/tree/master/fastqc


Added Plane Guide.

Implements a basic plane guide (known as a stencil in code).  This provides a cleaner way for mimicking a whiteboard for usages simply beyond painting on a flat surface.
Consider the use-case as a replacement for a virtual-whiteboard to be used by a teacher.  In such cases the appearance of the underlying grid is important as it communicates the space that it spans.  With the cube the lines from the sides, top, and back are always in view and change dramatically based on the angle it is viewed from.  Even looking at it straight on doesn't work because we are viewing things in perspective.

After wiring up the prefab, there's also an issue when layering up brushes in the same location, see screenshot:

This behaviour doesn't happen on the cube guide.

I'm not sure the true cause of this but the last commit does restore functionality.  Somewhere, there is an implicit restriction that the value returned from FindClosestPointOnSurface not have a 0 coordinate.  If you could provide additional insight, I would very much like to know!


Redis::sscan(): Argument #2 ($i_iterator) must be passed by reference, value given

Laravel Version: 8.77.1
PHP Version: 8.0.13
Database Driver & Version: 8.0.14
Redis Version: 5.3.4
Driver: PhpRedis

Description:
Looks like its related to Redis tagged cache.
ErrorException
Redis::sscan(): Argument #2 ($i_iterator) must be passed by reference, value given
vendor/laravel/framework/src/Illuminate/Redis/Connections/PhpRedisConnection.php:384

Steps To Reproduce:
Just call
app(\Illuminate\Contracts\Cache\Repository::class)->tags(['some', 'tags'])->flush();

@dkuzmenchuk

@it-can I'm not sure, because the implementation of the sscan method in client was not changed. I just used already existing method.

A fix was merged and will be released tomorrow. Thanks

@driesvints latest Laravel release does not have this fix?

Some stuff has been reverted it seems. We don't want to introduce breakages but if you can figure out a non breaking way to fix this we're welcoming PR's.

@driesvints maybe it is worth to reopen this issue first?

We won't be reopening this sorry. If it can be solved non-breaking we're welcoming PR's.

Sorry, but I did not get what is happening now.
So, I found a bug in the Laravel framework (introduced in this PR #39939 ), reported it, then you closed the issue without fixing it and did not want to open it?
Why?
cc @taylorotwell


VS Code Insiders and GitHub Copilot Missing API Proposal Error

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.94.0-1727415902 (Insiders)
OS Version: Debian Linux 12.7
GitHub Copilot Extension version: v0.21.2024092702 (Pre-Release)

For the past 2 weeks, in GitHub Copilot chat pre-release version, if I do:
@workspace /newNotebook Show how to use python string functions
Copilot returns an outline for a Jupyter notebook, but the "Create Notebook" button doesn't work, instead in the developer console, I get:
ERR Extension 'GitHub.copilot-chat' CANNOT use API proposal: telemetry.
Its package.json#enabledApiProposals-property declares: interactive, terminalDataWriteEvent, terminalExecuteCommandEvent, terminalSelection, terminalQuickFixProvider, chatProvider, chatParticipantAdditions, defaultChatParticipant, embeddings, chatVariableResolver, mappedEditsProvider, aiRelatedInformation, codeActionAI, findTextInFiles, textSearchProvider, activeComment, commentReveal, contribSourceControlInputBoxMenu, contribCommentEditorActionsMenu, contribCommentThreadAdditionalMenu, contribCommentsViewThreadMenus, newSymbolNamesProvider, findFiles2, extensionsAny, authLearnMore, testObserver, aiTextSearchProvider, documentFiltersExclusive, chatParticipantPrivate, lmTools, contribDebugCreateConfiguration, inlineEdit but NOT telemetry.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api GitHub.copilot-chat: Error: Extension 'GitHub.copilot-chat' CANNOT use API proposal: telemetry.
Its package.json#enabledApiProposals-property declares: interactive, terminalDataWriteEvent, terminalExecuteCommandEvent, terminalSelection, terminalQuickFixProvider, chatProvider, chatParticipantAdditions, defaultChatParticipant, embeddings, chatVariableResolver, mappedEditsProvider, aiRelatedInformation, codeActionAI, findTextInFiles, textSearchProvider, activeComment, commentReveal, contribSourceControlInputBoxMenu, contribCommentEditorActionsMenu, contribCommentThreadAdditionalMenu, contribCommentsViewThreadMenus, newSymbolNamesProvider, findFiles2, extensionsAny, authLearnMore, testObserver, aiTextSearchProvider, documentFiltersExclusive, chatParticipantPrivate, lmTools, contribDebugCreateConfiguration, inlineEdit but NOT telemetry.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api GitHub.copilot-chat
    at T0.h (file:///usr/share/code-insiders/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:33192)

For the past 2 weeks, I had installed the "Release" version of the Copilot extension and that would allow the "Create Notebook" button to work, but starting today, both the "Release" and "Pre-Release" versions are now broken when trying to creating Jupyter notebooks.
If there's anything I can do to help troubleshoot or if you need more information, please let me know.
Steps to Reproduce:

In Copilot chat, enter: @workspace /newNotebook Show how to use python string functions
Try and click the "Create Notebook" button
Open the developer console and you'll see the error.

Just wanted to mention that I'm now at:
VS Code Version: 1.95.0-1728022095 (Insiders)
OS Version: Debian Linux 12.7
GitHub Copilot Extension version: v0.22.2024100701 (pre-release)
And same thing happens with VS Code Insiders 1.95 as it did in 1.94.  Again, tested both release and pre-release versions of Copilot and same error is being returned, no new notebook is created.

Same issue for me. Also the proposed command line switch doesn't work: "The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api GitHub.copilot-chat"

With the latest versions of VS Code Insiders and GitHub Copilot extension, this is no longer an issue.
VS Code Version: 1.96.0-1733119875 (Insiders)
OS Version: Debian Linux 12.8
GitHub Copilot Extension version: v0.23.2024120602 (Pre-Release)

Closing.


 Some of these are copied directly from Franklin. We should create an API module to hold the shared types and have Franklin and the client depend on those for their client/server implementations instead of maintaining the code in two places.

To make it a bit more concrete: we talk here about these models as well, in particular it could be nice to have for the stac4s client:

PaginationToken (backported into stac4s client)
Query (backported into stac4s client)
StacSearchCollection (right now I workaround it via focusing on fields we need for the request)
CollectionItemsResponse (right now I workaround it via focusing on fields we need for the request)


unable to login to application after upgrading to IS 5.11 with true

Hello wso2 team,
@madurangasiriwardena
@JKAUSHALYA
@thushaaanthan
@pulasthi7
@godwinamila
@omindu
@thanujalk
@isharac
@tharindu-bandara
We were using IS 5.10 , because of below error during logout
ERROR {org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[bridgeservlet]} - Servlet.service() for servlet [bridgeservlet] in context with path [/] threw exception org.wso2.carbon.identity.base.IdentityRuntimeException: Invalid tenant domain   , based on the suggestion from https://stackoverflow.com/questions/46771416/wso2-is-invalid-tenant-domain-when-providing-id-token-hint-to-logout-endpoint, we have enabled the below property in carbon.xml
<EnableEmailUserName>true</EnableEmailUserName>  , even without this property email user name was working but throwing the above error . we were using usernames with email as well as without email in 5.10 version which is not working in the new 5.11 version.
With the same configuration in 5.11 version of IS , we are unable to login to the application with the below error ,
"invalid username!, username should be an email address"

for users logging in using the username without email.
could you please let me know what is that we need to change to make both usernames with and without email working as previous version of IS,
i have tried adding an email domain to the admin user like<EMAIL_ADDRESS>, but even with this username ,i am unable to login even to IS console as well as my application ,
How to reproduce:
Enable property <EnableEmailUserName>true</EnableEmailUserName> in 5.11 and try to login with username and not the email username,
Expected behavior:
User should be able to login with username as well as email username,
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: IS 5.11
OS: [e.g., Windows, Linux, Mac]
Database:Oracle
Userstore: JDBC

Optional Fields
Related issues:
https://docs.wso2.com/display/IS570/Using+Email+Address+as+the+Username
https://docs.wso2.com/display/ADMIN44x/Working+with+Properties+of+User+Stores
https://github.com/wso2/product-is/issues/6728
https://github.com/wso2/product-is/issues/7485
Suggested labels:

Seems like you are referring to old documentation.
Here is the lastest documentation email as username in 5.11.0. https://is.docs.wso2.com/en/latest/learn/using-email-address-as-the-username/#using-email-address-as-the-username
From 5.9.0 onwards we have moved all the configuration to new configuration model. So going forward better to follow the corresponding version documentation.

Seems like you are referring to old documentation.
Here is the lastest documentation email as username in 5.11.0. https://is.docs.wso2.com/en/latest/learn/using-email-address-as-the-username/#using-email-address-as-the-username
From 5.9.0 onwards we have moved all the configuration to new configuration model. So going forward better to follow the corresponding version documentation.

thanks @senthalan  , i saw the link during migration from 5.7 to 5.9 and did not switch to deployment,toml configuration , instead i deleted and continued the existing configuration in carbon.xml , identity.xml   based on ,

now is it mandatory to move to the new configuration model ? ,  it was all working in 5.9 and 5.10 version .
thanks,
Hari

Seems like you are referring to old documentation.
Here is the lastest documentation email as username in 5.11.0. https://is.docs.wso2.com/en/latest/learn/using-email-address-as-the-username/#using-email-address-as-the-username
From 5.9.0 onwards we have moved all the configuration to new configuration model. So going forward better to follow the corresponding version documentation.

thanks @senthalan , i saw the link during migration from 5.7 to 5.9 and did not switch to deployment,toml configuration , instead i deleted and continued the existing configuration in carbon.xml , identity.xml based on ,

now is it mandatory to move to the new configuration model ? , it was all working in 5.9 and 5.10 version .
thanks,
Hari

also we would like to have support for username with and without an email domain, @senthalan  could you please point me to some documentation to achieve this ,
Thanks,
Hari

@senthalan ,  with this property enabled  <EnableEmailUserName>true</EnableEmailUserName>
both username with and without email domain does not work for me ,
wso2 console also has error during login with<EMAIL_ADDRESS>as username mentioned in user-mgmt.xml as below ,
      ```

<EMAIL_ADDRESS>admin

```
Thanks,
Hari

Hello Team ,
could you please point me if i am missing some configuration for making both email and non-email usernames working in 5.11 version same as 5.10 ?
thanks,
Hari

Hi @hari819,

now is it mandatory to move to the new configuration model ? , it was all working in 5.9 and 5.10 version .

Please note that it is advised to use deployement.toml based configurations for the latest versions of WSO2IS as we have introduced it for simplified configuration management capabilities and moving away from the fallback strategy to remove deployement.toml and use .XML based configurations.
For your initial question, it seems along with the fixes in https://github.com/wso2/identity-apps/pull/618 and https://github.com/wso2/product-is/issues/8117, the support for allowing both email and non-email usernames has been removed.

Hi @hari819,

now is it mandatory to move to the new configuration model ? , it was all working in 5.9 and 5.10 version .

Please note that it is advised to use deployement.toml based configurations for the latest versions of WSO2IS as we have introduced it for simplified configuration management capabilities and moving away from the fallback strategy to remove deployement.toml and use .XML based configurations.
For your initial question, it seems along with the fixes in wso2/identity-apps#618 and #8117, the support for allowing both email and non-email usernames has been removed. I will further analyze and update this.

thankyou @ayshsandu , I will start moving the config towards deployment,toml ,
with <EnableEmailUserName>true</EnableEmailUserName> and the following regular expressions in user-mgmt.xml i could get admin/adminpassword work for the wso2is console and only the email-username work for my application ,non-email username which was working till 5.10 version is not working as you mentioned ,

I will wait for further updates,
Thanks,
Hari

hello @ayshsandu  , would it be possible to check if there is a workaround in wso2-is-5.11 to get both username and email-username working with <EnableEmailUserName>true</EnableEmailUserName>,
thanks,

hello @ayshsandu  , would it be possible to check if there is a workaround in wso2-is-5.11 to get both username and email-username working with <EnableEmailUserName>true</EnableEmailUserName>,
thanks,

This issue is fixed now. To get both username and email-username working with <EnableEmailUserName>true</EnableEmailUserName>, please add the following configuration in the deployment.toml file.
[tenant_mgt]
enable_email_domain = true
disable_email_domain_validation = true

@sachiniWettasinghe ,
Many thanks for fixing this and replying to this thread ,
could you please let me know which version of wso2IS should I update to to use this functionality?.

Hi @hari819,
This issue is fixed in WSO2 IS 5.11.0. Please add the configs given in [1] to apply this fix.
[1] https://github.com/wso2/product-is/issues/10760#issuecomment-873862021

thankyou @sachiniWettasinghe

@sachiniWettasinghe , could you please let me know what will be the location of these config , if i am using the old configuration style without deployment.toml,
where should i add the properties in carbon.xml?

@sachiniWettasinghe , i could get the property from here ,

thanks ,

@sachiniWettasinghe @AnuradhaSK ,
i have downloaded a fresh copy of wso2is-511 from github , and added this extra the above configuration in carbon.xml ,
    <EnableEmailUserName>true</EnableEmailUserName>
    <!--https://github.com/wso2/product-is/issues/10760-->
    <!--https://github.com/wso2/carbon-identity-framework/pull/3582/files-->
    <DisableEmailUserNameValidation>true</DisableEmailUserNameValidation>

I am still getting the same error that UserName should always be an email ,

can you confirm this works in wso2is-511?
Thanks,

@sachiniWettasinghe , @AnuradhaSK ,
I could not see any of the changes present in the above merges present in wso2is-511 ,  example the new property not present in carbon.xml.j2 template ,

any idea how it will work in the current release of wso2is 5.11.0?
Thanks,

Hi!. any idea how it will work in the current release of wso2is 5.11.0?

Hi!. any idea how it will work in the current release of wso2is 5.11.0?

This is fixed in 5.11.0 after the GA release as an update. You can obtain the updates, if you have a subscription.


[BUG] Unable to get request body inside an exception handler, got RuntimeError: Receive channel has not been made available

Hello
SAME HERE https://github.com/encode/starlette/issues/892 (I am using fastapi but it is a starlette issue I think)
I want to get the request body in an exception handler but I am getting an Error. Is this a bug?
Minimal example
from fastapi import FastAPI
from starlette.requests import Request
from starlette.responses import UJSONResponse

app = FastAPI()

async def http_exception_handler(request: Request, exc: Exception) -> UJSONResponse:
    print(await request.body())  # RuntimeError: Receive channel has not been made available
    return UJSONResponse(content={"msg": f"SERVER_ERROR, {exc.args[0]}", "code": 500}, status_code=500)

app.add_exception_handler(Exception, http_exception_handler)

@app.post("/")
async def index(request: Request):
    print(await request.body())  # b'{"a": "b"}'
    raise Exception("CATCH ME")

# Run http localhost:8000 some=data

Error:
b'{"a": "b"}'
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/middleware/errors.py", line 159, in __call__
    await self.app(scope, receive, _send)
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
    raise exc from None
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/exceptions.py", line 71, in __call__
    await self.app(scope, receive, sender)
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/routing.py", line 550, in __call__
    await route.handle(scope, receive, send)
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/routing.py", line 227, in handle
    await self.app(scope, receive, send)
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/routing.py", line 41, in app
    response = await func(request)
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/fastapi/routing.py", line 196, in app
    raw_response = await run_endpoint_function(
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/fastapi/routing.py", line 148, in run_endpoint_function
    return await dependant.call(**values)
  File "./app.py", line 19, in index
    raise Exception("CATCH ME")
Exception: CATCH ME

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py", line 385, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
    return await self.app(scope, receive, send)
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/fastapi/applications.py", line 149, in __call__
    await super().__call__(scope, receive, send)
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/applications.py", line 102, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/middleware/errors.py", line 172, in __call__
    response = await self.handler(request, exc)
  File "./app.py", line 9, in http_exception_handler
    print(await request.body())
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/requests.py", line 194, in body
    async for chunk in self.stream():
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/requests.py", line 179, in stream
    message = await self._receive()
  File "/home/sevaho/.local/share/virtualenvs/testje2-JmgYoeLF/lib/python3.8/site-packages/starlette/requests.py", line 142, in empty_receive
    raise RuntimeError("Receive channel has not been made available")
RuntimeError: Receive channel has not been made available
INFO:     <IP_ADDRESS>:38798 - "POST / HTTP/1.1" 500 Internal Server Error

versions used:
fastapi==0.54.0
  - pydantic [required: >=0.32.2,<2.0.0, installed: 1.4]
  - starlette [required: ==0.13.2, installed: 0.13.2]
uvicorn==0.11.3
  - click [required: ==7.*, installed: 7.1.1]
  - h11 [required: >=0.8,<0.10, installed: 0.9.0]
  - httptools [required: ==0.1.*, installed: 0.1.1]
  - uvloop [required: >=0.14.0, installed: 0.14.0]
  - websockets [required: ==8.*, installed: 8.1]

I'm no expert as I'm learning and use fastapi for a few weeks only.
In my learning project spec, I stated that every exceptions should be partially returned to the client. So I had the similar expectation. Turns out that it is documented.
Your code should probably look like this:
import logging
from typing import Callable, List, Union

from fastapi import Body, FastAPI, HTTPException, Request, Response
from fastapi.exceptions import RequestValidationError
from fastapi.routing import APIRoute
from starlette.responses import UJSONResponse

class ErrorLoggingRoute(APIRoute):
    def get_route_handler(self) -> Callable:
        original_route_handler = super().get_route_handler()

        async def custom_route_handler(request: Request) -> Union[Response, UJSONResponse]:
            try:
                return await original_route_handler(request)
            except Exception as exc:
                logging.exception("Exception:")  # Keep it somewhere.

                return UJSONResponse(
                    {
                        "msg": f"SERVER_ERROR, {exc.args[0]}",
                        "code": 500,
                        "body": await request.body(),
                    },
                    status_code=500,
                )

        return custom_route_handler

app = FastAPI()
app.router.route_class = ErrorLoggingRoute

@app.post("/")
async def index(request: Request):
    raise Exception("CATCH ME")

I hope that it may help.

Body is consumed already by your index function.
You can raise an exception with the body data from there:
@app.post("/")
async def index(request: Request):
    body = await request.body())  # b'{"a": "b"}'
    raise Exception(body)

Thank you all, fixed now :D

Thanks for the help here everyone! :clap: :cake:
And thanks @sevaho for reporting back and closing the issue :+1:

@sevaho HI, I meet the same problem with you,but I don't konw how to fix it.
Can you teach me how to do? thanks very much
I want to use it to catch unexpected errors
here is my code:
@application.exception_handler(Exception)     async def http_exception_handler(request: Request, exc):         print(await request.json())         error_message = ''.join(traceback.format_exception(exc.__class__, exc, exc.__traceback__))         logging.getLogger("fastapi").error(f"{request.url}\n" + error_message)
here is my error:
`Traceback (most recent call last):
File "e:\pyenv\fast\lib\site-packages\starlette\middleware\errors.py", line 159, in call
await self.app(scope, receive, _send)
File "e:\pyenv\fast\lib\site-packages\starlette\exceptions.py", line 82, in call
raise exc from None
File "e:\pyenv\fast\lib\site-packages\starlette\exceptions.py", line 71, in call
await self.app(scope, receive, sender)
File "e:\pyenv\fast\lib\site-packages\starlette\routing.py", line 550, in call
await route.handle(scope, receive, send)
File "e:\pyenv\fast\lib\site-packages\starlette\routing.py", line 227, in handle
await self.app(scope, receive, send)
File "e:\pyenv\fast\lib\site-packages\starlette\routing.py", line 41, in app
response = await func(request)
File "e:\pyenv\fast\lib\site-packages\fastapi\routing.py", line 197, in app
dependant=dependant, values=values, is_coroutine=is_coroutine
File "e:\pyenv\fast\lib\site-packages\fastapi\routing.py", line 148, in run_endpoint_function
return await dependant.call(**values)
File ".\main.py", line 32, in heart_beat
1/0
ZeroDivisionError: division by zero
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "e:\pyenv\fast\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 385, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "e:\pyenv\fast\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 45, in call
return await self.app(scope, receive, send)
File "e:\pyenv\fast\lib\site-packages\fastapi\applications.py", line 151, in call
await super().call(scope, receive, send)  # pragma: no cover
File "e:\pyenv\fast\lib\site-packages\starlette\applications.py", line 102, in call
await self.middleware_stack(scope, receive, send)
File "e:\pyenv\fast\lib\site-packages\starlette\middleware\errors.py", line 172, in call
response = await self.handler(request, exc)
File ".\app.py", line 21, in http_exception_handler
print(await request.json())
File "e:\pyenv\fast\lib\site-packages\starlette\requests.py", line 201, in json
body = await self.body()
File "e:\pyenv\fast\lib\site-packages\starlette\requests.py", line 194, in body
async for chunk in self.stream():
File "e:\pyenv\fast\lib\site-packages\starlette\requests.py", line 179, in stream
message = await self._receive()
File "e:\pyenv\fast\lib\site-packages\starlette\requests.py", line 142, in empty_receive
raise RuntimeError("Receive channel has not been made available")
RuntimeError: Receive channel has not been made available
my app version like this:fastapi==0.53.2
gunicorn==20.0.4
uvicorn==0.11.3
requests==2.23.0
redis==3.4.1
pymongo==3.10.1
python-dateutil==2.8.1
`


Potential fix for #3066 (Transfer-Encoding and Content-Length headers both being set)

This looks good @davidsoncasey, thanks so much! Do you want to open a parallel pull request with your idea about refactoring prepare_body? I'd love to see both side-by-side.

@Lukasa sounds good. I'll work on getting something put together in the next couple of days.

I'm going close this PR out since these changes and discussion have been moved to #3184.


problem with Scroller extension and need opportunity to save value of column width into localStorage

Just try to use plugin with Scroller extension, resize of column look bad
Need opportunity to save value of column width into localStorage

Any updates on this? Or colResize in general?
This issue is what's keeping me from column resizing gloriousness!  :-(


Revert "WFLY-5863 Queue EE concurrency scheduled tasks if the server is suspened"

Reverts wildfly/wildfly#8499

Linux Build 9004 outcome was FAILURE using a merge of c4a9ad3aef609202a664a9bf1b3fcb3fa7012a16
Summary: Tests failed: 1 (1 new), passed: 3309, ignored: 191 Build time: 00:56:02
Failed tests
org.jboss.as.test.integration.ejb.mdb.ejb2x.MDB20TopicTestCase.testEjb20TopicMDBs: java.lang.AssertionError: Reply message was null on reply queue: ActiveMQQueue[ejb2x/replyQueueA]
	at org.jboss.as.test.integration.ejb.mdb.ejb2x.MDB20TopicTestCase.testEjb20TopicMDBs(MDB20TopicTestCase.java:121)
------- Stdout: -------
 [0m20:09:13,876 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment mdb.jar (runtime-name: mdb.jar) in 24ms
 [0m [0m20:09:13,881 INFO  [org.jboss.as.repository] (management-handler-thread - 2) WFLYDR0002: Content removed from location /opt/buildAgent/work/a31d203e70e89f90/testsuite/integration/basic/target/jbossas/standalone/data/content/aa/a9f6a9bf643319b208747aeb6341c32aecff57/content
 [0m [0m20:09:13,881 INFO  [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0009: Undeployed "mdb.jar" (runtime-name: "mdb.jar")
 [0m20:09:13,898 INFO  [org.jboss.as.test.integration.common.jms.JMSOperationsProvider] (main) Operation successful for update = {
    "operation" => "remove",
    "address" => [
        ("subsystem" => "messaging-activemq"),
        ("server" => "default"),
        ("jms-queue" => "ejb2x/queue")
    ]
}
20:09:13,916 INFO  [org.jboss.as.test.integration.common.jms.JMSOperationsProvider] (main) Operation successful for update = {
    "operation" => "remove",
    "address" => [
        ("subsystem" => "messaging-activemq"),
        ("server" => "default"),
        ("jms-queue" => "ejb2x/replyQueue")
    ]
}
20:09:13,922 INFO  [org.jboss.as.test.integration.ejb.mdb.ejb2x.AbstractMDB2xTestCase] (main) MDB20TopicTestCase.jar:
/org/
/org/jboss/
/org/jboss/as/
/org/jboss/as/test/
/org/jboss/as/test/integration/
/org/jboss/as/test/integration/ejb/
/org/jboss/as/test/integration/ejb/mdb/
/org/jboss/as/test/integration/ejb/mdb/ejb2x/
/org/jboss/as/test/integration/ejb/mdb/ejb2x/MDB20TopicTestCase$JmsQueueSetup.class
/org/jboss/as/test/integration/ejb/mdb/ejb2x/EJB2xMDB.class
/org/jboss/as/test/integration/ejb/mdb/ejb2x/AbstractMDB2xTestCase.class
/org/jboss/as/test/integration/common/
/org/jboss/as/test/integration/common/jms/
/org/jboss/as/test/integration/common/jms/JMSOperations.class
/org/jboss/as/test/integration/common/jms/JMSOperationsProvider.class
/org/jboss/as/test/integration/common/jms/ActiveMQProviderJMSOperations.class
/org/jboss/as/test/integration/common/jms/JMSOperationsException.class
/org/jboss/as/test/shared/
/org/jboss/as/test/shared/TimeoutUtil.class
/META-INF/
/META-INF/MANIFEST.MF
/META-INF/jboss-permissions.xml
/META-INF/ejb-jar.xml
/META-INF/jboss-ejb3.xml
 [0m20:09:13,938 INFO  [org.apache.activemq.artemis.core.server] (ServerService Thread Pool -- 17) AMQ221003: trying to deploy queue jms.topic.ejb2x/topic
 [0m20:09:13,950 INFO  [org.jboss.as.test.integration.common.jms.JMSOperationsProvider] (main) Operation successful for update = {
    "operation" => "add",
    "address" => [


[enhance] Shared Element Transitions

Add Shared Element Transitions for navigation between the Market list to the detail screen. More info in the doc.
https://github.com/Kaaveh/ComposeNews/assets/39463024/7d06836d-f3b9-419b-b8d9-00de4f26cda5

Assign me please


Implement From to convert args to config struct

Codecov Report

Merging #23 (8deb431) into master (0953d3e) will increase coverage by 30.4%.
Report is 2 commits behind head on master.
The diff coverage is 36.7%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files
Coverage Δ

crates/mirro-rs/src/main.rs
0.0% <0.0%> (ø)

crates/archlinux/src/lib.rs
57.2% <0.0%> (+22.1%)
:arrow_up:

crates/mirro-rs/src/config/mod.rs
52.3% <38.8%> (+52.3%)
:arrow_up:

... and 14 files with indirect coverage changes


reanimate-svg Haskell package is broken due to failing tests

Describe the bug
The reanimate-svg package, which is transitively used by https://reanimate.github.io, fails to build in latest Nixpkgs. Reproducible on both macOS and Linux.
Steps To Reproduce
Run bin/run or nix build on https://github.com/srid/anima/tree/14896ecd098706f4ae4d0850d0a39e1b270ff408
Screenshots

Additional context
error: builder for '/nix/store/6daxcs1kr7cchqn7js047vgf33ngjxgj-reanimate-svg-<IP_ADDRESS>.drv' failed with exit code 1;
       last 10 log lines:
       >       Exception: rsvg-convert: startProcess: posix_spawnp: illegal operation (Inappropriate ioctl for device) (expected failure)
       >     types-dom-svgstringlist-01-f:    FAIL (expected)
       >       Exception: rsvg-convert: startProcess: posix_spawnp: illegal operation (Inappropriate ioctl for device) (expected failure)
       >     types-dom-svgtransformable-01-f: FAIL (expected)
       >       Exception: rsvg-convert: startProcess: posix_spawnp: illegal operation (Inappropriate ioctl for device) (expected failure)
       >
       > 252 out of 504 tests failed (0.53s)
       > Test suite w3c-spec: FAIL
       > Test suite logged to: dist/test/reanimate-svg-<IP_ADDRESS>-w3c-spec.log
       > 0 of 1 test suites (0 of 1 test cases) passed.
       For full logs, run 'nix log /nix/store/6daxcs1kr7cchqn7js047vgf33ngjxgj-reanimate-svg-<IP_ADDRESS>.drv'.

Notify maintainers

Metadata
 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.2.0, macOS 12.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.5.1`
 - channels(srid): `"darwin"`
 - channels(root): `"nixpkgs-21.11pre333180.98747f27ecf"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

The Haskell maintainers here in Nixpkgs would definitely appreciate if someone could look into this and try to figure out if this is an actual error that needs to be reported upstream, or if this is just a quirk of the Nix Haskell builder environment (in which case, the tests should just be disabled).

I get slightly different errors:
animate-dom-02-f:                FAIL
      Exception: rsvg-convert: startProcess: posix_spawnp: does not exist (No such file or directory)
      Use -p '/animate-dom-02-f/' to rerun this test only.
[...]

There is also this issue: https://github.com/reanimate/reanimate-svg/issues/33 reported by @sternenseemann

On a tangential note, if anyone is looking to volunteer for a fix, we also need to build ffmpeg with librsvg support.
https://github.com/srid/anima/blob/c9e11557ed269f250f3bef2449f106384d7e0103/flake.nix#L32-L42

I'm almost certain that the error rsvg-convert: startProcess: posix_spawnp: illegal operation (Inappropriate ioctl for device) is caused by the executable rsvg-convert not being available on the PATH.
Here's a GHCi session on macOS trying to execute a non-existing executable using the typed-process library (which reanimate-svg uses):
$ cabal repl -b typed-process
ghci> import System.Process.Typed
ghci> startProcess $ proc "non-existing-exe" []
*** Exception: non-existing-exe: startProcess: posix_spawnp: failed (Undefined error: 0)

and here's the error on Linux:
$ cabal repl -b typed-process
ghci> import System.Process.Typed
ghci> startProcess $ proc "non-existing-exe" []
*** Exception: non-existing-exe: startProcess: posix_spawnp: does not exist (No such file or directory)

So I think this can be fixed by adding librsvg as a runtime dependency and adjusting the PATH accordingly.


rancher server image can't be used

What kind of request is this (question/bug/enhancement/feature request):
question
Steps to reproduce (least amount of steps as possible):
1.install dapper
curl -sL https://releases.rancher.com/dapper/latest/dapper-$(uname -s)-$(uname -m) > /usr/local/bin/dapper
chmod +x /usr/local/bin/dapper
2.build rancher server image
git clone https://github.com/rancher/rancher.git
git checkout v2.5.2
in order to speed up build, so we delete the test.
diff --git a/scripts/ci b/scripts/ci
index 247193c..3c56997 100755
--- a/scripts/ci
+++ b/scripts/ci
@@ -5,6 +5,5 @@ cd $(dirname $0)
./validate
./build
-./test
./package
./chart/ci
finally,
$ make
Result:
in dist founder:
$ cat images
rancher/rancher:dev
rancher/rancher-agent:master-head
we can get the docker image(rancher/rancher:dev), we use this image to start rancher server by cli(docker run -d --restart=unless-stopped
-p 80:80 -p 443:443
--privileged
rancher/rancher:dev), but failed.
we curl <IP_ADDRESS>:80
curl: (56) Recv failure: Connection reset by peer
Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
Installation option (single install/HA):
Rancher version:v2.5.2
lnstallation option:single install

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported):
Machine type (cloud/VM/metal) and specifications (CPU/memory):
Kubernetes version (use kubectl version):

(paste the output here)

Docker version (use docker version):

Client: Docker Engine - Community
 Version:           19.03.14
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        5eb3275d40
 Built:             Tue Dec  1 19:20:42 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.14
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       5eb3275d40
  Built:            Tue Dec  1 19:19:17 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.3.9
  GitCommit:        ea765aba0d05254012b0b9e595e995c09186427f
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

It takes a bit of time to start up and respond on HTTP(S), what is in the log of the container?

In addition, I use the rancher dockerfile to build image, the result is same as we use dapper.
Here is how to build:
in rancher src directory：
$ go build
then we get the rancher binary file,
$ cd rancher/package/
$ docker build -t rancher:build .
then we get the image. And we start the container
$ docker run -d --restart=unless-stopped
-p 81:80 -p 4432:443
--privileged
rancher:build
the result is the same as before.
Here is the log.
one.log

Does it respond when you docker exec into the container and run curl -v https://localhost ? The way to build the image according to our CI is running make in the root of repository.

Does it respond when you docker exec into the container and run curl -v https://localhost ? The way to build the image according to our CI is running make in the root of repository.

$ curl -v https://localhost

Rebuilt URL to: https://localhost/
Trying <IP_ADDRESS>...
TCP_NODELAY set
Connected to static-proxy.g0.360es.cn (<IP_ADDRESS>) port 3128 (#0)
allocate connect buffer!
Establish HTTP proxy tunnel to localhost:443

CONNECT localhost:443 HTTP/1.1
Host: localhost:443
User-Agent: curl/7.58.0
Proxy-Connection: Keep-Alive

< HTTP/1.1 503 Service Unavailable
< Server: squid/3.5.20
< Mime-Version: 1.0
< Date: Tue, 27 Apr 2021 10:37:54 GMT
< Content-Type: text/html;charset=utf-8
< Content-Length: 3551
< X-Squid-Error: ERR_CONNECT_FAIL 111
< Vary: Accept-Language
< Content-Language: en
<

Received HTTP code 503 from proxy after CONNECT
CONNECT phase completed!
Closing connection 0
curl: (56) Received HTTP code 503 from proxy after CONNECT
root@ac503253f5c9:/var/lib/rancher# * Rebuilt URL to: https://localhost/
2021-04-27 10:37:55.762189 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# *   Trying <IP_ADDRESS>...
2021-04-27 10:37:55.788796 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# * TCP_NODELAY set
2021-04-27 10:37:55.805231 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# * connect to <IP_ADDRESS> port 443 failed: Connection refused
2021-04-27 10:37:55.822289 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# *   Trying ::1...
2021-04-27 10:37:55.841029 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# * TCP_NODELAY set
2021-04-27 10:37:55.858631 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# * Immediate connect fail for ::1: Network is unreachable
2021-04-27 10:37:55.873614 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# *   Trying ::1...
2021-04-27 10:37:55.893354 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# * TCP_NODELAY set
2021-04-27 10:37:55.907522 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# * Immediate connect fail for ::1: Network is unreachable
2021-04-27 10:37:55.922004 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# * Failed to connect to localhost port 443: Connection refused
2021-04-27 10:37:55.936401 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# * Closing connection 0
2021-04-27 10:37:55.951650 E | etcdmain: error verifying flags, 'k3s' is not a valid flag. See 'etcd --help'.
root@ac503253f5c9:/var/lib/rancher# curl: (7) Failed to connect to localhost port 443: Connection refused
bash: syntax error near unexpected token `7'

curl -v https://localhost

$ curl -v https://localhost

Rebuilt URL to: https://localhost/
Trying <IP_ADDRESS>...
TCP_NODELAY set
connect to <IP_ADDRESS> port 443 failed: Connection refused
Trying ::1...
TCP_NODELAY set
Immediate connect fail for ::1: Network is unreachable
Trying ::1...
TCP_NODELAY set
Immediate connect fail for ::1: Network is unreachable
Failed to connect to localhost port 443: Connection refused
Closing connection 0
curl: (7) Failed to connect to localhost port 443: Connection refused

Does it respond when you docker exec into the container and run curl -v https://localhost ? The way to build the image according to our CI is running make in the root of repository.

I'm sorroy to close this by hand mistake.

Does it respond when you docker exec into the container and run curl -v https://localhost ? The way to build the image according to our CI is running make in the root of repository.

yes, but I can't get the response. If you have any suggestion?


Repeat Failures in Application Insights

Describe the bug
I have recently manually deployed the TRE a couple of times and both times noticed there are reoccurring failures in Application Insights.
They occur every 5 minutes and show a response code of 404.
Request.url is http://api-.azurewebsites.net/
Steps to reproduce

Manually deploy TRE Core
Go to Application Insights and check Failures

I can't see any effect on TRE use, just something to note.

This is down to AlwaysOn being configured on the web app. Suggest we put a basic page in the root of the API.


Bump firebase packages

I thought I'd mail this separately since it includes some major version bumps.

*shakes fist at beta*

*shakes fist at beta*

Re-running CI

🎉 🎉 🎉


Readme fixes

Some small fixes for issues I noticed in the README.

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

Coverage remained the same at 94.214% when pulling 247af66f6315939dbfec1d606203f7912db0d18c on AaronLasseigne:readme-fixes into 5eca0dded6efd843d5327c3abad76311064f0e07 on dryruby:develop.

Thanks for doing this, and I'm glad you figured your way around the example typos. I'll get the documentation updated at https://dryruby.github.io/ebnf.


ex5 solution

Name: András Czégel
Score: 3
Chemical accuracy (error) : 2.339090 mHa
Number of parameters: 8

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

Sorry for the delay. Thank you very much for your submission!