Add WiX Toolset build tools to windows-2022

Tool name
WiX Toolset
Tool license
MS-RL
Add or update?

[X] Add
[ ] Update

Desired version
v<IP_ADDRESS>16
Approximate size
120MB
Brief description of tool
About the WiX toolset: The WiX toolset lets developers create installers for Windows Installer, the Windows installation engine.
WiX is available in previous generations of VMs but was not included in windows-2022, presumably because Visual Studio 2022 isn't yet supported by the WiX Visual Studio extension. However, the WiX Visual Studio extension is only used for in-IDE development and isn't needed to build (from the command line or MSBuild).
URL for tool's homepage
https://wixtoolset.org/
Provide a basic test case to validate the tool's functionality.
"%WIX%\bin\candle.exe"

Virtual environments affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[ ] Windows Server 2016
[ ] Windows Server 2019
[X] Windows Server 2022

Can this tool be installed during the build?
No response
Tool installation time in runtime
No response
Are you willing to submit a PR?
Yes

Hi @barnson!
Please feel free to submit a PR. Let us know if you need any help with this.

@barnson Thanks for the PR!
The changes will be deployed next week.

Thanks!

We are getting the following error when trying to build one of our Wix projects on a 2022 image we built ourselves using the packer script:
##[error]src\UesClient.Installer.CustomAction\UesClient.Installer.CustomAction.csproj(66,3): Error MSB4019: The imported project "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\WiX\v3.x\Wix.CA.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\WiX\v3.x\Wix.CA.targets" is correct, and that the file exists on disk.
I have verified that the wixtoolset is installed:

@barnson do you know what could be the root cause for @NateB2?

I found the wix.ca.targets file in the wix toolset's SDK folder, but now it's failing trying to find the wix.targets file, which does not exist in the wix toolset's folder.

WiX installs its targets files to C:\Program Files (x86)\MSBuild and uses MSBuildExtensionsPath32 in the project templates to refer to it. Try creating new projects using the templates available in the VS2022 extension and compare them to your existing projects.

Yep, that worked, thanks for the help!  Our Wix project is super old at this point, so that probably explains the issue.

@barnson
I get the same error see #4573
The line which fails in the project file contains   <Import Project="$(WixTargetsPath)" />
So, you say we should change it to  <Import Project="$(MSBuildExtensionsPath32)" />
Can you confirm that?

.wixproj files need multiple changes to support isolated MSBuild. The easiest way to fix them is probably to create new .wixproj files from the templates in the Visual Studio extension for VS2019 or VS2022.

Why happened this regression in the VS2017-Win2016 ?

@barnson , @PatrickGrub - this is what I had to change in our main .wixproj file to get the project to build on the VS 2022 agents:

I could solve it by using vm image "windows-latest.

@NateB2 this helped for VS 2019 agents, too. Thanks for this.
For anyone else who want copy-paste the changes:
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != ''" />
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') "/>
  <Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
     <Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
  </Target>

Note that removing the WixTargetsPath entries from the PropertyGroup isn't optional. @NateB2's diff screenshot is correct.

For all those for whom the file changes are currently too time-consuming or do not work. You can execute the file that @barnson removed in the ci yourself.
But it may take 20 minutes.
https://github.com/actions/virtual-environments/issues/4582#issuecomment-979324383

@barnson Why was this change also applied to the windows-2019 image if this was only supposed to be applied to the windows-2022 image?

The Windows version is irrelevant. What matters is the version of Visual Studio. More than 4.5 years ago, we (the WiX team) released support for Visual Studio 2017 and "isolated MSBuild." Doing so required changes in the .wixproj structure, creating "new-style" .wixprojs so we deprecated "old-style" .wixprojs. In Visual Studio 2019, we obsoleted old-style .wixprojs and that obsolescence continues in Visual Studio 2022.
New-style .wixprojs are backward compatible, to at least Visual Studio 2015 (and probably earlier, though I haven't personally tested), and forward compatible, to at least Visual Studio 2022.
The changes required to make an old-style .wixproj a new-style .wixproj are trivial and mechanical.

Please don't get me wrong - I completely understand that changes can be necessary f.e. switching from windows-2019 to windows-2022 image; this is not a problem as it can be handled via regular change & deployment process to make those changes ahead of time.
And while everybody understands that bugs can occur, (intentionally) breaking a released image is a completely different situation;
We ship build pipelines and deployment pipelines to customers - some repos we don't event have access to.
At the moment it's a lot of work to update all of our repositories and their branches and to ship emergency fixes to customers.
Once the current situation is dealt with we'll have to answer why we chose a platform that can (intentionally) break at a moment's notice - and we may need to move away from hosted Azure.

IMHO the real problem is that without any version number changes, things that have been building for years have stopped working, and can't be fixed without making changes, which indicates a breaking change.
If you have a WiX project that was created a few years ago, but still on the same major version of WiX (3), and it has been successfully building for years, and then suddenly something changes on the build agent, which is still Visual Studio 2019, and it no longer builds.
If it was ".wixproj changes are required to move to WiX 4" or ".wixproj changes are required to move to Visual Studio 2022" then that would be understandable, but it's actually ".wixproj changes are required to move from WiX 3 on Visual Studio 2019 on environment version 20211110.1, to WiX 3 on Visual Studio 2019 on environment version 20211122.1".

MSBuildExtensionsPath32 is set to "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild" instead of "C:\Program Files (x86)\MSBuild" not sure why? Do we have to update it explicitly?

We've also been stung by this change to the VS2019 based images - and while the changes at https://github.com/actions/virtual-environments/issues/4419#issuecomment-976961106 aren't difficult its something the tooling in VS should have picked up and suggested a long time ago if it was going to be needed.

@dibir-magomedsaygitov I don't see how this is a dupe.  All those comments over there should be over here.    A change to add Votitve to VS2022 shouldn't break VS2019.
Reading through the image readme.md file I can see the components are no longer installed.  This was never announced and is a regression.   Every single customer who builds WiX is going to be affected and it's not right to say they need to update all their import statements to keep building when it was building before.

@chrpai we are in progress of reverting our recent changes. The PR has been prepared.

@chrpai we are in progress of reverting our recent changes. The PR has been prepared.

Is there a way in the pipeline to specify the image version to be used?  I'm looking but don't see it.  Maybe I'm blind.

@chrpai you can't specify image version unfortunately

@chrpai you can't specify image version unfortunately

Rats.  Is there an ETA on when the new image will be deployed?  I'm a WiX / Azure DevOps consultant and my inbox is being lit up by customers with broken builds.

@chrpai the new images should be available by the Thursday next week. We will post an update message.

For a quick workaround add this powershell to your VS2019 builds.  The code is simplified snippets taken from InstallHelpers.ps1 and Install-Wix.ps1,  The dependency on the toolset.json is removed and hardcoded to Enterprise edition.
`function Start-DownloadWithRetry
{
Param
(
[Parameter(Mandatory)]
[string] $Url,
[string] $Name,
[string] $DownloadPath = "${env:Temp}",
[int] $Retries = 20
)
if ([String]::IsNullOrEmpty($Name)) {
    $Name = [IO.Path]::GetFileName($Url)
}

$filePath = Join-Path -Path $DownloadPath -ChildPath $Name
$downloadStartTime = Get-Date

# Default retry logic for the package.
while ($Retries -gt 0)
{
    try
    {
        $downloadAttemptStartTime = Get-Date
        Write-Host "Downloading package from: $Url to path $filePath ."
        (New-Object System.Net.WebClient).DownloadFile($Url, $filePath)
        break
    }
    catch
    {
        $failTime = [math]::Round(($(Get-Date) - $downloadStartTime).TotalSeconds, 2)
        $attemptTime = [math]::Round(($(Get-Date) - $downloadAttemptStartTime).TotalSeconds, 2)
        Write-Host "There is an error encounterd after $attemptTime seconds during package downloading:`n $_"
        $Retries--

        if ($Retries -eq 0)
        {
            Write-Host "File can't be downloaded. Please try later or check that file exists by url: $Url"
            Write-Host "Total time elapsed $failTime"
            exit 1
        }

        Write-Host "Waiting 30 seconds before retrying. Retries left: $Retries"
        Start-Sleep -Seconds 30
    }
}

$downloadCompleteTime = [math]::Round(($(Get-Date) - $downloadStartTime).TotalSeconds, 2)
Write-Host "Package downloaded successfully in $downloadCompleteTime seconds"
return $filePath

}
function Install-VsixExtension
{
Param
(
[string] $Url,
[Parameter(Mandatory = $true)]
[string] $Name,
[string] $FilePath,
[Parameter(Mandatory = $true)]
[string] $VSversion,
[int] $retries = 20,
[switch] $InstallOnly
)
if (-not $InstallOnly)
    {
        $FilePath = Start-DownloadWithRetry -Url $Url -Name $Name
    }

$argumentList = ('/quiet', "`"$FilePath`"")

Write-Host "Starting Install $Name..."
$vsEdition = "Enterprise"
try
{
    #There are 2 types of packages at the moment - exe and vsix
    if ($Name -match "vsix")
    {
        $process = Start-Process -FilePath "C:\Program Files (x86)\Microsoft Visual Studio\$VSversion\${vsEdition}\Common7\IDE\VSIXInstaller.exe" -ArgumentList $argumentList -Wait -PassThru
    }
    else
    {
        $process = Start-Process -FilePath ${env:Temp}\$Name /Q -Wait -PassThru
    }
}
catch
{
    Write-Host "There is an error during $Name installation"
    $_
    exit 1
}

$exitCode = $process.ExitCode

if ($exitCode -eq 0 -or $exitCode -eq 1001) # 1001 means the extension is already installed
{
    Write-Host "$Name installed successfully"
}
else
{
    Write-Host "Unsuccessful exit code returned by the installation process: $exitCode."
    exit 1
}

#Cleanup downloaded installation files
if (-not $InstallOnly)
    {
        Remove-Item -Force -Confirm:$false $FilePath
    }

}
Install-VsixExtension -Url https://wixtoolset.gallerycdn.vsassets.io/extensions/wixtoolset/wixtoolsetvisualstudio2019extension/<IP_ADDRESS>/1563296438961/Votive2019.vsix -Name Votive2019.vsix -VSversion 2019`

Hello everyone!
We are sorry for the inconvenience!
We have reverted changes for Windows 2016 and 2019. The pull request has been merged. We will rollout images next week.
Thank you for the patience!

Based on https://github.com/actions/virtual-environments/commit/446bf8d222493ea5c155c47024263a72f3aa87dc#diff-816219d3c9f30fcc1c40f88ca826c1662bf99eded781c1b419dd2dfb577ae227L480-L481 and behavior I noted in my builds this morning, WiX was removed entirely from the windows-2019 image

@VonOgre WiX toolset is located under Tools now: https://github.com/actions/virtual-environments/blob/446bf8d222493ea5c155c47024263a72f3aa87dc/images/win/Windows2019-Readme.md?plain=1#L88

@MPasadu, you will want to apply those changes to your .wixproj in all cases. Future updates to the tooling will (eventually) deprecate the current syntax.

@dibir-magomedsaygitov  I am still getting an error regarding the wix Toolset is not installed. VmImage 'windows-2019' Please see below error from pipelines.
Task         : NuGet
Description  : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
Version      : 2.194.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/msbuild.exe" /version /nologo
Active code page: 65001
Detected NuGet version <IP_ADDRESS>0 / ...
...error : The WiX Toolset v3.11 build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/
NuGet Version: <IP_ADDRESS>0
MSBuild auto-detection: using msbuild version '<IP_ADDRESS>704' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\bin'.

Update: Pipeline is working OK for me now.
I had done the changes suggested in the wix project file and I had removes the line below:
Package
$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets
$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets
I have put them back in and now it is working OK

Windows images were deployed.
I'm going to close the issue, please feel free to contact us if you have any concerns.
Thank you!

Windows images were deployed. I'm going to close the issue, please feel free to contact us if you have any concerns. Thank you!

@MaksimZhukov Thanks for fixing VS2019.  Where does this leave VS2022?  Does it have WiX or not yet?  If not yet do we have an ETA?

@chrpai installation was fixed for Windows 2016 and 2019. Windows 2022 has a WiX toolset installed as well (https://github.com/actions/virtual-environments/blob/050efaf52a756ad291fd5e0d5923d07e913bc34c/images/win/Windows2022-Readme.md?plain=1#L82).

@gep13 👋is it possible to update https://community.chocolatey.org/packages/wixtoolset package to WiX 3.14 per @SenthilSelvaraju request?

@miketimofeev I can certainly add it to my list of things to do, however, I can't commit to exactly when that might be.

@miketimofeev actually, looking at the release page, it would seem that the latest production releases are already available:
https://wixtoolset.org/releases/
@robmen can you confirm if the production releases have changed?

The production releases have not changed. We are totally focused on a WiX v4 release by the end of the year.

We are using private agents as a work around. Do you mind sending an update in this thread when Wix v4 is available in windows images?
Thanks.

One of the huge changes in WiX v4 is that we've done (a lot of) work so that the WiX Toolset is easily installable without out having to be built into the many, many various CI virtual environments. For example, when using a .wixproj in v4, running msbuild -Restore will bring down the WiX Toolset and build the project in one go.
Our (obvious) goal is to make it trivial to use whichever revision of WiX v4 you want without needing an update from the CI provider.

That's exciting.!!! Thanks for the brief into the upcoming release. I appreciate it.
I am looking forward to the release of Wix v4.


Clicking SSL link does not trigger url redirect

Submitting a form with a ssl cred link is not actually triggering expected confirmation url loading.
Same test works with Selenium and Robot Framework.
Expected Behavior:

Load Page
Fill Form Informaiton
Click Submit button
Confirmation Page loads

With TestCafe the last (#4) expected step never happens.
Test:
import { Selector, ClientFunction } from 'testcafe';
var generate_email = new Date().getTime();
fixture ('A User Buys A Subscription')
.page('https://www.newyorker.com/subscribe');
test('A User Busy A Subscription And Redirects To Confirmation', async t => {
await t
.click('#NYR_MAGSUBHOME_SUBSCRIBELINK .btn.primary-btn')
.wait(3000)
.click('#digitalOffer .desktopShow .btn')
.typeText('#first_name', 'Ford')
.typeText('#last_name', 'Prefect')
.typeText('#email', generate_email +<EMAIL_ADDRESS>.typeText('#zip', '78738')
.typeText('#city', 'Austin')
.typeText('#address', '11710 Emerald Falls Dr')
.click(Selector('select[name="state"]'))
.click(Selector('select[name="state"] option').filter('[value="TX"]'))
.typeText(Selector('#cvv'), '222')
.typeText(Selector('#credit-card-number'), '4111111111111111')
.click(Selector('#credit-card-exp-month'))
.click(Selector('#credit-card-exp-month option').filter('[value="02"]'))
.click(Selector('#credit-card-exp-year'))
.click(Selector('#credit-card-exp-year option').filter('[value="22"]'))
.click('#btnSubmit');
await t
.expect(Selector('#website a').exists).ok()
.expect(Selector('#customerCare a').exists).ok()
.expect(Selector('#legal').exists).ok();
});

testcafe version:                   0.20.2
node.js version:                    v11.9.0
command-line arguments:   testcafe -e chrome user-purchases-subscription.js
browser name and version: Chrome 72.0.3626 / Mac OS X 10.12.6

Hi @brian-mathews
You test have passed with<EMAIL_ADDRESS>Try to use this version to run your tests.

installed 1.1.0. now browsers launch but does no action after they initially open. happens with firefox, chrome and safari.

@brian-mathews
The issue in the 1.1.0 version is related to https://github.com/DevExpress/testcafe-hammerhead/issues/1885
Please also refer to the https://github.com/DevExpress/testcafe/issues/3438 issue for more information about this problem.
While we are working on it, you can use the following workarounds:

use the --max-http-header-size argument in the command line;
use the RequestHooks mechanism and mock all requests to external resources from your page. Please see the sample:

import { Selector, RequestMock } from 'testcafe';

const mock = RequestMock()
    .onRequestTo(req => {
        return req.url.indexOf('newyorker') === -1;
    })
    .respond(null, 200);

fixture('A User Buys A Subscription')
    .page('https://www.newyorker.com/subscribe')
    .requestHooks(mock);

I also want to mention that I needed to maximize the Chrome window to make your test work.

Great, thanks for the information. I'll try the workarounds.


Filter edge lock when getting edge

Filter edge lock when getting edge， because edge lock in toss and edge are the same except for the last byte.

Good job, check other place if they call useless isVertex or isEdge


Please update the resource pattern config to load all Spring Batch schema SQL DDL instead of just h2.

See this file:
https://github.com/spring-projects-experimental/spring-native/blob/master/spring-native-configuration/src/main/java/org/springframework/batch/core/configuration/annotation/BatchHints.java#L32

@benas @mminella Could I assign this issue to one of you?

You can assign it to me.


netty4.1.9.Final openjdk8 connection refused

I use circleci to build my project:
https://circleci.com/gh/songxin1990/brave/4
When using openjdk8,it occurs something like this:

After i modifed circle.yml to oraclejdk8,all the test past and none error happend.
https://circleci.com/gh/songxin1990/brave/7
So,there must be something wrong with openjdk8 or netty4.1.9Final in openjdk8.
Steps to reproduce

git clone git@github.com:songxin1990/brave.git
modify circle.yml to openjdk8
wait for circleci to build.
Then you can see:
java.net.ConnectException: Failed to connect to localhost/<IP_ADDRESS>:7654
Caused by: java.net.ConnectException: Connection refused

For more details:
https://github.com/openzipkin/brave/pull/441
nettybuild.txt
Is there someone can help? @trustin @normanmaurer

@hepin1989  can you give me a hand?

please isolate your issue into a unit test so we can take a look without digesting all of brave. also update to the latest Netty release (currently 4.1.12).

@Scottmitch  Ok,I will first try to use 4.1.12,then write a standalone unit test

holyshit,I  used a window's openjdk8 ,all the unit test passed.
then write a junit test with circle to build it, successed.
so it's not the openjdk8's problem.


Allow namespace override

This PR consists of lots of commits adding tests, then a commit which actually achieves it.
It should achieve points 1-3 on the plan in #353, and most of #4 (it doesn't currently look for namespace attributes on extern blocks but the rest is done).
Obsoletes #369.

Thanks for the review! I agree with all your points and will (eventually) get to them.

Thanks for merging! I will prioritize a PR to get the syntax finalized per https://github.com/dtolnay/cxx/pull/370#discussion_r514583347 (I assume you agree with that @dtolnay ), hopefully I'll get that done tomorrow. I'll then do more cleanup PRs subsequently for all the other comments. Thanks for the review both!

Yeah it should be #[namespace = "path::to"] for now (though implemented in such a way that it accepts #[namespace = path::to] if the user's future compiler is able to feed us that). We can also update existing use of #[cxx::bridge(namespace = ...)] in documentation and tests to #[cxx::bridge(namespace = "...")] to maintain parity.

#380 updates the syntax to #[namespace = "path::to"] using @sbrocket's code. Future PRs will do the various other bits of tidying here.


Cannot send image message

Tried today to send photo in a chat and failed.
Steps to Reproduce

Install Whakarere flatpak.
Open Whakarere.
In a chat, click "+" > "Photos & Videos"

Select photo in the file selection dialog box.
Click the arrow button with / without typing message.

Expected Behaviour

After (4), an image preview can be shown normally.
After (5), a message with the image is created and sent to the recipient.

Actual Behaviour

After (4), the selected image cannot be previewed.

After (5), a message with the image is seemingly created but cannot be sent. (I can successfully send text message to the same user)

should be fixed on the next update.


[DM-27980] Revoke GitHub OAuth grant on logout

During the first authentication from GitHub, the user chooses what
data to release to our application.  We have had persistent problems
where the user doesn't release the right data or they are not a
member of the correct organization when they first log on, and then
logging out and back in doesn't necessarily update what information
we can access via the GitHub access token.
On explicit logout, if the user logged on with GitHub, revoke the
OAuth authorization grant so that they're forced to go through the
permission screen again when they log in.  This should hopefully
avoid this issue at the cost of an extra screen when they return
after an explicit logout.

Unfortunately, no, we have to get the authorization before we have any idea what teams a user is in, and there is no way to tell GitHub to only allow people in particular teams. What we can do is detect that the user is not in any teams that we recognize and return an error page (and immediately revoke the authorization). That will be a separate story, though. (And I'll want to ask you how you think I should create the error page. Templated HTML seems bad given that we have JavaScript and will have a JS component library, but then I have to figure out how to get the error message with the valid team details into the page.)

I'm not worried about maintaining some stuff in Jinja — rubin-style-dictionary still works great at that level.


Transitioner Exception An unhandled exception of type 'System.NullReferenceException'

I am trying to create a Transitioner inside second TabItem of TabControl.
It shows me an error An unhandled exception of type 'System.NullReferenceException' occurred in MaterialDesignThemes.Wpf.dll
but it work fine with first TabItem of TabControl. Can anyone help me ?.
materialDesign:Transitioner  SelectedIndex="0" AutoApplyTransitionOrigins="True">
            <local:ucHome2></local:ucHome2>
            <local:ucX></local:ucX>
            <local:ucY></local:ucY>
            <local:ucZ></local:ucZ>
        </materialDesign:Transitioner>

<TabItem >
   <TabItem.Content>
    <Grid>
    </Grid>
    </TabItem.Content>
</TabItem>
<TabItem >
   <TabItem.Content>
    <Grid>
     <local3:ucHome></local3:ucHome>
    </Grid>
    </TabItem.Content>
</TabItem>

Hello Dishanx,
I verified the behavior in Demo but putting the Tab control. Above description was not reproducible. See the screenshot below. Can you provide the sample repo?

https://github.com/Dishanx/materialDesignTransitioner1
 <TabItem.Content>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                        <local3:usHome></local3:usHome> **<-- working**
                    </Grid>
            </TabItem.Content>

        </TabItem>
        <TabItem >
            <TabItem.Header>
                <StackPanel Orientation="Vertical" Width="150" Height="70" Margin="2">
                    <materialDesign:PackIcon Kind="Home" Height="24" Width="24" VerticalAlignment="Center" HorizontalAlignment="Center" />
                    <TextBlock Text="Home" Margin="0,5,0,5" VerticalAlignment="Center" HorizontalAlignment="Center" />
                </StackPanel>
            </TabItem.Header>
            <TabItem.Content>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                       **<----- here ----- not working----**
                    </Grid>
            </TabItem.Content>
        </TabItem>

System.NullReferenceException: 'Object reference not set to an instance of an object.' VS 2017 and VS 2015

Hi Varun,
Do you know how to bypass the Page
<materialDesign:Transitioner SelectedIndex="0">
    <WizardPageOne />
    <WizardPageTwo />
    <WizardPageThree />
</materialDesign:Transitioner>

Based on radio button value on WizardPageOne, Want to bypass WizardPageTwo and display WizardPageThree
Radio Buttons
1 . Show Only WizardPageTwo
2 . Show Only WizardPageThree
3. Show Both Pages
Thanks
Dishan

Hi Dishan,
i am pulling in @ButchersBoy  in the discussion.
I am not sure you can achieve this the way you are doing but principally that can be done. "Transitioner" class is derived from "ItemsPanel", so you can provide an Item Source from (may be code behind Or View Model if you are using MVVM pattern). And based on some action or condition, you can clip/add/remove/insert the page and set that item as selected using SelectedItem Or SelectedIndex. I'll find some time to make a sample application for that.

Great, Thanks Varun.

@Dishanx you can automatically jump to an index in the transitioner by setting the appropriate index on the Transitioner's SelectedIndex property. So what you would need to do is rather than using the Transitioner's MoveNext/MovePrevious command you would bind the relevant data to properties in your view model. In addition you would bind the SelectedIndex to a property in your view model. Then you cna implement your own commands in the view model that control the navigation.

Hi Keboo,
i tried but no luck. Can you send me a sample Code, I'm facing a problem with multiple pages (4 pages) with Next / Previous buttons and with Radio buttons to select which page combinations to show. (1st page and 4th page, 2nd page and 4th page,1st 2nd and 4th page)
Thanks

@Dishanx something like this (not great code, but should explain what I was describing).
Using MVVMLight for the ViewModelBase and the RelayCommand, but you can swap this for whatever you like.
XAML
<Window x:Class="Trans.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
        xmlns:trans="clr-namespace:Trans"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Window.DataContext>
        <trans:MainViewModel />
    </Window.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal">
            <RadioButton Content="All the pages" IsChecked="{Binding IsAllPages}"/>
            <RadioButton Content="Only 1st and 4th" IsChecked="{Binding IsOneAndFour}"/>
            <RadioButton Content="Only 1st, 2nd, 4th" IsChecked="{Binding IsOneTwoAndFour}"/>
        </StackPanel>

        <md:Transitioner Grid.Row="1" SelectedIndex="{Binding PageIndex}">
            <TextBlock Text="Page 1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBlock Text="Page 2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBlock Text="Page 3" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBlock Text="Page 4" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        </md:Transitioner>

        <Button Content="Previous" Command="{Binding PreviousPageCommand}" Grid.Row="2" HorizontalAlignment="Left" />
        <Button Content="Next" Command="{Binding NextPageCommand}" Grid.Row="2" HorizontalAlignment="Right" />

    </Grid>
</Window>

View Model
public class MainViewModel : ViewModelBase
{
    public ICommand NextPageCommand { get; }
    public ICommand PreviousPageCommand { get; }

    private int _PageIndex;
    public int PageIndex
    {
        get => _PageIndex;
        set => Set(ref _PageIndex, value);
    }

    private bool _IsAllPages = true;
    public bool IsAllPages
    {
        get => _IsAllPages;
        set => Set(ref _IsAllPages, value);
    }

    private bool _IsOneAndFour;
    public bool IsOneAndFour
    {
        get => _IsOneAndFour;
        set => Set(ref _IsOneAndFour, value);
    }

    private bool _isOneTwoAndFour;
    public bool IsOneTwoAndFour
    {
        get => _isOneTwoAndFour;
        set => Set(ref _isOneTwoAndFour, value);
    }

    public MainViewModel()
    {
        NextPageCommand = new RelayCommand(OnNext, CanNext);
        PreviousPageCommand = new RelayCommand(OnPrevious, CanPrevious);
    }

    private bool CanPrevious()
    {
        int? previousIndex = GetPreviousIndex();
        return previousIndex != null && previousIndex != PageIndex;
    }

    private void OnPrevious()
    {
        int? previousIndex = GetPreviousIndex();
        if (previousIndex != null)
        {
            PageIndex = previousIndex.Value;
        }
    }

    private bool CanNext()
    {
        int? nextIndex = GetNextIndex();
        return nextIndex != null && nextIndex != PageIndex;
    }

    private void OnNext()
    {
        int? nextIndex = GetNextIndex();
        if (nextIndex != null)
        {
            PageIndex = nextIndex.Value;
        }
    }

    private int? GetNextIndex()
    {
        if (IsAllPages)
        {
            return Math.Min(3, PageIndex + 1);
        }
        if (IsOneAndFour)
        {
            return 3;
        }
        if (IsOneTwoAndFour)
        {
            switch (PageIndex)
            {
                case 0: return 1;
                case 1:
                case 3: return 3;
            }
        }
        return null;
    }

    private int? GetPreviousIndex()
    {
        if (IsAllPages)
        {
            return Math.Max(0, PageIndex - 1);
        }
        if (IsOneAndFour)
        {
            return 0;
        }
        if (IsOneTwoAndFour)
        {
            switch (PageIndex)
            {
                case 0:
                case 1: return 0;
                case 3: return 1;
            }
        }
        return null;
    }
}

Fixed by #1242


Explain versioning in chart

Can you please explain how the versioning of your tigera operator charts works? Specifically for a release major.minor.revision, you seem to have a -1 appended to the end. What is this number for? For scripts that want to automatically pull the latest version of the chart, do you promise there will only be one tigera chart artefact?
The docs say

The chart will be in the release artifacts and will have a name like: tigera-operator-v3.19.1-2.tgz

but don't explain what that number represents.

Adding a - to a SemVer 2 version, as chartVersion is required to be in the Helm docs, signifies that it's a pre-release and will cause tooling to treat it as such.

So do you ever publish upgraded chart versions to the same 3.20.0 release?
For example is the following sequence of events possible? :
Monday:
- helm pull projectcalico/tigera-operator --version 3.20.0
- this pulls in a file called tigera-operator-3.20.0-1.tar.gz

Tuesday:
- additional chart version published

Wednesday:
- helm pull projectcalico/tigera-operator --version 3.20.0
- this pulls in a file called tigera-operator-3.20.0-2.tar.gz

When you say pre-release, you mean it's not considered 'stable'?
If I look at 3.19.x I see a similar pattern though, a hyphen followed by a number. Can you point me to an example of a release that is not a pre-release?


Update media_server.py

Removed .extension from tiles while displaying on the app
resolved issue #50

closing this pull because I don't think this repository is till active.


Something about delivery

it would be nice to also have a way to set up everything locally

TODO

I’m not sure how I can connect to the chain and fund this substrate address for testing

Now we use Westend for testing now, the local chain only tests for the contract.

This means the smart contract is not used

Yes, the live version works now but not used contract now. Because the Polkadot parallel chain does not currently support ink!. Now the contract can only run tests and will be integrated in the future.

The polkadot ink! contract test local has some issue caused by ink itself and canvas, see know issue

Also wherein the backend is the data stored and the address generated?

All the data is now stored in our mongoDB, and we back up the database in real time. The most important data is the project owner mnemonic, we store it now and will disable it when ink! works in feature.
code link
By the way, the bytepay project is developed on faas platform named laf which is our own opensource project.

Save the owner account info in the database now, not save developer mnemonic if they bind address. keyring code link
webhook source code
Adress binding source code
The live version is polkadot address.

Just transfer to the account to recharge like using QRcode:


Fix start and end date functionality and add tests

Name of the PR
:recycle: Current situation & Problem
Link any open issues or pull requests (PRs) related to this PR. Please ensure that all non-trivial PRs are first tracked and discussed in an existing GitHub issue or discussion.
:gear: Release Notes
Add a bullet point list summary of the feature and possible migration guides if this is a breaking change so this section can be added to the release notes.
Include code snippets that provide examples of the feature implemented or links to the documentation if it appends or changes the public interface.
:books: Documentation
Please ensure that you properly document any additions in conformance to Spezi Documentation Guide.
You can use this section to describe your solution, but we encourage contributors to document your reasoning and changes using in-line documentation.
:white_check_mark: Testing
Please ensure that the PR meets the testing requirements set by CodeCov and that new functionality is appropriately tested.
This section describes important information about the tests and why some elements might not be testable.
:pencil: Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

[x] I agree to follow the Code of Conduct and Contributing Guidelines.

@AballahNsour Thank you for taking a look at the issue! Feel free to create a PR and tag us if you have any questions. Always great to see contributions from outside contributors and we are happy to support you in the process!

forgive me I went though the rules again it happens that i have vaiolated one of contribution rules i Will revert on the changes and I will start over.

No worries; it is always a challenge to get started.
Let us know how we can be helpful, we always appreciate contributions and improvements 🚀

@PSchmiedmayer hello, I did the best i could with adding the two test cases.
I may need more assistance, but will learn fast :)


Undefined behavior in CModule::create_by_tracing

I've been trying to trace a Rust-defined network using CModule::create_by_tracing, and I've run into at least one gotcha: The traced closure will have undefined behavior if the closure creates Tensors inside it.
For example, this snippet will print [1]:
let inputs = [Tensor::from(1.0)];
let model = CModule::create_by_tracing(
  "MyNet",
  "forward",
  &inputs,
  &mut |inputs: &[Tensor]| vec![inputs[0].copy()],
)?;
model.save("/tmp/debug")?;

let model = CModule::load("/tmp/debug")?;
let out = model.method_ts(
  "forward",
  &[Tensor::from(1.0)],
)?;
dbg!(&out);

But, this snippet (note the * Tensor::from(2.0)) will print [0] when it should print [2]:
let inputs = [Tensor::from(1.0)];
let model = CModule::create_by_tracing(
  "MyNet",
  "forward",
  &inputs,
  &mut |inputs: &[Tensor]| vec![inputs[0].copy() * Tensor::from(2.0)],
)?;
model.save("/tmp/debug")?;

let model = CModule::load("/tmp/debug")?;
let out = model.method_ts(
  "forward",
  &[Tensor::from(1.0)],
)?;
dbg!(&out);

Unfortunately this doesn't appear to be the only instance of undefined behavior - I'm trying to isolate more as I debug my code.
If you happen to have any general pointers for dealing with CModules that you think might help, I'd love to hear them.
Thanks!

I have a workaround that lets you create scalar Tensors inside the closure: Manually init the value of the Tensor to the given value, like so:
&mut |inputs: &[Tensor]| {
  let mut t = Tensor::from(0.0);
  t.init(Init::Const(2.0));
  vec![inputs[0].copy() * t]
},


Using bibtexparser instead of pybtex for bibtex.

Fixes #3648
Still in progress, Opened a PR so that it's easier to communicate changes and progress.

Note: the style job has to pass in order for code-related tests to proceed

https://github.com/sciunto-org/python-bibtexparser/issues/433
Response here might be helpful.

@agriyakhetarpal I don't understand the aiing test case here : https://github.com/pybamm-team/PyBaMM/actions/runs/7627904153/job/20779262646?pr=3740#step:11:2390:~:text=AssertionError%3A ModuleNotFoundError not raised
This is the only failing test case. Can you help me with this?

You haven't added bibtexparser to the [cite] set of optional dependencies in pyproject.toml yet, doing so should fix this error

I've added changes. Now only thing there is is changing output format. I might raise a PR in bibtexparser repo related to this which once merged should be easy to integrate. Meanwhile can we go with this output format?

Why is this test case failing? https://github.com/pybamm-team/PyBaMM/actions/runs/7700868778/job/20989315835?pr=3740

Unrelated error, I triggered a re-run which should fix it

@agriyakhetarpal How should we move forward with this?

@agriyakhetarpal How should we move forward with this?

Tagging @Saransh-cpp @kratman since they were involved in the discussions where we discussed replacing pybtex earlier – we do not yet have functionality in bibtexparser to parse BibTeX in order to receive plaintext. @prady0t is able to parse that in a hacky way to retrieve all fields, join all of the strings and return a plaintext citation, but it doesn't conform to APA/MLA/Chicago style references (of course, doing that is a mighty task): please see my review above for more.
P.S. to let go of the setuptools installation hack in the nox sessions that we had introduced earlier, I had realised that should be fixable with
nox.options.default_venv_backend = "virtualenv"

i.e., just the one line in noxfile.py. 🙂 This is because setuptools is one of the seed packages that gets installed on virtual environment creation (along with pip and wheel) – this is for virtualenv.
OTOH and fun fact: the venv from stdlib does not add seed packages at all, and post Python 3.12 it does not even bootstrap setuptools – just pip is included (but it does add both setuptools and pip for Python 3.11 and earlier versions).

Hmm, using pybam.print_citations() now works for me on Google Colab.
We could maybe create a feature request inbibtexparser and keep using pybtex for now?

Hmm, using pybam.print_citations() now works for me on Google Colab.

Nice!

We could maybe create a feature request inbibtexparser and keep using pybtex for now?

Yes, @prady0t has created a feature request upstream earlier: https://github.com/sciunto-org/python-bibtexparser/issues/433
So, yes – we can keep using pybtex for now in this case, because the above request is still welcoming contributions (which may take an indefinite amount of time). We can add the noxfile.py change from https://github.com/pybamm-team/PyBaMM/pull/3740#issuecomment-1984108727 and remove the Google Colab warning from pybamm/citations.py now.
Thanks for contributing and trying this out, @prady0t – sorry for the mess that this causes 🙂 Let's hope we can have pybtex back to action in the coming years (it is still the best option for a citations parser out there). Could you please revisit this PR and make the above changes, while reverting the rest?

Or, you could close this PR without deleting the branch so that we have some working bibtexparser code on GitHub (given that "squash and merge" will get rid off the intermediate code and commit history). You could create a new PR for the changes listed by @agriyakhetarpal.

Glad to see progress here. I'll close this PR here and open a new one with suggested changes.

Do I have to replace :
https://github.com/pybamm-team/PyBaMM/blob/bc31cacb5e7fcd2d1d16dd6d58d63e2db4474a7b/noxfile.py#L8
with
nox.options.default_venv_backend = "virtualenv"

Do I have to replace :
https://github.com/pybamm-team/PyBaMM/blob/bc31cacb5e7fcd2d1d16dd6d58d63e2db4474a7b/noxfile.py#L8
with
nox.options.default_venv_backend = "virtualenv"

We should keep both


[feature] Can deepsource have a badge?

Like https://shields.io/. TIA!

@Freed-Wu  Yes, DeepSource provides a badge for your repository that you can display on your README file or your website to show that your code is continuously monitored for quality and security. The badge shows the status of your latest analysis and helps to demonstrate your commitment to producing high-quality code. You can find instructions for adding the badge to your repository on the DeepSource documentation website


TypeError: Cannot read properties of undefined (reading 'defaults')

Hello,
Am facing below error, I have set the OPENAI_API_KEY in .env file and also set in my systems environment variables, but still facing the error. Can anyone pls help me as am exploring this new AI feature to integrate into automation framework.
TypeError: Cannot read properties of undefined (reading 'defaults')

  13 |     const aiArgs = { page, test }
  14 |     await page.waitForTimeout(3000)
> 15 |     await auto(`Type "auto-playwright" in the search box`, aiArgs, options)
     |     ^
  16 |     await auto('Press enter', aiArgs, options)
  17 |     await page.waitForTimeout(5000)

Response is very much appreciated,  TIA.

@lucgagan , could you pls help to resolve the issue.

Alright just raised a PR https://github.com/lucgagan/auto-playwright/pull/40

@rajeshdavidbabu , still am facing the defaults issue after updating the import statement at per your latest, so it would be great to help me for the solution.

Reviewing this autoplaywright for a hackathon project and the current version is unusable without a fix for
TypeError: Cannot read properties of undefined (reading 'defaults')     at sanitizeHtml (c:\repo\POC Stuff\AutoPlaywright\node_modules\auto-playwright\dist\sanitizeHtml.js:23:46)     at getSnapshot (c:\repo\POC Stuff\AutoPlaywright\node_modules\auto-playwright\dist\getSnapshot.js:7:46)     at runTask (c:\repo\POC Stuff\AutoPlaywright\node_modules\auto-playwright\dist\auto.js:37:19)     at node_modules\auto-playwright\dist\auto.js:17:24     at tests\auto-examples.spec.ts:7:3

I am also facing the same issue though OpenAI API_Key is set in environment variable,
TypeError: Cannot read properties of undefined (reading 'defaults')
   7 |   // `auto` can query data
   8 |   // In this case, the result is plain-text contents of the header
>  9 |   const headerText = await auto(
     |                      ^
  10 |     "get the header text",
  11 |     { page, test },
  12 |   );

Same error. Basic setup of playwright inside of NX. Basically unusable library.

I've revert the sanitizeHtml.ts import from import * as sanitizeHtml from 'sanitize-html'; to import sanitize from "sanitize-html";
And, I tested it locally and also using an npm build.

Having the same issue, noticed couple of issues related to this and some PRs but it's not clear what needs to be done to get this working properly. Anyone who has got this to work correctly?


Update Mammoth Lakes to use mtnpowder.com

Mammoth Mountain is broken. Poking around, I found it has a mtnpowder.com feed. I found several other resort implementations that use mtnpowder and I just copied one of them. It works now.
By the way, Mammoth Mountain and Intrawest were all bought by Alterra.

thanks - released
BTW: you can usually update the reference html/json by running bin/fetch <resort-slug> - let me know if you have problems with running/fixing tests


561/ Fix Page Content Spacing

This changes makes the ticket's requested styling changes.
For the About page:

Increases subheader text size to body-lg
Decreases margin between image and subheader to 48px

For the Transform Property page:

Increases margin between subheader and image to 48 px.
does NOT change anything with margin above page header as that was done seperately

@thansidwell @Moylena @paulhchoi

The About page had a larger gap than it should. About 74px instead of 48px. I think it's because of a break tag.

@thansidwell @paulhchoi
It should be fixed now. Seems like the  has a line height of 24 px so i just reduced the bottom margin of the subheader  to 24 px. Hopefully that solves it.

@AZBL The preview still shows the problem for me.
Does that <br> tag need to be there? Can we remove it? That fixes the problem for me.
https://github.com/CodeForPhilly/vacant-lots-proj/assets/1965986/9f6ebabb-3aa4-407d-bc17-cc2ddb178e5e

Hey @thansidwell it looks like the 2nd video you posted doesn't include the changes from my most recent commit. In the video, for the subheader p-tag it still says mb-12 (which is 48 px of spacing which then gets added onto the 24 px from the break) tag. The more recent commit I had changed it to mb-6 which reduces it to 24 px of spacing which gets added onto the 24 from the break. It looks fine in my browser.
I'm not 100% sure if the break tag is necessary but I didn't want to just delete it.
Let me know if you're still not able to see the changes I made and I'll just push it again.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1302 ms

Resolved: Bofrost.at performance has improved in c883a09.


Request for new package: haskell-ide-engine

Issue description
I would like to have haskell-ide-engine (HIE) added to nixpkgs, but I fear I am not knowledgeable enough to add it myself.
The Haskell IDE Engine is described in its home page by the following:

This project aims to be the universal interface to a growing number of Haskell tools, providing a full-featured and easy to query backend for editors and IDEs that require Haskell-specific functionality.

It is a requirement for Haskell development in Visual Studio Code using the extension Haskell Language Server, whose repository is Haskell Language Server Client.

@robinvd seems to have packaged haskell-ide-engine independently in https://github.com/robinvd/robinpkgs/tree/master/haskell-ide-engine. The last commit is only 24 days old and I have checked that it builds successfully against the NixOS unstable channel. That repo contains expressions referencing <nixpkgs>. It is not a nixpkgs fork or overlay.
Packaging it is not trivial because a number of packages / package versions is not on hackage, so we may need to consider all options to make installation easier:

Turn @robinvd's work into a proper overlay. I can help with that.
Remove vendored source code from that repo
Upstream everything his work into the haskell-ide-engine megarepo (if maintainers agree)
Integrate it into nixpkgs (which is what this issue is about)
Something else

It would be very nice to have hie in nixpkgs itself, so it can be discovered and used easily, so that should be the goal here.
@robinvd, how was your experience packaging hie? Do you think it would be a burden on nixpkgs?

@roberth i tried only putting only .nix files in the repo, but the repo has sub packages. When nix tries to build those the licence file is in ../LICENSE and nix does not accept that (since only the sub package is copied into the nix store).
We would need a patch for coping the licence file and changing the .cabal files or make a pull request in the hie project

@robinvd, how was your experience packaging hie? Do you think it would be a burden on nixpkgs?

it was not difficult, for almost all my big haskell projects i make an out of tree nixpkgs like this one.
I had to run cabal2nix on every subpackage. Only thing is they use specific versions of dependencies (in the stack file you can see this). So i had to make a nix file based on the specific commit. Does nixpkgs allow non newest package dependencies?
I don't know if nixpkgs likes it if the tests are disabled, but multiple packages failed on the tests so i just wrapped everypackage in notest (also builds faster).

Upstream everything his work into the haskell-ide-engine megarepo (if maintainers agree)
Integrate it into nixpkgs (which is what this issue is about)

I like one of these options the best (or both). I can have a look at a patch for the license or make an issue at hie repo this weekend
@romildo if you want to build it right now you can: clone my repo and build it with nix-build default.nix -A haskell-ide-engine or add it to your nix-channel's (the channel url is https://github.com/robinvd/robinpkgs/archive/master.tar.gz). And then do nix-env -i haskell-ide-engine

I can confirm that @robinvd's package works fine.

It is not building on my unstable NixOS system:
$ nix-build default.nix -A haskell-ide-engine
[...]
Configuring brittany-<IP_ADDRESS>...
Setup: Encountered missing dependencies:
butcher >=<IP_ADDRESS> && <1.2
checking for references to /tmp/nix-build-apply-refact-<IP_ADDRESS>.drv-0 in /nix/store/w9sr38x7m3bl5chij6j151dmlwnm0h2y-apply-refact-<IP_ADDRESS>...
builder for ‘/nix/store/jxb1653blsc1a161jkykyqj71xym5z8j-brittany-<IP_ADDRESS>.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/9jm643sv3xw1hfp1mkkzmfa31zypk1ry-hie-brittany-<IP_ADDRESS>.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/i4lr2z9hwfbc28lxzy825wrbind7p11m-haskell-ide-engine-<IP_ADDRESS>.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/i4lr2z9hwfbc28lxzy825wrbind7p11m-haskell-ide-engine-<IP_ADDRESS>.drv’ failed

i came across a newer version of the same we are trying to do: https://github.com/haskell/haskell-ide-engine/issues/117#issuecomment-337062428. @romildo maybe this builds on unstable?

See https://github.com/haskell/haskell-ide-engine/issues/117#issuecomment-348822045


autoreconf -fi fails with 'autoreconf: automake failed with exit status: 1'

On Raspbian Stretch, installation fails on first run:
pi@soverommet:~/brutepi/alac $ autoreconf -fi
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in '..'.
libtoolize: copying file '../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:40: installing './compile'
configure.ac:63: installing './config.guess'
configure.ac:63: installing './config.sub'
configure.ac:20: installing './install-sh'
configure.ac:63: error: required file './ltmain.sh' not found
configure.ac:20: installing './missing'
Makefile.am: installing './INSTALL'
codec/Makefile.am: installing './depcomp'
autoreconf: automake failed with exit status: 1

The offending line being libtoolize: putting auxiliary files in '..'. - so it tries to put ltmain.sh a directory up from where it's supposed to be.
On running autoreconf a second time (when m4 already exists), it appears to put the files in the correct location, and configure appears to work as intended

Thanks for the report. I'll check it out.

Hmm. Just tried this now:
pi@raspberrypi:~/alac $ autoreconf -fi
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:40: installing './compile'
configure.ac:63: installing './config.guess'
configure.ac:63: installing './config.sub'
configure.ac:20: installing './install-sh'
configure.ac:20: installing './missing'
Makefile.am: installing './INSTALL'
codec/Makefile.am: installing './depcomp'
pi@raspberrypi:~/alac $

Seemed to be okay.

This happens when libtoolize tries to be smart about the auxiliary files directory: if there is a install.sh in the parent directory (e.g. when alac is installed as part of another project), libtoolize thinks it should put ltmain.sh alongside it.
pi@raspberrypi:~/alac $ touch ../install.sh
pi@raspberrypi:~/alac $ autoreconf -fi
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in '..'.
libtoolize: copying file '../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:40: installing './compile'
configure.ac:63: installing './config.guess'
configure.ac:63: installing './config.sub'
configure.ac:20: installing './install-sh'
configure.ac:63: error: required file './ltmain.sh' not found
configure.ac:20: installing './missing'
Makefile.am: installing './INSTALL'
codec/Makefile.am: installing './depcomp'
autoreconf: automake failed with exit status: 1
pi@raspberrypi:~/alac $

A quick and dirty workaround is to install alac from a directory where there is no install.sh in one of its parent directories, e.g. in /tmp.
@mikebrady I have no idea about libtoolize, is there a way to avoid this behaviour?

Thanks for the post, but I am not getting the same behaviour:
pi@RaspberryPi4B:~/bogus $ ls -al
total 12
drwxr-xr-x  3 pi pi 4096 Apr 25 11:24 .
drwxr-xr-x 15 pi pi 4096 Apr 25 11:23 ..
drwxr-xr-x  5 pi pi 4096 Apr 25 11:24 alac
-rw-r--r--  1 pi pi    0 Apr 25 11:22 ltmain.sh
pi@RaspberryPi4B:~/bogus $ cd alac/
pi@RaspberryPi4B:~/bogus/alac $ autoreconf -fi
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:40: installing './compile'
configure.ac:63: installing './config.guess'
configure.ac:63: installing './config.sub'
configure.ac:20: installing './install-sh'
configure.ac:20: installing './missing'
Makefile.am: installing './INSTALL'
codec/Makefile.am: installing './depcomp'
pi@RaspberryPi4B:~/bogus/alac $ cd ..
pi@RaspberryPi4B:~/bogus $ ls -al
total 12
drwxr-xr-x  3 pi pi 4096 Apr 25 11:24 .
drwxr-xr-x 15 pi pi 4096 Apr 25 11:23 ..
drwxr-xr-x  7 pi pi 4096 Apr 25 11:25 alac
-rw-r--r--  1 pi pi    0 Apr 25 11:22 ltmain.sh
pi@RaspberryPi4B:~/bogus $ ls -al

This is on a fully up-to-date Raspberry Pi 4.
pi@RaspberryPi4B:~/bogus $ autoreconf -V
autoreconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

pi@RaspberryPi4B:~/bogus $ aclocal --version
aclocal (GNU automake) 1.16.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey<EMAIL_ADDRESS>       and Alexandre Duret-Lutz<EMAIL_ADDRESS>

pi@RaspberryPi4B:~/bogus $ automake --version
automake (GNU automake) 1.16.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey<EMAIL_ADDRESS>       and Alexandre Duret-Lutz<EMAIL_ADDRESS>

Did you try to create (an empty) install.sh in ~/bogus?

Apologies, I misread your post. You're right -- putting that install.sh file in the directory above the alac directory causes the problem you've identified.
I'm afraid I don't have a fix for it.

I'm afraid I don't have a fix for it.

No problem – it already helps a lot to know that it should be installed in a directory that does not have an install.sh in one of its parents.


New Feature - Tags on queries

Hi,
I think it would be nice to be able to add some kind of tags on submitted queries
Those could help in searching KQL queries that works for Resource Graph vs Azure Sentinel vs ADX Cluster management for example
They could also provide relevant contexte about why this KQL query exists. May be it's a query about security or about finops
The tags could be visible at the bottom of the cards on the landing page.
The tags could be clickable to populate the filter

Hi @Groumy,
awesome suggestion!
I will add the tags.


Add dokken workflow in circleci & remove travis

Description
Add dokken workflow in circleci & remove travis
Contribution Check List

[ ] All tests pass.
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable

This change is

          1 Error

:no_entry_sign:
Please add labels to this Pull Request

  Generated by :no_entry_sign: Danger


Create a Node.js web app in Azure, assumes Git is installed and Bash is your terminal shell

I am trying to follow this Qujickstart guide, I have chosen my hosting platform as Windows, the next thing it says to do is Clone and run a local Node.js application, 1. On your local computer, open a terminal and clone the sample repository:  Bash  git clone...  I am currently in VS Code as I think that's where I am supposed to be, so when it says to open a terminal, I assume a VS Code Terminal, but by default  I have a Powershell shell, so when I try the command, I get, 'The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program.'.  It seems I need to download and install Git for Windows, then open a new terminal using the 'bash' shell.  I think the need for Git should be mentioned in the Microsoft doc, in the Prerequisites.

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

ID: 298b87f4-b6eb-5642-7ab5-cd6df709390d
Version Independent ID: 0518cce4-7677-6d63-979d-e0a9e532efc0
Content: Quickstart: Create a Node.js web app - Azure App Service
Content Source: articles/app-service/quickstart-nodejs.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@GFParker Thanks for the feedback! We are currently investigating and will update you shortly.


Reverse a string using stacks

Hi guys here is a programme to print the reverse of a string using stacks concept in data structures and algorithms
the code is written in c++ , you can also do the same in any language you like referring to the concept in the code
Thank you!

plz add the lable as in the scrrenshot so as to get approved for hacktoberfest

hacktoberfest-accepted lable not hacktoberfest lable

FYI if a repo has the label of hacktoberfest, then any PR accepted since that label is put, automatically getsaccepted under hacktoberfest

.
.
add a description of your commit

i am reopening it again, edit your commit and ping me again

@manan-shxrma done with the description

thank you🙏


Import plyr

The new version of ggplot2 no longer depend on plyr. dabestr has somehow been able to have plyr:: calls in its code without explicitly depending on plyr, but these will now break as plyr is no longer present on a clean system.
To fix this, add plyr to Imports in the DESCRIPTION file and submit to CRAN

Thanks for the headsup, will do as advised shortly!

Addressed with v0.3.4


Bump dependency for HomematicIP Cloud

Description:
Bump dependency for HomematicIP Cloud
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.
[x] I have followed the development checklist

If the code communicates with devices, web services, or third-party tools:

[x] The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
[x] New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.

Test failure is unrelated.

PS: It's nice to link to a change log, tag or commit range for the bumped library in the PR description.


I can't log in after upgrading from version 3.0.6

After the update, I go to the authorization page and get an endless loading after entering personal data. I updated via sudo ./wgd.sh install and also via manual installation.
Operating system Ubuntu 22.04.2
Python 3.10.12
wg0.txt

https://github.com/donaldzou/WGDashboard/issues/331
;-)

Thanks b0se


ARTEMIS-146 Fix Queue auto-creation

I don't think this has to do with any JMS queues and JMX objects. It's only for openwire. Why it is not valid?

First, you are changing semantics of a production of a production server because the test is not adapting... it's wrong.
Second, when a JMS Object is created it needs to also create JMS objects for the JMS Created Queue, that should happen through the JMS Manager. You are cutting this directly into a core-queue, it's also wrong.
Why can't you fix the test and add the JMS Manager?

OK I get your point. The reason I didn't want to bring in JMS manager is because openwire is not supposed to depends on JMS manager. It should depends only on the core server. Like jms manager, the openwire should only be a facade layer around core. isn't it?

I don't think so.  Openwire is a jms protocol. Hence it needs the jms manager

I am going to sleep now.  And I won't be able to look further before my morning.  Maybe I'm missing something.
Maybe you could abstract the manager without changing production cases.  That's what concerns me.

ok, just back from the visa application center (it's been 5 hours waiting). Let's just bring in the JMS manager as you suggested. If anything goes wrong we can refactor it later.

Hi Clebert,
I updated the branch, can you take a look?
Thanks
Howard

:)


Server Client implementation on Linux Over UART

Hello guys,
Need some help in erpc Client and Server application development.
I am trying to evaluate erpc library and for that i am building a erpc client and server on Linux (C/C++ code base). Which shall talk over a UART interface given the circumstances, yeah i know, in next release i have IP support i can then use TCP as the transport type.
I was able to compile a basic client and server application integrating the erpc_c files. I want to use the serial transport type already there in the transports folder. I believe it works ok ?
The issue i am facing is that from the demo client app, when i send a actual function request (erpc call) , it seems nothing is sent on the UART interface. Is something missing in the transport adaption ?
For development time i made 2 virtual tty interfaces - say /dev/pts/1 and dev/pts/2 which talk to each other (i used socat utility to achieve this). So anything i write to pts/1 goes to other side and vice versa. This is working ok, i checked over a serial terminal app (minicom). In a way stimulating a UART interface on same machine.
But, when i send the my 1st erpc client request over to server, i do not see anything on UART interface, i am sniffing that interface constantly.
My server app code looks like this:
1 #include
2 #include "erpc_server_setup.h"
3 #include "erpc_transport_setup.h"
4 #include "erpc_transport.h"
5 #include "erpc_mbf_setup.h"
6
7 #include "initializelib.h"
8 #include "initializelib_server.h"
9
10 /* implementation of function call /
11 void C_Initialize(void)
12 {
13     printf("C_Initialize ++ Server side \n");
14     printf("C_Initialize -- Server side \n");
15 }
16
17 int main()
18 {
19     / Init eRPC server environment /
20     / UART transport layer initialization /
21     erpc_transport_t transport = erpc_transport_serial_init("/dev/pts/1", 115200);
22
23     printf("Server Uart Init ok...\n");
24     / MessageBufferFactory initialization /
25     erpc_mbf_t message_buffer_factory = erpc_mbf_dynamic_init();
26
27     / eRPC server side initialization /
28     erpc_server_init(transport, message_buffer_factory);
29
30     / connect generated service into server, look into erpc_matrix_multiply_server.h /
31     erpc_service_t service = create_initializelibService_service();
32     erpc_add_service_to_server(service);
33
34     printf("Server Init done...\n");
35
36     / run server /
37     printf("Waiting for client calls...\n");
38     /  erpc_server_run();  or erpc_server_poll(); /
39
40     / run server on poll /
41     while (1)
42     {
43         / Process eRPC requests /
44         erpc_status_t status = erpc_server_poll();
45
46         // To Do
47         / handle error status /
48         //if (status != kErpcStatus_Success)
49         //{
50         //  / print error description */
51         //  erpc_error_handler(status, 0);
52         }
53
54     printf("Server Running done...\n");
55     return 0;
56
57     //server deinit here next
58
59 }
My client code looks like this:
1 /* Client code /"
2 #include
3 #include "initializelib.h"
4 #include "erpc_client_setup.h"
5 #include "erpc_transport_setup.h"
6 #include "erpc_transport.h"
7 #include "erpc_mbf_setup.h"
8
9 int main()
10 {
11     / Init eRPC client environment /
12     / UART transport layer initialization /
13     erpc_transport_t transport = erpc_transport_serial_init("/dev/pts/2", 115200);
14
15     / MessageBufferFactory initialization /
16     erpc_mbf_t message_buffer_factory = erpc_mbf_dynamic_init();
17
18     / eRPC client side initialization /
19     erpc_client_init(transport, message_buffer_factory);
20
21     / other code like init matrix1 and matrix2 values /
22     printf("Client init ok... \n");
23
24     / call eRPC functions /
25     printf("Calling C_initalize function ... \n");
26     void C_Initialize(void);
27
28     / other code like print result matrix */
29     printf("Control back in client side ... \n");
30
31     return 0;
32 }
Can you share some insights, why possibly the client is not able to talk to the server over UART in this setup ?

Got it working. Please ignore.
Found couple of issues related to UART initialization.

Hi,
I am able to call services in server from client. I have a need to send data from server to client without a request from client. Is there a way to implement it?. Please provide your suggestion.

Hi @kumary-vvdn , you need use arbitrator layer. Something is written in documentation, something in issues here on github, you may also look into test for example test_arbitrator.

@anirudhgargi Based on your response i am closing this issue. We are happy that you made it working ;)


Empty "Cookie" header sent

When a request is made, the "Cookie" header is sent even with an empty value. This should not happen.
Raw: Cookie:
Object:
_headers:
      {
        cookie: '',
...

I don't see superagent sending empty cookie headers in the latest version.


[WIP] Fix for timeout

We use quick API to gather only connected hosts only

Fixed by https://github.com/IBM/ibm_power_hmc_sdk_ruby/pull/90


Move example config file to a dedicated file

Right now the example config file is saved to a constant in lib/izwu/config.rb. Consider moving it to a dedicated .yaml file so:

have a link to show it to people (and link it from README)
have proper editor support, syntax highlighting and such.

Link to example config in https://github.com/5long/izwu/commit/10b354bd85194a4f6ead54fbc7628dfcf18d041d


[flyin] Use current context logger instead of root logger to show info level logs

Tracking issue
https://github.com/flyteorg/flyte/issues/4284
Why?
Originally, we used the root logger imported from flytekit. However, it doesn't show the info level logs. The default level is a warning.
What?
Switch to use the logger from flytekit current_context, which is used to print logs during execution. By default, it uses user-space logger, whose level is INFO, so it can also print logs >= INFO level.
The usage is simple. We call logger = flytekit.current_context().logging to get the logger.
Test
IMAGE="localhost:30000/flytekit:0.0.4"

@task(
    container_image=IMAGE,
)
@vscode
def t():
    print("123123")
    ...

I think it's great!


page flickers when debug java

https://github.com/microsoft/vscode/assets/15310195/f1fcdc40-8809-491a-bae6-0253bb5d95bd

VS Code Version: 1.88.1
OS Version: MacBook M1  14.4.1

I have the same issue, with the exact same version of VSCode/macOS, on a M1 Mac.
Some additional context:

It only happens when "Word Wrap" (option + Z) is enabled, and when the file window is too small to show a code line and its debugging annotations (the text highlighted in yellow) on a single line.
The bug also happens on VSCode Insiders version 1.89.0.
It is a quite recent bug that I have only since one or two weeks.

I am also experiencing this with:

VS Code Version: 1.88.1
OS Version: Windows 11 Pro 23H2

https://github.com/microsoft/vscode/issues/210733


Cannot log in from 404 page

See screenshot, clicking on login link does nothing, and there is an error in the console.
I was coming from a non-existent dojo listing page

This is no longer an issue with our new menu bar.


Remove "non-profit" text in topic telegram

Please confirm this pull request meets the following requirements:

[x] I followed the contributing guidelines: https://github.com/github/explore/blob/main/CONTRIBUTING.md.
[x] I have no affiliation with the project I am suggesting (as a maintainer, creator, contractor, or employee).

Which change are you proposing?

[x] Suggesting edits to an existing topic or collection
[ ] Curating a new topic or collection
[ ] Something that does not neatly fit into the binary options above

Editing an existing topic or collection
I'm suggesting these edits to an existing topic or collection:

[ ] Image (and my file is *.png, square, dimensions 288x288, size <= 75 kB)
[x] Content (and my changes are in index.md)

Telegram has successively launched Telegram Premium, advertisements on public channels, usernames that can be collected and other services that can generate profits. I don't think Telegram is still "non-profit".

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

merci l'equipe


Add websphere icon(#10887)

Is this icon licensed by EPLv2 as well? Be careful about the commercial logo.

@wu-sheng I download it from iconfont website，I will check with the author as soon as possible.

@wu-sheng I download it from iconfont website，I will check with the author as soon as possible.

Then it isn't. Because even the author granted to us, we can't grant to our users by following Apache 2.0 License.

@wu-sheng I download it from iconfont website，I will check with the author as soon as possible.

Then it isn't. Because even the author granted to us, we can't grant to our users by following Apache 2.0 License.

I see. I will find another one.

It is better you build one, or we could leave it as blank(default icon). I don't want any concern with Oracle Inc.

Closing due to unclear license.


Swagger ui 3.x

Closes #4
Upgrade project to use Swagger UI v 3.x
Changes

Remove Swagger UI files from revision control
Change to swagger-ui-dist package v 3.x
add package.lock

@nanuuki I made the change you mention and merged conflicts. Please review.


merge from template-node-app

package.json

chore(deps): add ^7.11.0 remove ^7.10.0 (devDependencies.c8)

:tada: This PR is included in version 2.0.127 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


accelerator.pad_across_processes hangs sometimes and works sometimes

System Info
accelerate=='0.16.0'
pytorch=='2.0.0.dev20230202+cu116'

Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction
Trying to accept user input and sync it across 8 gpus:
  ¦ while True:
  ¦ ¦ ¦ source_tokens = torch.ones(1).to(accelerator.device)
  ¦ ¦ ¦ attention_mask = torch.ones(1).to(accelerator.device)
  ¦ ¦ ¦ if accelerator.is_main_process:
  ¦ ¦ ¦ ¦ ¦ input_text = input_loop()
  ¦ ¦ ¦ ¦ ¦ print(f'\nYou entered: ------------')
  ¦ ¦ ¦ ¦ ¦ print(input_text)
  ¦ ¦ ¦ ¦ ¦ print('--------------')
  ¦ ¦ ¦ ¦ ¦ tokenized_text = datamodule.tokenizer(input_text, return_tensors="pt")
  ¦ ¦ ¦ ¦ ¦ source_tokens = tokenized_text['input_ids'].to(accelerator.device)
  ¦ ¦ ¦ ¦ ¦ attention_mask = tokenized_text['attention_mask'].to(accelerator.device)

  ¦ ¦ ¦ (source_tokens, attention_mask) = accelerator.pad_across_processes(
  ¦ ¦ ¦ ¦ ¦ [source_tokens, attention_mask],
  ¦ ¦ ¦ ¦ ¦ dim=0,
  ¦ ¦ ¦ ¦ ¦ pad_index=datamodule.tokenizer.pad_token_id)
  ¦ ¦ ¦ print(source_tokens)

  ¦ ¦ ¦ # Get predictions
  ¦ ¦ ¦ cfg_gen["synced_gpus"] = True
  ¦ ¦ ¦ predictions_tokens = model.generate(  # shape (bsz x T)
  ¦ ¦ ¦ ¦ ¦ source_tokens,
  ¦ ¦ ¦ ¦ ¦ attention_mask=attention_mask,
  ¦ ¦ ¦ ¦ ¦ **cfg.gen,
  ¦ ¦ ¦ )

Expected behavior
Current output is:

You entered: ------------
asd
asf
sadga
--------------

and it gets stuck here sometimes, and it sometimes works.

Expected output is to print the tokenized tensor and then proceed with generation.

I don't fully understand the reproducer. There is nothing to pad across processes here since only one process has inputs. Not too sure what you're trying to achieve but only GPU 0 will do some actual work unless you write something to split your inputs and dispatch them across GPUs.


Updates DueDateButton to render its children if there it has any

👀 Overview
Updates <DueDateButton /> to always render its children if they are present.
👫 Related PRs (optional)
https://github.com/gathercontent/app/pull/1918
✅ Checklist

[ ] Tests written
[ ] Browser tested
[ ] Added to documentation
[ ] Added to storybook

 Bulk Due Dates Minor Fixes

 Stop a group or role from being deleted if it is being used for SSO


Automated releases missing changelog information.

Describe the bug
cargo-dist is intended to automatically pick up changelog data when publishing a new release, and for the moment our isn't. Our recent releases have no changelog data even though the changelog is present.
I chatted with Gankra at Axo.dev about this, and was pointed to this implementation of changelog extraction which should help: https://github.com/axodotdev/cargo-dist/blob/main/cargo-dist/src/announce.rs#L58
Also, cargo-dist apparently uses the crate parse-changelog under the hood, which includes a CLI we can use to test changelog extraction and debug this issue.

This has been fixed.


Test against Python 3.12-dev

Committed via https://github.com/asottile/all-repos

Codecov Report
Base: 100.00% // Head: 100.00% // No change to project coverage :thumbsup:

Coverage data is based on head (d903ec3) compared to base (2d09781).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #42   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines          125       125
  Branches        34        34
=========================================
  Hits           125       125

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Fix demo presentation request, optimize credential retrieval

Adds --auto-store-credential to the demo Alice agents
Adds optional logging around credential and presentation exchanges
Optimizes credential retrieval in the Alice agent demo to use one admin request

Codecov Report

Merging #108 into master will increase coverage by 0.01%.
The diff coverage is 79.31%.

@@            Coverage Diff             @@
##           master     #108      +/-   ##
==========================================
+ Coverage   73.27%   73.28%   +0.01%
==========================================
  Files         184      184
  Lines        7902     7925      +23
==========================================
+ Hits         5790     5808      +18
- Misses       2112     2117       +5


Switch to RUFF_OUTPUT_FORMAT

RUFF_FORMAT was deprecated in favor of RUFF_OUTPUT_FORMAT in  v0.0.291.
As far as I can tell, https://github.com/astral-sh/ruff/commit/bb4f7c681a57f1a0b752fd767c1c75e1fbf878fb#diff-f65bcd73f3a1cda3b14acd953f697a2ffa2f28507a7471b48b4dc6366f5bd791R183-R190 will keep triggering the warning if RUFF_FORMAT is still present. Considering that ruff is now at v0.1.x I hope not setting the previous variable is acceptable.
resolves https://github.com/ChartBoost/ruff-action/issues/6

@boidolr -- awesome, thank you!
Apologies for the delay in review, I had missed the notification :-/

No worries, happy to help.


Humble: [ERROR]: Could not initialize the controller named 'forward_position_controller' when executing rrbot.launch.py

Environment :  Ubuntu 22.04,  ROS 2 Humble
Anyone help me to fix this problem.  Based on recent updates, rrbot.launch.py example generated forward_position_controller problem.
Without recent updates (maybe fix-source-build-on-rolling branch and perhaps w/o recent ros2 control ??), rrbot.launch.py 's control example was well worked. But, now it is not worked.
What has changed ?  How to fix this problem ?
< Problem info >
[ros2_control_node-1] [INFO]: Loading controller 'forward_position_controller'
[ros2_control_node-1] [INFO]: Reading...
[ros2_control_node-1] [INFO]: Got state 0.00000 for joint 0!
[ros2_control_node-1] [INFO]: Got state 0.00000 for joint 1!
[ros2_control_node-1] [INFO]: Joints successfully read!
[ros2_control_node-1] [INFO]: Writing...
[ros2_control_node-1] [INFO]: Got command 0.00000 for joint 0!
[ros2_control_node-1] [INFO]: Got command 0.00000 for joint 1!
[ros2_control_node-1] [INFO]: Joints successfully written!
[ros2_control_node-1] Exception thrown during init stage with message: parameter 'joints' has already been declared
[ros2_control_node-1] [ERROR]: Could not initialize the controller named 'forward_position_controller'

I'm a beginner for ROS thus I couldn't understand what the problem is. But, the diffbot example is working well.
Thus, comparing to the diffbot example, the above problem was solved by modifying it as follows.
This is not the correct way I think. Hopefully this issue will be resolved in the future.
====  forward_command_controller.cpp  ================
void ForwardCommandController::declare_parameters()
{
//get_node()->declare_parameter<std::vectorstd::string>("joints", std::vectorstd::string());
auto_declare<std::vectorstd::string>("joints", std::vectorstd::string());
//get_node()->declare_parameterstd::string("interface_name", "");
auto_declarestd::string("interface_name", "");
}


deliver not loading all languages or metadata

New Issue Checklist

[X] Updated fastlane to the latest version
[X] I have read the Contribution Guidelines

Issue Description
When migrating from an older version of deliver, I can't seem to get all of my language metadata to upload anymore. The metadata directory structure from the two versions seems to be identical. Curiously it is missing both a majority of the languages and is missing the title.txt and version_whats_new.txt from the languages it does find.

Complete output when running fastlane, including the stack trace and command used
[17:28:28]: Making sure the latest version on iTunes Connect matches '3.2' from the ipa file...
[17:28:30]: '3.2' is the latest version on iTunes Connect
[17:28:30]: Loading './metadata/de-DE/description.txt'...
[17:28:30]: Loading './metadata/de-DE/keywords.txt'...
[17:28:30]: Loading './metadata/de-DE/support_url.txt'...
[17:28:30]: Loading './metadata/de-DE/privacy_url.txt'...
[17:28:30]: Loading './metadata/en-US/description.txt'...
[17:28:30]: Loading './metadata/en-US/keywords.txt'...
[17:28:30]: Loading './metadata/en-US/support_url.txt'...
[17:28:30]: Loading './metadata/en-US/privacy_url.txt'...
[17:28:30]: Loading './metadata/es-ES/description.txt'...
[17:28:30]: Loading './metadata/es-ES/keywords.txt'...
[17:28:30]: Loading './metadata/es-ES/support_url.txt'...
[17:28:30]: Loading './metadata/es-ES/privacy_url.txt'...
[17:28:30]: Loading './metadata/fr-FR/description.txt'...
[17:28:30]: Loading './metadata/fr-FR/keywords.txt'...
[17:28:30]: Loading './metadata/fr-FR/support_url.txt'...
[17:28:30]: Loading './metadata/fr-FR/privacy_url.txt'...
[17:28:30]: Loading './metadata/nl-NL/description.txt'...
[17:28:30]: Loading './metadata/nl-NL/keywords.txt'...
[17:28:30]: Loading './metadata/nl-NL/support_url.txt'...
[17:28:30]: Loading './metadata/nl-NL/privacy_url.txt'...
[17:28:30]: Loading './metadata/pt-BR/description.txt'...
[17:28:30]: Loading './metadata/pt-BR/keywords.txt'...
[17:28:30]: Loading './metadata/pt-BR/support_url.txt'...
[17:28:30]: Loading './metadata/pt-BR/privacy_url.txt'...
[17:28:30]: Loading './metadata/pt-PT/description.txt'...
[17:28:30]: Loading './metadata/pt-PT/keywords.txt'...
[17:28:30]: Loading './metadata/pt-PT/support_url.txt'...
[17:28:30]: Loading './metadata/pt-PT/privacy_url.txt'...
[17:28:30]: Verifying the upload via the HTML file can be disabled by either adding
[17:28:30]: `force true` to your Deliverfile or using `deliver --force`
Does the Preview on path './Preview.html' look okay for you? (y/n)

Configuration Files
Deliverfile:
# The version of your app - remove this if you provide an ipa file
app_version "3.2"
submit_for_review false
skip_binary_upload true
skip_screenshots true

Environment
fastlane version (fastlane -v): fastlane 1.81.0 deliver 1.11.0
Do you use bundler, rbenv or rvm? rbenv

@chrisballinger Thanks for reaching out. Can you run deliver with the verbose flag so I can have a look at the output? deliver --verbose 👍

I ended up just manually copy-pasting the What's New to the 20 languages in iTunes Connect. I'll post verbose output when submitting our next point update.. which will probably be soon

It seems to be because the language codes that deliver/Apple use have changed. For example da-DK is now just da. Also title.txt is now name.txt...


need your files

Hello author, can you provide your pre-training weights and evaluate.py files?
This is my email<EMAIL_ADDRESS>, thank you very much!

Have you solved the problem, please?My email is<EMAIL_ADDRESS>


Add some responive

The docs nav wasn't responsive i've add some :D

This is failing with Error: The jekyll-theme-minimal theme could not be found.. Could you share your reason for wanting to set theme.

@remear was a mistake, i've add that  to can see at gh, i will remove that

I'm having trouble testing locally at the moment, but I'm in favor of having responsive menus...I've occasionally tried to look up a link to share while on my phone and had problems.


Import CSV to do NER labeling,but can not get correct value.

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Import A csv file with headers, it seems like this:

Then I did the setup for NER task:
The configuration is :

<View>
  <Labels name="label" toName="text">

  <Label value="设备" background="#FFA39E"/>
    <Label value="故障" background="#D4380D"/>
    <Label value="现象" background="#FFC069"/>
    <Label value="不相关" background="#AD8B00"/>
  </Labels>

  <Text name="text" value="$技术支持故障描述"/>

</View>

It supposed to work, but when I get into labeling, there was nothing else but the $column name in the label interface.

Environment (please complete the following information):

OS: Windows 11
Label Studio Version latest

Additional context
Add any other context about the problem here.

I am not sure it's allowed to use non-latin characters in value="..." and other system attributes.


draft of updated documentation + some small license and build updates

first draft of updated documentation (#60)
some license cleanup
some build cleanup

Coverage remained the same at 97.775% when pulling 28102441de7be5f26ec49a742793cea7c3dbac6c on update-docs into c8b1e0ffc02176026ca188dfd8c690c7b64bc98d on master.


RHMAP-10216 Remove permission change for container recycle

This removes a permission change which changes the permissions on
the underlying pv directory.

Pull Request Quality Guidelines
As we continue to focus on quality, here are a few things to keep in mind:

The code changes conform to the contributing & code style guides for this component (if they exist)
A component owner should review your change (we've tagged these above)
Automated testing has been added or updated for this change (e.g. UART, Unit/Acceptance tests)
If updating server component this PR should be deployed to a grid somewhere (via fhcap-cli) - please provide a link to this
Ensure JIRA is up to date before & after merge (e.g. deployment notes, tester notes, release notes, fix version)
Any SonarQube issues should be addressed where applicable (use your own judgement)

Please ping a component owner (see fh contrib) when your builds are complete, changes are deployed and you're ready for a review.
Fhcap PR will be generated automatically.
To deploy your changes to a cluster place comment in this PR with pattern [x][y] where x=deploy and y=clustername you wish to deploy.
You can also deploy your change manually using fhcap-cli

@wtrocki Could you take a look please?

Reviewed

retest this please


Issue 523

Addition of Bounding Box Manipulators.

Hey John, regarding the code conventions, we've talked in the past about making implementation passes on a single branch, and cleanup passes in another branch.  This was to make it easier for the reviewer to suss out what's important in the code change.  Since you've seen the major changes, I think it's safer to do the cleanup.  I took to this as an implementation pass, not a refactorization.

Scott, sorry I don’t recall that discussion. In any event it speeds the review process if the conventions are followed.
thanks - jc

On Jun 7, 2018, at 3:44 PM, sgpearse<EMAIL_ADDRESS>wrote:
Hey John, regarding the code conventions, we've talked in the past about making implementation passes on a single branch, and cleanup passes in another branch. This was to make it easier for the reviewer to suss out what's important in the code change. Since you've seen the major changes, I think it's safer to do the cleanup. I took to this as an implementation pass, not a refactorization.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub, or mute the thread.

John Clyne
National Center for Atmospheric Research
303.497.1236 (w),<PHONE_NUMBER> (c)
<EMAIL_ADDRESS>

Hey John, feel free to check out the changes.  I believe I've addressed everything.  The Update() method needs all those parameters for reasons we've talked about.  There are strategies we can use to reduce this, particularly by setting up the ModelView and Projection matrices during mouse events.  Currently, they only get set up during render events.

All noted items are fixed in the current pull request.


[Proposal] Enhance NetDaemon.HassModel.CodeGenerator type output

This is the first draft of a potential proposal. It's not even a proposal right now, but I wanted to write my thoughts down in public so people can point out my newbie assumptions etc (if they happen to drive by). I think it's worth doing as I'm new to HA and new to ND, so this will be a record of my fresh eyed and naive beginner journey. Comments and corrections welcome!
Type curiosities
1. Parameters missing for action/service calls that are documented for the integration building block
For my WiiM media player DNLA integration, the generated MediaPlayerPlayMediaParameters was missing the extra property. The player responded to values passed via this property and extra is a known property of the base Media player building block. I added extra via the partial class support of ND (win for ND), but it seemed odd that a documented property was not present.
I know in my case, this is not an issue with the ND type algo as the service JSON return from HA get_services did not include extra in the fields object. So I think it most likely that adding via the partial class is the correct approach here.
2. Properties emitted as double when we know they should be int (or flags enum)
A very clear example are the SupportedFeatures properties. In the HA Python code they are clearly specified as integer flags intended for bitwise operations. However, they are emitted as doubles by HA codegen.
public double? SupportedFeatures { get; init; }

3. All numbers in the JSON become a double
The .NET type of a JSON number is always double. It would be good to break this out into more specific type detection (if possible). Obviously, this is related to 2 above.
JsonValueKind.False => typeof(bool),
JsonValueKind.Undefined => typeof(object),
JsonValueKind.Object => typeof(object),
JsonValueKind.Array => typeof(IReadOnlyList<>),
JsonValueKind.String => typeof(string),
JsonValueKind.Number => typeof(double),
JsonValueKind.True => typeof(bool),
JsonValueKind.Null => typeof(object),

4. In the presence of multiple inferred CLR types, object is emitted
It might be nice if we could express this in the emitted code (e.g. Choice<T1, T2, etc>) or perhaps have a mechanism for the developer to hint/specify the type.
  // Multiple types were found so we need to resort to object
  if (distinctCrlTypes.Count > 1) return typeof(object);

How it works today (probably)
Basic overview
flowchart
	n1["Run Codegen"]
	n2["get_states get_services"]
	n3["EntityMetaData.json exists in output folder?"]
	n4["Load DefaultEntityMetaData.json from resources"]
	n5["Deserialise into EntityDomainMetadata collection"]
	n6["Create second EntityDomainMetadata collection from get_states states collection"]
	n7["Merge the two collections of EntityDomainMetaData (Entities from the second set and Attributes from both)"]
	n8["Save to Output folder EntityMetaData.json"]
	n9["Load EntityMetaData.json from output folder"]
	n1 --> n2
	n2 --> n3
	n3 -- "No" --> n4
	n4 --> n5
	n5 --> n6
	n6 --> n7
	n7 --> n8
	n3 -- "Yes" --> n9
	n9 --> n5

Nuts and bolts for entities
States for a given ("domain", isNumeric) group map 1-1 to an EntityMetaData. Here we see ("button", False) states (entity for each) and then attributes (single combined list for all):

The above ends up like this when codegen is executed:

Questions

Is there a way to tell/hint to ND how you want a certain property to be emitted? I understand that despite integrations having know building blocks with specifically typed params, perhas a specific integration may violate this and return a value of an unexpected type.

The proposed solution
TODO

The alternatives
TODO

I'm going to close this for now as the time window I had to look at it as passed. I may be back :)


added missing lines & corrected ids

#18 Pull has necessary commits(these two fixes) but it was merged as master-2. Hence I created this patch(I was thinkin of cherry-pick but patch was easy enough in this case) to merge these 2 commits into master, important successful gradle build.
LGTM!

Thanks @RajuSE !