[BUG] BlobBatchClient.submitBatchWithResponse throws BlobStorageException when blobs don't exist and throwOnAnyError flag is false

Describe the bug
When submitting a BlobBatch with deleted blobs where all of the blobs are already deleted an BlobStorageException is raised. This happens even though the parameter throwOnAnyFailure is false. According to the api docs a BlobStorageException will only be raised

If the batch request is malformed.

Exception or Stack Trace
com.azure.storage.blob.models.BlobStorageException: <?xml version="1.0" encoding="utf-8"?>
<Error>BlobNotFound<Message>The specified blob does not exist.
RequestId:b9387aaa-301e-0027-075a-fc45b11ed6f6
Time:2020-03-17T12:49:20.2347689Z</Message></Error>

	at com.azure.storage.blob.batch.BlobBatchHelper.setBodyOrAddException(BlobBatchHelper.java:170)
	at com.azure.storage.blob.batch.BlobBatchHelper.lambda$mapBatchResponse$0(BlobBatchHelper.java:107)
	at reactor.core.publisher.MonoRunnable.call(MonoRunnable.java:73)
	at reactor.core.publisher.MonoRunnable.call(MonoRunnable.java:32)
	at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:132)
	at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:121)
	at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1637)
	at reactor.core.publisher.MonoCollect$CollectSubscriber.onComplete(MonoCollect.java:160)
	at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:136)
	at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onComplete(FluxDoFinally.java:138)
	at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:136)
	at reactor.netty.channel.FluxReceive.terminateReceiver(FluxReceive.java:419)
	at reactor.netty.channel.FluxReceive.drainReceiver(FluxReceive.java:209)
	at reactor.netty.channel.FluxReceive.onInboundComplete(FluxReceive.java:367)
	at reactor.netty.channel.ChannelOperations.onInboundComplete(ChannelOperations.java:363)
	at reactor.netty.channel.ChannelOperations.terminate(ChannelOperations.java:412)
	at reactor.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:572)
	at reactor.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:90)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
	at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:316)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
	at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1470)
	at io.netty.handler.ssl.SslHandler.decodeNonJdkCompatible(SslHandler.java:1231)
	at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1268)
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:493)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:432)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:271)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:355)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:792)
	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:475)
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:834)

To Reproduce

Create multiple blobs (my tests creates 2)
Create a blobBatch and add them via deleteBlob(container, blobName)
Delete them via BlobBatchClient.submitBatchWithResponse(blobBatch, false, null, Context.NONE)

Code Snippet
Code is in Scala, let me know if I should rewrite to Java.
 override def deleteMany(keys: Set[String]): IO[Set[String]] = {
    // Mutable batch, will be updated with blobs to delete then submitted
    val batch = batchClient.getBlobBatch
    // deleteBlob returns a Response<Void> which can later be checked to see if the blob was successfully deleted
    val keysWithResponses = keys.map(k => (k, batch.deleteBlob(bucket.value, k)))

    blocker.delay[IO, Set[String]] {
      // Submit the batch, blocking call
      discard {
        batchClient.submitBatchWithResponse(batch, false, null, Context.NONE)
      }

      // Mutable responses should now have status codes
      val (deletedKeys, _) = keysWithResponses.partition {
        // Each individual response will have status 202 if the deletion succeeded
        // source: https://docs.microsoft.com/en-gb/rest/api/storageservices/blob-batch#status-code
        // Also accept 404 so we are idempotent, i.e. requests to delete the same blob multiple times
        // should be fine
        case (_, response) => {}

        response.getStatusCode == 202 || response.getStatusCode == 404
      }
      deletedKeys.map { case (key, _) => key }
    }

Above method is called twice with the same input in my tests. Second call causes the bug.
Expected behavior
The call to submitBatchWithResponse to not throw an exception when the individual sub-requests are valid, albeit will fail, and the throwOnAnyFailure flag is set to false. Instead I would expect the result of each sub-request to be reflected in the Response<Void> objects that were returned when the deleteBlob method was invoked on the BlobBatch object.
Setup (please complete the following information):

OS: macOS 10.15.3
IDE : IntelliJ
12.4.0

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Bug Description Added
[x] Repro Steps Added
[x] Setup information Added

Thanks for filing this issue @kalanzai.  Someone from the Azure Storage team will follow up with you shortly.
/cc @rickle-msft @gapra-msft @amishra-dev

@kalanzai Thanks for reporting this issue. Could you please share the repro code in Java. We don't have much Scala experience over here, so while we may be able to piece together what the code is doing, we'll be able to work with it more efficiently if we can play around in Java.

@rickle-msft I have updated the description of the issue with a program in Java which should mimic the behaviour of my Scala code that results in the reported behaviour.

Jars:
azure-storage-blob:12.5.0
azure-storage-blob-batch:12.4.0-beta1

I tried lowering my dependency to on azure-storage-blob-batch to 12.3.0 but see similar behaviour.

Updated version of the reproduction code:
package co.famly;

import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.storage.blob.BlobClient;
import com.azure.storage.blob.BlobContainerClient;
import com.azure.storage.blob.BlobServiceClient;
import com.azure.storage.blob.BlobServiceClientBuilder;
import com.azure.storage.blob.batch.BlobBatch;
import com.azure.storage.blob.batch.BlobBatchClient;
import com.azure.storage.blob.batch.BlobBatchClientBuilder;
import com.azure.storage.blob.models.BlobHttpHeaders;

import java.io.ByteArrayInputStream;
import java.util.HashMap;

public class Main {

    public static void main(String[] args) {
        String connectionString = "myConnectionString>";
        String containerName = "myContainerName";
        String firstBlob = "firstBlobName";
        String secondBlob ="secondBlobName";

        BlobServiceClient client = new BlobServiceClientBuilder().connectionString(connectionString).buildClient();
        BlobContainerClient container = client.getBlobContainerClient(containerName);
        BlobBatchClient batchClient = new BlobBatchClientBuilder(client).buildClient();

        uploadBlob(container.getBlobClient(firstBlob));
        uploadBlob(container.getBlobClient(secondBlob));

        // Second iteration of loop should result in the unexpected BlobStorageException
        for (int i = 0; i < 2; i++) {
            BlobBatch batch = batchClient.getBlobBatch();
            Response<Void> firstResponse = batch.deleteBlob(containerName, firstBlob);
            Response<Void> secondResponse = batch.deleteBlob(containerName, secondBlob);
            // Batch response is Null for some reason, maybe related to https://github.com/Azure/azure-sdk-for-java/issues/7256
            Response<Void> batchResponse = batchClient.submitBatchWithResponse(batch, false, null, Context.NONE);
            System.out.println(String.format("iteration %d: firstStatus: %d secondStatus: %d", i, firstResponse.getStatusCode(), secondResponse.getStatusCode()));
        }
    }

    private static void uploadBlob(BlobClient blob) {
        BlobHttpHeaders headers = new BlobHttpHeaders().setContentType("text/plain");
        blob.uploadWithResponse(
            new ByteArrayInputStream(testData.getBytes()),
            testData.getBytes().length,
            null,
            headers,
            new HashMap<>(),
            null,
            null,
            null,
            null
        );
    }

    private static String testData = "This is some test data";
}

Running this code, using valid connection string and container / blob names did not reproduce the error that I see in our Scala code. Instead I see that the return value of submitBatchWithResponse is null 😕

Scratch my previous comment. The code does exhibit the bug.
I have updated the issue description with the latest reproduction code.
According to my debugging the individual Response<Void> objects returned by the call to .deleteBlob do have the correct status code (404) the second time around.

@kalanzai Thank you for all this extra information. I will try to take a deeper look into this later today and report back here with any updates

@kalanzai Sorry for the delay. I got diverted by some other work. I've looked into this (many thanks to your repro) and, correct me if I'm wrong @alzimmermsft, but I think this may be by design. There're two steps to processing a batch response. The first is processing the response to the batch operation itself and the second is processing the individual operation responses.
throwOnAnyFailure applies to the first step. We don't want customers to inadvertently assume that because a batch was accepted by the service and returned a successful batch response that all of the suboperations were successful. Some customers, however, may only care that the batch was successful and don't need to know anything about the sub responses, so we offer a way to disable exceptions at this level.
Once you begin to process the individual responses, we wanted the experience to be as though they had actually been submitted individually, hence the act of examining the response may manifest an exception. Granted, this isn't exactly the same experience because when you submit requests individually they will throw on the calling line rather than when you expect the response, but it was as close as we could reasonably achieve given the technical constraints of working with batches.
Having said all this, I think it is more likely that we will continue with this behavior and expect that customers have the usual try/catch around their code inspecting individual responses, but if this poses technical limitations for you or otherwise breaks your scenario, we can work together on a viable solution.

@rickle-msft Thank you for your response. Living in a Scala world I'm not used to thinking about the fact that accessing a property can have side effects. I understand your design decision of wanting the experience to mimic individual operations and can work around it.

@kalanzai Thanks for understanding :) Likewise, your initial confusion at this behavior is reasonable, and we will keep this in mind for possible future additions where maybe it will become prudent for us to add an option to disable errors even on accessing the sub responses. From my investigation, it seems like this would be fairly straightforward.
I am going to close this issue now as I believe it has been resolved, but please feel free to continue engaging in whatever manner suits you if you need further support.
For future reference, in case this item gets picked up, we could feasibly achieve this behavior by updating the following code in BlobBatchHelper to propagate the throwOnAnyFailure flag to the response and then have the response check the flag before throwing:
BlobBatchOperationResponse<?> batchOperationResponse =
                        getBatchOperation(batchOperationInfo, subResponseSections[0], logger);

                    // The second section will contain status code and header information.
                    batchOperationResponse.setStatusCode(getStatusCode(subResponseSections[1], logger));
                    batchOperationResponse.setHeaders(getHttpHeaders(subResponseSections[1]));


Building Gadgets 2 crash

Building Gadgets 2 Version: 1.0.6
Describe the bug
When i use cut and paste gadget on a structure, i crash and i had to remove all the building gadgets in my inventory to enter in the server (remove only cut and paste wasn't enough)
crash-2023-12-17_00.41.37-client.txt

Can't reproduce, can you tell me what block you were copying?


Hide values on the X axis

Hi,
I would like to know if it is possible to "filter" values on the X axis.
Let me explain: imagine to have 3 data rows (or columns) A,B,C and 5 values for each (one for category: V,W,X,Y,Z).
As we know, C3 automatically puts the legend for A,B,C and allows, by clicking them, to toggle the data serie.
But what if I would like to hide the representation for the values in the category X (so, to draw values just for V,V,Y,Z)? It is possible? I know there is the zoom feature... but does a feature for my request exist? Or have I to manually implement it modyfing the existing data serie?
Thanks

Want to hide text on X axis?
Just set below option for that.
onrendered: function() {
	d3.selectAll(".c3-axis.c3-axis-x .tick text")
	    .style("display", "none");
}

If not, attach screenshot or code to make more clear your question.

Hi, and thanks for reply.
To be honest I think my question in clear enough if you read it carefully: "I would like to hide the representation for the values in the category X".
In any case, imagine a situation as the following:

I would like to hide the www.site2.com (so to have only site1 and site4 x-category and data).
From the documentation, it seems the only solution is to redraw all the graph.

@pierpaolocira, I sad more clear because the way of pointing name or interaction result of some specific part of the chart isn't really clear and these arises communication problem. If you(or somebody else) want to receive a better answer the person who is asking should put more effort posting clear question.
Anyway, according your question, the chart has 3 data columns with 5 categories.
var chart = c3.generate({
    "bindto":"#chart",
    "data":{
        type: "bar",
        x: 'x',
        columns: [
            ['x', 'V','W','X','Y','Z'],
            ['A', 11, 8, 7, 6, 5 ],
            ['B', 9, 3, 6, 2, 8 ],
            ['C', 3, 4, 5, 6, 7 ]
        ]
    },
    "axis":{
        "x":{
           "type":"category"
        }
    }
});

Toggling legend will hide data, and you want hide not entire of data, just some categories of data, isn't it?
For example, want to hide(or filtering as you said) 'W' and 'Y' categories like this?

Hi, and thank you for your time.
Yes, your note is right, so to be sure I'll be fully understood, I try to better explain what I'm asking, also for future readers.
As you said, my original situation is like the following:
var chart = c3.generate({
  "bindto":"#chart",
  "data":{
      type: "bar",
      x: 'x',
      columns: [
          ['x', 'V','W','X','Y','Z'],
          ['A', 11, 8, 7, 6, 5 ],
          ['B', 9, 3, 6, 2, 8 ],
          ['C', 3, 4, 5, 6, 7 ]
      ]
  },
  "axis":{
      "x":{
         "type":"category"
      }
  }
});

BUT I would like, when a specific event triggers, to reach the following situation:

As you can see, the entire "W category" has been hidden (this is what I meant by writing: "toggle the representation for the values in the category, such as for the data series").
I'm asking if there is a way to achieve that (without having to redraw all the graph, after manually implement slicing/caching mechanism on the data arrays).
Honestly I think it can also be a nice feature (at least with category-based x-axis type), but this is another point... :)
Bye

Hiding data is easy(using .hide() method), but hiding category there's no API provided for that.
One approach is loading again without the category data that you don't want to.
(C3 internally call redraw whatever when data area need to be re-drawing is required)
I made a simple demo which input category will be unloaded from the chart

http://jsbin.com/filuci/edit?html,js,output

Check out how it works

Thank you for your reply.
It is similar to the function I implemented... thanks.
In fact the keypoint of my question is "Does a feature for my request exist? Or have I to manually implement it modyfing the existing data serie?"
From your replies, it seems the answer is: "No, it doesn't exist as a feature, and you have to maually implement it". So, ok.
Now I would like to know if other users consider (or not) useful this feature. If it is useful we can propose it as a "feature request" for future releases...

For category manipulation there're .category() and .categories() APIs, but they're only to update category text values.
As you said there's no API for that purposes.

Yes, it make me think that categories and values are managed separetely in the low-level implementarion.
Does someone think can be useful to have an API for managing the categories in the same way of the data series?

@pierpaolocira I do :)

@kittee Indeed my original point was not "how to code a feature", but "is that feature implemented? If not, who is interested in?"
Thank you... ;)

@pierpaolocira Good question!! @netil Amazing explanation with an example!!! Can you guys guide me through my doubts?  I have a bar graph that is similar to netil's graph. Instead of hiding, can I load only a specific x axis bar. Example in the search box: I type "w", I am able to see that w bar only.

@pierpaolocira Good question.
I have the same feature require.
@netil has already showed the example about loading data again.But this method can not work if the chart is dynamic, i.e. building a chart via websocket data(flow data to chart).
I have tried to get data from the chart and filter chart data then put it back.But received data format is different from what I send to chart.So it seems I have to generate data from current chart and filter it then put it back and render chart.


Integration with https://pub.dev/packages/built_value

I have a simple application which flutter_form_builder to get user values and then send them to be backend with a POST method. Currently I have to do a lot of error-prone boilerplate coding to convert the Map to built_value.
It would be a lot better if there was a standardized way to serialize form_builder map to built_values.

Hi @sarvex,
Thanks for your suggestion.
I, however, think that this would be near-impossible to achieve since each user of the package aims to use the package in their own way.
If we were to serialize the resulting map into a class object, that would mean that we would have to know the shape of the intended class - which is not possible.
There are also so many packages to convert maps to objects and using one (built_value in this case) within the package will be some form of vendor lock-in which is undesirable.
I also feel that this is not the purpose for which this package was intended and that would bring unnecessary complications to this package.
If you still feel that this is achievable and necessary to be part of the package, kindly submit a PR that will be reviewed and if possible, merged into the repo.

Hi @danvick
The Shape under consideration here is managed by build_value - using generated code for the actual implementation specifying the shape in form of Fields.
Then use the serialisation object to serialise in the specified format.
static Serializer<Login> get serializer => _$loginSerializer;
Serializers serializers = _$serializers;
Currently built_value has a Map based serialiser and a JSON serialiser.
So either we can use the existing serialiser (map based) to communicate with the Form Builder State or create a custom serialiser to have the specified valued in the current format.

If you have an easy way of achieving this without a big impact on the package and how it will be used, kindly raise a PR and we'll review.
Thanks.


rocAL - Add pytorch training example

Adding pytorch training example to rocAL with options for torch, rocAL-CPU and rocAL-GPU dataloaders
Training example adapted from https://github.com/pytorch/examples/tree/main/imagenet

@SundarRajan98 please move this folder under examples/pytorch. Rename it to imagenet_training subfolder and add both the files under there. Change the filename to 'imagenet_training.py`

@LakshmiKumar23 Renamed and moved the train example folder to docs/examples/pytorch

@SundarRajan28 Have you noticed this issue? Running on this docker swethabs/rocm6.0.2_pytorch_2.1.2_mivisionx_py3.10 on Lockhart
root@x1000c4s5b1n0:/dockerx/rocAL/docs/examples/pytorch/imagenet_training# python3 imagenet_training.py -a resnet50 -j$(nproc) --batch-size 1024 --rocal-gpu /media/imagenet_20dir/
=> creating model 'resnet50'
OK: OpenVX using GPU device - 0: AMD Instinct MI250X [gfx90a:sramecc+:xnack-] with 110 CUs on PCI bus c1:00.0

OK: loaded 114 kernels from libvx_rpp.so
Pipeline has been created succesfully
rocal "gpu" variant
OK: OpenVX using GPU device - 0: AMD Instinct MI250X [gfx90a:sramecc+:xnack-] with 110 CUs on PCI bus c1:00.0

OK: loaded 114 kernels from libvx_rpp.so
Pipeline has been created succesfully
rocal "gpu" variant
OK: HIP buffer usage:<PHONE_NUMBER>, 6/6
Bus error (core dumped)
root@x1000c4s5b1n0:/dockerx/rocAL/docs/examples/pytorch/imagenet_training# python3 imagenet_training.py -a resnet50 -j$(nproc) --batch-size 1024 --rocal-cpu /media/imagenet_20dir/
=> creating model 'resnet50'
OK: loaded 114 kernels from libvx_rpp.so
Pipeline has been created succesfully
rocal "cpu" variant
OK: loaded 114 kernels from libvx_rpp.so
Pipeline has been created succesfully
rocal "cpu" variant
Bus error (core dumped)

@LakshmiKumar23 Please try in x1000c4s5b0n0 node. The x1000c4s5b1n0 node has issues with trainings. Also please try the command in single node, multiple GPUs section of the readme. The above command runs training in CPU.


Update GameTicker.RoundFlow.cs

Fix a spurious test fail.

Shouldn't this be calling FlushEntities now as I don't know if we ever handle the queued stuff on content side.

shroog, i'm just killing a bug. I don't know what FlushEntities is. :HECK:

wtf


twoslash include support

What problem will this feature address?
It would be great to be able to use twoslash includes main code blocks that can then be imported into code blocks on the same page :)
Describe the solution you'd like

Describe alternatives you've considered

Additional context
No response

We use Shiki Twoslash: https://twoslash.netlify.app which doesn't seem to support include.
See https://github.com/twoslashes/twoslash/issues/47

The includes support seems to have existed as part of remark-shiki-twoslash and that functionality seems to not have been ported to the new package...
Closing this in favor of upstream issue

Shiki Twoslash now supports includes: shikijs/shiki#737 🎉

Reopening this as upstream support seems to have been added.
I reinstalled fumadocs-twoslash, which pulled<EMAIL_ADDRESS>yet, I am still receiving the following error:
ShikiError: test.mdx:ShikiError: Language `twoslash` not found, you may need to load it first

test.mdx
```twoslash include main
const test = "Hello world!";
```

```tsx twoslash
@include: main
```

Currently, they didn't document it in the docs (cannot find on their notation reference). But I think your usage is wrong, you should add the language meta, as the error message said.

Oh! my bad, that was an easy fix!
The following works
test.mdx
```ts twoslash include main
const test = "Hello world!";
```

```ts twoslash
// @include: main
```


PostCSS environment. Moving stylus to postcss

:heart: :+1: :gem: :gem:

@maratfakhreev please update https://github.com/fs/backbone-base#npm-dev-dependencies


Update delivery_note.html.twig

Wrap deliveryDate into its own block to simplify removing it

1. Why is this change necessary?
I wanted to remove the delivery date from the delivery_note but couldn't just erase a block as in document_side_info_storno_number but instead had to copy the whole block.
2. What does this change do, exactly?
Add a block to easily remove its content
3. Describe each step to reproduce the issue or behaviour.
If one wants to remove the delivery date from the delivery_note you need to copy the block document_side_info_contents instead to just overwrite a small part of it.
4. Please link to the relevant issues (if any).
5. Checklist

[ ] I have written tests and verified that they fail without my change
[ ] I have created a changelog file with all necessary information about my changes
[ ] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[X] I have read the contribution requirements and fulfil them.

Hi Fabian, could you please add a changelog like I did for you in your invoice-PR? See 3de37ab7fa8078b3c45237169fa9731006b54155
Also, the block does not allow for camelCase, please use snake_case.
Thirdly, please provide a more meaningful commit message like "Added block for delivery note in delivery_not.html.twig"
Thank you 💙

Happy to do. I’m on vacation right now, will do it in three weeks

Hey,
I will close this PR as it's inactive for a while. Feel free to create a new one when you have updated it


How to set a unique key for a custom component that doesn't change according to label?

Hello I want the key property of JSON schema to be a unique key which doesn't change on label name ,How I can I do that?
For example
"components": [
        {
            "label": "Text Field",
            "allowMultipleMasks": false,
            "showWordCount": false,
            "showCharCount": false,
            "tableView": true,
            "alwaysEnabled": false,
            "type": "textfield",
            "input": true,
            **"key": "Mycustomkey",**
            "defaultValue": "",
}

I want to keep this key name no matter what I put on label name on this component.
@travist  @randallknutson

In the newer versions of our form builder (in formio.js) the key is not modified for any existing components. It is only generated when the component is first added to the form. You may want to try updating to the latest beta version of ngFormio (which now includes the builder instead of being in a separate module) and see how it works.

Okay,thanks ! I will try that ! but in the old version is there any way I can set the key specific and it doesn't change on label name?
@randallknutson

You can change the API key in the API tab of each component.  It is labeled "Property Name". This will not change the label name of the component.
Hope this helps.
Thanks.


Add CodeQL checks

@s-martin
is this ready for merging?

@s-martin
is this ready for merging?

Yes

Yes


Warn when upgrading lockfile major version & error when major version is...

... too low
Closes https://trello.com/c/1jnFZSbb/101-ensure-that-bundler-1-x-will-abort-and-request-an-upgrade-if-bundled-with-is-2-0-or-greater.
\c @smlance

testssssssssssssss

Actually, can one of the tests include a lockfile with separate source sections as in #3593? I want to make sure that Bundler 1 hitting a Bundler 2 lockfile can still ask for an upgrade.

Updated

\o/


[next-sass] allow use sass replace node-sass

hope can allow use sass replace node-sass

How about this:
withSass({
 sassLoaderOptions: {
    implementation: require('sass')
  }
})

why not let it auto handle, let user just need choose install node-sass or sass

@tingtingtinghuang Could you post your package.json and next.config?
I'm using
module.exports =   withBundleAnalyzer(     withSass({       webpack(config, ) {         config.node = {           fs: 'empty'         };         return config;       },       sassLoaderOptions: {         implementation: require('sass')       }     }));
    "@zeit/next-sass": "^1.0.1",     "sass": "^1.25.0"
and also get the error:  Error: Cannot find module 'node-sass'

@chrisandrewca
 "sass": "1.14.1",
 "sass-loader": "7.1.0"

Remember to add sass-loader in dependencies.

Hi, thanks for creating an issue. We currently recommend using nextjs.org/docs/basic-features/built-in-css-support as the plugins have been deprecated in favor of the built-in support.


Add support for monitor

new feature for ivory-operator:
1、Promethous/Grafana/Alertmanager/pgMonitor compatibility testing with ivorysql
2、docker image for Promethous/Grafana/Alertmanager/pgMonitor
3、deployed successful via ivory-operator
4、regression testing

This has been finished in #27, issue is closed.


Support credentials specific to each back-end

in some cases various back-ends may support different credential sets.
it should be possible to override backendState per gateway back-end instance. this should be optional to allow fallback to the global setting.

@willmostly thank you for the response. apologies, suspect my description was unclear. the problem is not with different back-ends for the same cluster, but rather different clusters.
the problem is specific to the following section in the config:
backendState:
   username: ${BACKEND_USER}
   password: ${BACKEND_PASSWORD}
   ssl: true

from my limited  understanding, it expects the different clusters to be uniform with regards to users and even ssl. if that is the case, is there a way to resolve that? would one still be able to override the Authorization using routing rules?


Errors when run a command dart migrate.

I run the command dart migrate or dart migrate --skip-import-check (Regardless of the command - the result is the same)
Migrating ///***/package_name

See https://dart.dev/go/null-safety-migration for a migration guide.

Analyzing project...
[---------------------------]

Then it prints a lot of errors.

error • The body might complete normally, causing 'null' to be returned, but the return type is a potentially non-nullable type at lib/src/utils/database/database.dart:286:15 • (body_might_complete_normally)
error • Non-nullable instance field '_database' must be initialized at lib/src/utils/database/nosql_db.dart:9:3 • (not_initialized_non_nullable_instance_field)
error • The non-nullable variable '_database' must be initialized at lib/src/utils/database/nosql_db.dart:13:19 • (not_initialized_non_nullable_variable)
error • The parameter 'region' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/file_upload/Policy.dart:25:16 • (missing_default_value_for_parameter)
error • The parameter 'region' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/file_upload/aws_policy.dart:24:16 • (missing_default_value_for_parameter)
error • A value of type 'CognitoUserSession?' can't be assigned to a variable of type 'CognitoUserSession' at lib/src/utils/file_upload/upload.dart:32:18 • (invalid_assignment)
error • The non-nullable local variable '_session' must be assigned before it can be used at lib/src/utils/file_upload/upload.dart:38:42 • (not_assigned_potentially_non_nullable_local_variable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/file_upload/upload.dart:57:9 • (argument_type_not_assignable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/file_upload/upload.dart:59:9 • (argument_type_not_assignable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/file_upload/upload.dart:63:9 • (argument_type_not_assignable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/file_upload/upload.dart:64:31 • (argument_type_not_assignable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/file_upload/upload.dart:65:35 • (argument_type_not_assignable)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/file_upload/upload.dart:76:42 • (invalid_assignment)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/file_upload/upload.dart:77:31 • (argument_type_not_assignable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/file_upload/upload.dart:108:9 • (argument_type_not_assignable)
error • There's no constant named 'DEFAULT' in 'DioErrorType' at lib/src/utils/file_upload/upload.dart:175:36 • (undefined_enum_constant)
error • The non-nullable local variable 'error' must be assigned before it can be used at lib/src/utils/file_upload/upload.dart:184:11 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'statusError' must be assigned before it can be used at lib/src/utils/file_upload/upload.dart:188:48 • (not_assigned_potentially_non_nullable_local_variable)
error • A value of type 'int?' can't be assigned to a variable of type 'int' at lib/src/utils/file_upload/upload.dart:232:22 • (invalid_assignment)
error • A value of type 'int?' can't be assigned to a variable of type 'int' at lib/src/utils/file_upload/upload.dart:279:22 • (invalid_assignment)
error • The named parameter 'expiration' isn't defined at lib/src/utils/firebase/firebase_remote_configs.dart:8:32 • (undefined_named_parameter)
error • The method 'activateFetched' isn't defined for the type 'RemoteConfig' at lib/src/utils/firebase/firebase_remote_configs.dart:9:43 • (undefined_method)
error • The named parameter 'expiration' isn't defined at lib/src/utils/firebase/firebase_remote_configs.dart:675:32 • (undefined_named_parameter)
error • The method 'activateFetched' isn't defined for the type 'RemoteConfig' at lib/src/utils/firebase/firebase_remote_configs.dart:676:26 • (undefined_method)
error • The class 'FirebaseMessaging' doesn't have a default constructor at lib/src/utils/firebase_notifications.dart:6:47 • (new_with_undefined_constructor_default)
error • The non-nullable local variable 'programJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:28:17 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:28:40 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:29:15 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'lessonJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:84:17 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'lessonJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:84:39 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'lessonJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:85:15 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'postJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:134:17 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'postJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:134:37 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'postJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:135:15 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'postJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:185:17 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'postJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:185:37 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'postJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:186:15 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'freestylePostJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:242:19 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'freestylePostJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:242:48 • (not_assigned_potentially_non_nullable_local_variable)
error • A value of type 'Null' can't be assigned to a variable of type 'Map<String, dynamic>' at lib/src/utils/handlers/json_handlers.dart:243:37 • (invalid_assignment)
error • The non-nullable local variable 'postJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:278:19 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'postJson' must be assigned before it can be used at lib/src/utils/handlers/json_handlers.dart:278:39 • (not_assigned_potentially_non_nullable_local_variable)
error • A value of type 'Null' can't be assigned to a variable of type 'Map<String, dynamic>' at lib/src/utils/handlers/json_handlers.dart:279:28 • (invalid_assignment)
error • The property 'first' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/handlers/subscription_screen_handlers.dart:18:17 • (unchecked_use_of_nullable_value)
error • A value of type 'Null' can't be assigned to a variable of type 'LessonsProgram' at lib/src/utils/handlers/subscription_screen_handlers.dart:20:58 • (invalid_assignment)
error • A value of type 'Null' can't be assigned to a variable of type 'VideoLesson' at lib/src/utils/handlers/subscription_screen_handlers.dart:28:57 • (invalid_assignment)
error • A value of type 'Null' can't be returned from the method 'retrieveProducts' because it has a return type of 'Future<List>' at lib/src/utils/in_app_purchase/in_app_purchase.dart:12:14 • (return_of_invalid_type)
error • The property 'isNotEmpty' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/in_app_purchase/in_app_purchase.dart:16:11 • (unchecked_use_of_nullable_value)
error • The method 'map' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/in_app_purchase/in_app_purchase.dart:17:23 • (unchecked_use_of_nullable_value)
error • A value of type 'Null' can't be returned from the method 'retrieveProduct' because it has a return type of 'Future<List>' at lib/src/utils/in_app_purchase/in_app_purchase.dart:40:14 • (return_of_invalid_type)
error • The non-nullable variable 'deviceId' must be initialized at lib/src/utils/info/app_info.dart:6:17 • (not_initialized_non_nullable_variable)
error • The non-nullable local variable 'id' must be assigned before it can be used at lib/src/utils/info/app_info.dart:34:16 • (not_assigned_potentially_non_nullable_local_variable)
error • The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/lifecycle_manager.dart:11:25 • (missing_default_value_for_parameter)
error • The parameter 'child' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/lifecycle_manager.dart:11:35 • (missing_default_value_for_parameter)
error • Non-nullable instance field 'recordId' must be initialized at lib/src/utils/lifecycle_manager.dart:17:10 • (not_initialized_non_nullable_instance_field)
error • The method 'addObserver' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/lifecycle_manager.dart:20:5 • (unchecked_use_of_nullable_value)
error • The method 'removeObserver' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/lifecycle_manager.dart:26:5 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/lifecycle_manager.dart:42:46 • (unchecked_use_of_nullable_value)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/lifecycle_manager.dart:49:24 • (invalid_assignment)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/lifecycle_manager.dart:52:20 • (invalid_assignment)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/lifecycle_manager.dart:53:16 • (invalid_assignment)
error • The argument type 'Map<String?, String?>?' can't be assigned to the parameter type 'Map<String, String>?' at lib/src/utils/lifecycle_manager.dart:59:40 • (argument_type_not_assignable)
error • The argument type 'Map<String?, String?>?' can't be assigned to the parameter type 'Map<String, String>?' at lib/src/utils/lifecycle_manager.dart:63:11 • (argument_type_not_assignable)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/lifecycle_manager.dart:64:18 • (invalid_assignment)
error • The argument type 'Map<String?, String?>?' can't be assigned to the parameter type 'Map<String, String>?' at lib/src/utils/lifecycle_manager.dart:74:11 • (argument_type_not_assignable)
error • The argument type 'Map<String?, String?>?' can't be assigned to the parameter type 'Map<String, String>?' at lib/src/utils/lifecycle_manager.dart:78:54 • (argument_type_not_assignable)
error • The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/network_connection_lost_form.dart:12:12 • (missing_default_value_for_parameter)
error • The parameter 'pupil' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/network_connection_lost_form.dart:12:39 • (missing_default_value_for_parameter)
error • The parameter 'teacher' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/network_connection_lost_form.dart:12:68 • (missing_default_value_for_parameter)
error • The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/no_connect_waiting_form.dart:18:9 • (missing_default_value_for_parameter)
error • The parameter 'onCloseHandler' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/no_connect_waiting_form.dart:19:10 • (missing_default_value_for_parameter)
error • The parameter 'mainHandler' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/no_connect_waiting_form.dart:20:10 • (missing_default_value_for_parameter)
error • The parameter 'afterOnCloseHandler' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/no_connect_waiting_form.dart:21:32 • (missing_default_value_for_parameter)
error • Non-nullable instance field 'connectivityStatusSubscription' must be initialized at lib/src/utils/no_connect_waiting_form.dart:29:42 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'videoDuration' must be initialized at lib/src/utils/play_lesson_story/story_controller.dart:30:12 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'playerController' must be initialized at lib/src/utils/play_lesson_story/story_controller.dart:32:25 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'rebuildVideoSlider' must be initialized at lib/src/utils/play_lesson_story/story_controller.dart:34:34 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'rebuildRangeVideoSlider' must be initialized at lib/src/utils/play_lesson_story/story_controller.dart:36:34 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'isPlayingLoop' must be initialized at lib/src/utils/play_lesson_story/story_controller.dart:40:8 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'positionMain' must be initialized at lib/src/utils/play_lesson_story/story_controller.dart:42:12 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'positionStartLoop' must be initialized at lib/src/utils/play_lesson_story/story_controller.dart:44:12 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'positionEndLoop' must be initialized at lib/src/utils/play_lesson_story/story_controller.dart:46:12 • (not_initialized_non_nullable_instance_field)
error • A value of type 'Null' can't be assigned to a variable of type 'Duration' at lib/src/utils/play_lesson_story/story_controller.dart:146:25 • (invalid_assignment)
error • A value of type 'Null' can't be assigned to a variable of type 'Duration' at lib/src/utils/play_lesson_story/story_controller.dart:147:23 • (invalid_assignment)
error • The parameter 'speed' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_controller.dart:151:38 • (missing_default_value_for_parameter)
error • A value of type 'Null' can't be assigned to a variable of type 'bool' at lib/src/utils/play_lesson_story/story_controller.dart:192:21 • (invalid_assignment)
error • Non-nullable instance field 'frames' must be initialized at lib/src/utils/play_lesson_story/story_image.dart:23:3 • (not_initialized_non_nullable_instance_field)
error • The parameter 'requestHeaders' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_image.dart:23:31 • (missing_default_value_for_parameter)
error • The argument type 'Map<String, dynamic>' can't be assigned to the parameter type 'Map<String, String>?' at lib/src/utils/play_lesson_story/story_image.dart:34:49 • (argument_type_not_assignable)
error • The method 'instantiateImageCodec' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_image.dart:49:9 • (unchecked_use_of_nullable_value)
error • The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_image.dart:78:9 • (missing_default_value_for_parameter)
error • The parameter 'controller' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_image.dart:79:10 • (missing_default_value_for_parameter)
error • The parameter 'fit' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_image.dart:80:10 • (missing_default_value_for_parameter)
error • The parameter 'controller' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_image.dart:86:21 • (missing_default_value_for_parameter)
error • The parameter 'requestHeaders' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_image.dart:87:26 • (missing_default_value_for_parameter)
error • The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_image.dart:89:9 • (missing_default_value_for_parameter)
error • Non-nullable instance field 'currentFrame' must be initialized at lib/src/utils/play_lesson_story/story_image.dart:106:12 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field '_timer' must be initialized at lib/src/utils/play_lesson_story/story_image.dart:108:9 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field '_streamSubscription' must be initialized at lib/src/utils/play_lesson_story/story_image.dart:110:37 • (not_initialized_non_nullable_instance_field)
error • The getter 'value' isn't defined for the type 'BehaviorSubject' at lib/src/utils/play_lesson_story/story_image.dart:166:44 • (undefined_getter)
error • Non-nullable instance field 'videoFile' must be initialized at lib/src/utils/play_lesson_story/story_video.dart:29:3 • (not_initialized_non_nullable_instance_field)
error • The parameter 'requestHeaders' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_video.dart:29:31 • (missing_default_value_for_parameter)
error • The argument type 'Map<String, dynamic>' can't be assigned to the parameter type 'Map<String, String>?' at lib/src/utils/play_lesson_story/story_video.dart:37:45 • (argument_type_not_assignable)
error • The parameter 'storyController' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_video.dart:54:38 • (missing_default_value_for_parameter)
error • The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_video.dart:54:59 • (missing_default_value_for_parameter)
error • The parameter 'thumbnail' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_video.dart:54:69 • (missing_default_value_for_parameter)
error • The parameter 'controller' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_video.dart:56:54 • (missing_default_value_for_parameter)
error • The parameter 'requestHeaders' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_video.dart:56:87 • (missing_default_value_for_parameter)
error • The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_video.dart:56:107 • (missing_default_value_for_parameter)
error • The parameter 'thumbnail' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_video.dart:56:119 • (missing_default_value_for_parameter)
error • Non-nullable instance field 'playerLoader' must be initialized at lib/src/utils/play_lesson_story/story_video.dart:72:16 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field '_streamSubscription' must be initialized at lib/src/utils/play_lesson_story/story_video.dart:76:22 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field '_pupilInitializer' must be initialized at lib/src/utils/play_lesson_story/story_video.dart:77:16 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'playerController' must be initialized at lib/src/utils/play_lesson_story/story_video.dart:79:25 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'connectionStatus' must be initialized at lib/src/utils/play_lesson_story/story_video.dart:85:20 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field '_connectivitySubscription' must be initialized at lib/src/utils/play_lesson_story/story_video.dart:86:42 • (not_initialized_non_nullable_instance_field)
error • The non-nullable local variable 'result' must be assigned before it can be used at lib/src/utils/play_lesson_story/story_video.dart:121:36 • (not_assigned_potentially_non_nullable_local_variable)
error • The getter 'initialized' isn't defined for the type 'VideoPlayerValue' at lib/src/utils/play_lesson_story/story_video.dart:336:80 • (undefined_getter)
error • The getter 'initialized' isn't defined for the type 'VideoPlayerValue' at lib/src/utils/play_lesson_story/story_video.dart:339:70 • (undefined_getter)
error • The parameter 'isLoop' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_video.dart:395:25 • (missing_default_value_for_parameter)
error • The parameter 'caption' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:122:12 • (missing_default_value_for_parameter)
error • The parameter 'caption' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:174:10 • (missing_default_value_for_parameter)
error • The parameter 'controller' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:214:21 • (missing_default_value_for_parameter)
error • The parameter 'caption' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:216:12 • (missing_default_value_for_parameter)
error • The parameter 'requestHeaders' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:218:26 • (missing_default_value_for_parameter)
error • The parameter 'caption' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:267:10 • (missing_default_value_for_parameter)
error • The parameter 'controller' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:268:21 • (missing_default_value_for_parameter)
error • The parameter 'requestHeaders' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:270:26 • (missing_default_value_for_parameter)
error • The parameter 'controller' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:320:21 • (missing_default_value_for_parameter)
error • The parameter 'duration' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:321:14 • (missing_default_value_for_parameter)
error • The parameter 'caption' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:323:12 • (missing_default_value_for_parameter)
error • The parameter 'requestHeaders' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:325:26 • (missing_default_value_for_parameter)
error • The parameter 'thumbnail' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:326:12 • (missing_default_value_for_parameter)
error • The parameter 'controller' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:407:10 • (missing_default_value_for_parameter)
error • The parameter 'onComplete' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:408:10 • (missing_default_value_for_parameter)
error • The parameter 'onStoryShow' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:409:10 • (missing_default_value_for_parameter)
error • The parameter 'back' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:414:10 • (missing_default_value_for_parameter)
error • Non-nullable instance field 'animationController' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:435:23 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'currentAnimation' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:436:21 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'videoLoader' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:437:15 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field '_recordBloc' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:438:16 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'playbackSubscription' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:440:37 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'repeatSubscription' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:441:44 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'videoStateSubscription' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:442:38 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'showHidePanel' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:485:34 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'switchMainPanel' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:488:34 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'switchLoopPanel' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:491:34 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'playPauseRebuild' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:494:34 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'rebuildControls' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:497:34 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'rebuildSpeed' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:500:34 • (not_initialized_non_nullable_instance_field)
error • Non-nullable instance field 'rebuildPagesBar' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:503:34 • (not_initialized_non_nullable_instance_field)
error • The return type 'Null' isn't a 'PlayLessonStoryItem', as required by the closure's context at lib/src/utils/play_lesson_story/story_view.dart:514:104 • (return_of_invalid_type_from_closure)
error • Non-nullable instance field 'timer' must be initialized at lib/src/utils/play_lesson_story/story_view.dart:517:9 • (not_initialized_non_nullable_instance_field)
error • The return type 'Null' isn't a 'PlayLessonStoryItem', as required by the closure's context at lib/src/utils/play_lesson_story/story_view.dart:544:14 • (return_of_invalid_type_from_closure)
error • A value of type 'Null' can't be assigned to a variable of type 'Timer' at lib/src/utils/play_lesson_story/story_view.dart:588:19 • (invalid_assignment)
error • A value of type 'Null' can't be assigned to a variable of type 'Timer' at lib/src/utils/play_lesson_story/story_view.dart:601:13 • (invalid_assignment)
error • A nullable expression can't be used as a condition at lib/src/utils/play_lesson_story/story_view.dart:995:25 • (unchecked_use_of_nullable_value)
error • The property 'nickname' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:1037:27 • (unchecked_use_of_nullable_value)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/play_lesson_story/story_view.dart:1037:27 • (argument_type_not_assignable)
error • The parameter 'isPlaying' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:1071:31 • (missing_default_value_for_parameter)
error • The parameter 'speedHeight' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:1083:30 • (missing_default_value_for_parameter)
error • The method 'logEvent' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:1263:19 • (unchecked_use_of_nullable_value)
error • The method 'logEvent' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:1325:19 • (unchecked_use_of_nullable_value)
error • A value of type 'Null' can't be assigned to a variable of type 'void Function(void Function())' at lib/src/utils/play_lesson_story/story_view.dart:1333:67 • (invalid_assignment)
error • A value of type 'Null' can't be assigned to a variable of type 'bool' at lib/src/utils/play_lesson_story/story_view.dart:1336:57 • (invalid_assignment)
error • A value of type 'Null' can't be assigned to a variable of type 'void Function(void Function())' at lib/src/utils/play_lesson_story/story_view.dart:1353:62 • (invalid_assignment)
error • A value of type 'Null' can't be assigned to a variable of type 'void Function(void Function())' at lib/src/utils/play_lesson_story/story_view.dart:1455:59 • (invalid_assignment)
error • A value of type 'Null' can't be assigned to a variable of type 'bool' at lib/src/utils/play_lesson_story/story_view.dart:1458:49 • (invalid_assignment)
error • A value of type 'Null' can't be assigned to a variable of type 'void Function(void Function())' at lib/src/utils/play_lesson_story/story_view.dart:1522:59 • (invalid_assignment)
error • The argument type 'Duration?' can't be assigned to the parameter type 'Duration' at lib/src/utils/play_lesson_story/story_view.dart:1841:49 • (argument_type_not_assignable)
error • The element type 'double?' can't be assigned to the list type 'double' at lib/src/utils/play_lesson_story/story_view.dart:1868:26 • (list_element_type_not_assignable)
error • The property 'first' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:2072:26 • (unchecked_use_of_nullable_value)
error • The method 'logEvent' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:2076:15 • (unchecked_use_of_nullable_value)
error • The property 'first' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:2077:26 • (unchecked_use_of_nullable_value)
error • The method 'logEvent' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:2119:5 • (unchecked_use_of_nullable_value)
error • The argument type 'UserPreview?' can't be assigned to the parameter type 'UserPreview' at lib/src/utils/play_lesson_story/story_view.dart:2127:84 • (argument_type_not_assignable)
error • The property 'id' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:2130:13 • (unchecked_use_of_nullable_value)
error • The property 'userMap' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:2130:46 • (unchecked_use_of_nullable_value)
error • The property 'userMap' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/play_lesson_story/story_view.dart:2132:21 • (unchecked_use_of_nullable_value)
error • A value of type 'Duration?' can't be assigned to a variable of type 'Duration' at lib/src/utils/play_lesson_story/story_view.dart:2155:38 • (invalid_assignment)
error • The parameter 'start' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:2160:37 • (missing_default_value_for_parameter)
error • The parameter 'end' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:2160:53 • (missing_default_value_for_parameter)
error • The getter 'initialized' isn't defined for the type 'VideoPlayerValue' at lib/src/utils/play_lesson_story/story_view.dart:2183:95 • (undefined_getter)
error • The parameter 'shown' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:2199:31 • (missing_default_value_for_parameter)
error • The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:2213:9 • (missing_default_value_for_parameter)
error • The return type 'Null' isn't a 'PageData', as required by the closure's context at lib/src/utils/play_lesson_story/story_view.dart:2249:69 • (return_of_invalid_type_from_closure)
error • The parameter 'storyItems' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:2344:24 • (missing_default_value_for_parameter)
error • The parameter 'currentPageIndex' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:2344:41 • (missing_default_value_for_parameter)
error • The parameter 'key' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/play_lesson_story/story_view.dart:2344:63 • (missing_default_value_for_parameter)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/play_lesson_story/story_view.dart:2352:24 • (default_list_constructor)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/posts_in_feed.dart:7:42 • (default_list_constructor)
error • The method 'forEach' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/posts_in_feed.dart:12:7 • (unchecked_use_of_nullable_value)
error • A value of type 'List<String?>' can't be assigned to a variable of type 'List' at lib/src/utils/posts_in_feed.dart:18:27 • (invalid_assignment)
error • The property 'groups' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/posts_in_feed.dart:18:28 • (unchecked_use_of_nullable_value)
error • The operator '+' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/posts_in_feed.dart:18:28 • (unchecked_use_of_nullable_value)
error • The property 'managedGroups' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/posts_in_feed.dart:18:64 • (unchecked_use_of_nullable_value)
error • The argument type 'List?' can't be assigned to the parameter type 'List' at lib/src/utils/posts_in_feed.dart:18:64 • (argument_type_not_assignable)
error • The method 'forEach' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/posts_in_feed.dart:22:7 • (unchecked_use_of_nullable_value)
error • The method 'contains' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/posts_in_feed.dart:23:14 • (unchecked_use_of_nullable_value)
error • The property 'blocks' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/posts_in_feed.dart:23:14 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/posts_in_feed.dart:24:14 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/posts_in_feed.dart:24:38 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/posts_in_feed.dart:25:70 • (unchecked_use_of_nullable_value)
error • The method 'forEach' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/posts_in_feed.dart:34:7 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/posts_in_feed.dart:35:14 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/posts_in_feed.dart:35:37 • (unchecked_use_of_nullable_value)
error • The non-nullable variable 'androidBackPressedAction' must be initialized at lib/src/utils/session_settings.dart:47:19 • (not_initialized_non_nullable_variable)
error • A value of type 'Null' can't be assigned to a variable of type 'Function' at lib/src/utils/session_settings.dart:51:34 • (invalid_assignment)
error • The non-nullable variable '_isFirstLaunch' must be initialized at lib/src/utils/session_settings.dart:156:15 • (not_initialized_non_nullable_variable)
error • The parameter 'name' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/session_settings.dart:236:12 • (missing_default_value_for_parameter)
error • The parameter 'parameters' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/session_settings.dart:237:26 • (missing_default_value_for_parameter)
error • The parameter 'valueToSum' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/session_settings.dart:238:12 • (missing_default_value_for_parameter)
error • The non-nullable variable '_post' must be initialized at lib/src/utils/session_settings.dart:256:20 • (not_initialized_non_nullable_variable)
error • A value of type 'Null' can't be assigned to a variable of type 'VideoPost' at lib/src/utils/session_settings.dart:265:13 • (invalid_assignment)
error • The non-nullable variable '_mainBloc' must be initialized at lib/src/utils/session_settings.dart:269:19 • (not_initialized_non_nullable_variable)
error • The parameter 'post' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/session_settings.dart:292:35 • (missing_default_value_for_parameter)
error • The parameter 'draft' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/session_settings.dart:292:46 • (missing_default_value_for_parameter)
error • The parameter 'classes' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/session_settings.dart:292:58 • (missing_default_value_for_parameter)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/session_settings.dart:331:48 • (default_list_constructor)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/session_settings.dart:335:44 • (default_list_constructor)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/session_settings.dart:343:59 • (default_list_constructor)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/session_settings.dart:349:43 • (default_list_constructor)
error • A nullable expression can't be used as an iterator in a for-in loop at lib/src/utils/session_settings.dart:351:36 • (unchecked_use_of_nullable_value)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/session_settings.dart:361:36 • (default_list_constructor)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/session_settings.dart:394:68 • (default_list_constructor)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/session_settings.dart:395:70 • (default_list_constructor)
error • The method 'forEach' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/session_settings.dart:400:7 • (unchecked_use_of_nullable_value)
error • The argument type 'Null' can't be assigned to the parameter type 'List' at lib/src/utils/session_settings.dart:444:25 • (argument_type_not_assignable)
error • The parameter 'categories' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/session_settings.dart:451:67 • (missing_default_value_for_parameter)
error • The parameter 'fromOnBoarding' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/session_settings.dart:451:84 • (missing_default_value_for_parameter)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/session_settings.dart:461:41 • (default_list_constructor)
error • A nullable expression can't be used as an iterator in a for-in loop at lib/src/utils/session_settings.dart:464:36 • (unchecked_use_of_nullable_value)
error • A value of type 'CognitoUserSession?' can't be assigned to a variable of type 'CognitoUserSession' at lib/src/utils/sign_up_utils.dart:39:19 • (invalid_assignment)
error • The parameter 'lessonProgram' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:75:23 • (missing_default_value_for_parameter)
error • The parameter 'fromOnBoarding' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:75:43 • (missing_default_value_for_parameter)
error • The parameter 'lessonProgram' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:315:23 • (missing_default_value_for_parameter)
error • The parameter 'fromOnBoarding' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:315:43 • (missing_default_value_for_parameter)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/sign_up_utils.dart:322:42 • (default_list_constructor)
error • A nullable expression can't be used as a condition at lib/src/utils/sign_up_utils.dart:346:29 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/sign_up_utils.dart:352:36 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/sign_up_utils.dart:385:31 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/sign_up_utils.dart:413:27 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/sign_up_utils.dart:419:34 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/sign_up_utils.dart:450:29 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/sign_up_utils.dart:479:29 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/sign_up_utils.dart:485:36 • (unchecked_use_of_nullable_value)
error • A nullable expression can't be used as a condition at lib/src/utils/sign_up_utils.dart:516:31 • (unchecked_use_of_nullable_value)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/sign_up_utils.dart:562:27 • (invalid_assignment)
error • The property 'name' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:563:22 • (unchecked_use_of_nullable_value)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/sign_up_utils.dart:563:22 • (invalid_assignment)
error • The property 'isNotEmpty' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:563:60 • (unchecked_use_of_nullable_value)
error • The property 'name' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:563:60 • (unchecked_use_of_nullable_value)
error • The property 'name' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:564:19 • (unchecked_use_of_nullable_value)
error • The property 'nickname' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:565:19 • (unchecked_use_of_nullable_value)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/sign_up_utils.dart:566:30 • (invalid_assignment)
error • The non-nullable local variable 'programPicture' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:579:17 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programPicture' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:579:43 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'heightOfBottomSheetWithProgram' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:589:45 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programName' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:673:31 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'author' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:685:34 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programPicture' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:693:27 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programPicture' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:693:53 • (not_assigned_potentially_non_nullable_local_variable)
error • The argument type 'ImageProvider' can't be assigned to the parameter type 'ImageProvider' at lib/src/utils/sign_up_utils.dart:700:79 • (argument_type_not_assignable)
error • The non-nullable local variable 'programImageProvider' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:700:86 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable variable 'topBuildContext' must be initialized at lib/src/utils/sign_up_utils.dart:743:23 • (not_initialized_non_nullable_variable)
error • The parameter 'lessonProgram' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:915:23 • (missing_default_value_for_parameter)
error • The parameter 'fromOnBoarding' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:915:43 • (missing_default_value_for_parameter)
error • The default 'List' constructor isn't available when null safety is enabled at lib/src/utils/sign_up_utils.dart:916:39 • (default_list_constructor)
error • A value of type 'Set<String?>' can't be assigned to a variable of type 'Set' at lib/src/utils/sign_up_utils.dart:918:29 • (invalid_assignment)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/sign_up_utils.dart:987:21 • (argument_type_not_assignable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/sign_up_utils.dart:997:27 • (argument_type_not_assignable)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/sign_up_utils.dart:1022:21 • (invalid_assignment)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/sign_up_utils.dart:1023:16 • (invalid_assignment)
error • The property 'name' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:1023:16 • (unchecked_use_of_nullable_value)
error • The property 'isNotEmpty' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:1023:54 • (unchecked_use_of_nullable_value)
error • The property 'name' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:1023:54 • (unchecked_use_of_nullable_value)
error • The property 'name' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:1024:13 • (unchecked_use_of_nullable_value)
error • The property 'nickname' can't be unconditionally accessed because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:1025:13 • (unchecked_use_of_nullable_value)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/sign_up_utils.dart:1026:24 • (invalid_assignment)
error • The non-nullable local variable 'programPicture' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:1041:17 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programPicture' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:1041:43 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'heightOfBottomSheetWithProgram' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:1051:45 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programName' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:1134:31 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'author' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:1146:34 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programPicture' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:1154:27 • (not_assigned_potentially_non_nullable_local_variable)
error • The non-nullable local variable 'programPicture' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:1154:53 • (not_assigned_potentially_non_nullable_local_variable)
error • The argument type 'ImageProvider' can't be assigned to the parameter type 'ImageProvider' at lib/src/utils/sign_up_utils.dart:1161:79 • (argument_type_not_assignable)
error • The non-nullable local variable 'programImageProvider' must be assigned before it can be used at lib/src/utils/sign_up_utils.dart:1161:86 • (not_assigned_potentially_non_nullable_local_variable)
error • The parameter 'buildContext' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:1213:84 • (missing_default_value_for_parameter)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/sign_up_utils.dart:1219:23 • (invalid_assignment)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/sign_up_utils.dart:1230:19 • (argument_type_not_assignable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/sign_up_utils.dart:1237:19 • (argument_type_not_assignable)
error • The parameter 'buildContext' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:1272:86 • (missing_default_value_for_parameter)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/sign_up_utils.dart:1277:23 • (invalid_assignment)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/sign_up_utils.dart:1287:19 • (argument_type_not_assignable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/sign_up_utils.dart:1294:19 • (argument_type_not_assignable)
error • The parameter 'buildContext' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:1319:83 • (missing_default_value_for_parameter)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/sign_up_utils.dart:1324:23 • (invalid_assignment)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/sign_up_utils.dart:1334:19 • (argument_type_not_assignable)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/sign_up_utils.dart:1341:19 • (argument_type_not_assignable)
error • The parameter 'progress' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:1461:23 • (missing_default_value_for_parameter)
error • The parameter 'textSize' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:1465:14 • (missing_default_value_for_parameter)
error • The parameter 'strokeWidthProgress' can't have a value of 'null' because of its type, but the implicit default value is 'null' at lib/src/utils/sign_up_utils.dart:1469:14 • (missing_default_value_for_parameter)
error • The operator '>' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:1515:73 • (unchecked_use_of_nullable_value)
error • The operator '/' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:1515:93 • (unchecked_use_of_nullable_value)
error • The operator '>' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:1520:37 • (unchecked_use_of_nullable_value)
error • The method 'floor' can't be unconditionally invoked because the receiver can be 'null' at lib/src/utils/sign_up_utils.dart:1522:45 • (unchecked_use_of_nullable_value)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/training_program/training_program_utils.dart:17:28 • (invalid_assignment)
error • A value of type 'String?' can't be assigned to a variable of type 'String' at lib/src/utils/training_program/training_program_utils.dart:64:28 • (invalid_assignment)
error • The method 'Hexcolor' isn't defined for the type 'TrainingProgramUtils' at lib/src/utils/training_program/training_program_utils.dart:150:24 • (undefined_method)
error • The method 'Hexcolor' isn't defined for the type 'TrainingProgramUtils' at lib/src/utils/training_program/training_program_utils.dart:182:48 • (undefined_method)
error • The method 'Hexcolor' isn't defined for the type 'TrainingProgramUtils' at lib/src/utils/training_program/training_program_utils.dart:192:40 • (undefined_method)
error • The method 'Hexcolor' isn't defined for the type 'TrainingProgramUtils' at lib/src/utils/training_program/training_program_utils.dart:200:48 • (undefined_method)
error • The method 'Hexcolor' isn't defined for the type 'TrainingProgramUtils' at lib/src/utils/training_program/training_program_utils.dart:226:38 • (undefined_method)
error • The argument type 'File?' can't be assigned to the parameter type 'File' at lib/src/utils/training_program/training_program_utils.dart:254:45 • (argument_type_not_assignable)
error • A value of type 'CognitoUserSession?' can't be assigned to a variable of type 'CognitoUserSession' at lib/src/utils/video_download/video_downloader.dart:21:18 • (invalid_assignment)
error • The argument type 'String?' can't be assigned to the parameter type 'String' at lib/src/utils/video_download/video_downloader.dart:54:9 • (argument_type_not_assignable)
error • The element type 'String?' can't be assigned to the map value type 'String' at lib/src/utils/video_download/video_downloader.dart:70:33 • (map_value_type_not_assignable)
error • Non-nullable instance field '_webViewController' must be initialized at lib/src/utils/webview.dart:12:26 • (not_initialized_non_nullable_instance_field)
error • The named parameter 'initialUrl' isn't defined at lib/src/utils/webview.dart:71:17 • (undefined_named_parameter)
error • The named parameter 'initialHeaders' isn't defined at lib/src/utils/webview.dart:72:17 • (undefined_named_parameter)
error • The method 'InAppWebViewWidgetOptions' isn't defined for the type 'WebviewState' at lib/src/utils/webview.dart:73:33 • (undefined_method)
error • The named parameter 'debuggingEnabled' isn't defined at lib/src/utils/webview.dart:75:23 • (undefined_named_parameter)
error • The named parameter 'useOnTargetBlank' isn't defined at lib/src/utils/webview.dart:77:23 • (undefined_named_parameter)
error • The argument type 'void Function(InAppWebViewController, String)' can't be assigned to the parameter type 'void Function(InAppWebViewController, Uri?)?' at lib/src/utils/webview.dart:84:17 • (argument_type_not_assignable)
error • The argument type 'Future Function(InAppWebViewController, String)' can't be assigned to the parameter type 'void Function(InAppWebViewController, Uri?)?' at lib/src/utils/webview.dart:89:17 • (argument_type_not_assignable)

The migration tool didn't start, due to analysis errors.

The following steps might fix your problem:

Run dart pub get.
Try running dart migrate again.
All packages are migrated to Null Safety Sound.
DartSDK version -> 2.12.2
FlutterSDK version -> 2.0.3

I cannot use this function for migration. Do I have to manually migrate a project?

Did you already bump your SDK version constraint in pubspec to 2.12? If so try reducing the constraint before running the migrate command.
/cc @stereotype441

Did you already bump your SDK version constraint in pubspec to 2.12? If so try reducing the constraint before running the migrate command.
/cc @stereotype441

Thank you very much for your reply. It turned out to make the migration of the project.
Спасибо большое за ответ. Получилось сделать миграцию проекта.

Спасибо большое за ответ. Получилось сделать миграцию проекта.

Т.е. sdk constraint был уже изменен на ">=2.12 ..." и после отката на более старый constraint миграция сработала без ошибок?
@stereotype441 I thought migration tool is supposed to give a short error message if SDK constraint is too high already?

Спасибо большое за ответ. Получилось сделать миграцию проекта.

Т.е. sdk constraint был уже изменен на ">=2.12 ..." и после отката на более старый constraint миграция сработала без ошибок?
@stereotype441 I thought migration tool is supposed to give a short error message if SDK constraint is too high already?

У меня был установлена минимальная версия SDK 2.12.2. Я изменил эту версию в pubspec.yaml на 2.10.5, В pubspec.lock flutter установил минимальную версию 2.12.0.
После того как я устранил ошибки проекта по коду я запустил dart migrate --skip-import-check
Проект был проанализирован, но миграция не сработала т.к. были плагины, которые не мигрированы на Null Safety Sound и мне предложили добавить к команде --ignore-exceptions.
Я запустил команду dart migrate --ignore-exception --skip-import-check и далее миграция прошла успешно.

@mrdemqn спасибо за развернутый ответ!

@mrdemqn спасибо за развернутый ответ!

Пожалуйста. 👍


RestrictedAreas not initializing on server-startup, only after forcing a jobs reload in-game.

JobsReborn 4.3.1
Paper dev 1313 (Spigot 1.12.2)
@Zrips restrictedAreas.yml is not initializing on server-startup / initial loading of jobs plugin. When going into a world that is suppose to be restricted and typing /jobs area info, it doesn't return any restricted areas. Players are able to exploit money and experience from creative worlds.
Forcing a reload via /jobs reload, the restrictions finally enable and players are not able to gain any xp or money while in that world. /jobs area info returns the restricted region after a config reload.
Thus this leads me to believe the restrictedAreas.yml is not initializing or being read at plugin initialization / server startup.
restrictedareas:
  creative:
    multiplier: -1.0
    world: build1
    point1:
      x: -5000
      y: 0
      z: -5000
    point2:
      x: 5000
      y: 256
      z: 5000
  worldedit:
    multiplier: -1.0
    world: build2
    point1:
      x: -5000
      y: 0
      z: -5000
    point2:
      x: 5000
      y: 256
      z: 5000

You can always disable income from particular worlds. What would be simpler way in dealing with creative worlds.
Tho could not reproduce issue and currently everything works as it should.