问:
Intellij cannot resolve any class for all java projects, including built in classes like String and System
OS: Windows 10

Java: jdk 1.8.0_342

Intellij Version: 2022.1.3 (Community Edition)

Intellij doesn't recognize any classes that I try to use, be it built in classes like String or System, or imported functions and even my spring annotations. This does not prevent the build from completing and I can build my projects just fine. This is also preventing me from generating a run configuration as it does not recognize the main method in the java class. However, I already had some run configurations created and those are able to run just without error. Additionally, I am able to use the mvn clean install command on the apps without incident as well. As an example:

```<code>public class App {

    public static void main(String[] args) {

        Scanner beholder = new Scanner(System.in);
        beholder.useDelimiter("<");
        String current = "";
        if (beholder.hasNext()) {
            System.out.println(beholder.next());
        }
        if (beholder.hasNext()) {
            current  = beholder.next();
        }
        int spaces = 0;
        String next = "";
        while (beholder.hasNext()) {
            next = beholder.next();
            if (next.charAt(0) == '/') {
                if (spaces > 0) {
                    spaces = spaces - 2;
                }
</code>```

in the above text, String, Scanner, System, as well as those classes' methods, like next() or charAt(int n), are not recognized by Intellij and I am receiving the "cannot resolve" message.

There are many different solutions out there that I have tried all of which have resulted in no change of my problem.

Invalidate the Caches and restart Intellij

reloaded the maven dependencies

reimport the maven

Generate the maven sources and dependencies for all projects

create an empty Intellij project and manually import the application-bundle

verify the jdk path

reinstall jdk

reinstall intellij

followed the "repair IDE" path in the File dropdown

manually deleted the cache for Intellij

running the following cmd "mvn -U idea:idea"

verified that none of the dependencies are causing errors

Thanks to anyone who takes the time to read my question.

Body:
OS: Windows 10

Java: jdk 1.8.0_342

Intellij Version: 2022.1.3 (Community Edition)

Intellij doesn't recognize any classes that I try to use, be it built in classes like String or System, or imported functions and even my spring annotations. This does not prevent the build from completing and I can build my projects just fine. This is also preventing me from generating a run configuration as it does not recognize the main method in the java class. However, I already had some run configurations created and those are able to run just without error. Additionally, I am able to use the mvn clean install command on the apps without incident as well. As an example:

public class App {

    public static void main(String[] args) {

        Scanner beholder = new Scanner(System.in);
        beholder.useDelimiter("<");
        String current = "";
        if (beholder.hasNext()) {
            System.out.println(beholder.next());
        }
        if (beholder.hasNext()) {
            current  = beholder.next();
        }
        int spaces = 0;
        String next = "";
        while (beholder.hasNext()) {
            next = beholder.next();
            if (next.charAt(0) == '/') {
                if (spaces > 0) {
                    spaces = spaces - 2;
                }

in the above text, String, Scanner, System, as well as those classes' methods, like next() or charAt(int n), are not recognized by Intellij and I am receiving the "cannot resolve" message.

There are many different solutions out there that I have tried all of which have resulted in no change of my problem.

Invalidate the Caches and restart Intellij

reloaded the maven dependencies

reimport the maven

Generate the maven sources and dependencies for all projects

create an empty Intellij project and manually import the application-bundle

verify the jdk path

reinstall jdk

reinstall intellij

followed the "repair IDE" path in the File dropdown

manually deleted the cache for Intellij

running the following cmd "mvn -U idea:idea"

verified that none of the dependencies are causing errors

Thanks to anyone who takes the time to read my question.


来源: stackexchange

问:
junit test fails : data jpa query not working with H2 database
I'am using micronaut data jpa and the query works fine with oracle but not with H2 database.
here is the query :
delete from myTable
where (some conditions)
AND (to_char(startDate, 'DY', 'NLS_DATE_LANGUAGE = ENGLISH') IN ('MON', 'TUE', 'WED', 'THU', 'FRI'))
(some conditions)

The problem is the query do the right job in the oracle database but my tests fails in H2 database.

the test pass only when i replace ('MON', 'TUE', 'WED', 'THU', 'FRI') by (1,2,3,4,5), but it doesn't work well since the first day in America is Sunday and not Monday, so it shifts by one day.

Thanks in advance for your help.

i've tried many solutions like setting NLS_DATE_LANGUAGE...

ContentLicense: CC BY-SA 4.0


问:
RTK query / Get cached data in extraReducers
I'm trying to run some side effects every time a data for certain query changed. I was hoping I can do it outside of any of my components and avoid putting the logic in useEffect.

Let's say I want to do something once my query finished. I would then add this to my slice:

```<code>const mySlice = createSlice({
  name: 'myReducer',
  initialState,
  reducers: {
>! some reducers
  },
  extraReducers: (builder) => {
    builder.addMatcher(someApi.endpoints.someEndpoint.matchFulfilled, (state) => {
>! Do something here
    })
  }
});
</code>```

someEndpoint is being called after someone interacts with a Select input, so they can choose: Option1 => fetch details from someEndpoint => extraReducer gets matchFulfilled and the code runs.
The problem is when the user selects Option2, and then goes back to Option1. In this case the result is taken from the cache and the code won't run. I know I can add refetchOnMountOrArgChange to the query, but that seems a bit hacky. I imagine extraReducers are not meant to be used that way, hence my question, what's the best way to handle such case, ideally without useEffect?

Body:
I'm trying to run some side effects every time a data for certain query changed. I was hoping I can do it outside of any of my components and avoid putting the logic in useEffect.

Let's say I want to do something once my query finished. I would then add this to my slice:

const mySlice = createSlice({
  name: 'myReducer',
  initialState,
  reducers: {
>! some reducers
  },
  extraReducers: (builder) => {
    builder.addMatcher(someApi.endpoints.someEndpoint.matchFulfilled, (state) => {
>! Do something here
    })
  }
});

someEndpoint is being called after someone interacts with a Select input, so they can choose: Option1 => fetch details from someEndpoint => extraReducer gets matchFulfilled and the code runs.
The problem is when the user selects Option2, and then goes back to Option1. In this case the result is taken from the cache and the code won't run. I know I can add refetchOnMountOrArgChange to the query, but that seems a bit hacky. I imagine extraReducers are not meant to be used that way, hence my question, what's the best way to handle such case, ideally without useEffect?


问:
How to configure Intellij Idea to compile files induvidually without building the whole folder?
I am new to IntelliJ, I started using it because it streamlines java coding stuff.

I am currently a student so my main java folder is not a complete project but a collection of different individual java programs like a program for testing ArrayList functionalities, or a specific leet code problem. I have one java folder and many different subfolders depending upon the content.

When I open my java folder with IntelliJ and run one of the files it tries to compile all the java files in the java folder, and I don't want it to do that. How do I configure IntelliJ such that it treats all files within my java folders as individual files and complies only the ones that I want to compile, like blueJ for example?

Note: I have searched for this question but found mostly outdated answers or answers that don't work in my case. I tried the current file option from the top right drop-down but it says class "xxxx" is never used or something like that and that the file is not runnable.


问:
Neo4j - Return Specific Limited-Number of Relationships/Nodes depending on a calculation
How is it possible to return a limited number of nodes/relationships depending on a calculation?

I prepared one example:

Imagine we have 4 users (nodes) who each collect (relationship) 40kg Apples with a created-timestamp. On the other hand, we have a basket (node) which can take 100kg. How is it possible to return only the oldest 3 relationships, because the basket can be filled with those 3 relationships?

In other words:

The sum of collected-kilos of the 3 oldest relationships is over the basket size of 100kg. If we would take only the 2 oldest relationships we would have a sum of collected-kilos of 80, which is too less for the basket. Taking all 4 relationships would result in 160kg, which is far too much.

The background of my question is to reduce the size of query-return. If a query would return all 4 relationships and one would always ignore the 4th relationship, it makes it unneeded beforehand.

Thank you

The schema of the example looks like this:

In Neo4j the relationships/nodes could be created by this:

```<code>create
(_0:`Basket`  {`size`:100}),
(_1:`User`  {`name`:"Franc"}),
(_6:`User`  {`name`:"Peter"}),
(_34:`User`  {`name`:"Betty"}),
(_35:`User`  {`name`:"Rita"}),
(_54:`Fruit` ),
(_1)-[:`COLLECTS` {`created`:"20221206212715",`kilos`:40,`type`:"Apples"}]->(_54),
(_6)-[:`COLLECTS` {`created`:"20221206212417",`kilos`:40,`type`:"Apples"}]->(_54),
(_34)-[:`COLLECTS` {`created`:"20221206212547",`kilos`:40,`type`:"Apples"}]->(_54)
(_35)-[:`COLLECTS` {`created`:"20221206212815",`kilos`:40,`type`:"Apples"}]->(_54)
</code>```

Body:
How is it possible to return a limited number of nodes/relationships depending on a calculation?

I prepared one example:

Imagine we have 4 users (nodes) who each collect (relationship) 40kg Apples with a created-timestamp. On the other hand, we have a basket (node) which can take 100kg. How is it possible to return only the oldest 3 relationships, because the basket can be filled with those 3 relationships?

In other words:

The sum of collected-kilos of the 3 oldest relationships is over the basket size of 100kg. If we would take only the 2 oldest relationships we would have a sum of collected-kilos of 80, which is too less for the basket. Taking all 4 relationships would result in 160kg, which is far too much.

The background of my question is to reduce the size of query-return. If a query would return all 4 relationships and one would always ignore the 4th relationship, it makes it unneeded beforehand.

Thank you

The schema of the example looks like this:

In Neo4j the relationships/nodes could be created by this:

create
(_0:`Basket`  {`size`:100}),
(_1:`User`  {`name`:"Franc"}),
(_6:`User`  {`name`:"Peter"}),
(_34:`User`  {`name`:"Betty"}),
(_35:`User`  {`name`:"Rita"}),
(_54:`Fruit` ),
(_1)-[:`COLLECTS` {`created`:"20221206212715",`kilos`:40,`type`:"Apples"}]->(_54),
(_6)-[:`COLLECTS` {`created`:"20221206212417",`kilos`:40,`type`:"Apples"}]->(_54),
(_34)-[:`COLLECTS` {`created`:"20221206212547",`kilos`:40,`type`:"Apples"}]->(_54)
(_35)-[:`COLLECTS` {`created`:"20221206212815",`kilos`:40,`type`:"Apples"}]->(_54)


问:
Ant design code for customization of each character in Rate component not working in typescript 4.4.4
I have a React project with Typescript 4.4.4. I am using ant design version 4.24.5 in it. I want to use the Rate component provided by ant design where I want to customize each character of the Rate Component. I am trying to use the code provided in the ant design official documentation for the Rate component where I want different character icons in a single Rate component.

Here is the code I copied from the documentation at this link https://ant.design/components/rate#components-rate-demo-character-function but it is not working in typescript:

```<code>import React from 'react';
import { FrownOutlined, MehOutlined, SmileOutlined } from '@ant-design/icons';
import { Rate } from 'antd';

const customIcons: Record<number, React.ReactNode> = {
  1: <FrownOutlined />,
  2: <FrownOutlined />,
  3: <MehOutlined />,
  4: <SmileOutlined />,
  5: <SmileOutlined />,
};

const App: React.FC = () => (
  <>
    <Rate defaultValue={3} character={({ index }: { index: number }) => customIcons[index + 1]} />
  </>
);

export default App;
</code>```

It is giving me the following error:

Type '({ index }: { index: number; }) => React.ReactNode' is not assignable to type 'ReactNode'.
Type '({ index }: { index: number; }) => ReactNode' is missing the following properties from type 'ReactPortal': key, children, type, props  TS2322

Can anyone help me in this regard please?

I tried different solutions trying to make the types become same but I haven't been able to figure out what the problem really is as I am fairly new to typescript.

Body:
I have a React project with Typescript 4.4.4. I am using ant design version 4.24.5 in it. I want to use the Rate component provided by ant design where I want to customize each character of the Rate Component. I am trying to use the code provided in the ant design official documentation for the Rate component where I want different character icons in a single Rate component.

Here is the code I copied from the documentation at this link https://ant.design/components/rate#components-rate-demo-character-function but it is not working in typescript:

import React from 'react';
import { FrownOutlined, MehOutlined, SmileOutlined } from '@ant-design/icons';
import { Rate } from 'antd';

const customIcons: Record<number, React.ReactNode> = {
  1: <FrownOutlined />,
  2: <FrownOutlined />,
  3: <MehOutlined />,
  4: <SmileOutlined />,
  5: <SmileOutlined />,
};

const App: React.FC = () => (
  <>
    <Rate defaultValue={3} character={({ index }: { index: number }) => customIcons[index + 1]} />
  </>
);

export default App;

It is giving me the following error:

Type '({ index }: { index: number; }) => React.ReactNode' is not assignable to type 'ReactNode'.
Type '({ index }: { index: number; }) => ReactNode' is missing the following properties from type 'ReactPortal': key, children, type, props  TS2322

Can anyone help me in this regard please?

I tried different solutions trying to make the types become same but I haven't been able to figure out what the problem really is as I am fairly new to typescript.


问:
thingsboard - Telemetry is being split into 2 mssessages
I am trying to send the following data via tb-gateway mqtt connector

 '{"timestamp": 1670415775, "camera": "testcamera", "alert": "Temperature", "guid": "241ffb1c-5d8f-4959-a34a-02edf32487a1", "highTemp": "false", "temperature": "95.9\u00baF/ 35.5\u00baC", "bottomRightX": 3648, "mask": false, "imgPath": "somedummyurl", "timeSent": 1670415777}'

but it is being split into 2 messages

part1:

 {"timestamp": 1670415775, "camera": "testcamera", "alert": "Temperature", "guid": "241ffb1c-5d8f-4959-a34a-02edf32487a1", "highTemp": "false", "temperature": "95.9\u00baF/ 35.5\u00baC", "bottomRightX": 3648}

part2:

 {"mask": false, "imgPath": "somedummyurl", "timeSent": 1670415777}

I tried setting maxPayloadSizeBytes: 1024 in tb-gateway.yaml, but it splits the message into individual key-value pairs

I have created a rule chain that works only on the full payload.

How to stop this splitting?

How to aggregate this split telemetry and then invoke my further rule chain?

I am using tb-gateway 3.2.1, tb-ce-3.2.1


问:
Azure.Messaging.ServiceBus.ServiceBusException - Creation of ReceivingAmqpLink did not complete in 30000 milliseconds & 'receiver31' is closed
I am new to Azure Service Bus and appreciate any help I can get.
In my current project, using c# and Azure.Messaging.ServiceBus we use an On-Premise server running a "Task Engine" windows service that listens to various queues (including MSMQ) to receive and process messages. We are migrating to Azure Service Bus Queue now.

I implemented ReceiveMessageAsync() method to read and process messages. The connection is persistent because the base class of the Task Engine service is already running in loop. While the below code works fine from my local pc (connected to VPN), it fails with the following error as soon as it's deployed to the on-premise server. The server also uses up all memory and shuts down causing other queues to terminate.

Error messages:
Azure.Messaging.ServiceBus.ServiceBusException: Creation of ReceivingAmqpLink did not complete in 30000 milliseconds. (ServiceTimeout)
Azure.Messaging.ServiceBus.ServiceBusException: 'receiver31' is closed (GeneralError)

Note:
Private Endpoint is enabled on Azure Service Bus and we use token and client credentials to connect to Azure.

All code below works fine locally when run for more than 2 hours and processes messages as soon as they are manually sent to queue using Azure Portal.

Code:

```<code>public **override **void StartUp(ContextBase context)
        {
            // Save the thread context
            base.StartUp(context);

            //Get values from Config
            _tenantId = System.Configuration.ConfigurationManager.AppSettings["tenant-id"];
            _clientId = System.Configuration.ConfigurationManager.AppSettings["client-id"];
            _clientSecret = System.Configuration.ConfigurationManager.AppSettings["client-secret"];
            _servicebusNamespace = System.Configuration.ConfigurationManager.AppSettings["servicebus-namespace"];
            _messageQueueName = System.Configuration.ConfigurationManager.AppSettings["servicebus-inbound-queue"];

            getAzureServiceBusAccess();

            // Set the running flag
            _isRunning = true;
        }
</code>```
```<code>//Called when service is initialized and then when Reset Connection happens due to error
private static void getAzureServiceBusAccess()
        {
            var _token = new ClientSecretCredential(_tenantId, _clientId, _clientSecret);

            var clientOptions = new ServiceBusClientOptions()
            {
                TransportType = ServiceBusTransportType.AmqpWebSockets
            };

            _serviceBusClient = new ServiceBusClient(_servicebusNamespace, _token, clientOptions);
            _serviceBusReceiver = _serviceBusClient.CreateReceiver(_messageQueueName, new ServiceBusReceiverOptions());
        }
</code>```
```<code>public **override **void DoAction()
        {
            // Make sure we haven't shut down
            if (_isRunning)
            {
                // Wait next message
                tryReceiveMessages();
            }
        }
</code>```
```<code>private async void tryReceiveMessages()
        {
            try
            {
                ServiceBusReceivedMessage message = null;
                message = await _serviceBusReceiver.ReceiveMessageAsync();

                if (message != null && _isRunning)
                {
                    try
                    {
                        string _messageBody = message.Body.ToString();
                       // <<Send message body to Task Adapter that adds it to the database and processes the job>>
                        await _serviceBusReceiver.CompleteMessageAsync(message);
                    }
                    catch (ServiceBusException s)
                    {
                        Tracer.RaiseError(Source.AzureSB, "Azure Service Bus Queue resulted in exception when processing message.", s);
                        throw;
                    }
                    catch (Exception ex)
                    {
                        Tracer.RaiseError(Source.AzureSB, "Unexpected error occurred moving task from Azure Service Bus to database; attempting to re-queue message.", ex);
                        if (message != null)
                            await _serviceBusReceiver.AbandonMessageAsync(message);
                    }
                }
            }
            catch (ServiceBusException s)
            {
                tryResetConnections(s);
            }
            catch(Exception ex)
            {
                Tracer.RaiseError(Source.AzureSB, "Azure Service Bus Queue reset connection error.", ex);
                throw;
            }
        }
</code>```
```<code>private void tryResetConnections(Exception exception)
        {
            try
            {
                if (DateTime.Now.Subtract(LastQueueReset).TotalSeconds > 1800)
                {
                    LastQueueReset = DateTime.Now;
                    getAzureServiceBusAccess();
                }
                else
                {
             //Send notification email to dev group
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }
</code>```
```<code>private async void closeAndDisposeConnectionAsync()
        {
            try
            {
                await _serviceBusReceiver.DisposeAsync();
            }
            catch(Exception ex)
            {
                //Do not throw and eat exception - Receiver may have been already disposed
            }

            try
            {
                await _serviceBusClient.DisposeAsync();
            }
            catch (Exception ex)
            {
                //Do not throw and eat exception - Client may have been already disposed
            }
        }
</code>```

We tried to open the network settings on Azure Service Bus to public but that didn't resolve the issue.
I have requested the DevOps team to open ports 443, 5671 and 5672 for AMQPWebSockets and still waiting to hear back to test.

Body:
I am new to Azure Service Bus and appreciate any help I can get.
In my current project, using c# and Azure.Messaging.ServiceBus we use an On-Premise server running a "Task Engine" windows service that listens to various queues (including MSMQ) to receive and process messages. We are migrating to Azure Service Bus Queue now.

I implemented ReceiveMessageAsync() method to read and process messages. The connection is persistent because the base class of the Task Engine service is already running in loop. While the below code works fine from my local pc (connected to VPN), it fails with the following error as soon as it's deployed to the on-premise server. The server also uses up all memory and shuts down causing other queues to terminate.

Error messages:
Azure.Messaging.ServiceBus.ServiceBusException: Creation of ReceivingAmqpLink did not complete in 30000 milliseconds. (ServiceTimeout)
Azure.Messaging.ServiceBus.ServiceBusException: 'receiver31' is closed (GeneralError)

Note:
Private Endpoint is enabled on Azure Service Bus and we use token and client credentials to connect to Azure.

All code below works fine locally when run for more than 2 hours and processes messages as soon as they are manually sent to queue using Azure Portal.

Code:

public **override **void StartUp(ContextBase context)
        {
            // Save the thread context
            base.StartUp(context);

            //Get values from Config
            _tenantId = System.Configuration.ConfigurationManager.AppSettings["tenant-id"];
            _clientId = System.Configuration.ConfigurationManager.AppSettings["client-id"];
            _clientSecret = System.Configuration.ConfigurationManager.AppSettings["client-secret"];
            _servicebusNamespace = System.Configuration.ConfigurationManager.AppSettings["servicebus-namespace"];
            _messageQueueName = System.Configuration.ConfigurationManager.AppSettings["servicebus-inbound-queue"];

            getAzureServiceBusAccess();

            // Set the running flag
            _isRunning = true;
        }

//Called when service is initialized and then when Reset Connection happens due to error
private static void getAzureServiceBusAccess()
        {
            var _token = new ClientSecretCredential(_tenantId, _clientId, _clientSecret);

            var clientOptions = new ServiceBusClientOptions()
            {
                TransportType = ServiceBusTransportType.AmqpWebSockets
            };

            _serviceBusClient = new ServiceBusClient(_servicebusNamespace, _token, clientOptions);
            _serviceBusReceiver = _serviceBusClient.CreateReceiver(_messageQueueName, new ServiceBusReceiverOptions());
        }

public **override **void DoAction()
        {
            // Make sure we haven't shut down
            if (_isRunning)
            {
                // Wait next message
                tryReceiveMessages();
            }
        }

private async void tryReceiveMessages()
        {
            try
            {
                ServiceBusReceivedMessage message = null;
                message = await _serviceBusReceiver.ReceiveMessageAsync();

                if (message != null && _isRunning)
                {
                    try
                    {
                        string _messageBody = message.Body.ToString();
                       // <<Send message body to Task Adapter that adds it to the database and processes the job>>
                        await _serviceBusReceiver.CompleteMessageAsync(message);
                    }
                    catch (ServiceBusException s)
                    {
                        Tracer.RaiseError(Source.AzureSB, "Azure Service Bus Queue resulted in exception when processing message.", s);
                        throw;
                    }
                    catch (Exception ex)
                    {
                        Tracer.RaiseError(Source.AzureSB, "Unexpected error occurred moving task from Azure Service Bus to database; attempting to re-queue message.", ex);
                        if (message != null)
                            await _serviceBusReceiver.AbandonMessageAsync(message);
                    }
                }
            }
            catch (ServiceBusException s)
            {
                tryResetConnections(s);
            }
            catch(Exception ex)
            {
                Tracer.RaiseError(Source.AzureSB, "Azure Service Bus Queue reset connection error.", ex);
                throw;
            }
        }

private void tryResetConnections(Exception exception)
        {
            try
            {
                if (DateTime.Now.Subtract(LastQueueReset).TotalSeconds > 1800)
                {
                    LastQueueReset = DateTime.Now;
                    getAzureServiceBusAccess();
                }
                else
                {
             //Send notification email to dev group
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }

private async void closeAndDisposeConnectionAsync()
        {
            try
            {
                await _serviceBusReceiver.DisposeAsync();
            }
            catch(Exception ex)
            {
                //Do not throw and eat exception - Receiver may have been already disposed
            }

            try
            {
                await _serviceBusClient.DisposeAsync();
            }
            catch (Exception ex)
            {
                //Do not throw and eat exception - Client may have been already disposed
            }
        }

We tried to open the network settings on Azure Service Bus to public but that didn't resolve the issue.
I have requested the DevOps team to open ports 443, 5671 and 5672 for AMQPWebSockets and still waiting to hear back to test.


问:
Python 'len' function
What I wanted was that if the user hasn't written his name, the program would say that he needs to do so.

Here is the code that you need to see:

```<code>window = tk.Tk()
entry = Entry(window,...

if len(entry) == 0:
    print("Please write your username!")
</code>```

Title: Python 'len' function

Body:
What I wanted was that if the user hasn't written his name, the program would say that he needs to do so.

Here is the code that you need to see:

window = tk.Tk()
entry = Entry(window,...

if len(entry) == 0:
    print("Please write your username!")


问:
Is it possible to configure the Mindeo MP725 scanner programmatically?
I'm trying to send/read data via USB, in Windows. Using the library hid\hidapi (python). It is the only one that sees\working with the Mindeo MP725 on the system.

QR Scanner Definition Example:

```<code>{'path': b'\\\\? \HID#VID_27DDD&PID_0103#6&269d9e14&1&0000#{4d1e55b2-f16f-11cf-88cb-00111111000030}\KBD', 'vendor_id': 10205, 'product_id': 259, 'serial_number': 'S/N:E608A04AB4151A4F9C8FA887B58B3D69 Rev: NBRMIAAX1', 'release_number': 259, 'manufacturer_string': '2D BarCode Scanner', 'product_string': '2D BarCode Scanner', 'usage_page': 1, 'usage': 6, 'interface_number': -1}
</code>```

Example of my code:

```<code>import ctypes
import os
ctypes.CDLL(os.path.dirname(__file__) + '\hidapi.dll')
import hid

vid = 0
pid = 0
path = ''

list_device = hid.enumerate()
for i in list_device:
    if i['product_string'] == '2D BarCode Scanner':
        print(i)
        vid = i['vendor_id']
        pid = i['product_id']
        path = i['path']

with hid.Device(path=path) as h:
    h.nonblocking

    # print(f'Device manufacturer: {h.manufacturer}')
    # print(f'Product: {h.product}')
    # print(f'Serial Number: {h.serial}')

    while True:
        d = h.read(255)
        if d:
            print(d)
</code>```

I get an error every time:

```<code>Traceback (most recent call last):
  File "c:\Users\user\Desktop\x64\MP725.py", line 62, in <module>
    d = h.read(255)
        ^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\hid\init__.py", line 163, in read
    size = self.__hidcall(hidapi.hid_read, self.__dev, data, size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\hid\init__.py", line 148, in __hidcall
    raise HIDException(err)
hid.HIDException: ReadFile: (0x00000005) Access denied.
</code>```

Does anyone know how to fix this?

I examined the errors related to accessing the library itself (but I think there is no problem with this, since all other methods work fine)
There is an impression that Windows itself prohibits managing the QR-scanner, as the device and the driver identifies it in the group together with keyboards and other input devices which can't be managed.

Body:
I'm trying to send/read data via USB, in Windows. Using the library hid\hidapi (python). It is the only one that sees\working with the Mindeo MP725 on the system.

QR Scanner Definition Example:

{'path': b'\\\\? \HID#VID_27DDD&PID_0103#6&269d9e14&1&0000#{4d1e55b2-f16f-11cf-88cb-00111111000030}\KBD', 'vendor_id': 10205, 'product_id': 259, 'serial_number': 'S/N:E608A04AB4151A4F9C8FA887B58B3D69 Rev: NBRMIAAX1', 'release_number': 259, 'manufacturer_string': '2D BarCode Scanner', 'product_string': '2D BarCode Scanner', 'usage_page': 1, 'usage': 6, 'interface_number': -1}

Example of my code:

import ctypes
import os
ctypes.CDLL(os.path.dirname(__file__) + '\hidapi.dll')
import hid

vid = 0
pid = 0
path = ''

list_device = hid.enumerate()
for i in list_device:
    if i['product_string'] == '2D BarCode Scanner':
        print(i)
        vid = i['vendor_id']
        pid = i['product_id']
        path = i['path']

with hid.Device(path=path) as h:
    h.nonblocking

    # print(f'Device manufacturer: {h.manufacturer}')
    # print(f'Product: {h.product}')
    # print(f'Serial Number: {h.serial}')

    while True:
        d = h.read(255)
        if d:
            print(d)

I get an error every time:

Traceback (most recent call last):
  File "c:\Users\user\Desktop\x64\MP725.py", line 62, in <module>
    d = h.read(255)
        ^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\hid\init__.py", line 163, in read
    size = self.__hidcall(hidapi.hid_read, self.__dev, data, size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\hid\init__.py", line 148, in __hidcall
    raise HIDException(err)
hid.HIDException: ReadFile: (0x00000005) Access denied.

Does anyone know how to fix this?

I examined the errors related to accessing the library itself (but I think there is no problem with this, since all other methods work fine)
There is an impression that Windows itself prohibits managing the QR-scanner, as the device and the driver identifies it in the group together with keyboards and other input devices which can't be managed.


问:
Cloudflare API: unknown rate limit for creating for mass zone creation via API
Tried to create 400 new zones on Cloudflare via its API, like this:

curl -X POST "https://api.cloudflare.com/client/v4/zones" \ -H "X-Auth-Email: user@example.com" \ -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \ -H "Content-Type: application/json" \ --data '{"name":"example.com","account":{"id":"01a7362d577a6c3019a474fd6f485823"},"type":"full"}'

Managed to add 172 successfully, then got an error 1117:

Error screenshot

Does anyone know the maximum number of zone creation requests per hour that can be sent via the API?

Found a message about 11 (?) and 30 - .
In the list of errors in the dock (https://support.cloudflare.com/hc/en-us/articles/360029779472-Troubleshooting-Cloudflare-1XXX-errors) 1117 is simply missing.

Any ideas?


问:
Getting java.lang.NoSuchMethodError while accessing v3/api-docs
I am using Open api 1.6.12, swagger ui 4.1.3 and swagger core 2.1.12
Here is the log:
<code>{"time": "2022-12-07 11:27:08,090","level": "ERROR","transactionId": "","source": "reactor.core.scheduler.Schedulers:315","thread": "parallel-3","class": "reactor.core.scheduler.Schedulers","message": "Scheduler worker in group main failed with an uncaught exception", "stack_trace":"java.lang.NoSuchMethodError: 'io.swagger.v3.oas.models.media.Schema io.swagger.v3.oas.models.media.Schema.addProperty(java.lang.String, io.swagger.v3.oas.models.media.Schema)'    at org.springdoc.core.RequestBodyInfo.addProperties(RequestBodyInfo.java:91)    at org.springdoc.core.GenericParameterService.calculateRequestBodySchema(GenericParameterService.java:390)  at org.springdoc.core.GenericParameterService.calculateSchema(GenericParameterService.java:352) at org.springdoc.core.RequestBodyService.buildRequestBody(RequestBodyService.java:275)  at org.springdoc.core.RequestBodyService.calculateRequestBodyInfo(RequestBodyService.java:251)  at org.springdoc.core.AbstractRequestService.build(AbstractRequestService.java:313) at org.springdoc.api.AbstractOpenApiResource.calculatePath(AbstractOpenApiResource.java:471)    at org.springdoc.api.AbstractOpenApiResource.calculatePath(AbstractOpenApiResource.java:633)    at org.springdoc.webflux.api.OpenApiResource.lambda$calculatePath$5(OpenApiResource.java:210)   at java.base/java.util.Optional.ifPresent(Optional.java:178)    at org.springdoc.webflux.api.OpenApiResource.calculatePath(OpenApiResource.java:192)    at org.springdoc.webflux.api.OpenApiResource.lambda$getPaths$0(OpenApiResource.java:175)    at java.base/java.util.Optional.ifPresent(Optional.java:178)    at org.springdoc.webflux.api.OpenApiResource.getPaths(OpenApiResource.java:167) at org.springdoc.api.AbstractOpenApiResource.getOpenApi(AbstractOpenApiResource.java:332)   at org.springdoc.webflux.api.OpenApiResource.openapiJson(OpenApiResource.java:136)  at org.springdoc.webflux.api.OpenApiWebfluxResource.openapiJson(OpenApiWebfluxResource.java:117)    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568)   at org.springframework.web.reactive.result.method.InvocableHandlerMethod.lambda$invoke$0(InvocableHandlerMethod.java:144)   at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:125)  at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.MonoZip$ZipCoordinator.signal(MonoZip.java:251)   at reactor.core.publisher.MonoZip$ZipInner.onNext(MonoZip.java:336) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180) at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.request(MonoPeekTerminal.java:139)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.MonoZip$ZipInner.onSubscribe(MonoZip.java:325)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onSubscribe(MonoPeekTerminal.java:152)    at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.MonoZip.subscribe(MonoZip.java:128)   at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:240)  at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onComplete(MonoIgnoreThen.java:203) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onComplete(ScopePassingSpanSubscriber.java:103)   at reactor.core.publisher.MonoFlatMap$FlatMapMain.onComplete(MonoFlatMap.java:181)  at reactor.core.publisher.Operators.complete(Operators.java:137)    at reactor.core.publisher.MonoZip.subscribe(MonoZip.java:120)   at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:263)  at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:82)  at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.innerNext(FluxConcatMap.java:282)    at reactor.core.publisher.FluxConcatMap$ConcatMapInner.onNext(FluxConcatMap.java:863)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:127)    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180) at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.request(MonoPeekTerminal.java:139)    at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request(FluxMapFuseable.java:169)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)    at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe(FluxMapFuseable.java:96)    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onSubscribe(MonoPeekTerminal.java:152)    at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.drain(FluxConcatMap.java:451)    at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.onSubscribe(FluxConcatMap.java:219)  at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:165) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:87)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)    at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onComplete(FluxMapFuseable.java:150)    at reactor.core.publisher.MonoFlatMap$FlatMapMain.secondComplete(MonoFlatMap.java:196)  at reactor.core.publisher.MonoFlatMap$FlatMapInner.onComplete(MonoFlatMap.java:268) at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:148)  at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.MonoCacheTime.subscribeOrReturn(MonoCacheTime.java:151)   at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onNext(FluxFilterFuseable.java:118)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.request(FluxFilterFuseable.java:191)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe(MonoFlatMap.java:110) at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onSubscribe(FluxFilterFuseable.java:87)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoCurrentContext.subscribe(MonoCurrentContext.java:36)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)    at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:85)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onComplete(ScopePassingSpanSubscriber.java:103)   at reactor.core.publisher.Operators.complete(Operators.java:137)    at reactor.core.publisher.MonoEmpty.subscribe(MonoEmpty.java:46)    at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.MonoFlatMap$FlatMapMain.onComplete(MonoFlatMap.java:181)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.secondComplete(MonoFlatMap.java:196)  at reactor.core.publisher.MonoFlatMap$FlatMapInner.onComplete(MonoFlatMap.java:268) at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:148)  at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.MonoCacheTime.subscribeOrReturn(MonoCacheTime.java:151)   at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onNext(FluxFilterFuseable.java:118)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.request(FluxFilterFuseable.java:191)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe(MonoFlatMap.java:110) at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onSubscribe(FluxFilterFuseable.java:87)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoCurrentContext.subscribe(MonoCurrentContext.java:36)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onComplete(MonoPeekTerminal.java:299) at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onComplete(MonoPeekTerminal.java:299) at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:148)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at reactor.core.publisher.FluxFilter$FilterSubscriber.onNext(FluxFilter.java:113)   at reactor.core.publisher.FluxDefaultIfEmpty$DefaultIfEmptySubscriber.onNext(FluxDefaultIfEmpty.java:101)   at reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:82)  at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.innerNext(FluxConcatMap.java:282)    at reactor.core.publisher.FluxConcatMap$ConcatMapInner.onNext(FluxConcatMap.java:863)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)  at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:120)    at reactor.core.publisher.FluxFilter$FilterSubscriber.onNext(FluxFilter.java:113)   at reactor.core.publisher.FluxPeekFuseable$PeekConditionalSubscriber.onNext(FluxPeekFuseable.java:854)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:82)  at reactor.core.publisher.FluxFilter$FilterSubscriber.onNext(FluxFilter.java:113)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.tryEmitScalar(FluxFlatMap.java:488)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:421)  at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:210) at reactor.core.publisher.FluxIterable$IterableSubscription.slowPath(FluxIterable.java:272) at reactor.core.publisher.FluxIterable$IterableSubscription.request(FluxIterable.java:230)  at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.request(FluxPeekFuseable.java:144)    at reactor.core.publisher.FluxFlatMap$FlatMapMain.onSubscribe(FluxFlatMap.java:371) at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onSubscribe(FluxPeekFuseable.java:178)    at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:165) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:87)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.drain(FluxConcatMap.java:451)    at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.onSubscribe(FluxConcatMap.java:219)  at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:165) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:87)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:263)  at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.FluxFilter$FilterSubscriber.onComplete(FluxFilter.java:166)   at reactor.core.publisher.FluxPeekFuseable$PeekConditionalSubscriber.onComplete(FluxPeekFuseable.java:940)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:85)   at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2400) at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)    at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)    at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.MonoNext$NextSubscriber.onComplete(MonoNext.java:102) at reactor.core.publisher.FluxFilter$FilterSubscriber.onComplete(FluxFilter.java:166)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:846) at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:608)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:588)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.onComplete(FluxFlatMap.java:465)  at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onComplete(FluxPeekFuseable.java:277) at reactor.core.publisher.FluxIterable$IterableSubscription.slowPath(FluxIterable.java:294) at reactor.core.publisher.FluxIterable$IterableSubscription.request(FluxIterable.java:230)  at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.request(FluxPeekFuseable.java:144)    at reactor.core.publisher.FluxFlatMap$FlatMapMain.onSubscribe(FluxFlatMap.java:371) at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onSubscribe(FluxPeekFuseable.java:178)    at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:165) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:87)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.FluxDefaultIfEmpty$DefaultIfEmptySubscriber.onComplete(FluxDefaultIfEmpty.java:109)   at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:142)    at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:142)    at reactor.core.publisher.FluxFilter$FilterSubscriber.onComplete(FluxFilter.java:166)   at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete(FluxMap.java:269) at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1817)    at reactor.core.publisher.MonoCacheTime$CoordinatorSubscriber.signalCached(MonoCacheTime.java:337)  at reactor.core.publisher.MonoCacheTime$CoordinatorSubscriber.onNext(MonoCacheTime.java:354)    at reactor.core.publisher.FluxPeek$PeekSubscriber.onNext(FluxPeek.java:200) at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.MonoPublishOn$PublishOnSubscriber.run(MonoPublishOn.java:181) at org.springframework.cloud.sleuth.instrument.reactor.ReactorSleuth.lambda$null$6(ReactorSleuth.java:324)  at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)   at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)    at java.base/java.lang.Thread.run(Thread.java:833)", "trace": "", "span": "", "type": "services-medication-applog"} </code></p>
<p>I can see there is no addProperty in Schema class. How can I resolve this?</p>

Body:
I am using Open api 1.6.12, swagger ui 4.1.3 and swagger core 2.1.12
Here is the log:
{"time": "2022-12-07 11:27:08,090","level": "ERROR","transactionId": "","source": "reactor.core.scheduler.Schedulers:315","thread": "parallel-3","class": "reactor.core.scheduler.Schedulers","message": "Scheduler worker in group main failed with an uncaught exception", "stack_trace":"java.lang.NoSuchMethodError: 'io.swagger.v3.oas.models.media.Schema io.swagger.v3.oas.models.media.Schema.addProperty(java.lang.String, io.swagger.v3.oas.models.media.Schema)'    at org.springdoc.core.RequestBodyInfo.addProperties(RequestBodyInfo.java:91)    at org.springdoc.core.GenericParameterService.calculateRequestBodySchema(GenericParameterService.java:390)  at org.springdoc.core.GenericParameterService.calculateSchema(GenericParameterService.java:352) at org.springdoc.core.RequestBodyService.buildRequestBody(RequestBodyService.java:275)  at org.springdoc.core.RequestBodyService.calculateRequestBodyInfo(RequestBodyService.java:251)  at org.springdoc.core.AbstractRequestService.build(AbstractRequestService.java:313) at org.springdoc.api.AbstractOpenApiResource.calculatePath(AbstractOpenApiResource.java:471)    at org.springdoc.api.AbstractOpenApiResource.calculatePath(AbstractOpenApiResource.java:633)    at org.springdoc.webflux.api.OpenApiResource.lambda$calculatePath$5(OpenApiResource.java:210)   at java.base/java.util.Optional.ifPresent(Optional.java:178)    at org.springdoc.webflux.api.OpenApiResource.calculatePath(OpenApiResource.java:192)    at org.springdoc.webflux.api.OpenApiResource.lambda$getPaths$0(OpenApiResource.java:175)    at java.base/java.util.Optional.ifPresent(Optional.java:178)    at org.springdoc.webflux.api.OpenApiResource.getPaths(OpenApiResource.java:167) at org.springdoc.api.AbstractOpenApiResource.getOpenApi(AbstractOpenApiResource.java:332)   at org.springdoc.webflux.api.OpenApiResource.openapiJson(OpenApiResource.java:136)  at org.springdoc.webflux.api.OpenApiWebfluxResource.openapiJson(OpenApiWebfluxResource.java:117)    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568)   at org.springframework.web.reactive.result.method.InvocableHandlerMethod.lambda$invoke$0(InvocableHandlerMethod.java:144)   at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:125)  at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.MonoZip$ZipCoordinator.signal(MonoZip.java:251)   at reactor.core.publisher.MonoZip$ZipInner.onNext(MonoZip.java:336) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180) at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.request(MonoPeekTerminal.java:139)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.MonoZip$ZipInner.onSubscribe(MonoZip.java:325)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onSubscribe(MonoPeekTerminal.java:152)    at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.MonoZip.subscribe(MonoZip.java:128)   at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:240)  at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.onComplete(MonoIgnoreThen.java:203) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onComplete(ScopePassingSpanSubscriber.java:103)   at reactor.core.publisher.MonoFlatMap$FlatMapMain.onComplete(MonoFlatMap.java:181)  at reactor.core.publisher.Operators.complete(Operators.java:137)    at reactor.core.publisher.MonoZip.subscribe(MonoZip.java:120)   at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:263)  at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:82)  at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.innerNext(FluxConcatMap.java:282)    at reactor.core.publisher.FluxConcatMap$ConcatMapInner.onNext(FluxConcatMap.java:863)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:127)    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180) at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.request(MonoPeekTerminal.java:139)    at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.request(FluxMapFuseable.java:169)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)    at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onSubscribe(FluxMapFuseable.java:96)    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onSubscribe(MonoPeekTerminal.java:152)    at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.drain(FluxConcatMap.java:451)    at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.onSubscribe(FluxConcatMap.java:219)  at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:165) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:87)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)    at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onComplete(FluxMapFuseable.java:150)    at reactor.core.publisher.MonoFlatMap$FlatMapMain.secondComplete(MonoFlatMap.java:196)  at reactor.core.publisher.MonoFlatMap$FlatMapInner.onComplete(MonoFlatMap.java:268) at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:148)  at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.MonoCacheTime.subscribeOrReturn(MonoCacheTime.java:151)   at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onNext(FluxFilterFuseable.java:118)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.request(FluxFilterFuseable.java:191)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe(MonoFlatMap.java:110) at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onSubscribe(FluxFilterFuseable.java:87)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoCurrentContext.subscribe(MonoCurrentContext.java:36)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)    at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)    at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:85)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onComplete(ScopePassingSpanSubscriber.java:103)   at reactor.core.publisher.Operators.complete(Operators.java:137)    at reactor.core.publisher.MonoEmpty.subscribe(MonoEmpty.java:46)    at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.MonoFlatMap$FlatMapMain.onComplete(MonoFlatMap.java:181)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.secondComplete(MonoFlatMap.java:196)  at reactor.core.publisher.MonoFlatMap$FlatMapInner.onComplete(MonoFlatMap.java:268) at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:148)  at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.MonoCacheTime.subscribeOrReturn(MonoCacheTime.java:151)   at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:57)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onNext(FluxFilterFuseable.java:118)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2398) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.request(ScopePassingSpanSubscriber.java:75)   at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.request(FluxFilterFuseable.java:191)  at reactor.core.publisher.MonoFlatMap$FlatMapMain.onSubscribe(MonoFlatMap.java:110) at reactor.core.publisher.FluxFilterFuseable$FilterFuseableSubscriber.onSubscribe(FluxFilterFuseable.java:87)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onSubscribe(ScopePassingSpanSubscriber.java:68)   at reactor.core.publisher.MonoCurrentContext.subscribe(MonoCurrentContext.java:36)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onComplete(MonoPeekTerminal.java:299) at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onComplete(MonoPeekTerminal.java:299) at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:148)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at reactor.core.publisher.FluxFilter$FilterSubscriber.onNext(FluxFilter.java:113)   at reactor.core.publisher.FluxDefaultIfEmpty$DefaultIfEmptySubscriber.onNext(FluxDefaultIfEmpty.java:101)   at reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:82)  at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.innerNext(FluxConcatMap.java:282)    at reactor.core.publisher.FluxConcatMap$ConcatMapInner.onNext(FluxConcatMap.java:863)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:151)  at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:120)    at reactor.core.publisher.FluxFilter$FilterSubscriber.onNext(FluxFilter.java:113)   at reactor.core.publisher.FluxPeekFuseable$PeekConditionalSubscriber.onNext(FluxPeekFuseable.java:854)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at reactor.core.publisher.MonoNext$NextSubscriber.onNext(MonoNext.java:82)  at reactor.core.publisher.FluxFilter$FilterSubscriber.onNext(FluxFilter.java:113)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.tryEmitScalar(FluxFlatMap.java:488)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:421)  at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:210) at reactor.core.publisher.FluxIterable$IterableSubscription.slowPath(FluxIterable.java:272) at reactor.core.publisher.FluxIterable$IterableSubscription.request(FluxIterable.java:230)  at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.request(FluxPeekFuseable.java:144)    at reactor.core.publisher.FluxFlatMap$FlatMapMain.onSubscribe(FluxFlatMap.java:371) at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onSubscribe(FluxPeekFuseable.java:178)    at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:165) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:87)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.drain(FluxConcatMap.java:451)    at reactor.core.publisher.FluxConcatMap$ConcatMapImmediate.onSubscribe(FluxConcatMap.java:219)  at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:165) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:87)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.subscribeNext(MonoIgnoreThen.java:263)  at reactor.core.publisher.MonoIgnoreThen.subscribe(MonoIgnoreThen.java:51)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.FluxFilter$FilterSubscriber.onComplete(FluxFilter.java:166)   at reactor.core.publisher.FluxPeekFuseable$PeekConditionalSubscriber.onComplete(FluxPeekFuseable.java:940)  at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:85)   at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2400) at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2194)    at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2068)    at reactor.core.publisher.MonoJust.subscribe(MonoJust.java:55)  at reactor.core.publisher.Mono.subscribe(Mono.java:4400)    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82)   at reactor.core.publisher.MonoNext$NextSubscriber.onComplete(MonoNext.java:102) at reactor.core.publisher.FluxFilter$FilterSubscriber.onComplete(FluxFilter.java:166)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.checkTerminated(FluxFlatMap.java:846) at reactor.core.publisher.FluxFlatMap$FlatMapMain.drainLoop(FluxFlatMap.java:608)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.drain(FluxFlatMap.java:588)   at reactor.core.publisher.FluxFlatMap$FlatMapMain.onComplete(FluxFlatMap.java:465)  at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onComplete(FluxPeekFuseable.java:277) at reactor.core.publisher.FluxIterable$IterableSubscription.slowPath(FluxIterable.java:294) at reactor.core.publisher.FluxIterable$IterableSubscription.request(FluxIterable.java:230)  at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.request(FluxPeekFuseable.java:144)    at reactor.core.publisher.FluxFlatMap$FlatMapMain.onSubscribe(FluxFlatMap.java:371) at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onSubscribe(FluxPeekFuseable.java:178)    at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:165) at reactor.core.publisher.FluxIterable.subscribe(FluxIterable.java:87)  at reactor.core.publisher.InternalMonoOperator.subscribe(InternalMonoOperator.java:64)  at reactor.core.publisher.MonoDefer.subscribe(MonoDefer.java:52)    at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:157)  at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1816)    at reactor.core.publisher.FluxDefaultIfEmpty$DefaultIfEmptySubscriber.onComplete(FluxDefaultIfEmpty.java:109)   at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:142)    at reactor.core.publisher.FluxMap$MapSubscriber.onComplete(FluxMap.java:142)    at reactor.core.publisher.FluxFilter$FilterSubscriber.onComplete(FluxFilter.java:166)   at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onComplete(FluxMap.java:269) at reactor.core.publisher.Operators$MonoSubscriber.complete(Operators.java:1817)    at reactor.core.publisher.MonoCacheTime$CoordinatorSubscriber.signalCached(MonoCacheTime.java:337)  at reactor.core.publisher.MonoCacheTime$CoordinatorSubscriber.onNext(MonoCacheTime.java:354)    at reactor.core.publisher.FluxPeek$PeekSubscriber.onNext(FluxPeek.java:200) at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:74)   at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.MonoPeekTerminal$MonoTerminalPeekSubscriber.onNext(MonoPeekTerminal.java:180) at org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:89)    at reactor.core.publisher.MonoPublishOn$PublishOnSubscriber.run(MonoPublishOn.java:181) at org.springframework.cloud.sleuth.instrument.reactor.ReactorSleuth.lambda$null$6(ReactorSleuth.java:324)  at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)   at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)    at java.base/java.lang.Thread.run(Thread.java:833)", "trace": "", "span": "", "type": "services-medication-applog"}

I can see there is no addProperty in Schema class. How can I resolve this?


问:
How to control text overflow in Flutter when using a Text widget in a dropdown?
I'm using the next piece of code to render an item for a Dropdown component on Flutter web:

```<code>  Widget _getColorInfo(int color, String text) {
    return Row(
      children: [
        Container(
          width: 10,
          height: 10,
          decoration: BoxDecoration(
            color: Color(color),
            borderRadius: BorderRadius.circular(5),
          ),
        ),
        const SizedBox(width: 5),
        Text(
            text,
            style: TextStyle(
              color: Color(color),
              overflow: TextOverflow.ellipsis,
              fontWeight: FontWeight.bold,
              fontSize: ShapeStyle.standardFontSize,
            ),
          ),
      ],
    );
  }

</code>```

Now the problem is that if I do not use Flex or Expanded the widget will not recognize the overflow:

Overflow on the selected item

And the dropdown is working:

Overflow on the expanded panel

Now, if I use Flex the overflow is now recognized by the main component:

```<code>Flexible(
          child: Text(
            text,
            style: TextStyle(
              color: Color(color),
              overflow: TextOverflow.ellipsis,
              fontWeight: FontWeight.bold,
              fontSize: ShapeStyle.standardFontSize,
            ),
          ),
        ),

</code>```

Overlfow handled on the selected item

But now the dropdown is not working since it detects the 'size' property is missing:

Error on the expanded panel of the dropdown

Here is the error:

Image of the error

The problem is that I can't use the size of the screen to determine how much width is the component taking since all the other components are being expanded dynamically, so it will break the UI symmetry. Is there any other way to control the overflow when using a dropdown or something to differentiate the dropdown panel from the selected item so I can apply different strategies like using a fixed width for the dropdown panel and a Flex for the selected item?

I have already tried using Flex, Expanded, try catch, Wrap, ConstrainedBox, third party packages... nothing solved the problem.

UPDATE

Here is the full code of the component:

```<code>
class ColorSelect extends StatelessWidget {
  final AgendaFormHandler form;
  final int? defaultColor;
  final Map<String, int> elements = {
    'Team 1': 0xFFFEC000,
    'Team 2': 0xFF65CBFD,
    'Team 3': 0xFFF2B085,
    'Team 4': 0xFF01AE51,
    'USO': 0xFF3764F7,
    'Financiero': 0xFF702FA0,
    'Procesos': 0xFF8FA9DA,
    'TI': 0xFFFF7C81,
    'Alterno 1': 0xFF00F3EB,
    'Alterno 2': 0xFFA46B6B,
    'Alterno 3': 0xFFDCBFB2,
    'Alterno 4': 0xFFEF5CEF,
    'Alterno 5': 0xFFC5D89F,
  };

  ColorSelect({super.key, required this.form, this.defaultColor});
  @override
  Widget build(BuildContext context) {
    return SimpleSelectInput<int>(
      title: 'Color',
      customEmptyText: 'Ninguno',
      activeOption: form.getValue<int?>('color') ?? defaultColor ?? 0xFFFEC000,
      onOptionSelected: (color) {
        form.updateValue('color', color);
      },
      options: List<SelectItem<int>>.from(elements.keys.map((key) {
        return SelectItem(
          value: elements[key]!,
          text: key,
          label: _getColorInfo(elements[key]!, key),
        );
      })),
    );
  }

  Widget _getColorInfo(int color, String text) {
    return Row(
      children: [
        Container(
          width: 10,
          height: 10,
          decoration: BoxDecoration(
            color: Color(color),
            borderRadius: BorderRadius.circular(5),
          ),
        ),
        const SizedBox(width: 5),
        Flexible(
          fit: FlexFit.tight,
          child: Text(
            text,
            style: TextStyle(
              color: Color(color),
              overflow: TextOverflow.ellipsis,
              fontWeight: FontWeight.bold,
              fontSize: ShapeStyle.standardFontSize,
            ),
          ),
        ),
      ],
    );
  }
}
</code>```

Here is the code of the SimpleSelectInput

```<code>
/// A class to create a new option entry for the [SimpleSelectInput]
/// component with [T] as the datatype for the [value] and [String]
/// for the [label]
class SelectItem<T> {
  final T value;

  /// This text is only to be able to compare the content of the
  /// input when applying any search filter. So, the same you put
  /// in the [label] property is the one you should put here.
  final String text;
  final Widget? label;

  SelectItem({
    required this.value,
    this.label,
    required this.text,
  });
}

/// A simple input with a bottom border and a blue title with
/// [T] as the value datatype for the dropdown options.
class SimpleSelectInput<T> extends StatelessWidget {
  /// The options to be displayed in the dropdown
  final List<SelectItem<T>> options;

  /// The item to be rendered as the default selected item
  final T activeOption;
  final Function(T?) onOptionSelected;
  final String Function(T?)? validator;
  final String? title;
  /// The text to be displayed when no option is selected
  final String? customEmptyText;
  final bool shouldDecorate;
  final bool showSearchBox;

  const SimpleSelectInput({
    super.key,
    required this.options,
    required this.activeOption,
    required this.onOptionSelected,
    this.title,
    this.validator,
    this.shouldDecorate = true,
    this.showSearchBox = false,
    this.customEmptyText = '-- Seleccione --',
  });

  @override
  Widget build(BuildContext context) {
    if (activeOption == null) {
        return Container();
    }

    // If there is no opportunity it will raise an error.
    // TODO: check if it's ok to raise the BadState error.
    late final SelectItem<T>? selectedOption;

    try {
      selectedOption = options.firstWhere(
        (SelectItem<T> option) {
          return option.value == activeOption;
        },
      );
    } catch (_) {
      selectedOption = null;
    }

    return DropdownSearch<SelectItem<T>>(
      items: options,
      selectedItem: selectedOption,
      filterFn: (item, filter) {
        return item.text.toLowerCase().contains(filter.toLowerCase());
      },
      dropdownButtonProps: const DropdownButtonProps(
        focusColor: ColorStyle.blue,
        color: Colors.black,
        icon: Icon(
          Icons.arrow_drop_down,
          size: ShapeStyle.standardFontSize * 1.4,
        ),
      ),
      dropdownBuilder: (context, value) {
        return value?.label ??
            Text(
              customEmptyText ?? '-- Seleccione --',
              style: const TextStyle(
                fontSize: ShapeStyle.standardFontSize,
              ),
            );
      },
      validator: (selected) {
        return validator?.call(selected?.value);
      },
      popupProps: PopupPropsMultiSelection.menu(
        showSearchBox: showSearchBox,
        showSelectedItems: true,
        itemBuilder: _itemBuilder,
        searchFieldProps: const TextFieldProps(
          scrollPadding: EdgeInsets.zero,
          style: TextStyle(
            color: ColorStyle.blue,
            fontSize: ShapeStyle.standardFontSize,
          ),
        ),
      ),
      compareFn: (i, s) => i.value == s.value,
      dropdownDecoratorProps: DropDownDecoratorProps(
        dropdownSearchDecoration: InputDecoration(
          fillColor: Colors.black,
          border: shouldDecorate ? null : InputBorder.none,
          labelStyle: const TextStyle(
            color: ColorStyle.blue,
            fontSize: ShapeStyle.standardFontSize * 1.4,
          ),
          label: title != null
              ? Text(
                  title!,
                  style: const TextStyle(
                    fontSize: ShapeStyle.standardFontSize * 1.4,
                  ),
                )
              : null,
        ),
      ),
      onChanged: (x) => onOptionSelected(x?.value),
    );
  }

  Widget _itemBuilder(
      BuildContext context, SelectItem<T> item, bool isSelected) {
    final size = MediaQuery.of(context).size;
    return Container(
      width: size.width,
      padding: const EdgeInsets.symmetric(
        vertical: 12.0,
        horizontal: 8.0,
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          item.label ??
              Text(
                item.text,
                style: const TextStyle(
                  color: Colors.black,
                  fontSize: ShapeStyle.standardFontSize,
                ),
              ),
          // a check icon
          if (isSelected)
            const Icon(
              Icons.check,
              color: Colors.green,
              size: ShapeStyle.standardIconSize,
            ),
        ],
      ),
    );
  }
}
</code>```

Body:
I'm using the next piece of code to render an item for a Dropdown component on Flutter web:

  Widget _getColorInfo(int color, String text) {
    return Row(
      children: [
        Container(
          width: 10,
          height: 10,
          decoration: BoxDecoration(
            color: Color(color),
            borderRadius: BorderRadius.circular(5),
          ),
        ),
        const SizedBox(width: 5),
        Text(
            text,
            style: TextStyle(
              color: Color(color),
              overflow: TextOverflow.ellipsis,
              fontWeight: FontWeight.bold,
              fontSize: ShapeStyle.standardFontSize,
            ),
          ),
      ],
    );
  }

Now the problem is that if I do not use Flex or Expanded the widget will not recognize the overflow:

Overflow on the selected item

And the dropdown is working:

Overflow on the expanded panel

Now, if I use Flex the overflow is now recognized by the main component:

Flexible(
          child: Text(
            text,
            style: TextStyle(
              color: Color(color),
              overflow: TextOverflow.ellipsis,
              fontWeight: FontWeight.bold,
              fontSize: ShapeStyle.standardFontSize,
            ),
          ),
        ),

Overlfow handled on the selected item

But now the dropdown is not working since it detects the 'size' property is missing:

Error on the expanded panel of the dropdown

Here is the error:

Image of the error

The problem is that I can't use the size of the screen to determine how much width is the component taking since all the other components are being expanded dynamically, so it will break the UI symmetry. Is there any other way to control the overflow when using a dropdown or something to differentiate the dropdown panel from the selected item so I can apply different strategies like using a fixed width for the dropdown panel and a Flex for the selected item?

I have already tried using Flex, Expanded, try catch, Wrap, ConstrainedBox, third party packages... nothing solved the problem.

UPDATE

Here is the full code of the component:

class ColorSelect extends StatelessWidget {
  final AgendaFormHandler form;
  final int? defaultColor;
  final Map<String, int> elements = {
    'Team 1': 0xFFFEC000,
    'Team 2': 0xFF65CBFD,
    'Team 3': 0xFFF2B085,
    'Team 4': 0xFF01AE51,
    'USO': 0xFF3764F7,
    'Financiero': 0xFF702FA0,
    'Procesos': 0xFF8FA9DA,
    'TI': 0xFFFF7C81,
    'Alterno 1': 0xFF00F3EB,
    'Alterno 2': 0xFFA46B6B,
    'Alterno 3': 0xFFDCBFB2,
    'Alterno 4': 0xFFEF5CEF,
    'Alterno 5': 0xFFC5D89F,
  };

  ColorSelect({super.key, required this.form, this.defaultColor});
  @override
  Widget build(BuildContext context) {
    return SimpleSelectInput<int>(
      title: 'Color',
      customEmptyText: 'Ninguno',
      activeOption: form.getValue<int?>('color') ?? defaultColor ?? 0xFFFEC000,
      onOptionSelected: (color) {
        form.updateValue('color', color);
      },
      options: List<SelectItem<int>>.from(elements.keys.map((key) {
        return SelectItem(
          value: elements[key]!,
          text: key,
          label: _getColorInfo(elements[key]!, key),
        );
      })),
    );
  }

  Widget _getColorInfo(int color, String text) {
    return Row(
      children: [
        Container(
          width: 10,
          height: 10,
          decoration: BoxDecoration(
            color: Color(color),
            borderRadius: BorderRadius.circular(5),
          ),
        ),
        const SizedBox(width: 5),
        Flexible(
          fit: FlexFit.tight,
          child: Text(
            text,
            style: TextStyle(
              color: Color(color),
              overflow: TextOverflow.ellipsis,
              fontWeight: FontWeight.bold,
              fontSize: ShapeStyle.standardFontSize,
            ),
          ),
        ),
      ],
    );
  }
}

Here is the code of the SimpleSelectInput

/// A class to create a new option entry for the [SimpleSelectInput]
/// component with [T] as the datatype for the [value] and [String]
/// for the [label]
class SelectItem<T> {
  final T value;

  /// This text is only to be able to compare the content of the
  /// input when applying any search filter. So, the same you put
  /// in the [label] property is the one you should put here.
  final String text;
  final Widget? label;

  SelectItem({
    required this.value,
    this.label,
    required this.text,
  });
}

/// A simple input with a bottom border and a blue title with
/// [T] as the value datatype for the dropdown options.
class SimpleSelectInput<T> extends StatelessWidget {
  /// The options to be displayed in the dropdown
  final List<SelectItem<T>> options;

  /// The item to be rendered as the default selected item
  final T activeOption;
  final Function(T?) onOptionSelected;
  final String Function(T?)? validator;
  final String? title;
  /// The text to be displayed when no option is selected
  final String? customEmptyText;
  final bool shouldDecorate;
  final bool showSearchBox;

  const SimpleSelectInput({
    super.key,
    required this.options,
    required this.activeOption,
    required this.onOptionSelected,
    this.title,
    this.validator,
    this.shouldDecorate = true,
    this.showSearchBox = false,
    this.customEmptyText = '-- Seleccione --',
  });

  @override
  Widget build(BuildContext context) {
    if (activeOption == null) {
        return Container();
    }

    // If there is no opportunity it will raise an error.
    // TODO: check if it's ok to raise the BadState error.
    late final SelectItem<T>? selectedOption;

    try {
      selectedOption = options.firstWhere(
        (SelectItem<T> option) {
          return option.value == activeOption;
        },
      );
    } catch (_) {
      selectedOption = null;
    }

    return DropdownSearch<SelectItem<T>>(
      items: options,
      selectedItem: selectedOption,
      filterFn: (item, filter) {
        return item.text.toLowerCase().contains(filter.toLowerCase());
      },
      dropdownButtonProps: const DropdownButtonProps(
        focusColor: ColorStyle.blue,
        color: Colors.black,
        icon: Icon(
          Icons.arrow_drop_down,
          size: ShapeStyle.standardFontSize * 1.4,
        ),
      ),
      dropdownBuilder: (context, value) {
        return value?.label ??
            Text(
              customEmptyText ?? '-- Seleccione --',
              style: const TextStyle(
                fontSize: ShapeStyle.standardFontSize,
              ),
            );
      },
      validator: (selected) {
        return validator?.call(selected?.value);
      },
      popupProps: PopupPropsMultiSelection.menu(
        showSearchBox: showSearchBox,
        showSelectedItems: true,
        itemBuilder: _itemBuilder,
        searchFieldProps: const TextFieldProps(
          scrollPadding: EdgeInsets.zero,
          style: TextStyle(
            color: ColorStyle.blue,
            fontSize: ShapeStyle.standardFontSize,
          ),
        ),
      ),
      compareFn: (i, s) => i.value == s.value,
      dropdownDecoratorProps: DropDownDecoratorProps(
        dropdownSearchDecoration: InputDecoration(
          fillColor: Colors.black,
          border: shouldDecorate ? null : InputBorder.none,
          labelStyle: const TextStyle(
            color: ColorStyle.blue,
            fontSize: ShapeStyle.standardFontSize * 1.4,
          ),
          label: title != null
              ? Text(
                  title!,
                  style: const TextStyle(
                    fontSize: ShapeStyle.standardFontSize * 1.4,
                  ),
                )
              : null,
        ),
      ),
      onChanged: (x) => onOptionSelected(x?.value),
    );
  }

  Widget _itemBuilder(
      BuildContext context, SelectItem<T> item, bool isSelected) {
    final size = MediaQuery.of(context).size;
    return Container(
      width: size.width,
      padding: const EdgeInsets.symmetric(
        vertical: 12.0,
        horizontal: 8.0,
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          item.label ??
              Text(
                item.text,
                style: const TextStyle(
                  color: Colors.black,
                  fontSize: ShapeStyle.standardFontSize,
                ),
              ),
          // a check icon
          if (isSelected)
            const Icon(
              Icons.check,
              color: Colors.green,
              size: ShapeStyle.standardIconSize,
            ),
        ],
      ),
    );
  }
}


问:
Task with C run failed in vscode terminal
vscode version: 1.73.1

OS: windows 11

```<code>{
    "tasks": [
        {
            "type": "cppbuild",
            "label": "cbuild",
            "command": "gcc",
            "args": [
                "-fdiagnostics-color=always",
                "-g",
                "${file}",
                "-o",
                "${fileDirname}\\${fileBasenameNoExtension}.exe"
            ],
            "options": {
                "cwd": "${fileDirname}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "detail": "c debug",

        }
    ],
    "version": "2.0.0"
}
</code>```

this is my task file.
it did not work in vscode terminal.

> gcc -fdiagnostics-color=always -g D:\study\c-app\C-Primer-Plus-Answer\ten\seven.c -o D:\study\c-app\C-Primer-Plus-Answer\ten\seven.exe

> 'cmd' �����ڲ����ⲿ���Ҳ���ǿ����еĳ���
���������ļ���

> The generation has been completed, but there is an error.

In the powershell, it work correctly.

I've tried in powershell, it worked.But, it failed in vscode terminal.I don't know what should i do.By the way,the messy code maybe is chinese.

Body:
vscode version: 1.73.1

OS: windows 11

{
    "tasks": [
        {
            "type": "cppbuild",
            "label": "cbuild",
            "command": "gcc",
            "args": [
                "-fdiagnostics-color=always",
                "-g",
                "${file}",
                "-o",
                "${fileDirname}\\${fileBasenameNoExtension}.exe"
            ],
            "options": {
                "cwd": "${fileDirname}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "detail": "c debug",

        }
    ],
    "version": "2.0.0"
}

this is my task file.
it did not work in vscode terminal.

> gcc -fdiagnostics-color=always -g D:\study\c-app\C-Primer-Plus-Answer\ten\seven.c -o D:\study\c-app\C-Primer-Plus-Answer\ten\seven.exe

> 'cmd' �����ڲ����ⲿ���Ҳ���ǿ����еĳ���
���������ļ���

> The generation has been completed, but there is an error.

In the powershell, it work correctly.

I've tried in powershell, it worked.But, it failed in vscode terminal.I don't know what should i do.By the way,the messy code maybe is chinese.