How to close individual clients? (Java)

Greetings, I want to build a method in the given Example.java that just sends a message in a group chat. I came to the point where this works, but after that my application is still running. So I added
quiting = true;
haveAuthorization = false;
client.send(new TdApi.Close(), defaultHandler);
after my message was sent. Now I get:

Closing
Error {
code = 500
message = "Internal Server Error: closing"
}

My message is not sent to the group chat until I send a second one without these 3 lines. What do I have to do to close the server connection and the client correctly after my stuff is done? Thanks

You close TDLib before it is able to send the message. You need to wait until the message is successfully sent and close TDLib only after receiving corresponding updateMessageSendSucceeded/updateMessageSendFailed/updateDeleteMessages.

Thanks, I implemented these cases in the UpdatesHandler and it seems to work, but I still get a Internal server error 500 when closing the connection. My most recent problem is, that I want to have a terminating application that just sends a message and authenticates the device I'm using currently. So far so good, when I first execute the code without a authkey, because I didn't get one for the first time running on a new device, I want to get one on my phone. After that my app should terminate and close the connection. Then I'm running the same code again, providing the auth code from my phone this time. Now it should authenticate the device correctly, send the message and close afterwards again.
I tried this on my prototype, but it ended with a 24 hours block, because it kept to send requests to the api from somewhere in the code. Can you help me out with an easy example @levlam? I really appreciate your help up to this point, I feel a bit lost within these handlers and authentication methods.

Could you collect TDLib logs of both runs with verbosity 4 and send them to @tdlib_bot? It will help me to understand, what exactly happens.

I sent 2 logs from Example.java and my app to tdlib_bot.  I'll send the other .log of my terminating app tomorow as soon as I get deblocked. Thank you for your support.

It has happened that 24 hours flood wait was caused by the repeating calls to checkAuthenticationCode and often logging in and out, so there was no errors on TDLib side.


L mod L mans fix up

Fix up bossman ...----,,,----

What's the issue?

KEEP IT LEMON

[ ]

print("curwa bayoyao")

Closing as no issue was presented apart from yourself
I'm joking, he's a friend of mine for anyone who sees this


[Compute] Fix #5663: az image copy: Fix subscription id input by user being override

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

az image copy
Description
Fix subscription id input by user being override
Issue - close: #5663
General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

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

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

Compute


[Task]: Support newer versions of Pyarrow in Beam

What needs to happen?
We should upgrade beam  to support newer versions of PyArrow. Currently Pyarrow 16 is the latest: https://pypi.org/project/pyarrow/#history.
When we do this upgrade, we should check whehter we can also unpin the upper bound for Windows tests: https://github.com/apache/beam/blob/365c2d92965c5e23c23d6e1f3c7a1cd048c872d8/sdks/python/setup.py#L147
If that is still the issue, we will have issues with Python 3.12 on windows that use arrow.
Issue Priority
Priority: 2 (default / most normal work should be filed as P2)
Issue Components

[X] Component: Python SDK
[ ] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam YAML
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

this is fixed.

currently supporting up to:      'pyarrow>=3.0.0,<17.0.0',


[Task]: Create a workflow to run Nightly Playground examples CI checks

What needs to happen?
Nightly Playground examples CI checks: Verify examples nightly to make sure they remain functioning between SDK changes, etc. This will help to ensure that the examples are always up-to-date and that users can successfully use them.
Issue Priority
Priority: 2 (default / most normal work should be filed as P2)
Issue Components

[ ] Component: Python SDK
[ ] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam YAML
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

.take_issue


Only increasing indices are supported: Can combinations of recurring elements be retrieved at once?

Describe the Problem
Indexing does not work as expected with an iterable. Wrong elements are returned and correct elements are missing. This is due to recurring and unsorted indices not being supported.
What I want to do
Given a combination of frames and precursors, I want to only get the fragments matching to the provided pairs (frame, precursor)
To Reproduce
There are plenty of ways to break it but this is what's working consistently for me:
data = TimsTOF(<path_to_.d>)
matching_df = data[[2,2,3], :, [1,3,1]]
matching_df

I.e., create an object and select frame 2 and 3 where precursors 1 and 3 should be returned for frame 2 and precursor 1 for frame 3.
Expected behavior
A dataframe should be returned where the frame_indices and precursor_indices in individual rows should be matching pairs like they were indexed. In this case:
frame_indices, precursor_indices
2, 1
2, 3
3, 1
Actual behaviour
Every precursor except 1 is ignored. In case of more indices, it also happens that random precursors are selected that aren't even in the list of indices.
Screenshots

Here you can see how the pair (2,3) is missing in the dataframe.
Version (please complete the following information):

latest stable alphatims within conda environment, installed with pip
If no log is available, provide the following:

Platform information

system    Ubuntu
release  22.04.1
machine   x86_64
processor Intel(R) Xeon(R) Gold 6148
cpu count 160

Python information:

alphatims version 1.0.8
python version 3.9

Additional context
This is part of timsTOF integration into the oktoberfest rescoring pipeline. I am reading the pasefMsmsScans.txt table from a MaxQuant run and try to filter the alphatims object for those fragments relevant for the MQ search. The idea is to create master MS2 spectra by summing the fragment intensities of individual precursors so that they can be compared against fragment intensity predictions to calculate spectral angles. Maybe I am doing sth. wrong or maybe you have an idea how to better approach this if it circumvents this indexing problem.

Dear @picciama , you are fully right that indeed these indices need to be sorted (you can see this is in the docs if you do help(data), specifically the lines: https://github.com/MannLabs/alphatims/blob/master/alphatims/bruker.py#L627-L641).
If your interest is in retrieving fragments coming from the same precursor, you can check out the "Advanced DIA example" in the Jupyter tutorial notebook (https://github.com/MannLabs/alphatims/blob/master/nbs/tutorial.ipynb) to get some inspiration (i.e., the inspect_peptide function). This shows how you can retrieve all fragment indices that fall within certain tolerances, although I'l admit this is not necesarilly the most efficient way to do it.
As a second alternative, check out the filter_indices function that is used under the hood when you call __getitem__ (https://github.com/MannLabs/alphatims/blob/master/alphatims/bruker.py#L2961). This might fit your needs if you care about performance, but it is much more low level in terms of input parameters.

Hi @sander-willems-bruker , I already had the suspicion that this is desired behaviour but somehow missed the IMPORTANT despite it being in all caps... I changed the title of this issue accordingly to make it a question rather than a bug.
I looked at the tutorial and also the filter_indices function. The filter_indices function also expects an array where rows correspond to individual slices where the end index of the previous slices must be <= to the starting index of the next slice.
In case of a precursor being present in multiple frames, this is difficult to achieve because I cannot combine a precursor and frame selection. I would have to sort both and remove duplicate indices and hence retrieve way more data than necessary as it provides me with all combinations of frame and precursor indices. That leads to high memory requirements.
I will go with the following workaround for now, similar to how things are done in the  inspect_peptide function in the tutorial.
list_of_dfs = []
for frame in frames:
    precursors = sorted(precursors_for_frame[frame])
    list_of_dfs.append(data[frame, :, precursors])
df = pd.concat(list_of_dfs)

The problem is that this gets even more complicated when filtering for a scan_idx range in the next step.
I will check if is better to simply retrieve the entire dataframe and merge with pandas on the required frames, scans, and precursors or looping through and concatenating.
Do you think it would be possible to create a feature like fancy indexing with unsorted indices in the future?
It would also help, if one could even just read specific frames, scans and precursor combinations from the start. I have found some low level functions like https://github.com/MannLabs/alphatims/blob/96d10a8927dbeeeef0ab1a835bd742b948eec8f7/alphatims/bruker.py#L1059 that could technically be customized to read only required information as it uses https://github.com/MannLabs/alphatims/blob/96d10a8927dbeeeef0ab1a835bd742b948eec8f7/alphatims/bruker.py#L133 to provide the indices from the metadata.
I suggest to separate the initialisation of the AlphaTims object from the actual reading process, i.e. offer the possibility to create an AlphaTims object first, then use its reading functions manually like:
data = AlphaTims()
data.read(frame_ids, scan_ids, precursor_ids, ...)

For now, this can be realised by creating a new class inheriting from AlphaTims and writing such a read function that calls the internal functions of the original AlphaTims class. I can try this and share some code with you in case you think that might be a good feature.

Dear @picciama , happy to hear there is at least some workaround that helps you to tackle your issue. With respect to the fancy indexing, there is no direct plan to implement this.
AlphaTims first and foremost is a way to access data, whereas your use case also deals with organizing the data to a large extent, basically you are trying to do two things at once. TimsTOF data in essence is always "sorted" by design, as we deal with TOF data and he natural order is thus when it was detected (with rt> im > mz as a natural preordering). Note that the filter_indices in itself is very efficient and allows full parallelization as well. Moreover, this function return a (sorted) list of indices for raw ions (which is not so memory intensive). Getting "the right" data like this would be the first step of what you try to achieve. The second step for you would then be to organize that data and understanding it. Converting raw indices to a dataframe also happens as a second step in the __get_item__ function through the underlying as_dataframe function (https://github.com/MannLabs/alphatims/blob/master/alphatims/bruker.py#L1741). Note that this function actually DOES have a raw_indices_sorted flag that properly deals with differently organized data. In general this is my preferred approach to deal with the data: get what I need first as efficienty as possible, organize it later.
You final suggestion to postpone data reading until needed is an interesting one. For AlphaTims this is not directly plans, but it does happen like that in e.g. TimsRust (https://github.com/MannLabs/timsrust). As a work around to not have all data in RAM, you can always convert your raw data into an hdf file with e.g. a CLI call alphatims export hdf sample.d. Once this is done, Alphatims is able to load that hdf through mmapping, meaning it only fetches data drom disk when accessed (with paging done of course, I did not modify anything for the mmapping itself).

Yes indeed, hdf conversion is exactly what I needed!
Though it still leads to a high memory footprint during conversion of course and mmapping only working with uncompressed hdf (with compression it fails here: https://github.com/MannLabs/alphatims/blob/96d10a8927dbeeeef0ab1a835bd742b948eec8f7/alphatims/bruker.py#L1281 with the error OSError: Array /raw/_intensity_values cannot be mmapped. Perhaps it is compressed or chunked? ).
I can live with that though, since our users are  likely having the large .d / hdf files on their NAS and can convert it once for later usage in multiple runs. This is actually pretty neat as accession time is very low.
According to yxour proposed strategy of first getting indicies, then organising data (also for other people who might need a general solution):

First create the TimsTof object without slicing as a dataframe from an uncompressed hdf:

data = alphatims.bruker.TimsTOF("myAwesomeTimsExperiment.hdf", slice_as_dataframe=False)

create a list of desired (frame id, precursor id) pairs, and sort first by frame id, then by precursor id.

df_pasef = df_pasef.sort_values(["FRAME", "PRECURSOR"])
df_pasef[["FRAME", "PRECURSOR"]][:10]

group together all such pairs that form a closed group that can be written in ascedning order, i.e. all combinations of frame and precursor in this group need to be retrieved.

df_frame_group = df_pasef[["FRAME", "PRECURSOR"]].groupby("FRAME", as_index=False).agg({
    "PRECURSOR": tuple,
}).groupby("PRECURSOR", as_index=False).agg({
    "FRAME": tuple
})
df_frame_group[["FRAME", "PRECURSOR"]][:3]

loop through all groups, retrieve the list of all raw indices and convert to a dataframe only once at the end with the flag raw_indices_sorted=False. Retrieving raw indices in groups like I do here, may already guarantee that they are sorted, but I haven't proven this. This is still pretty fast though.

raw_idx = []
for frames, precursors in zip(df_frame_group["FRAME"], df_frame_group["PRECURSOR"]):
    raw_idx.extend(data[frames, :, precursors])

df2 = data.as_dataframe(
    raw_idx,
    raw_indices=False,
    frame_indices=True,
    scan_indices=True,
    quad_indices=False,
    tof_indices=False,
    precursor_indices=True,
    rt_values=True,
    rt_values_min=False,
    mobility_values=True,
    quad_mz_values=False,
    push_indices=False,
    mz_values=True,
    intensity_values=True,
    corrected_intensity_values=False,
    raw_indices_sorted=False
)

This way, one can get exactly what's needed and the memory footprint went from around 12 GB down to around 3-4 GB, simply by only really loading whats necessary.

Hapy to help! The footprint indeed might remain to show large-ish, but note that the mmapping means it will "never" crash as it should remove pages from RAM if there is no space left... Also note that you do not necesarilly need to create a TimsTOF object with the slice_asdataframe=False flag (although in your case this might be exactly what you want!), but can just as well do a data[...,"raw"] to get indices only.
I'll close the issue for now as it seems like we solved it:).
All the best, Sander


⚠ Bofrost.at has degraded performance

In e3ecf57, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1949 ms

Resolved: Bofrost.at performance has improved in ed1b449.


RTL is not as expected

Text Direction RTL doesn't work as Expected, the start date and end date doesn't show with correct direction.

I'm facing the same issue here:

Is there any updates on this ?


how to circulate the animation ?

I want a loading animation

Sorry , this feature is not implemented yet.


added Copy to Clipboard functionality

Added a simple Copy button in the CodeSample.tsx file.
Here's how it looks like:
https://user-images.githubusercontent.com/5396211/103403565-e2d4dd00-4b50-11eb-8163-639637f25d07.mov

Wow, this looks super cool! Thank you 🙇


Option to add, edit, update, delete remove tags

Targets #834

Description

Created the Manage Tags option in the navbar.
Created TagController, index, edit, create-modal for managing tags.
Created required routes in hr/web.php.
Updated Tag table by changing column named name with tname because the name and slug columns are causing conflicting for CRUD operation that's why by changing the name to tname solved.

Output:

Checklist:

[x] I have performed a self-review of my own code.

There are some UI feedbacks given by @rathorevaibhav & @pankaj-ag :

Table content should not be bold.
Edit form should be centered align and input box size should be small.

Given feedbacks is resolved and now ready for review.

@am-Anmol Please check the comments.

@ColoredCow/team-portal-reviewers You can take it forward for review.

@kuldeep3 @P4NK4J Can you please review this once?

@GauravGusain98 @P4NK4J Can we merge this PR now?

Sure, I am merging it now.


Fix redundant type constraint warnings

@aciidb0mb3r doing a recent PR I noticed some type constraint warnings when compiling, this fixes them


Fix #14

Ajuste para no traducir atributos reservados de nuspec.

The PR is not being built because the target branch live is filtered in .openpublishing.publish.config.json on live branch.

The PR is not being built because the target branch live is filtered in .openpublishing.publish.config.json on live branch.


Pep8 Cleanup

Will resolve #6
This is all just reformatting of the code to comply with PEP8. There are a few errors still, but they have been silienced. Other than that flake8 is passing.
Those errors are

from module import * which we are using to in the settings file to intentionally import everything
A few lines that exceed 79 chars because breaking the line up with negatively impact readability.

There were a few auxilary changes like renaming fig.yml to docker-compose.yml to silence the deprecation warning.
@ldko & @vphill,
Mind giving this a quick once over? We don't have formal style guidelines, so let me know if you have strong opinions on any of this. You can disregard NACO.py, as it will be removed as soon as unt-libraries/pynaco is ready for tag and release.

The diffs look ok to me


fix: issue 6219

Description: fix issue 6219

BREAKING CHANGE:

Related issue (if exists): issue 6219

 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.

Can you sign the CLA?

Can you sign the CLA?

Yes, I have


Errors for CPU tracking

Hi
May I know what is the correct way to fix the following errors:
[codecarbon INFO @ 13:11:29] [setup] RAM Tracking...
[codecarbon INFO @ 13:11:29] [setup] GPU Tracking...
[codecarbon INFO @ 13:11:29] Tracking Nvidia GPU via pynvml
[codecarbon INFO @ 13:11:29] [setup] CPU Tracking...
[codecarbon ERROR @ 13:11:29] Unable to read Intel RAPL files for CPU power, we will use a constant for your CPU power. Please view https://github.com/mlco2/codecarbon/issues/244 for workarounds : [Errno 13] Permission denied: '/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj'
[codecarbon INFO @ 13:11:29] Tracking Intel CPU via RAPL interface
[codecarbon ERROR @ 13:11:30] Unable to read Intel RAPL files for CPU power, we will use a constant for your CPU power. Please view https://github.com/mlco2/codecarbon/issues/244 for workarounds : [Errno 13] Permission denied: '/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj'
[codecarbon INFO @ 13:11:30] >>> Tracker's metadata:
[codecarbon INFO @ 13:11:30]   Platform system: Linux-5.13.0-27-generic-x86_64-with-glibc2.29
[codecarbon INFO @ 13:11:30]   Python version: 3.8.10
[codecarbon INFO @ 13:11:30]   Available RAM : 31.273 GB
[codecarbon INFO @ 13:11:30]   CPU count: 16
[codecarbon INFO @ 13:11:30]   CPU model: AMD Ryzen 7 3700X 8-Core Processor
[codecarbon INFO @ 13:11:30]   GPU count: 1
[codecarbon INFO @ 13:11:30]   GPU model: 1 x NVIDIA GeForce RTX 3080

Should I run the code with sudo access? Then I have to reinstall all pip packages that are needed. I wonder why it can not read RAPL data since I am able to run perf command with energy metrics and it works fine.

Hi,
Thanks for reporting this. Please don't run your Python code with sudo. You could see explanation on the problem in https://github.com/mlco2/codecarbon/issues/244
Could you tell us more on "perf command with energy metrics" because we are highly interested in method that do not need root access at any time ?

Also I just noticed: CPU model: AMD Ryzen 7 3700X 8-Core Processor. As far as I can tell the Intel RAPL driver doesn't support AMD processors as they use different MSRs (machine specific registers) to communicate their power consumption.

Absolutely, RAPL did not work with AMD CPU.
I will close this issue as we did not get enough information.


Uint1Array is not a constructor

I can't get it to work even using your example.  I've tried using node v12.13 and v14.7
It says:
const bits = new Uint1Array(buf);              ^ TypeError: Uint1Array is not a constructor
`const Uint1Array = require('uint1array');
const message = "JAVASCRIPT ROCKS";
const chars = message.split('').map( c => c.charCodeAt(0) );
const buf = new ArrayBuffer(chars.length);
const bytes = new Uint8Array(buf);
const bits = new Uint1Array(buf);
bytes.set(chars);
console.log(${bits}); `

Sorry there was a typo. When using CommonJS modules you need to require .default
I've updated the example in the README to reflect.
Thank you very much for your report.


cannot find -lxcb: No such file or directory

Error while running cargo install inlyne

Solved by running apt install libxcb1-dev


Aaron Plocharczyk created his reflection on the class post

This includes "Lightbulb moment," "Confusion," "Still fuzzy," and "Problem solving strategy" sections as well as two code snippets.

Great refection!


Gamesplash dont work in rpi4

game splash screen (gamesplash.xml) is not showing in rpi4. I can test in rpi3 soon, but i think is not working either.
Thanks

It's working only with x86 & x64, because video drivers don't support shared modes with other boards.
It's not related to ES, but to the operating system.

understood, thanks

Hi again @fabricecaruso. Im working on some new screens for my theme and I would like to clarify, hope you can help me... so how many architectures are gamesplash compatible in total? only x86, x64 and windows (retrobat) or some more?, or where I can verify this in some file or piece of hard code? Thanks in advance and happy new year

already answered

ok, thanks, i was just looking at the list of boards, would steamdeck be in this compatible group too?


make the commit button work in the devtools

closes #184

here is the repro from the issue with this PR, commit button is working fine fore me: https://codesandbox.io/s/stupefied-meninsky-1wldx


Cannot build anymore with Json.NET portable.

I get in the latest days an exception when building my portable project referencing the Json.NET package. Here is a part of the build log:
5>Task "Exec" (TaskId:37)
5>  Task Parameter:WorkingDirectory=obj\Debug\ (TaskId:37)
5>  Task Parameter:Command="C:\Program Files (x86)\Microsoft\Contracts\Bin\ccrewrite.exe"<EMAIL_ADDRESS>(TaskId:37)
5>  "C:\Program Files (x86)\Microsoft\Contracts\Bin\ccrewrite.exe"<EMAIL_ADDRESS>(TaskId:37)
5>  Reading assembly 'Newtonsoft.Json' from 'D:\Quartz\kephas-git\kephas\src\packages\Newtonsoft.Json.8.0.2\lib\portable-net40+sl5+wp80+win8+wpa81\Newtonsoft.Json.dll' resulted in errors. (TaskId:37)
5>  	Could not resolve type reference: [mscorlib]System.Reflection.BindingFlags. (TaskId:37)
5>ccrewrite : error : Rewrite aborted due to metadata errors. Check output window
5>  elapsed time: 418,8431ms (TaskId:37)
5>C:\Program Files (x86)\Microsoft\Contracts\MsBuild\v14.0\Microsoft.CodeContracts.targets(265,5): error MSB3073: The command ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccrewrite.exe"<EMAIL_ADDRESS>exited with code -1.
5>Done executing task "Exec" -- FAILED. (TaskId:37)
5>Done building target "CodeContractRewrite" in project "Kephas.Serialization.Json.csproj" -- FAILED.: (TargetId:61)
I see that there are others having the same problem, but I didn't find any answer so far. Could you hint me something I can do for ccrewriter to exclude the Newtonsoft.Json.dll from analysis?
See also http://stackoverflow.com/questions/30965708/portable-library-doesnt-build-with-code-contracts.
Thanks in advance!

@ioancrisan Hi,
Here is a similar issue reported on Newtonsoft.Json project page:
https://github.com/JamesNK/Newtonsoft.Json/issues/626
I would need to dig into portable libraries to understand how the references are resolved at runtime.
There is a mscorlib in version <IP_ADDRESS> referenced by .NET 4.0 PCL Newtonsoft.Json but at runtime version 4.6.* is loaded.
ccrewrite searches for <IP_ADDRESS> which it fails to find I think.
Changing to 4.5 PCL should help as a workaround.

Thanks for pointing out this to me. Unfortunately I didn't find a way for nuget to choose the net45 PCL, but a manual reference change did the trick. For a workaround I can live with it.


HttpCoreDiagnosticSourceListener errors when events are raised from a different library

ApplicationInsight version: 2.17 (Latest)
.NET 5

Describe the bug
Grpc.Net.Client raises events that HttpCoreDiagnosticSourceListener listens to. The problem is that TypedFetchProperty assumes that the type passed here will always be the same. Grpc.Net.Client has a copy of the types passed to the listener.
https://github.com/microsoft/ApplicationInsights-dotnet/blob/81288f26921df1e8e713d31e7e9c2187ac9e6590/WEB/Src/Common/PropertyFetcher.cs#L46-L49
If System.Net.Http raises the events with one type, and Grpc.Net.Client raises the events with a different type, then TypedFetchProperty throws an error.
AI (Internal): [Microsoft-ApplicationInsights-Extensibility-DependencyCollector] HttpCoreDiagnosticSourceListener OnNext failed to call event handler. Error details 'System.InvalidCastException: [A]ActivityStartData cannot be cast to [B]ActivityStartData. Type A originates from 'Grpc.Net.ClientFactory, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=d754f35622e28bad' in the context 'Default' at location '/app/Grpc.Net.ClientFactory.dll'.
Type B originates from 'System.Net.Http, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the context 'Default' at location '/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.4/System.Net.Http.dll'.
   at Microsoft.ApplicationInsights.Common.PropertyFetcher.PropertyFetch.TypedFetchProperty`2.Fetch(Object obj)
   at Microsoft.ApplicationInsights.DependencyCollector.Implementation.HttpCoreDiagnosticSourceListener.OnNext(KeyValuePair`2 evnt)'

To Reproduce
With AI configured, make a web request with HttpClient, and make a gRPC request with Grpc.Net.Client.
Whichever library makes the second request will fail because TypedFetchProperty has been created against the other libraries copy of the event objects.

I'm seeing this exact exception when deploying an Azure Function with the dotnet-isolated runtime. When can we expect a new version of the AppInsights package that contains the fix?

same here @metoule

Actually I found that version 2.18.0-beta1 and up contain the fix! If you can't / don't want to use a beta version, the 2.18 milestone says to expect the 2.18 release on July 30th.
I currently use version 2.18-beta3 from Nuget (I had to select the "Include prerelease" checkbox in the Visual Studio Nuget UI), and it's working great :)


Malpositioned close button in fork popup

This is a bug of GitHub itself. I don't know if they forget to update the fork popup's style, but now we have this annoying close button:

If you compare it to other popups you will notice the difference:

Checkout fork popup's title style:

position: relative seems to be the culprit. Let's try position: static then:

Fine, but the position is still wrong. Now add some style to make it looks consistent with other popups:
font-size: 14px;
font-weight: 600;
min-height: unset;

It definitely looks better! Maybe we should include these styles in Refined GitHub. I will email GitHub about the wrong style too.

It’s worth sending this feedback to GitHub instead since they’re working on the redesign.

This can be done in a few CSS lines, maybe even just margin-top: 5px
PR welcome, add stright to refined-github.css


Master branch android build error

Missing method maybeRequestPermissionsOnHostResume implementation in master branch:
https://github.com/cloudwebrtc/flutter-webrtc/blob/master/android/src/main/java/com/cloudwebrtc/webrtc/utils/PermissionUtils.java#L105

Master seems to be completely broken for iOS as well

@rostopira
I have fixed this issue.
Later, maybe we can use the a flutter plugin to complete the permission request, which will make the native code simpler.

@cloudwebrtc you could possible use Application.ActivityLifecycleCallbacks for that, but I personally don't think this feature makes any sense. I'm using WebRTC in background, but that's edge case
BTW, I've tested this plugin on API level 17, and it works fine


Add API for renaming Worlds

(also remove unused java.io,File import)

Can you amend this to fix the deleteWorld javadoc?

Please update to follow _blood's comments from IRC

Can we somehow change the PermissionContext of a world. So that if we have renamed the world the permission service still detects this world as the original one?

@ST-DDT Correct me if I'm wrong, but from what I can tell this would be done by the implementation.

Currently the world context is directly connected to the worlds name. But i would like to set it myself using API methods. It does not really have anything in common with renaming a world besides that both are associated with worlds and changing the identifier.
Just for the reference
https://github.com/SpongePowered/SpongeAPI/blob/master/src/main/java/org/spongepowered/api/service/permission/context/Contextual.java

Really the name should just be a friendly name for users to use. If worlds have a UUID shouldn't the permissions service associate with the worlds UUID, and only use the name for display purposes?

Rename will preserve UUID

@ryantheleach Please rememer the permission service must store the value to the config, and it should be human readable at that point.
I'm asking for this feature, because i would like to create some temporary worlds (for games) that are connected to a specific permission context, without having to somehow inject it to all joined players.

Because this issue could take awhile to work out, I'm going to split the offline import functionality into a separate PR that can be merged quicker.

Merged into PR commit https://github.com/SpongePowered/SpongeAPI/commit/142f2eaf011fb4e0972b8bcea9e6922232632a22.

@modwizcode The merge commit has only one method from this PR, is this intended? Why were the others left out?

there was only one? it's a merge into my PR branch?
On Jul 17, 2015 8:11 AM, "Gabriel Harris-Rouquette" <
<EMAIL_ADDRESS>wrote:

@modwizcode https://github.com/modwizcode The merge commit has only one
method from this PR, is this intended? Why were the others left out?
—
Reply to this email directly or view it on GitHub
https://github.com/SpongePowered/SpongeAPI/pull/756#issuecomment-122271783
.

They were added to modwizcode's PR in other commits.


Support basic association counts on /entity/{id}

Right now for Marfan the association counts in the get entity api response looks like:
"association_counts": {
    "phenotype": {
      "counts": 89
    },
    "pathway": {
      "counts": 6
    },
    "variant": {
      "counts": 1544,
      "counts_by_taxon": {
        "NCBITaxon:9606": 1541,
        "NCBITaxon:10090": 3
      }
    },
    "publication": {
      "counts": 473
    },
    "model": {
      "counts": 79,
      "counts_by_taxon": {
        "NCBITaxon:9606": 60,
        "NCBITaxon:10090": 12,
        "NCBITaxon:6239": 5,
        "NCBITaxon:9895": 2
      }
    },
    "genotype": {
      "counts": 9,
      "counts_by_taxon": {
        "NCBITaxon:10090": 9
      }
    },
    "chemical": {
      "counts": 3
    },
    "correlated-gene": {
      "counts": 2,
      "counts_by_taxon": {
        "NCBITaxon:9606": 2
      }
    },
    "causal-gene": {
      "counts": 1,
      "counts_by_taxon": {
        "NCBITaxon:9606": 1
      }
    },

As a start, lets just go stick closer to the categories in biolink model and leave out the taxon counts, so that we end up with something more like:
  "association_counts": {
    "biolink:PhenotypicFeature": {
      "counts": 89
    },
    "biolink:Pathway": {
      "counts": 6
    },
   ....

This code can be organized more nicely for sure, but here's some basic notebook code for getting the counts from solr and combining them:
import collections
import requests

disease_id = "MONDO:0007947"
association_url = "http://localhost:8983/solr/association"

def get_filtered_facet(id, filter_field, facet_field):
    response = requests.get(f"{association_url}/select?q=*:*&rows=0&facet=true&facet.field={facet_field}&fq={filter_field}:\"{id}\"")
    facet_fields = response.json()["facet_counts"]["facet_fields"][facet_field]

    return dict(zip(facet_fields[::2], facet_fields[1::2]))

def get_entity_association_counts(entity_id):
    object_categories = get_filtered_facet(disease_id, filter_field="subject", facet_field="object_category")
    subject_categories = get_filtered_facet(disease_id, filter_field="object", facet_field="subject_category")
    categories = collections.Counter(object_categories) + collections.Counter(subject_categories)
    return categories

get_entity_association_counts(disease_id)

We should stick with the same get_association_counts=true query string parameter to include these counts

Added in 6db36250c3f42e502bfbccf579242382ef014e18


Cant run on debian

After i install the extension via Ulauncher, i get the option to use it when sp is typed, the problem is that it never goes beyond the loading message, not even for the ? command,
Note: Autentication is never asked.
Any thought on what i am doing wrong?

Sorry for the inconvenience! So if I understand correctly, the extension is successfully installed, but when you type sp, it gets stuck and nothing shows up.
Could you please open ulauncher's settings -> extension -> Ulauncher Spotify API and see if there are any warnings there?
Another thing you can try is running ulauncher verbosely in a terminal (ulauncher -v) and checking the output there when you type sp.

There are no warnings in the extension settings
Do you think that this problem might be from ulauncher itself, because even when i run the -v flag, it is launch as an independent process and no output is given by the terminal

That tells me the opposite actually, it seems the problem is directly with the extension, unfortunately for me haha!
If you are willing to do a bit more hardcore debugging, please do the following:

run ulauncher in developer mode with extensions turned off: ulauncher --dev --no-extensions -v
go to extensions tab in ulauncher preferences, click on the Ulauncher Spotify API extension, copy the command to manually start the extension and run this command in a separate terminal. It should be something along the lines of VERBOSE=1 ULAUNCHER_WS_API=ws://<IP_ADDRESS>:5054 ....... /ulauncher/extensions/ulauncher-spotify-api/main.py.

This separate window should now output the proper log from the extension.

Sorry for the delay.
i used this command
VERBOSE=1 ULAUNCHER_WS_API=ws://<IP_ADDRESS>:5054/com.github.the-lay.ulauncher-spotify-api PYTHONPATH=/usr/lib/python3/dist-packages /usr/bin/python3 /home/alex/.local/share/ulauncher/extensions/com.github.the-lay.ulauncher-spotify-api/main.py 2>errors.txt

Here is the output
/usr/lib/python3/dist-packages/ulauncher/utils/display.py:2: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gdk, GdkX11
com.github.the-lay.ulauncher-spotify-api | 2021-03-18 08:31:59,730 | DEBUG | ulauncher.api.client.Client: on_message() | Incoming event PreferencesEvent
com.github.the-lay.ulauncher-spotify-api | 2021-03-18 08:31:59,730 | DEBUG | __main__: on_preferences() | Received preferences event: {'main_keyword': 'sp', 'auth_port': '6666', 'clear_cache': 'No', 'show_help': 'Yes', 'aliases': 's: search; song: track; vol: volume; like: save; ?: help', 'search_results_limit': '8', 'request_timeout': '0.5'}
com.github.the-lay.ulauncher-spotify-api | 2021-03-18 08:31:59,730 | DEBUG | __main__: on_preferences_update() | Received preferences update event for auth_port, changing from 8080 to 6666
com.github.the-lay.ulauncher-spotify-api | 2021-03-18 08:31:59,730 | DEBUG | __main__: _generate_api() | Generating Spotipy object
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ulauncher/api/client/Client.py", line 54, in on_message
    self.extension.trigger_event(event)
  File "/usr/lib/python3/dist-packages/ulauncher/api/client/Extension.py", line 52, in trigger_event
    action = listener.on_event(event, self)
  File "/home/alex/.local/share/ulauncher/extensions/com.github.the-lay.ulauncher-spotify-api/main.py", line 278, in on_event
    return self.on_preferences(event.preferences)
  File "/home/alex/.local/share/ulauncher/extensions/com.github.the-lay.ulauncher-spotify-api/main.py", line 294, in on_preferences
    self._generate_api()
  File "/home/alex/.local/share/ulauncher/extensions/com.github.the-lay.ulauncher-spotify-api/main.py", line 117, in _generate_api
    self.api = spotipy.Spotify(auth_manager=auth)
  File "/home/alex/.local/lib/python3.7/site-packages/spotipy/client.py", line 166, in __init__
    self._build_session()
  File "/home/alex/.local/lib/python3.7/site-packages/spotipy/client.py", line 200, in _build_session
    status_forcelist=self.status_forcelist)
TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
com.github.the-lay.ulauncher-spotify-api | 2021-03-18 08:32:42,157 | ERROR | ulauncher.api.client.Client: on_error() | WS Client error
com.github.the-lay.ulauncher-spotify-api | 2021-03-18 08:32:42,159 | WARNING | ulauncher.api.client.Client: on_close() | Connection closed. Exiting
com.github.the-lay.ulauncher-spotify-api | 2021-03-18 08:32:42,159 | DEBUG | __main__: on_system_exit() | Received system exit event

Thanks that is very helpful!
This seems to be Spotipy's problem: https://github.com/plamere/spotipy/issues/647
Can you please try updating spotipy (/usr/bin/python3 -m pip install "spotipy>=2.17.1"), it should be fixed now.

The problem is that i get this output telling me its already up to date
Requirement already satisfied: spotipy>=2.17.1 in /usr/local/lib/python3.7/dist-packages (2.17.1)
Requirement already satisfied: urllib3>=1.26.0 in /usr/local/lib/python3.7/dist-packages (from spotipy>=2.17.1) (1.26.4)
Requirement already satisfied: requests>=2.25.0 in /usr/local/lib/python3.7/dist-packages (from spotipy>=2.17.1) (2.25.1)
Requirement already satisfied: six>=1.15.0 in /usr/local/lib/python3.7/dist-packages (from spotipy>=2.17.1) (1.15.0)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.25.0->spotipy>=2.17.1) (2.6)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/lib/python3/dist-packages (from requests>=2.25.0->spotipy>=2.17.1) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.25.0->spotipy>=2.17.1) (2018.8.24)

The plot thickens - I've updated myself and it broke for me in exactly the same way haha.
The quick fix is to roll back to the version that definitely works: /usr/bin/python3 -m pip install "spotipy==2.16.1" "requests==2.23.0". Let me know if that helps.

I think i broke it even worse, now i do get an error when i got to ulauncher's settings -> extension -> Ulauncher Spotify API, i get this message:
"The extension was terminated. Please check the logs"

go to extensions tab in ulauncher preferences, click on the Ulauncher Spotify API extension, copy the command to manually start the extension and run this command in a separate terminal. It should be something along the lines of VERBOSE=1 ULAUNCHER_WS_API=ws://<IP_ADDRESS>:5054 ....... /ulauncher/extensions/ulauncher-spotify-api/main.py.

If it is of some help, if i run this command i get the following output
/usr/lib/python3/dist-packages/ulauncher/utils/display.py:2: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gdk, GdkX11

If it is of some help, if i run this command i get the following output
/usr/lib/python3/dist-packages/ulauncher/utils/display.py:2: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gdk, GdkX11

I also see the same message, but it is just a warning (coming from base ulauncher code) and can be ignored. Is this the whole output?

@gadc1996 sorry to ping you, but have you tried running it again, is the issue fixed for you? I tried reinstalling it on a clean Ubuntu 20.10 today and it worked fine for me now, after the last commit where I froze the dependencies.

Well, I consider that the problem is fixed now :)
Please feel free to reopen or create a new issue one if that's not the case.

@the-lay hi, fresh install for me on the last ubuntu version and i got 'loading' indefinetly

Hi @sebastienmaurette, thanks for the bug report. Can you try running /usr/bin/python3 -m pip show spotipy and let me know which version of spotipy you have installed?

Name: spotipy
Version: 2.19.0
Summary: A light weight Python library for the Spotify Web API
Home-page: https://spotipy.readthedocs.org/
Author: @plamere
Author-email<EMAIL_ADDRESS>License: MIT
Location: /home/sebastien/.local/lib/python3.8/site-packages
Requires: requests, urllib3, six
Required-by:

i got this log when i try to start a request
com.github.the-lay.ulauncher-spotify-api | 2021-12-28 11:11:53,004 | DEBUG | ulauncher.api.client.Client: on_message() | Incoming event KeywordQueryEvent com.github.the-lay.ulauncher-spotify-api | 2021-12-28 11:11:53,005 | DEBUG | __main__: on_event() | Extension language is: en. Searching translation files in /home/sebastien/.local/share/ulauncher/extensions/com.github.the-lay.ulauncher-spotify-api/locales. Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/ulauncher/api/client/Client.py", line 54, in on_message     self.extension.trigger_event(event)   File "/usr/lib/python3/dist-packages/ulauncher/api/client/Extension.py", line 52, in trigger_event     action = listener.on_event(event, self)   File "/home/sebastien/.local/share/ulauncher/extensions/com.github.the-lay.ulauncher-spotify-api/main.py", line 311, in on_event     return self.on_keyword_query(event.get_keyword(), event.get_argument())   File "/home/sebastien/.local/share/ulauncher/extensions/com.github.the-lay.ulauncher-spotify-api/main.py", line 350, in on_keyword_query     if self.api.auth_manager.get_cached_token() is None: AttributeError: 'NoneType' object has no attribute 'auth_manager'
And all my dependencies are up to date :+1:
Name: spotipy
Version: 2.19.0
Name: urllib3
Version: 1.26.7
Name: requests
Version: 2.26.0
Maybe there it could be linked with this issue ?
https://github.com/plamere/spotipy/issues/647

Name: spotipy Version: 2.19.0 Summary: A light weight Python library for the Spotify Web API Home-page: https://spotipy.readthedocs.org/ Author: @plamere Author-email<EMAIL_ADDRESS>License: MIT Location: /home/sebastien/.local/lib/python3.8/site-packages Requires: requests, urllib3, six Required-by:

That's the problem - the extension requires and installs specific version of spotipy, 2.16.1. You might have updated/installed it yourself not according to the instructions. Please downgrade it: /usr/bin/python3 -m pip install "spotipy==2.16.1" "requests==2.23.0" --force-reinstall.
If you need a newer version of spotipy for your other projects please consider using venv or anaconda for them.

Thanks for your reply it's ok now.
And sorry i didn't read the instructions with attention ...

No problems, glad it is solved!


Setting esp-idf path to match Espressif's documentation

I set up a new mac with both Espressif's IDF/toolchain and Zephyr. I ran into a build error because the ESP_IDF_PATH was not set. This wasn't set correctly because:

The Zephyr docs didn't mention it when setting up the environment
The Espressif docs tell you to run an install.sh that sets a different value to IDF_PATH.

I'd like to recommend switching the IDF_PATH to match the Espressif docs. I think west options needs to be updated and some of the CMAKE files in Zephyr.
Thoughts?

@beriberikix would you send a PR to fix the documentation?

@nashif have you ever had to set ESP_IDF_PATH when building for ESP32?

Happy to submit the immediate doc bug. However, the change I suggested would require modifying the source code. Should I submit the PR for the docs or should we discuss the proposed change first?

I do the following to build for ESP32:
. ~/esp/esp-idf/export.sh
export ZEPHYR_TOOLCHAIN_VARIANT=espressif
export ESPRESSIF_TOOLCHAIN_PATH=${HOME}/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/
export ESP_IDF_PATH=${IDF_PATH}

west build -b esp32
west flash --esp-device /dev/ttyUSB0


Ensure resource is resolved when picking children

Needed to completely fix https://github.com/microsoft/vscode-azurefunctions/issues/3135

Unsure if this is still needed since we went a different direction #212, will leave it up for now.

It shouldn't be since the app resource is being resolved after it's picked now in #212


Support GoLand 2024.2 EAP (242.*)

According to the version information, it does not support the 2024.2 EAP.
Hopefully it can get fixed!

Not specifying until-build means it will include all future builds. This includes future, yet unreleased versions and possibly new IDEs, which might impact compatibility later. src

Fixed by #56


is_inside_email broken for popout of thread "In new window"

When a thread is poped out by clicking the "In new window" button, is_inside_email reports false when run from within the poped out window.

I think this can be fixed with something like this (adding a is_popped_out), since the second half of the function works fine:
    api.check.is_inside_email = function() {
        if(api.get.current_page() !== "email" && !api.check.is_preview_pane()  && !api.check.is_popped_out()) {
            return false;
        }

        var items = $(".ii.gt .a3s");
        var ids = [];

        for(var i=0; i<items.length; i++) {
            var mail_id = items[i].getAttribute("class").split(" ")[2];
            if(mail_id !== "undefined" && mail_id !== undefined) {
                ids.push(items[i]);
            }
        }

        return ids.length > 0;
    };

and then is_popped_out just needs to be built to detect the popout

Sounds good to me. PRs welcome!


fix(deps): update dependency memoize-one to 5.1.1

Fixes #2202
- Summary
The npm package for memoize-one was updated a few hours ago, and those changes showed incompatible to netlify/cli. This fixes #2202 by enforcing use of the last known good release of memoize-one.
- Test plan
Ran npm test to ensure version is still working.
- A picture of a cute animal (not mandatory but encouraged)
A good boy:

Thank you so much for opening this, @jsutaria !
@waynehoover actually opened a PR a few mins earlier, so going to close this in favor of https://github.com/netlify/cli/pull/2204.


新标签页出现错误弹窗

没当打开新标签页就出现undefined的提示

Thanks for reporting this. However, it seems like this is related to the browser itself, not to DevTools (which this repository is about).
DevTools is a developer feature in Edge which has nothing to do with opening new tabs.
Can you please send your feedback again by using the browser's feedback mechanism? Here's how:

Click Settings and more (the ... button in the top-right corner of the browser).
Click Help and feedback.
Click Send feedback.

Thank you for your understanding.


Question about not broadcasting confirmation once the receiver has confirmed the block successfully

Now in the main net, when a transaction is packaged, it means that the current node confirms it, and it needs at least 2/3 of the 21 super nodes to confirm. In addition, two rounds of confirmation are required.
Therefore, the difference between the current block height and the irreversible block height, up to a maximum of 336( 2 * (2/3) * 21 * 12 = 336 ).
Why not broadcast confirmation to make a block become irreversible faster?

In plugins/producer_plugin/producer_plugin.cpp, when accepted_block_connection receives block, on_block function will be called.
In on_block function,
std::set_intersection( _producers.begin(), _producers.end(),
active_producers.begin(), active_producers.end(),
boost::make_function_output_iterator( [&]( const chain::account_name& producer )
{
if( producer != bsp->header.producer ) {
auto itr = std::find_if( active_producer_to_signing_key.begin(), active_producer_to_signing_key.end(),
[&](const producer_key& k){ return k.producer_name == producer; } );
if( itr != active_producer_to_signing_key.end() ) {
auto private_key_itr = _signature_providers.find( itr->block_signing_key );
if( private_key_itr != _signature_providers.end() ) {
auto d = bsp->sig_digest();
auto sig = private_key_itr->second( d );
_last_signed_block_time = bsp->header.timestamp;
_last_signed_block_num  = bsp->block_num;
//                  ilog( "${n} confirmed", ("n",name(producer)) );
_self->confirmed_block( { bsp->id, d, producer, sig } );
}
}
}
} ) );
What's the purpose of the above codes?

I think this is by design. the confirmation message has to be in-sync among all BPs in order to keep last irreversible block number in sync. A confirmation of block N is implicitly done by producing block N+1 after block N. You might argue that there maybe better ways to do that, but all of these changes require hard forks. If you have further questions, please ask in https://eosio.stackexchange.com/


Make auto-deploy configurable on some level

I see this was discussed in #45, but as that is now closed and I don't see another issue open for this, I'll open one....
We maintain a separate branch with auto-deploy functionality explicitly removed because we want to control when our production environment is updated (semi-continunuous-deployment, if you will).
In testing some new functionality I'm working on for a PR, I forgot about that and was running heaven's master branch and whoops! Auto-deploy to production.
I would really appreciate some way to disable this functionality, or even better, change it to opt-in.

I'm not gonna be working on this project in the foreseeable future.


Can't sign up after changing the authentication from local to email

Describe the bug
The email auth is not working.
To Reproduce
Steps to reproduce the behavior:

Clone opensaas. We are using opensaas.sh directly.
Change the code as doc said
Change user entity on main.wasp, like

entity User {=psl
  id                        Int             @id @default(autoincrement())
  email                     String?         @unique
  username                  String          @unique
  password                  String?
  createdAt                 DateTime        @default(now())
...

Sign up on the browser
See error on the console:

[Server]  src/auth/providers/email/signup.ts(48,39): error TS2345: Argument of type '{ email: any; password: any; }' is not assignable to parameter of type 'UserCreateInput'.
[Server]    Property 'username' is missing in type '{ email: any; password: any; }' but required in type 'UserCreateInput'.

And If I change the code wasp generated in .wasp/out/server/src/auth/providers/email/signup.ts from
        const user = await createUser({
            ...additionalFields,
            email: userFields.email,
            password: userFields.password,
        });

to
        const user = await createUser({
            ...additionalFields,
            email: userFields.email,
            username: userFields.email,
            password: userFields.password,
        });

The user signed up successfully.
Expected behavior
When I change the auth to email auth, the user can sign up correctly.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: MacOS 11.7.4
Browser Chrome
Version 120.0.6099.129

Additional context
Add any other context about the problem here.

I moved this issue to open-saas repo, as that makes more sense for it!
So the problem here @zacker330 is that username field is not optional on your Prisma model. If you make it optional (with ?), then this will work.
However, Wasp by default will not set it to email, instead it will leave the username empty.

I moved this issue to open-saas repo, as that makes more sense for it!
So the problem here @zacker330 is that username field is not optional on your Prisma model. If you make it optional (with ?), then this will work. However, Wasp by default will not set it to email, instead it will leave the username empty.

Thanks for Martinsos.
Let me first explain the complete process.
The Complete Process
Originally, I did set username as a optional field, email and password are required as the following code:
  email                     String         @unique
  username                  String?          @unique
  password                  String

But I got the compile error after I run wasp build or wasp db migrate-dev, like this:
❌ --- [Error] Your wasp project failed to compile: -------------------------------

- Entity 'User' (referenced by app.auth.userEntity) must have field 'email' of type 'String'.
- Entity 'User' (referenced by app.auth.userEntity) must have field 'password' of type 'String'.

Here is the example repo for this issue: https://github.com/zacker330/opensaas-test/commit/7b97dc2873115e80a26feae3bb7296b5a7a69074
When I changed the field to the oppsite, the build is pass. Here the commit for this change https://github.com/zacker330/opensaas-test/commit/66815374a98cf33e5e80be2e3d4f8dccbecc91cd:
  email                     String?         @unique
  username                  String          @unique
  password                  String?

But when I run wasp start, I got another error:
[Server]  ><EMAIL_ADDRESS>build
[Server]  > npx tsc
[Server]
[Server]  src/auth/providers/email/signup.ts(48,39): error TS2345: Argument of type '{ email: any; password: any; }' is not assignable to parameter of type 'UserCreateInput'.
[Server]    Property 'username' is missing in type '{ email: any; password: any; }' but required in type 'UserCreateInput'.
[Server]  [nodemon] app crashed - waiting for file changes before starting...

So, I attempted to fix this new issue by changing .wasp/out/server/src/auth/providers/email/signup.ts file directly as I'd said  previously.
I noticed that @Martinsos  said  leaving the username empty. But it would not be working.  username is used by so many places, like UI and UserCreateInput type.
The Root Cause
I think the root cause is that:

The compile error prove that wasp read User entity incorrectly.
The email auth logic that wasp generated is not covering the use case of its.

Hm this is very weird @zacker330 , and thanks for all the info!
Regarding root causes that you listed:

I don't think it is likely/possible that Wasp wrongly read the User entity -> something else must be happening there.
It is not that logic that wasp generated is not covering the use case, it is that you can't have a required username in this case, because it doesn't make sense for how currently auth works in Wasp, which is what error says (although in a bit convoluted way).

What I would like to understand is what is causing that first error that you get, with missing pass/email, we will investigate this. This example you provided should help for sure.
As for leaving the username empty -> aha, it is used in many places hm! But what you can do is just use email instead in those places, if you don't have the username, right? Anyway you wanted to set the username to email, so it is the same thing.
@vincanger what are your thoughts on this?

Hey @zacker330,
I believe that there actually is a bug in the Wasp Auth in this case. @infomiho can confirm if this is true or not.
For the time being, you can get your code to compile and run by setting up your User Entity like so:
entity User {=psl
  id                   Int                @id @default(autoincrement())
  email                String?        @unique
  username             String?         @unique
  password             String?
//...

let me know if that works!
and as @Martinsos mentioned, if the client code is looking for a username property but it's undefined, then just change it to use the email property.
or if you want to programmatically set a username for each user on sign up, then you can customize the signup code like so:
// main.wasp

app crudTesting {
  // ...
  auth: {
    userEntity: User,
    methods: {
      email: {}
    },
    onAuthFailedRedirectTo: "/login",
    signup: {
      additionalFields: import { fields } from<EMAIL_ADDRESS>    },
  },
}

// signup.js

import { defineAdditionalSignupFields } from<EMAIL_ADDRESS>
export default defineAdditionalSignupFields({
  username: (data) => {
    return data.email.split('@')[0]
  },
});

the code above will set first part of the name from the user's email as their username, e.g. if user signs up with<EMAIL_ADDRESS>the username would be zacker.

Not sure if this is related, just in case - when I spin up a default repo (https://github.com/wasp-lang/open-saas.git) everything works swimmingly and everything works as expected except getting access to the Dashboard as an admin user.
env changes:
// app/.env.server
<EMAIL_ADDRESS>// app/main.wasp
' isAdmin                   Boolean         @default(true)'
Expected behavior:
After these env changes, I signup and should have access to the Dashboard.
-- there is nothing in my account in nav so enter /admin directly in the URL.
If I change all the values to "false", I can get access to the Dashboard but when I go back to account or demo-app it routes me to the login screen.
// app/main.wasp
route AdminRoute { path: "/admin", to: DashboardPage } page DashboardPage {   authRequired: true,   component: import Dashboard from "@client/admin/pages/DashboardPage" }
as a test I tried a to change a few settings but still experienced the same effect:
// app/src/client/admin/pages/DashboardPage.tsx
`
const Dashboard = ({ user }: { user: User }) => {
const history = useHistory();
if (user && !user.isAdmin) {
history.push('/');
}'

Same problem here

@MiqueiasGFernandes try making the email, username, and password fields of your user entity optional (?), like this:
entity User {=psl
  id                        Int             @id @default(autoincrement())
  email                     String?         @unique
  username                  String?         @unique
  password                  String?
  //...

Hi all,
I've had the same problem. If i put:
entity User {=psl   id                        Int             @id @default(autoincrement())   email                     String?         @unique   username                  String?         @unique   password                  String?   //...
App ask me for a username

where i can put this

If I remove "?" from username i i'm facing with this problem

I am also getting the same error.

I have already gone through the documentation and followed all the steps

Is there any quick patch for this issue?

hey @MiqueiasGFernandes & @zacker330
if you pull the newest version of the template which runs on Wasp v0.12 has updated Authentication methods! So migrating to new auth methods shouldn't be an issue.
give it a try here https://docs.opensaas.sh/start/getting-started/#cloning-the-opensaas-template
I'm closing this issue for now, but feel free to respond here if you have any questions and I'll reopen it :)


Saving a group adds a related ghost group

Saving a group does not correctly reference the group name in the /user/config/groups.yaml file and instead creates a duplicate ghost group. Issue applies to saving new groups and existing groups.
Environment
Admin Addon User Manager v2.1.6
Admin Panel v1.9.4
Grav 1.6.9
PHP 7.2.17
Reproduce

Add/Edit group from groups manager
Save group
Group attributes and permissions do not render back although are saved
groups.yaml now holds a duplicate group but with empty reference to group name
Duplicate group appears in the groups list in the plugin but fails to open config page
Editing the original group saves attributes and permissions into the duplicate group
Editing a different group replaces the group with no name with the new attributes and permissions

Workaround
Edit groups.yaml directly
Groups File
groups.yaml file after saving an edit to an existing distributors group:
distributors:
readableName: Distributors
description: 'A group for distributors'
access:
site:
login: 'true'
admin: {  }
admin-addon-user-manager: {  }
'':
readableName: Distributors
description: 'An edit to the group for distributors'
access:
site:
login: 'true'
admin: {  }
admin-addon-user-manager: {  }

Hi,
I have the same issue. From the backend, when I add a group, It override, the latest group created with a ''.
Environment
Admin Addon User Manager v2.1.7
Admin Panel v1.9.4
Grav 1.6.9
PHP 7.3.5
Nginx 1.10
Groups File :
adminsys:
  readableName: adminsys
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }
exterieur:
  readableName: exterieur
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }
enseignant:
  readableName: enseignant
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }

Groups file after a creation from backend :
adminsys:
  readableName: adminsys
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }
exterieur:
  readableName: exterieur
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }
enseignant:
  readableName: enseignant
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }
'':
  readableName: etudiant
  description: 'Group for etudiant'
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }

Then groups file after another creation :
  readableName: adminsys
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }
exterieur:
  readableName: exterieur
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }
enseignant:
  readableName: enseignant
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }
'':
  readableName: secretaire
  description: 'Groupe pour les secrétaires administratifs et pedagogique'
  access:
    site: {  }
    admin: {  }
    admin-addon-user-manager: {  }

Hi,
same here.

Might be related to Grav v1.6.7 changes.
"Remove disabled fields from the form schema"
I'll push a fix for this


Unable to compile the sds.h file

`/* SDSLib 2.0 -- A C dynamic strings library
*

Copyright (c) 2006-2015, Salvatore Sanfilippo
Copyright (c) 2015, Oran Agra
Copyright (c) 2015, Redis Labs, Inc
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice,

this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright

notice, this list of conditions and the following disclaimer in the

documentation and/or other materials provided with the distribution.

Neither the name of Redis nor the names of its contributors may be used

to endorse or promote products derived from this software without

specific prior written permission.

 IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef __SDS_H
#define __SDS_H
#define SDS_MAX_PREALLOC (1024*1024)
#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#ifdef GNUC
#define PACK( Declaration ) VA_ARGS attribute((packed))
#endif
#ifdef _MSC_VER
#define PACK( Declaration ) __pragma( pack(push, 1) ) Declaration __pragma( pack(pop))
#endif
typedef char *sds;
/* Note: sdshdr5 is never used, we just access the flags byte directly.

However is here to document the layout of type 5 SDS strings. /
PACK(struct attribute ((packed)) sdshdr5
{
unsigned char flags; / 3 lsb of type, and 5 msb of string length /
char buf[];
});
PACK(struct attribute ((packed)) sdshdr8
{
uint8_t len; / used /
uint8_t alloc; / excluding the header and null terminator /
unsigned char flags; / 3 lsb of type, 5 unused bits /
char buf[];
});
PACK(struct attribute ((packed)) sdshdr16 {
uint16_t len; / used /
uint16_t alloc; / excluding the header and null terminator /
unsigned char flags; / 3 lsb of type, 5 unused bits /
char buf[];
});
PACK(struct attribute ((packed)) sdshdr32 {
uint32_t len; / used /
uint32_t alloc; / excluding the header and null terminator /
unsigned char flags; / 3 lsb of type, 5 unused bits /
char buf[];
});
PACK(struct attribute ((packed)) sdshdr64 {
uint64_t len; / used /
uint64_t alloc; / excluding the header and null terminator /
unsigned char flags; / 3 lsb of type, 5 unused bits */
char buf[];
});

#define SDS_TYPE_5  0
#define SDS_TYPE_8  1
#define SDS_TYPE_16 2
#define SDS_TYPE_32 3
#define SDS_TYPE_64 4
#define SDS_TYPE_MASK 7
#define SDS_TYPE_BITS 3
#define SDS_HDR_VAR(T,s) struct sdshdr##T *sh = (struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T)));
#define SDS_HDR(T,s) ((struct sdshdr##T *)((s)-(sizeof(struct sdshdr##T))))
#define SDS_TYPE_5_LEN(f) ((f)>>SDS_TYPE_BITS)
static inline size_t sdslen(const sds s) {
unsigned char flags = s[-1];
switch(flags&SDS_TYPE_MASK) {
case SDS_TYPE_5:
return SDS_TYPE_5_LEN(flags);
case SDS_TYPE_8:
return SDS_HDR(8,s)->len;
case SDS_TYPE_16:
return SDS_HDR(16,s)->len;
case SDS_TYPE_32:
return SDS_HDR(32,s)->len;
case SDS_TYPE_64:
return SDS_HDR(64,s)->len;
}
return 0;
}
static inline size_t sdsavail(const sds s) {
unsigned char flags = s[-1];
switch(flags&SDS_TYPE_MASK) {
case SDS_TYPE_5: {
return 0;
}
case SDS_TYPE_8: {
SDS_HDR_VAR(8,s);
return sh->alloc - sh->len;
}
case SDS_TYPE_16: {
SDS_HDR_VAR(16,s);
return sh->alloc - sh->len;
}
case SDS_TYPE_32: {
SDS_HDR_VAR(32,s);
return sh->alloc - sh->len;
}
case SDS_TYPE_64: {
SDS_HDR_VAR(64,s);
return sh->alloc - sh->len;
}
}
return 0;
}
static inline void sdssetlen(sds s, size_t newlen) {
unsigned char flags = s[-1];
switch(flags&SDS_TYPE_MASK) {
case SDS_TYPE_5:
{
unsigned char fp = ((unsigned char)s)-1;
*fp = SDS_TYPE_5 | (newlen << SDS_TYPE_BITS);
}
break;
case SDS_TYPE_8:
SDS_HDR(8,s)->len = newlen;
break;
case SDS_TYPE_16:
SDS_HDR(16,s)->len = newlen;
break;
case SDS_TYPE_32:
SDS_HDR(32,s)->len = newlen;
break;
case SDS_TYPE_64:
SDS_HDR(64,s)->len = newlen;
break;
}
}
static inline void sdsinclen(sds s, size_t inc) {
unsigned char flags = s[-1];
switch(flags&SDS_TYPE_MASK) {
case SDS_TYPE_5:
{
unsigned char fp = ((unsigned char)s)-1;
unsigned char newlen = SDS_TYPE_5_LEN(flags)+inc;
*fp = SDS_TYPE_5 | (newlen << SDS_TYPE_BITS);
}
break;
case SDS_TYPE_8:
SDS_HDR(8,s)->len += inc;
break;
case SDS_TYPE_16:
SDS_HDR(16,s)->len += inc;
break;
case SDS_TYPE_32:
SDS_HDR(32,s)->len += inc;
break;
case SDS_TYPE_64:
SDS_HDR(64,s)->len += inc;
break;
}
}
/* sdsalloc() = sdsavail() + sdslen() */
static inline size_t sdsalloc(const sds s) {
unsigned char flags = s[-1];
switch(flags&SDS_TYPE_MASK) {
case SDS_TYPE_5:
return SDS_TYPE_5_LEN(flags);
case SDS_TYPE_8:
return SDS_HDR(8,s)->alloc;
case SDS_TYPE_16:
return SDS_HDR(16,s)->alloc;
case SDS_TYPE_32:
return SDS_HDR(32,s)->alloc;
case SDS_TYPE_64:
return SDS_HDR(64,s)->alloc;
}
return 0;
}
static inline void sdssetalloc(sds s, size_t newlen) {
unsigned char flags = s[-1];
switch(flags&SDS_TYPE_MASK) {
case SDS_TYPE_5:
/* Nothing to do, this type has no total allocation info. */
break;
case SDS_TYPE_8:
SDS_HDR(8,s)->alloc = newlen;
break;
case SDS_TYPE_16:
SDS_HDR(16,s)->alloc = newlen;
break;
case SDS_TYPE_32:
SDS_HDR(32,s)->alloc = newlen;
break;
case SDS_TYPE_64:
SDS_HDR(64,s)->alloc = newlen;
break;
}
}
sds sdsnewlen(const void *init, size_t initlen);
sds sdsnew(const char *init);
sds sdsempty(void);
sds sdsdup(const sds s);
void sdsfree(sds s);
sds sdsgrowzero(sds s, size_t len);
sds sdscatlen(sds s, const void *t, size_t len);
sds sdscat(sds s, const char *t);
sds sdscatsds(sds s, const sds t);
sds sdscpylen(sds s, const char *t, size_t len);
sds sdscpy(sds s, const char *t);
sds sdscatvprintf(sds s, const char *fmt, va_list ap);
#ifdef GNUC
sds sdscatprintf(sds s, const char *fmt, ...)
attribute((format(printf, 2, 3)));
#else
sds sdscatprintf(sds s, const char *fmt, ...);
#endif
sds sdscatfmt(sds s, char const *fmt, ...);
sds sdstrim(sds s, const char *cset);
void sdsrange(sds s, int start, int end);
void sdsupdatelen(sds s);
void sdsclear(sds s);
int sdscmp(const sds s1, const sds s2);
sds *sdssplitlen(const char *s, int len, const char *sep, int seplen, int *count);
void sdsfreesplitres(sds *tokens, int count);
void sdstolower(sds s);
void sdstoupper(sds s);
sds sdsfromlonglong(long long value);
sds sdscatrepr(sds s, const char *p, size_t len);
sds *sdssplitargs(const char *line, int *argc);
sds sdsmapchars(sds s, const char *from, const char *to, size_t setlen);
sds sdsjoin(char **argv, int argc, char *sep);
sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen);
/* Low level functions exposed to the user API */
sds sdsMakeRoomFor(sds s, size_t addlen);
void sdsIncrLen(sds s, int incr);
sds sdsRemoveFreeSpace(sds s);
size_t sdsAllocSize(sds s);
void *sdsAllocPtr(sds s);
/* Export the allocator used by SDS to the program using SDS.

Sometimes the program SDS is linked to, may use a different set of
allocators, but may want to allocate or free things that SDS will
respectively free or allocate. */
void *sds_malloc(size_t size);
void *sds_realloc(void *ptr, size_t size);
void sds_free(void *ptr);

#ifdef REDIS_TEST
int sdsTest(int argc, char *argv[]);
#endif
#endif
`

I have used the pack macro as described in the https://stackoverflow.com/a/3312896 and it has taken care the definition and the semicolon issue as well. I am running the rdm using QT  Creater and building it with the help of MINGW(\rdm\build-rdm-Desktop_Qt_5_9_9_MinGW_32bit-Release). When I am building it I am getting the error "Invalid application of sizeof to incomplete type with a struct". I will be also attaching the snapshot for the same. Need help to resolve this.

The error Invalid application of sizeof to incomplete type with a struct" generally means the compiler can't figure out how large the struct is because it doesn't have the full definition.
Obviously this isn't true here, given it's defined in this very file.  Maybe it's having trouble with use of ##T in SDS_HDR_VAR?
Is this code available anywhere so I could attempt the compile myself?

@michael-grunder Thank you and I will be waiting for your reply. I have tried to resolve it but get stuck with one or the other issue.

Hi @sachinharsh
I downloaded and installed QT creator in a Windows VM and didn't have any problem compiling sds.c.  I've never really used QT so I don't know if there is something different about compiling code as a submodule but just pulling in the files in a new C project works just fine.
Here's my project file w/code

Hi @michael-grunder
Thank you so much for trying. I am compiling it with the help of QT Creator and trying to launch rdm but still the problem remains the same for me. I will be going to re-configure all the software related to the rdm set up and will check again.
Anyway, thanks for the response !!!

HI @michael-grunder
If you have any idea regarding the installation of redis desktop manager with the help of QT Creator.
I was using the  Visual Studio 2017 version and Qt version 5.9.9. Also I have tried the Visual Studio 2014 and 2019 but still no luck.
By any chance if you have idea regarding the exact software versions which to be used for the hiredis or rdm set up.

Sorry I don't.  I don't know Windows very much at all.  I just have a Windows VM to make sure my changes to hiredis don't break Windows builds.
Have you seen their guide?

Ohkay Ohkay !!!
Thank you @michael-grunder and really appreciated your quick response.

No worries, good luck!


[Bug]: Crash when create or delete world using API

/mv version -p output
[12:31:28 INFO]: [Multiverse-Core] Multiverse-Core Version: 4.3.1-b861 [12:31:28 INFO]: [Multiverse-Core] Bukkit Version: git-Paper-91 (MC: 1.19.1) [12:31:28 INFO]: [Multiverse-Core] Loaded Worlds: [{"MVWorld@268405007":{"Gen":"null","Type":"NORMAL","Env":"THE_END","Name":"world_the_end"}}, {"MVWorld@1861911040":{"Gen":"null","Type":"FLAT","Env":"NORMAL","Name":"world"}}, {"MVWorld@62704458":{"Gen":"null","Type":"NORMAL","Env":"NORMAL","Name":"public"}}, {"MVWorld@1865736343":{"Gen":"null","Type":"NORMAL","Env":"NETHER","Name":"world_nether"}}] [12:31:28 INFO]: [Multiverse-Core] Multiverse Plugins Loaded: 0 [12:31:28 INFO]: [Multiverse-Core] Economy being used: XConomy [12:31:28 INFO]: [Multiverse-Core] Permissions Plugin: Bukkit Permissions (SuperPerms) [12:31:28 INFO]: [Multiverse-Core] Dumping Config Values: (version 2.9) [12:31:28 INFO]: [Multiverse-Core]   enforceaccess: false [12:31:28 INFO]: [Multiverse-Core]   prefixchat: false [12:31:28 INFO]: [Multiverse-Core]   prefixchatformat: [%world%]%chat% [12:31:28 INFO]: [Multiverse-Core]   useasyncchat: true [12:31:28 INFO]: [Multiverse-Core]   teleportintercept: true [12:31:28 INFO]: [Multiverse-Core]   firstspawnoverride: true [12:31:28 INFO]: [Multiverse-Core]   displaypermerrors: true [12:31:28 INFO]: [Multiverse-Core]   enablebuscript: true [12:31:28 INFO]: [Multiverse-Core]   globaldebug: 0 [12:31:28 INFO]: [Multiverse-Core]   silentstart: false [12:31:28 INFO]: [Multiverse-Core]   messagecooldown: 5000 [12:31:28 INFO]: [Multiverse-Core]   version: 2.9 [12:31:28 INFO]: [Multiverse-Core]   firstspawnworld: world [12:31:28 INFO]: [Multiverse-Core]   teleportcooldown: 1000 [12:31:28 INFO]: [Multiverse-Core]   defaultportalsearch: true [12:31:28 INFO]: [Multiverse-Core]   portalsearchradius: 128 [12:31:28 INFO]: [Multiverse-Core]   autopurge: true [12:31:28 INFO]: [Multiverse-Core] Special Code: FRN002
Server logs
https://paste.gg/p/anonymous/01cfd039808f42faafaaed79f10b7fc7
Server Version
[12:32:23 INFO]: Checking version, please wait...
[12:32:25 INFO]: This server is running Paper version git-Paper-91 (MC: 1.19.1) (Implementing API version 1.19.1-R0.1-SNAPSHOT) (Git: 65f0b2e)
You are 20 version(s) behind
Download the new version at: https://papermc.io/downloads

Bug Description
Creating or deleting world use API but crash when it created or deleted
Java version JDK17.0.4 and JDK18.0.2 all tried
Steps to reproduce
1.Write down these code:
Create world:
mvcore.getMVWorldManager().addWorld(player.getName() + "-WLD", Environment.NORMAL, null, WorldType.NORMAL, null, null); mvcore.getMVWorldManager().getMVWorld(player.getName() + "-WLD").getCBWorld().setGameRule(GameRule.KEEP_INVENTORY, true); mvcore.teleportPlayer(player, player, mvcore.getMVWorldManager().getMVWorld(player.getName() + "-WLD").getSpawnLocation());
Delete world:
mvcore.getMVWorldManager().deleteWorld(player.getName() + "-NER");
2.Load plugin
3.Create and delete world in plugin menu
4.Server crashed but action completed
Agreements

[X] I have searched for and ensured there isn't already an open or resolved issue(s) regarding this.
[X] I was able to reproduce my issue on a freshly setup and up-to-date server with the latest version of Multiverse plugins with no other plugins and with no kinds of other server or client mods.

The crash looks similar to #2560, where command blocks couldn't load or unload worlds because they were modifying the world map while the server was iterating through that map to tick the worlds. In your case, org.bukkit.Bukkit.createWorld(Bukkit.java:767) is being called while net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1504) is running. What's interesting is that you're triggering the world load/unload through org.bukkit.craftbukkit.v1_19_R1.util.Waitable.run(Waitable.java:24) using some sort of BukkitRunnable instead of in the loop that runs the command blocks.
Simply, this is kinda a duplicate of #2560. This is an upstream problem as well. Luckily, this has kinda already been fixed, you just need to update your server. Paper#126 is the oldest version of Paper where this crash shouldn't happen. If you update to that version or later you should be okay.

Look like an upstream bug that is fixed, closing this issue


Sous Chefs Adoption

Add proper InSpec tests
Remove windows_path resource in client recipe as it's not needed anymore

Signed-off-by: Lance Albertson<EMAIL_ADDRESS>

Released as: 6.2.0


Add a developer container configuration

A developer container allows you to set-up up a reproducible environment for devs. It allows them to, quite literally, jump onto a project and start coding, writing and running tests, linting, and formatting correctly in a couple minutes or less.
An existing configuration was already created for this project, which can be found at this closed PR:
https://github.com/pydantic/pydantic-extra-types/pull/27

@JamesHutchison I would suggest creating this issue on the https://github.com/pydantic/pydantic repo, which will get a lot more visibility

Created https://github.com/pydantic/pydantic/issues/5437

Close this in favor of this one #27


Fails to run on pip==20.2b1

Environment Versions

OS Type
Docker with python:3.8.5-slim-buster (debian)
Python version: $ python -V
3.8.5
pip version:  $ pip --version
20.2b1
pip-tools version: $ pip-compile --version
5.3.0

Steps to replicate

Install pip and pip-tools
run pip-compile (even with nothing)

Expected result
requirements.txt file is generated
Actual result
Traceback (most recent call last):
  File "/pyroot/bin/pip-compile", line 8, in <module>
    sys.exit(cli())
  File "/pyroot/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/pyroot/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/pyroot/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/pyroot/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/pyroot/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/pyroot/lib/python3.8/site-packages/piptools/scripts/compile.py", line 458, in cli
    results = resolver.resolve(max_rounds=max_rounds)
  File "/pyroot/lib/python3.8/site-packages/piptools/resolver.py", line 169, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/pyroot/lib/python3.8/site-packages/piptools/resolver.py", line 274, in _resolve_one_round
    their_constraints.extend(self._iter_dependencies(best_match))
  File "/pyroot/lib/python3.8/site-packages/piptools/resolver.py", line 384, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/pyroot/lib/python3.8/site-packages/piptools/repositories/local.py", line 75, in get_dependencies
    return self.repository.get_dependencies(ireq)
  File "/pyroot/lib/python3.8/site-packages/piptools/repositories/pypi.py", line 231, in get_dependencies
    self._dependencies_cache[ireq] = self.resolve_reqs(
  File "/pyroot/lib/python3.8/site-packages/piptools/repositories/pypi.py", line 171, in resolve_reqs
    reqset.add_requirement(ireq)
  File "/pyroot/lib/python3.8/site-packages/pip/_internal/req/req_set.py", line 113, in add_requirement
    assert install_req.is_direct == (parent_req_name is None), (
AssertionError: a direct req shouldn't have a parent and also, a non direct req should have a parent

Relates to:
https://github.com/pypa/pip/issues/8637
Possible cause:
https://github.com/jazzband/pip-tools/pull/1168
Works fine with 20.1.1
root@bba485fc0a15:/project/app# pip-compile requirements.in > requirements.txt
Traceback (most recent call last):
  File "/pyroot/bin/pip-compile", line 8, in <module>
    sys.exit(cli())
  File "/pyroot/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/pyroot/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/pyroot/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/pyroot/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/pyroot/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/pyroot/lib/python3.8/site-packages/piptools/scripts/compile.py", line 458, in cli
    results = resolver.resolve(max_rounds=max_rounds)
  File "/pyroot/lib/python3.8/site-packages/piptools/resolver.py", line 169, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/pyroot/lib/python3.8/site-packages/piptools/resolver.py", line 274, in _resolve_one_round
    their_constraints.extend(self._iter_dependencies(best_match))
  File "/pyroot/lib/python3.8/site-packages/piptools/resolver.py", line 384, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/pyroot/lib/python3.8/site-packages/piptools/repositories/local.py", line 75, in get_dependencies
    return self.repository.get_dependencies(ireq)
  File "/pyroot/lib/python3.8/site-packages/piptools/repositories/pypi.py", line 231, in get_dependencies
    self._dependencies_cache[ireq] = self.resolve_reqs(
  File "/pyroot/lib/python3.8/site-packages/piptools/repositories/pypi.py", line 171, in resolve_reqs
    reqset.add_requirement(ireq)
  File "/pyroot/lib/python3.8/site-packages/pip/_internal/req/req_set.py", line 113, in add_requirement
    assert install_req.is_direct == (parent_req_name is None), (
AssertionError: a direct req shouldn't have a parent and also, a non direct req should have a parent
root@bba485fc0a15:/project/app# pip --version
pip 20.2b1 from /pyroot/lib/python3.8/site-packages/pip (python 3.8)
root@bba485fc0a15:/project/app# pip install -U pip==20.1
Collecting pip==20.1
  Downloading pip-20.1-py2.py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 1.7 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.2b1
    Uninstalling pip-20.2b1:
      Successfully uninstalled pip-20.2b1
Successfully installed pip-20.1.1
root@bba485fc0a15:/project/app# pip-compile
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile
#
pytz==2020.1              # via -r requirements.in

Hello, @fatalcoder
Thanks for the issue! It's fixed in https://github.com/pypa/pip/pull/8026.

Close this due to the bug doesn't reproduce on the released pip-20.2.


Fix minor bugs for new version

[x] Desktop version of Safari doesn't show the date and time pickers.
[x] IOS tablet layout for landscape to normal is not updating immediately at the stepper elements. Maybe force reload the page.
[x] Visualizations are hidden in ladscape mode on Safari for IOS tablet.
[ ] Chrome sometimes dosen't show both buttons on the main page.

[ ] Further button should be more rect and not too round

[ ] Further button should be more rect and not too round


DO NOT MERGE Test custom recipe dir for smithy 1257

I'm coopting the CI in this feedstock to test my changes for conda-smithy#1257.  Please do not merge this PR.  I will close it after the CI jobs have finished.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (conda.recipe) and found some lint.
Here's what I've got...
For conda.recipe:

Feedstock with the same name exists in conda-forge

Everything but the linter passed which is expected with a non-standard recipe_dir.  Closing this without merging.


Increment version for purview releases

Increment package version after release of azure-purview-workflow

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

/check-enforcer override


Display value of Variable

Source: https://github.com/Microsoft/vscode/issues/16040#issuecomment-262922612
This PR adds:

Ability to show value of Variable for CSS, Less, SCSS (see demo in details)
Ability to show default value of Mixin Parameter for Less & SCSS.

CSS

Less

SCSS

@mrmlnc Thanks a lot!


net/frr: enabling staticd doesn't enable staticd

Upgraded to OPNsense 24.1.8 this weekend; I was pleased to see support for STATIC has been merged!  Thanks.  The config options work fine and produce a staticd.conf, but enabling STATIC doesn't actually result in the daemon (staticd) getting started.  Turns out this is a typo in the template for /etc/rc.conf.d/frr; it looks for staticd.enabled rather than static.enabled.

https://github.com/opnsense/plugins/pull/4019


Docs: Update launcher example

avoid creating a new dir every time to prevent duplicates of the same device showing up in Fleet
since the docs are Fleet-specific, disambiguate the reference to gRPC server

 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.


CSS

CSS
User Story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow

I change the colors to be more suitable for my eyes, but the rest is all the same.


Unable to Export data to csv in Azure Storage Explorer

Preflight Checklist

[X] I have installed the latest version of Storage Explorer.
[X] I have checked existing resources, including the troubleshooting guide and the release notes.
[X] I have searched for similar issues.

Storage Explorer Version
1.22.0
Regression From
1.18
Architecture
x64
Storage Explorer Build Number
20211211.10
Platform
Windows
OS Version
Windows 10 Enterprise
Bug Description
When trying to export data to csv from Azure storage table for queried entities i have observed it is exporting all data but not the result of queried entities and some columns missing in exported data. Also it is taking so much time to give the report.
All these issues observed after i have upgraded my azure storage explorer to new latest version.
Steps to Reproduce

Launch Azure Storage Explorer
Expand storage accounts and .
Select the storage account and expand tables.
Select the table and on Query builder select Fields and values to filter data.
Click on Execute Query(F5) and results are displayed.
Click on Export to generate the report in CSV.
Open the CSV and verify that Timestamp column is not present in the report and also some other columns are missing.
Verify that the CSV does not gets the Queried report instead gets the full data in storage table.

Actual Experience
It is taking so much time to generate the report and also generated report does not gets queried results, missing Columns in the report. Experience is very bad and with older version we were able to get correct data, after upgrading to new version new issues appeared.
Expected Experience
When Exporting data on Queried results we need to get only Queried data no all the data and no columns should be missing in exported data.
When a new version is released it should not include new bugs and enough testing should be done on performance of the product. UI improvements does not be necessary but the performance of the product should be taken care on high priority.
Additional Context
No response

@praveenbontala This is a known issue and has been addressed. A fix will be out in the next release.
Duplicate of #5320.


Mas12517/stream layer UI

Sample
Stream Layer UI
Summary

Added the UI to the Stream Layer sample
Fixed a bug where planes were not rotated properly
Added the camera moving behind the plane

Tests
Windows
ArcGIS Maps SDK Version
UE 5.0 w/ Maps SDK 1.3

3. This is more related to UX. I think the camera movement (WASD) sensitivity should be decreased as what we have in the Unity Stream Layer. The camera moves too fast in this case.

This is based on the ArcGISPawn that is provided with the plugin. It accelerates/decelerates based on where the pawn is in the world. Not much I can do for this aside from remove the Movement Component and make it so the user can't move the plane at all.


Cursor does not change until moved

Steps to reproduce

Run slurp -p
Observe the cursor

Expected outcome
The cursor changes to a crosshair icon.
Actual outcome
The cursor does not change until moved.

fixed in<PHONE_NUMBER>9178854db2ed5bce064bcfe8490ed9


Make sure duplicate entries are not stored in db

Need to make sure only unique entries are stored in database.
See corbett report 'February Open Thread' for an example of a duplicated entry. inserted_entries are being sent to channels after being inserted into the db. inserted_entries should be unique.
To access database:
$  docker compose exec mongo mongosh mongodb://root:feed_bot@mongo:27017/
$ use feed_bot_db
$ db.rss.find({feed_url: 'https://corbettreport.com/feed', title: 'February Open Thread'})

It possible that duplicate entries are being created when a comment is added to an rss entry.


is it possible to address a specific replica?

like 0.MyService.MyApplication
(currently making Akka .Net run in mesh)

Correct, 1.MyService.MyApplication would resolve 2nd replica etc.

does not seem so

https://github.com/Azure-Samples/service-fabric-mesh/blob/master/templates/voting/mesh_rp.windows.json  this has example of 2 services talking via dns.

repilca :)
Dns.GetHostAddresses("0.billing.adventurworks");
System.Net.Sockets.SocketException: 'No such host is known'

i setup akka .net wit a lighthouse node but i want to be able to injct different seednodes based on replica...


XmlSnapshot.withEnableXPathDebugging: Boolean parameter 'enabled' not taken into account

Currently, no matter what is being passed, xpath debugging will always be enabled

Will be fixed in 1.9.0


Add Tensor.train() wrapper

Hmm so I think torch calls these "context managers"
Have to give this more thought.

You're making a real difference in the open-source community, thank you for your contributions!


[ENSWEB-5706] Allow multiple "ancestral" databases in the Registry

Use case
See ENSWEB-5706 and related tickets for more information. The REST server sees all MySQL servers (Vertebrates and non-Vertebrates), which contain in total two ancestral databases, but the current Registry model only allows one. The Compara API then fails because it is not able to access the other one
Description
Ancestral databases are now registered with their division name, preventing a clash between the Plants and Vertebrates databases.
Note that for backwards compatibility and for consistency with the rest of the code, the name "Vertebrates" is currently omitted.
:warning: Do not merge until all these related pull-requests have been approved !: Ensembl/ensembl-compara#197, Ensembl/ensembl-production#430, maybe ensembl-webcode
Benefits
Now able to load all ancestral databases in the same Registry instance
Possible Drawbacks
Applications that load the NV server in the Registry won't be able to access the Plants ancestral database with "Ancestral sequences", but since this database has been introduced in e100, I think there is still time to change its Registry name and state that this is the nomenclature going forward.
Testing
Have you added/modified unit tests to test the changes?
No. The databases created by registry.t are prefixed by the user name and test_db. They wouldn't pass the regex used by load_registry_from_db
If so, do the tests pass/fail?
Have you run the entire test suite and no regression was detected?
Failures are in:

compara.t (because .travis.yml clones the master branch of Compara instead of the release/100 branch
housekeeping_apache2.t, because it is now 2020 and the files haven't had their copyright statement updated. I have only updated the one of Registry.pm

Question: can you confirm that you don't have a mechanism to merge release branches so I will have to make another PR for release/101 and one for master ?

@muffato yes, we prefer separate PRs for separate branches


The Lord of the Evals

Three Evals for the Elven-kings under the sky,
Seven for the Dwarf-lords in their halls of stone,
Nine for Mortal Men doomed to die,
One for the Pull Requester on his dark fork
In the Land of Komada where the Shadows lie.
One Eval to rule them all, One Eval to find them,
One Eval to bring them all and in the darkness bind them
In the Land of Komada where the Shadows lie.
Note: I haven't actually tested the Komada version yet, but here's my quick port.
Proposed Semver Increment Bump: [MAJOR/MINOR/PATCH]
MINOR
Changes Proposed in this Pull Request (List new items in CHANGELOG.MD)

Know the exact type of what you evaled

Has a little notice if it's a boolean, number, or string instantiated with new (see MDN)
Notes when a promise has been awaited, and what its resolved value is

Know how long the eval took to execute

Unit may be seconds, milliseconds, or microseconds, depending on the scale of the duration, for enhanced readability

New flags for deleting your command message, logging the output to console instead of sending it to the channel, and doing the command silently without output
If the output is long (7+ lines, or having long lines that will wrap), it asks before posting it to the channel
If the output is too long to send (>2000 chars), it asks if you want to log it to the console or upload it as a file

(If Applicable) What Issue does it fix?
Fixes...

The eval command silently erring if the output is more than 2000 characters

DIscussed in staff chat. Preferable to move this to the dirigeants/komada-pieces repo

👌 gonna commit a simpler version, like I did on Klasa, and PR this version to Komada Pieces


Changing Icons through the client resets level

When you change your icon through the change icon menu on the client (which appears when you click on your icon), your level, rank, custom availability, basically everything will go back to normal.
How to reproduce :

Change your settings (put yourself at challenger and lvl 1337 and with the name "Big boi" for example)
Click on your icon
Choose another icon and press "SAVE"
Your settings are now back to normal!

Fixed as well as a result of fixing #4


Add an option to set the IAM of the instances

Or some other way to give the machines extra IAM permissions that the builds may need.

You can specify an external security group when creating the stack, you can attach IAM permissions to that if need be.
Our tendency at 99designs is to avoid customizing the stack and instead use a IAM keypair in the encrypted secrets that are available to each pipeline that uses the stack.

I'm going to close this, let me know if the above doesn't help.

Hey lox,
What do you mean by "you can attach IAM permissions to that [security group]"? I wasn't aware of any such capability and I can't see any reference to it in the documentation. AFAIK, you can attach a policy to an IAM group, but not a security group.
I think it would be useful to be able to specify additional IAM policies for the agents. For example, using packer is a very common task for an agent and requires a certain set of IAM permissions. Instance roles are more secure than static credentials, even if said credentials are encrypted and are AWS's recommended way to empower instances to perform certain actions.

Yup, you are correct @exidy, I was getting mixed up. As you say, security groups are for firewall rules, and what you and @mikekap want is IAM capabilities for the instance. Re-opening this and tagging it as a feature enhancement. I'd probably be inclined to do this by allowing a custom IAM Role to be specified as a stack parameter and then conditionally used in https://github.com/buildkite/elastic-ci-stack-for-aws/blob/master/templates/buildkite-elastic.yml#L211. Happy to accept a PR if you feel so inclined.

Thanks @lox. I'd be happy to take a crack at this.

I just had to do this to, but I added the policy to the agent machines by modifying the role that the stack was created (using inline policies so it can easily be replaced/deleted), but that's not sustainable.