Creating a singleExe from UnPackaged app breaks the latest WindowsApp SDK

Describe the bug
Currently using the latest SDK 1.5.240428000, it fails to generate the resource.pri when creating the SingleExe. I think, it is breaking the latest SDK behavior.
If we use the SDK version 1.4.240211001, It creates the SingleExe properly with all dependency files.
It's replicate in the CustomControl library project also.
Steps to reproduce the bug
CustomControl.zip
SimpleApp.zip

Open the SimpleApp project.
Tools->Commands->Developer Powershell. Use below command line for creating the SingleExe.
 dotnet publish SimpleApp.sln -c Release -p:Platform=x64 -p:PublishSingleFile=true --self-contained true -p:WindowsAppSDKSelfContained=true
Now, open the Bin folder and check the exe.

Note: Exe will not launch in launch SDK.
Expected behavior
It should launch the exe properly as like windows SDK (1.4.240211001).
Screenshots
In Version 1.4.240211001

In Version 1.5.240428000

NuGet package version
Windows App SDK 1.5.3: 1.5.240428000
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response

You can Exclude Files using:
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
I did not test new version, but Its mechanism may have changed
Use IncludeNativeLibrariesForSelfExtract and see if it makes a difference
<IncludeNativeLibrariesForSelfExtract>false</IncludeNativeLibrariesForSelfExtract>

The resources.pri file (and all other native libraries) are actually embedded into the .exe file now and extracted to a temporary directory when you start the application. I checked your sample app to see why it does not work:
-You need to set WindowsAppSdkSelfContained to true (see warning during build).
-The resource APIs in the Windows namespace are apparently not compatible with this scheme, thus you need to use the ones from the Microsoft namespace.

Do the suggested actions fix the problem?

Thanks for answering,
No @bpulliam, Still exe not launched when I use above suggestion given by @lhak and @ghost1372
I have attached my project application and the command which I use to generate the single exe. Please go through and could you please check my problem and provide a solution for this?
Note: I feel it is broken in latest update SDK.

@sudharsan-narayanan
i tested your project and i can say that issue is from your library!
you can see there is some error with your library

i created a new project with a new class library and i can publish app as single file and exe can be run without any issues.

@sudharsan-narayanan i tested your project and i can say that issue is from your library! you can see there is some error with your library
i created a new project with a new class library and i can publish app as single file and exe can be run without any issues.

We have tried the same with our provided sample, we can't be able to reproduce the error from our end. Can you please provide the sample which you created?
Myself also attached the video in this comment, which I have tried in my machine.
https://github.com/microsoft/WindowsAppSDK/assets/93642597/bedcfbf1-6715-49c0-9e3c-e608351be8e2

Hi Team, Any update on this?


Peer To Peer Code Review

Hi @andrianarivo  , good job so far on the Portfolio project. Below are some ideas and suggestions about the project, cheers! 👍🏽
HIGHLIGHTS 🎯
The project is well structured and organised into folders/directories ✅
The project has a comprehensive README documentation ✅
The project has been deployed properly and is accessible viewed via the demo link provided ✅
The project is very readable and easy to maintain due to the descriptive comments in your files 🥇

thank you for your suggestion


Wrong checksums

RPM adapter generates wrong checksums:
[root@108bdecf5649 /]# yum install -v glade
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
DNF version: 4.2.7
cachedir: /var/cache/dnf
repo: downloading from remote: <IP_ADDRESS>_centos_
error: Downloading successful, but checksum doesn't match. Calculated: fc6135e0ec7d54cb7f2fb2410ea6b8337a708c576a2d814940abe526a5743df5(sha256)  Expected: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855(sha256)  (http://<IP_ADDRESS>/centos/repodata/filelists.xml.gz).
error: Downloading successful, but checksum doesn't match. Calculated: b3363ef4d42f95313adb613ce5cd8d72fb175cb5366605183f5584f5f332925f(sha256)  Expected: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855(sha256)  (http://<IP_ADDRESS>/centos/repodata/primary.xml.gz).
created by dnf config-manager from http://<IP_ADDRESS>/centos/                                             31 MB/s | 2.3 MB     00:00
Cannot download 'http://<IP_ADDRESS>/centos/': Yum repo downloading error: Downloading error(s): repodata/primary.xml.gz - Cannot download, all mirrors were already tried without success; repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success.
Failed to download metadata for repo '<IP_ADDRESS>_centos_'
Error: Failed to download metadata for repo '<IP_ADDRESS>_centos_'

The job #125 assigned to @g4s8/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be no monetary reward for this job

@rultor release, tag=0.7.1

@rultor release, tag=0.7.1

@g4s8 OK, I will release it now. Please check the progress here

@rultor release, tag=0.7.1

@g4s8 Done! FYI, the full log is here (took me 10min)

Fixed

Job was finished in 15 hours, bonus for fast delivery is possible (see §36)


ISSUE-441 Let addOrUpdate be compatible with PostgreSQL under 9.5

replace upsert query with get -> add/update in addOrUpdate for postgresql

This closes #441

Hope that we can finish the issue from this patch.

@satishd
Sadly I don't have PostgreSQL 9.2 and 9.5 is already installed in my dev., so may need to setup Ambari cluster for that. I'll see if I could get help from someone on testing.

@satishd
I finally got a cluster for testing: I replaced storage core module for SAM with this one, and change the name of application succeeded.
You can see there're two queries executed for addOrUpdate: SELECT -> UPDATE since it called upsert on existing topology.
DEBUG  [2018-04-27 06:24:55.492] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.q.AbstractSqlQuery -  SELECT * FROM "topology" WHERE "id" = ? AND "versionId" = ?
DEBUG  [2018-04-27 06:24:55.492] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.s.PreparedStatementBuilder -  Creating prepared statement for parameterized sql [SELECT * FROM "topology" WHERE "id" = ? AND "versionId" = ?]
DEBUG  [2018-04-27 06:24:55.492] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.s.PreparedStatementBuilder -  2 ? query parameters found for SELECT * FROM "topology" WHERE "id" = ? AND "versionId" = ?
DEBUG  [2018-04-27 06:24:55.492] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.s.PreparedStatementBuilder -  Successfully prepared statement [HikariProxyPreparedStatement@142403564 wrapping SELECT * FROM "topology" WHERE "id" = 1 AND "versionId" = 1]
DEBUG  [2018-04-27 06:24:55.493] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.s.DefaultStorageDataTypeContext -  Row for ResultSet [HikariProxyResultSet@1868242609 wrapping org.postgresql.jdbc.PgResultSet@45dee3b7] with metadata [org.postgresql.jdbc.PgResultSetMetaData@4b4b772b] generated Map [{versionId=1, namespaceId=-1, name=NewTest2, description=null, id=1, config={"topology.workers":1,"topology.acker.executors":1,"topology.message.timeout.secs":30,"topology.eventlogger.executors":1,"clustersSecurityConfig":[{}]}}]
DEBUG  [2018-04-27 06:24:55.500] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.f.QueryExecutor -  Got new connection to create PreparedStatement: [HikariProxyConnection@1975391466 wrapping org.postgresql.jdbc.PgConnection@5fc35424]
DEBUG  [2018-04-27 06:24:55.500] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.f.QueryExecutor -  sqlBuilder AbstractSqlQuery{columns=[Field{name='id', type=LONG, optional=false}, Field{name='versionId', type=LONG, optional=false}, Field{name='name', type=STRING, optional=false}, Field{name='description', type=STRING, optional=false}, Field{name='namespaceId', type=LONG, optional=false}, Field{name='config', type=STRING, optional=false}], tableName='topology', primaryKey=StorableId{fieldsToVal={Field{name='id', type=LONG, optional=false}=1, Field{name='versionId', type=LONG, optional=false}=1}}, sql='null'}
DEBUG  [2018-04-27 06:24:55.500] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.q.AbstractSqlQuery -  Sql 'UPDATE topology SET "id" = ?, "versionId" = ?, "name" = ?, "description" = ?, "namespaceId" = ?, "config" = ? WHERE "id" = ? AND "versionId" = ?'
DEBUG  [2018-04-27 06:24:55.500] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.s.PreparedStatementBuilder -  Creating prepared statement for parameterized sql [UPDATE topology SET "id" = ?, "versionId" = ?, "name" = ?, "description" = ?, "namespaceId" = ?, "config" = ? WHERE "id" = ? AND "versionId" = ?]
DEBUG  [2018-04-27 06:24:55.500] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.s.PreparedStatementBuilder -  8 ? query parameters found for UPDATE topology SET "id" = ?, "versionId" = ?, "name" = ?, "description" = ?, "namespaceId" = ?, "config" = ? WHERE "id" = ? AND "versionId" = ?
DEBUG  [2018-04-27 06:24:55.501] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.s.PreparedStatementBuilder -  Successfully prepared statement [HikariProxyPreparedStatement@701706178 wrapping UPDATE topology SET "id" = 1, "versionId" = 1, "name" = 'NewTest3', "description" = NULL, "namespaceId" = -1, "config" = '{"topology.workers":1,"topology.acker.executors":1,"topology.message.timeout.secs":30,"topology.eventlogger.executors":1,"clustersSecurityConfig":[{}]}' WHERE "id" = 1 AND "versionId" = 1]
DEBUG  [2018-04-27 06:24:55.510] [dw-30 - PUT /api/v1/catalog/topologies/1] c.h.r.s.i.j.p.s.f.QueryExecutor -   --- Committed transaction for thread id : 30 ---

@HeartSaVioR Thanks for verifying on that env. Which postgres version is that?
+1 if it is verified on both pre and post 9.5 environments.

@satishd
The test environments are 9.2.23 (HDF cluster) and 9.6.5 (local dev).


Stream - pause/resume

Hi,
I am dealing with large amount of data in SQL server and daily need to process approximately 1 million records. I was looking streams but not sure if it supports automatic pause/resume based on downstream congestion or some sort of highWaterMark setting.
Please advise. Thank you.

Unfortunately this is not supported atm.


Coercion types are now allowed as return types.

Since Rakudo commit b508576fc51cfa128a84ed4f302528a3f78bab03

Tests are here.
https://github.com/perl6/roast/blob/master/S06-signature/definite-return.t#L135-L209

Where do you think this should go? Could it get along well with #1225?


Optimization opportunity to reuse service struct allocations in github.Client

All of github.Client's service fields point to objects with identical underlying struct types.  Currently they're each separately heap allocated, but they could be made to reuse the same memory.  For example, add a field to github.Client:
       self       struct{ client *Client }

And then change github.NewClient to initialize the service fields as so:
       c.self.client = c
       c.Activity = (*ActivityService)(&c.self)
       c.Authorizations = (*AuthorizationsService)(&c.self)
       c.Gists = (*GistsService)(&c.self)
       ...

Just a random observation while looking at the API/implementation.  Feel free to close if you don't think this optimization is worthwhile.

Interesting.  This saves roughly (14-1)*8=104 bytes on the heap on a 64-bit system if my math is correct. The initialization code is a bit uglier but otherwise there should be no changes to the users of the package.  I'm on the fence as to whether or not this is worth doing. I'll wait to hear from others.
Whichever way it goes, thanks for the suggestion, @mdempsky.

Math checks out to me.  FWIW, the savings are the same on 32-bit systems, because heap allocations for variables containing pointers are always at least 8 bytes independent of pointer size.

huh, certainly a clever optimization.  Like Glenn said, it does make the initializion code a little uglier, but that's not really code that anyone touches except to add a new service.  I could really go either way on making the change or not.  @shurcooL: you have an opinion either way?

That's a neat idea. I didn't realize you could do this. It is valid though.

@shurcooL: you have an opinion either way?

I agree with everything said and disagree with nothing. This sentence summarizes it best:

it does make the initialization code a little uglier, but that's not really code that anyone touches except to add a new service.

I'll add one thought to that.
I think it's fantastic how this library serves a very well defined and useful need (a GitHub API Go client). That allows it to be used by many, and so even marginal improvements can have a large positive impact.
One my personal principles is to never say no when someone wants to make something better, no matter how little or marginal the improvement is. As long as it's a net positive improvement, I think it's a bad idea to not let a motivated person from making that contribution, just because it's too upsetting to be on the other side (feeling excited, "here's a small improvement I want to make! But is it going to be rejected because it's deemed "too small" and not worth the time?").
We've had some cool enhancements contributed, both really significant like https://github.com/google/go-github/pull/317 and pretty insignificant like https://github.com/google/go-github/pull/347 (shameless plug). I think all should be welcome, if there's someone motivated who wants to contribute and the result is better.
I see this idea in similar vein. Yes, the potential improvement is minor, but once done, all users will benefit. It would make internal implementation details that users don't look at a little messier, and prevent new service structs from having extra fields inside... But I doubt we'd ever want that anyway, and we if do, it's easy to revert the change.
So to summarize, I think this idea is neat/cool, and I learned something from it. I don't think it's significant enough that I would work on it. But if someone (@mdempsky?) wants to make a PR, and it works out well, I'm very happy to review and accept it!

@shurcooL - I really like that philosophy.   SGTM.  👍
If anyone wants to take this one, feel free.  If not, I'm happy to take it.  I'll give @mdempsky a couple days to decide.  (I have a personal goal of getting to zero PRs and zero Issues... I'm not sure it can truly be accomplished, but I think we've made awesome progress as a team in the last month or two.)

Cool, I'll upload a PR later today then.


Remove unneccessary AppsandFeaturesEntries * manifests/o/OpenDesignAlliance/ODAFileConverter/23.12/OpenDesignAlliance.ODAFileConverter.installer.yaml

Microsoft Reviewers: Open in CodeFlow

URL:
Invalid URI: The hostname could not be parsed.
(Automated message - build 899)


Ask users if they'd like to have default taints added to the user and worker node groups of Nebari for potential cost savings

Context
https://github.com/nebari-dev/nebari/pull/2605 adds taints to user nodes to fix issues in the past where node groups won't scale down.  This is a nice benefit and would result in cost savings for most users.  However most prior users won't know about the change unless we prompt them about it during the upgrade process.
Value and/or benefit
good defaults for existing users resulting in cost savings
Anything else?
No response

Keep in mind that other user node groups (e.g. gpus, argo workflows using jupyterflow-override) should add the user taint to other user node profiles in order to prevent the same issue this PR prevents.

@Adam-D-Lewis, will #2605 address this consideration?

This comment addresses this need.


markdown support for bio and worker proposals etc..

we already have a markdown parser component.
ive played around with several markdown editor packages and most of them are pretty bad or dont have much support for styling etc...
the one i would consider is medium-editor

for now we are using medium editor so i this can be closed


Accept phone subscriptions and enable sending notifications to new subscribers

We will soon be adding the ability to let people subscribe with a phone number to receive text messages via the GovDelivery Wireless Alerts feature.
The intent of this PR is to modify the API methods to allow for doing this. The basic need was to modify the XML for creating subscribers and setting subscriber topics to be able to use the phone node instead of email when appropriate.
The logic here is predicated on the notion that GovDelivery's API will take a phone number that is digits only, no separators. The example in their docs shows hyphen separators, but they do not explicitly say those are required. If they are, we'll have to add some code to format_phone to add those in.
/cc @jimmynotjim

Updated to enable API calls to set_subscriber_topics and set_subscriber_categories to take a send_notification parameter, which the XML payload builders already supported, and will allow us to actually notify new subscribers of their subscription.

Woo, first PR to this repo!


Add IaC Security

( opening this issue for further input, following presentation & discussion on December 1st community meeting)
Is your feature request related to a problem?
Many Open Source projects have IaC files to facilitate faster installation / consumption for their project. We want to verify projects check the security of these files, so the artifacts and the community who uses them would be safer.  This, at later phases, also have Supply Chain Security implications.
Example: keptn project scans their repository with KICS to make sure the dockerfiles (and the containers created with them) are secure according to best practices. Same for HELM charts.
Describe the solution you'd like
Add an IaC security category / score.
Phase 1
Detect if repository has IaC files
Detect if repository has IaC security check in place (e.g. KICS github action)
Warn if files exist & there isn’t a security check
Similar to dependencies files & checking for SCA tools.
Phase 2
Score project based on the results of IaC security check.
Each critical result - 2 point reduction, high - 1 point reduction.
With goal to implement both phases as once, as suggested in the community meeting.
Additional context
Previous references where IaC scans were mentioned : #1984, #2318

SGTM. Let's start with the Action in SAST.
/cc @raghavkaul

It's still on our TODO.


MatSelect - Accepting Enums [Future Request]

Hi,
Currently, MatSelect is limited to a string. I wished to pass an enum in the drop-down which works with the standard select. I have a workaround to convert from and to, but if you can make in the future, that will be nice!
BaseMatSelect.cs
line 62
        [Parameter]
        public string Value

Thanks,
Emiliyan

Hi, I found a workaround to work with that issue. Rather than trying to bind Enum, I am parsing a string. So the select looks like following. Surely is not ideal, but it does the job.
<MatSelect Label="MaterialType" Enhanced="true"
 OnInput="@((UIChangeEventArgs __e) => matMasterMvts.MatMasterMvtType =
         (MatMasterMvtType)Enum.Parse(typeof(MatMasterMvtType), __e.Value.ToString()))">
@foreach (var matMvtType in Enum.GetNames(typeof(MatMasterMvtType)))
{
 <MatOption>@matMvtType</MatOption>
 }
</MatSelect>

Thanks for using MatBlazor, as of now MatSelect accept generic types! Closing this one.

Can we see a code example of the enum generic type? Cause it's not working!

In the event some poor soul lands on this page in the future:
<MatSelect Label="Pick a Food Group" TValue="int" OnInput="e=> myClassInstance.Food = (Foods)int.Parse((string)e.Value)">
@foreach(int val in Enum.GetValues(typeof(Foods))){
@Enum.GetName(typeof(Foods),val)
}

@myClassInstance.Food
@code
{
myClass myClassInstance = new myClass();
class myClass {
    public Foods Food{get;set;} = Foods.None;
}

enum Foods : int{
    None = 0,
    Bread = 1,
    Veges = 2,
    Fruit = 3
}

}"

Can we see a code example of the enum type? Cause it's not working!

Same here and I would also be glad to see an example :-)

 <MatSelect Label="Its actually and Enum" TValue="int" ValueChanged="@(v => propertyInfo.SetValue(Item, v))" Value="@((int)propertyInfo.GetValue(Item))" FullWidth="true">                                         @foreach (int val in Enum.GetValues(propertyInfo.PropertyType))                                         {                                             <MatOption TValue="int" Value="@val">@Enum.GetName(propertyInfo.PropertyType, val)</MatOption>                                         }                                     </MatSelect>
Here's my workaround in the meantime for Enums. Cast it to int then cast it back to Enum. "propertyInfo" is of type PropertyInfo, since this came from a razor control that dynamically generates the form at runtime. It doesn't need to be though.


Collection format

Description
Fix https://github.com/Azure/autorest.csharp/issues/3114

emit     ArraySerializationDelimiter and Explode according to the collectionFormat
add sample test

Checklist
To ensure a quick review and merge, please ensure:

[ ] The PR has a understandable title and description explaining the why and what.
[ ] The PR is opened in draft if not ready for review yet.

If opened in draft, please allocate sufficient time (24 hours) after moving out of draft for review

[ ] The branch is recent enough to not have merge conflicts upon creation.

Ready to Land?

[ ] Build is completely green

Submissions with test failures require tracking issue and approval of a CODEOWNER

[ ] At least one +1 review by a CODEOWNER
[ ] All -1 reviews are confirmed resolved by the reviewer

Override/Marking reviews stale must be discussed with CODEOWNERS first

Flash the azure-sdk-for-net. there is no any changes. The sdk branch: https://github.com/chunyu3/azure-sdk-for-net/tree/collectionFormat

We already have cadl-ranch tests: https://github.com/Azure/cadl-ranch/blob/main/packages/cadl-ranch-specs/http/collectionFormat/main.cadl
Let's use this.

We need to update the cadl ranch collectionFormat mockapi. It will take time to release.

/azp run


Type xsd:float not implemented

With xsd2go 0.1.4:
wget https://gitlab.com/loveshack/sge/-/raw/master/source/dist/util/resources/schemas/qstat/detailed_job_info.xsd
go install github.com/gocomply/xsd2go/cli/gocomply_xsd2go@latest
gocomply_xsd2go convert detailed_job_info.xsd github.com/whoever/whatever my/models/here
Processing 'detailed_job_info.xsd'
	Parsing: detailed_job_info.xsd
panic: Type xsd:float not implemented

It appears to be much bigger than that, I'm running into panic: Type xsd:positiveInteger not implemented :)


getAudio() only is getting 76800 bytes in the first loop

Hi again,
I'm opening a new issue because I found out in AudioHook2 project the core of problem of why getAudio() is getting 76800 bytes only in the first loop.
So, let's get started:
1 - Calling getAudio(), in Sender.pp on  AudioHook2 project, the getDataSize() function returns:
76800==MAXLENGTH
Because isEmpty is 0
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/Sender.cpp#L166
2 - Then in the while loop in getAll() function in getAudio.cpp numBytes accumulates until it achieves 76800.
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/getAudio.cpp#L80
3 - Next, it enters in if bellow and pOldest receives numBytes= 76800.
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/getAudio.cpp#L93
4 - It finishes the getAudio() call returning numBytes= 76800 and with:
pLastest= 0
pOldest= 76800
isEmpty= 0
5 - Next, calling the getAudio() again, in the sender.cpp the getDataSize() returns 0, because the if bellow:
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/Sender.cpp#L163
6 - So, numBytes not accumulate in the while loop and it keeps the 0 value.
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/getAudio.cpp#L80
7 - So, it enters in the if bellow again the pOldest receives numBytes = 0.
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/getAudio.cpp#L93
8 - So, it enters in if bellow and isEmpty receive 1.
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/getAudio.cpp#L104
9 - It finishes the getAudio() call returning numBytes= 0 and with:
pLastest= 0
pOldest= 0
isEmpty= 1
10 - Calling getAudio() again, in sender.cpp the getDataSize() returns 0:
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/Sender.cpp#L166
Because isEmpty is 1 and
11- In the while loop numBytes not accumulate and then it keeps the 0 value:
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/getAudio.cpp#L80
12- Next, it enters in if bellow:
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/getAudio.cpp#L83
and pOldest receive numBytes= 0.
13 - Next, it enters in if bellow too:
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/getAudio.cpp#L104
and the isEmpty receive 1 again.
14 - It finishes getAudio() returning numBytes 0 and with:
pLastest= 0
pOldest= 0
isEmpty= 1
So, we have a infinite loop with numBytes returning 0.

Hi, did you see my comment in the last issue? You need to make it sleep for some time to wait for some audio accumulating in the buffer, so that the numBytes returned by getAudio() won't be 0.

In the 5th step, getDataSize() shouldn't return 0 because the DLL keeps filling the buffer by calling FillSenderBuffer(). https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/32235fe54af4f8437081b3e01c98a00c6a1279da/AudioHook/Sender.cpp#L105
I found another potential problem. Did you see AudioHook2.lib file under /TestCaptureAudio? I think you need to build your own AudioHook2.lib, which is generated together with AudioHook2.dll, and replace the previous AudioHook2.lib under /TestCaptureAudio with new one. It will be used to build TestCaptureAudio. Because I'm not sure if lib file is still same under different compiling environment, otherwise the getAudio() interface may be broken.
btw, all projects should be consistent on debug/release build.

Oh my gosh..
Sorry by didn't tell you since the beginning. I built all the projects and I replaced the path
https://github.com/ShuaiShao93/Audio-Capture-Transmission-Player/blob/0f5ccaa028c3bf2d3d6a0f19030de8d4ddda5536/InjectDLL/InjectDLL.cpp#L25
by the right path which AudioHook built AudioHook2.dll and all the dependencies.
And when I ran TestCaptureAudio.exe by the first time it complainted "the AudioHook2.dll was not found in your system [...]". So I worked this issue around copying only AudioHook2.dll into the "\TestCaptureAudio\Release" folder and I went on coding and getting all this issues until now.
So, answer your question, until now I didn't replace AudioHook2.lib in  /TestCaptureAudio. I will try that.


Can't bind port 80 when doing an environment start if already running.

Currently there are issues with the address already in use. This could be because my commands are running alongside one another rather than one after the other. This need investigating.
cdev env:start

>>>>>>>>>> STARTING DEV ENVIRONMENT...
>>> Adding a new configuration for `ahe.dev.com` inside `/usr/local/etc/httpd/extra/httpd-vhosts.conf`.
>>> Ensuring that the configuration has been applied for `ahe.dev.com`
>>> Running `sudo apachectl -k stop`
>>> Running `sudo apachectl -k start`
(48)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(48)Address already in use: AH00072: make_sock: could not bind to address <IP_ADDRESS>:80
no listening sockets available, shutting down
AH00015: Unable to open logs
>>> Running `brew services start mariadb`
Service `mariadb` already started, use `brew services restart mariadb` to restart.

Same as #15
Closing this ticket.


ISA Investigation is being submitted as a ENA Study/Project

This is not needed.

Relates to this?
https://github.com/elixir-europe/MARS/issues/3

Get rid of it for now.

Shall we try to use ISA-JSON Study title as ENA Study/Project?

I think you comment is related to #3. This is related to 2 ENA studies/projects being created, one for ISA study and one for ISA investigation.

We yesterday discussed that the ISA study is not always representative as a title for the ENA study, and it might be better to let people consciously   fill it in.


Support for generic handlers

OMASs today use common handlers based around OCF beans.  They each map their private beans to the OCF beans and then pass the OCF beans to the common handlers in ocf-metadata-management module.
The downside is that the OCF beans do not cover all of the open metadata types and they are complex structures.
This changes proposes to change the handlers to use generic beans.  This means that the OMASs can work with their own beans directly and no longer need to work with OCF beans.
The style is that instances are created/updated and deleted using the new handler APIs with its standard builder.  Each OMAS has their own converters that are used to initialized the handlers.

There is more work in the generic handlers to create coverage across all of the open metadata types.  However I am going to close this one now and add support for new handlers in other issues.


hidden: true

38.3 and 38.1
Python 2.7.9
Customize:
hidden: true doesn't hide anything even with new - entity_id: format. If i roll back to 35.3 it works fine after a restart of the pi. My colleague at work went from 37 to 38 and didn't experience any problems nor has he updated to - entity_id:?
All additional things like icon: , assumed state: and friendly_name: work.
No errors
script.delay_on4:
hidden: true
script.light_delay5:
hidden: true
script.light_delay6:
hidden: true
Most likely but I've never been able to get control: hidden to work in group either.
controls:
name: Controls
view: yes
control: hidden
entities:
- group.emoncms
- group.switches
- media_player.living_room_tv
- media_player.bedroom_room_tv

Hello roy13,
are you sure about that python version? Because the requirement for home assistant is Python 3.4.

Sorry I keep forgetting I'm running multiple pythons. 3.4.2 for Hass.
Good point on the group hidden that should solve it I'll try tonight.
As for embedding sorry copy paste has failed me again.
Any ideas on the main issue in customize.

I'm also running control: hidden on my group automations which have only switches on the entire page. No luck.

This has been fixed in https://github.com/home-assistant/home-assistant-js-websocket/pull/3

Just for the record: control: hidden only works on groups that aren't views (tabs). So in the example above, take it out of the group controls, and add it to the groups emoncms and switches instead (if so desired).

Thank you i just install update... i may have been looking every hour for it to come out...
Also control: hidden works perfectly as per last comment;
Switches:
control: hidden
entities:
- switch.air_con_24
- switch.air_con_26


Buoy fish zylum

Some of these changes may not need to be added to the base repo, but I think https://github.com/RAKWireless/RUI3-Best-Practice/commit/74664de2a743ad84d9946a5080fc5cca775cd3e3 should be looked at. I believe there is a bug in the get_min_dr() method (which I have fixed).

Hello @delhiryder
Thank you for your suggestions.
As this repo is containing just examples and PoC's, that are meant to be adapted to your personal use, I will not merge this.
I will have a second look into the data rate check function, but it worked for me in the past.


Unable to change playing game on the fly?

I've been attempting to create a command to change the bots current game - Is it possible to change it on the fly or does it need to be changed at startup (and unable to be changed afterwards) ?

It is possible to change at any point in runtime as long as the bot is connected.

Would you be able to provide an example of how i would change it mid runtime - my command isn't currently working
[Command("setgame")]
public async Task SetGame([Remainder] string game = null)
{
var _client = new DiscordSocketClient();
await _client.SetGameAsync(game);
    }

You are creating a new client, which is not what you should be doing. Use the object given to you that is Context.Client

        [Command("setgame")]
        [Summary("Sets the bot's game")]
        public async Task SetGame([Remainder] string input)
        {
            await (Context.Client as DiscordSocketClient).SetGameAsync(input);
        }

Thanks guys, Definitely appreciated

In the future you can join the Channel and ask questions there: https://discord.gg/discord-api/
Ask in the channel #dotnet_discord-net


Transporter:Elasticsearch1.7 unknown parameter [refresh]

I want to sync MongoDB database with Elasticsearch1.7. For which I created replication set of my db using following command:
$ sudo mongod --port 27017 --dbpath /var/lib/mongodb --replSet rs0

I have configured transporter 0.1.0 and I run my transporter using following command:
$ ./transporter run --config ./test/config.yaml ./test/application.js

config.yaml
api:
   interval: 10s
nodes:
  localmongo:
    type: mongo
    uri: mongodb://localhost/mydb
    tail: true
  es:
    type: elasticsearch
    uri: http://192.168.x.xx:9200/
  timeseries:
    type: influx
    uri: influxdb://root:root@localhost:8086/compose
  debug:
    type: file
    uri: stdout://
  foofile:
    type: file
    uri: file:///tmp/foo

So when I try to delete one of the document from mongo it is reflected in mongo collection
(I have replication enabled i.e oplogs have been configured as well as I can see the record being deleted in the transporter console) but after this it causes following exception at transporter console and due to this elastic search is not in sync with MongoDB.
transporter: CRITICAL: elasticsearch error (2015-08-11 17:36:31.408666556 +0530 IST:
Error [IllegalArgumentException[Action/metadata line [1]
contains an unknown parameter [refresh]]] Status [500] [500])

The issue appears to be with the Elastigo library. An issue here - https://github.com/mattbaird/elastigo/issues/215 - seems to note the problem as it affects Elastigo.
https://github.com/elastic/elasticsearch/issues/11690 - covers issues around it affecting the wider Elastic world.

@tanalam2411 we've updated the elastigo library with the 0.1.1 release, can you check and see if you're still having the issue?

@jipperinbham I just ran into this issue using the v0.1.1 release - downloaded the .tar, running it on ubuntu.

closing this in favor of https://github.com/compose/transporter/issues/209


Available settings are undocumented

As pointed out in #213, some settings are not yet documented.
I looked through the code and found these:

settings.pypi.fallback - boolean - Always put PyPI last to prefere private repositories (defaults to true)
settings.virtualenvs.create - boolean - Create a new virtualenv if one doesn't already exist (defaults to true?)
settings.virtualenvs.in-project - boolean - Create the project's virtualenv inside the project's directory (defaults to false?)
settings.virtualenvs.path - string - Directory where virtualenvs should be created (defaults to ~/.cache/pypoetry/virtualenvs?)
repository.<name> - string - Additional repository's URL

Now, did I miss any? Are these defaults really the defaults? And where should it be documented? Here?
If we can agree on a way to present these informations, I'd be happy to work on a PR :)

I think we can make a new documentation section, "Configuration", where we list the settings available with an example of how to set them.
Regarding settings.pypi.fallback, it actually configures the behavior of the resolver when it can't find the information it needs from the PyPI JSON API. If it's activated (the default) it will fallback to downloading and inspecting the package distributions (sdist or wheels) to find information about the package's dependencies. This was introduced early in development to make the resolution faster, albeit much less accurate, when the resolver was less efficient. However, I think we can remove it now that the resolver is much smarter and, to be completely honest, it's not that useful since deactivating it will make the resolver miss a lot of information.

@sdispater I think tonight I'll start working on this section ;)

Wouldn't it be interesting to add this list to the config command as well?


Hoist props and state to support unit testing wrapped components.

The Jss class that is returned from the injectSheet function does not make available the "props" and "state" fields from the wrapped component. This makes writing unit tests against these wrapped components unnecessarily complex since I am forced to actually render the component vs just instantiating it.
I want to be able to continue writing tests as I have been for standard React components (see example below).
it("defaultProps: Should define expected default props.", () => {
        // Arrange
        const expected = {
            props1: "prop1Value"
            prop2: "prop2Value'"
        };

        // Act
        const result = <MyComponent />;

        // Assert
        expect(result.props).toEqual(expected);
});

Another option would be to expose the actual wrapped component as a field on the wrapped Jss component. This way I would have easy access to all of the features and functions of the wrapped component and it would support all of my testing needs.

Do you have any examples for HOC's who did that well?

After thinking about this more we decided to go a different route in handling testing of higher order components. We decided to separate the raw component and the higher-order version of the component so that they may be tested independently.

good choice.


WiP - Classic, Client, Agent, & Controller Builds

This patch updates REX-Ray and the build scripts so that REX-Ray now supports four build types: classic, client, agent, & controller.

Build Types

Build Type
File Name
Client
Docker Volume Plug-in Endpoint Service
libStorage Service

Classic
rexray
✅
✅
✅

Client
rexray-client
✅

Agent
rexray-agent

✅

Controller
rexray-controller

✅

How To Build
The above REX-Ray types can be built with the following commands:

Build Type
Commands

Classic
$ make or $ make deps && make build or $make docker-build

Client
$ make deps && make build-client or $make docker-build-client

Agent
$ make deps && make build-agent or $make docker-build-agent

Controller
$ make deps && make build-controller or $make docker-build-controller

Cleaning Between Builds
Unless the Docker option is used to build REX-Ray, it is necessary to use $ make clobber to create a clean environment before building  another type. This is because build tags are used to control which  build is produced, and the build system is not able to consider build  tags when considering which targets need to be rebuilt. Thus if the  REX-Ray core package is already built in client mode and someone  attempts to build REX-Ray for controller mode, the core package  will not be rebuilt and may be incorrect for controller mode.
Docker Builds
However, the above issue is not a concern when building REX-Ray  with Docker since each build type uses a Docker container with the prefix rexray-build and an eponymous suffix. For example, the  container used to build the REX-Ray client is named  rexray-build-client whereas the container used to build the  controller is named rexray-build-controller. The classic REX-Ray build is still built with a container named build-rexray.
Build Type Info
There are targets named info, info-client, info-agent, and  info-controller that can be used to obtain information about  each of the different build scenarios. There are also Docker  variants of these targets. For example, docker-info,  docker-info-client, etc.
Installing
While nothing changes for the classic build type, the new build types have some changes with regards to installation.
Client Installation
The client build still supports the install and uninstall commands so that the rexray-client binary can be installed/uninstalled via the RPM/DEB package management systems, but the actual commands do nothing.
Agent Installation
The rexray-agent build is installed just as the classic mode, with the exception that the agent's log and PID files are now named rexray-agent.log and rexray-agent.pid. All other data directories and behaviors are the same.
Controller Installation
The rexray-controller build is installed just as the classic mode, with the exception that the controller's log and PID files are now named rexray-controller.log and rexray-controller.pid. All other data directories and behaviors are the same.

Current coverage is 8.81% (diff: 0.00%)

Merging #664 into master will increase coverage by 0.68%

@@            master      #664   diff @@
========================================
  Files           16        17     +1
  Lines         2238      2064   -174
  Methods          0         0
  Messages         0         0
  Branches         0         0
========================================
  Hits           182       182
+ Misses        2049      1875   -174
  Partials         7         7

Powered by Codecov. Last update fab2b3e...81d8737

Hi @codenrhoden,
Did you begin the review before I updated the PR's description? It should be far more clear now. Take a look and let me know. Thanks.

@akutz I wish I could say I did. you did push some changes that negated some of the comments I had queued up (getting rid of some commented out code), but the PR description was already in place. Even with the awesome chart that says an agent build only has the docker volume plugin endpoint service, I am too dense to fully understand what this means.
Looking through things, it does seem like a CLI is included with all three new types of builds, and than that a subset of functionality is included based on type. A controller build can't do attach and mount, for example.
I'm just having a hard time picturing the agent build. Naively I would think that it was more client + docker volume plugin. What does the build with only the docker volume plugin end up looking like?

Hi @codenrhoden,
The agent-only build exists for a few reasons:

It enables the client build to be super small since it doesn't include any of the module or docker endpoint code.
The client build no longer requires root user to run since no socket file must be created for the Docker endpoint service.
All three builds can be replaced separate from one another. For example -- upgrade the CLI but leave the agent binary alone.

Ah, okay, I think I get it.
Should you choose to use the minimal builds (rather than classic), you would ultimately install rexray-agent to get the docker volume plugin stuff AND rexray-client if you wanted the CLI for interfacing with volumes directly through rexray. And as you said, you could update them independently.
Thanks.

Hi @codenrhoden,
To be very clear, rexray-client doesn't interface with rexray-agent in any way as the latter does not start an embedded libStorage server. Eventually if the REX-Ray client adds back functionality to list/modify running modules in the agent then perhaps.


release(2023-07-31): Release preparations

Upgrade deps
Remove legacy components (designer, repo_generator, notebook_uploader)
Make analytics fully optional and migratable

After this PR no more features will be incorporated into the next update

nice🧹
Now that version 1 of the designer is gone, can't we rename designer_v2 to just designer?

Yep, but I'd prefer doing that in a separate step after the next update.


Migrate to Postgres 14

The SQL scripts could use some cosmetic improvements (e.g. it mixes lowercase select and uppercase SELECT).

Postgres 14 will be out in 1-2 weeks. It would be worth switching to it and making use of the new SEARCH/CYCLE keywords.

Postgres migration :heavy_check_mark: (it's now at 14.1).

Tidying the SQL scripts is not a priority now so closing this as fixed.


Seeing deprecation warning for ember data 1.13.4

Your custom serializer uses the old version of the Serializer API, with extract hooks. Please upgrade your serializers to the new Serializer API using normalizeResponse hooks instead.
more info : https://github.com/emberjs/data/blob/v1.13/packages/ember-data/lib/system/serializer.js#L28

@basz Thanks for finding this. I'm going to look into upgrading the hal adapter to work with latest ember data.

Appreciated!

@basz
How to use HAL-9000 without ember-cli?

@leninayya I honestly have no idea... Not sure ember-data-hal-9000 has been designed for such a use-case.

@leninayya This is an ember-cli addon, there is no built "globals mode" script of it that you would use without ember-cli.  However, you can use ember-giftwrap to package it up for a global mode app, I'd suggest giving that a try.

Thank You @basz  @bantic

@basz version 0.3.0-beta.2 has support for ember data 1.13.4 and beyond. If you could try installing it and give any feedback that would be very helpful. thanks! (see #25 and #24 for more)

@basz now that there is a version of ember-data-hal-9000 (0.3.x) that supports ember-data 1.13+, this should be fixed. I'll close now, but please reopen if I'm wrong.


roi_harness: Ignore several unknown bits for Zynq7

Signed-off-by: Tomasz Michalak<EMAIL_ADDRESS>Once the prjxray database generation is stable we will be able to re-enable the test harnesses.
For Artix restoring the harness should just work. For Zynq however, there is a small change required  in the create_design_json script due to some extra bits I am writing about here: https://github.com/SymbiFlow/prjxray/issues/746#issuecomment-490499100
This PR implements a white listing mechanism per architecture in order to successfully pass the generation of design.json despite the fact that the white listed bits are not in the database

Will need to create a fuzzer for the PERFRAMECRC and document the remaining bits.


File upload endpoint

Added CreateFile, a function that uploads jsonl files to GPT-3

Merged, thank you for the PR!


Feature request: Is LDAP for a password backend possible?

Hi,
We're in the process of deploying an IPT at our organisation and are very impressed with it. What we like to avoid is staff having to use multiple usernames and passwords.
Feature request: Would it be possible to have LDAP (preferably) / RADIUS / Google authentication added to the IPT web application?
We feel that this would be a security enhancement along with making a huge improvement from a user's perspective as they don't have another username and password to remember.
Best wishes,
Andrew

Hi Andrew,
Thank your for reporting this issue, we'll take it into consideration.
A reminder that users can choose their preferred password by editing their account. See screenshot below.
Best wishes,
Kyle

LDAP or CAS support (including assigning rights based on external information) would also be very valuable for us. The problem for us isn't that users have to remember (or set) another password, it's that we have to maintain yet another silo with separate user accounts.

Unless I misunderstand https://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html, this isn't, and shouldn't be, a feature of the application (IPT, in this case). It appears to me that I should be configuring the Tomcat-level Realm, and the LDAP authentication will then become available to the app. It may require some modification of IPT to take advantage of it, though. I'll give it a try, anyway

I agree; it would be nice to have LDAP (and/or OAuth2) authentication :)


Ethernet is also for Solaredge comms - no wireless or cell options

Hi,
I can't get this working.
Logger: pymodbus.client.sync
Source: /usr/local/lib/python3.9/site-packages/pymodbus/client/sync.py:201
First occurred: 15 November 2021, 12:54:21 (4656 occurrences)
Last logged: 14:46:11
Connection to (<IP_ADDRESS>, 502) failed: [Errno 111] Connection refused
Connection to (<IP_ADDRESS>, 502) failed: timed out
Connection to (<IP_ADDRESS>, 502) failed: [Errno 113] Host is unreachable
Also
Logger: custom_components.solaredge_modbus
Source: custom_components/solaredge_modbus/init.py:170
Integration: SolarEdge Modbus Multi-Inverter (documentation)
First occurred: 15 November 2021, 12:54:41 (4655 occurrences)
Last logged: 14:46:11
No open Modbus/TCP connection for solaredge
I can ping the inverter.
Is it something to do with your instruction that "Ethernet is also for Solaredge comms - no wireless or cell options" because my inverter is connected over WIFI not Ethernet? If so, is there any simply fix for this?

Do you have Modbus/TCP enabled in the inverter? The default is disabled.
The default port is 1502 in the inverter config instead of 502, unless it was changed.
Connection refused usually means Modbus/TCP is disabled or the port number isn't set correctly.
I've heard that Modbus/TCP should work with wifi, but since I don't have wifi on my inverter I can't try it personally.

Yes, all of that is set correct.
In fact I had it  working fine with one of the other multi inverter forks. But then I discovered that the fork I was using the cause of some  very serious lag on HA performance.
So I tried yours.

Is the other integration still running? The solaredge inverter will only accept one TCP connection at a time, any other connection attempts will get connection refused from the inverter.
My saying "no wireless or cell options" has nothing to do with whether it will work or not, I'm just describing my test and development environment. Anything that will lead to a Modbus/TCP connection will work.

Thanks.
No, the other integration is definitely uninstalled.

To me, it seems to be something very flaky about solaredge modbus.  As you say, something is wrong with the port on the inverter. I've reinstalled the other integration and that's not working either now. I've done everything I can think of to try and clear the inverter port block to no avail. Very annoying.


running updatedb on the cli tries to write to /nix/store which is a read-only file system

Issue description
updatedb tries to write to /nix/store which is a read-only file system:
/nix/store/95vfigaqdg8jg5bk961k1x06j86p5fh0-findutils-4.6.0/var/locatedb.n: Read-only file system
this path comes from updatedb shell script: /nix/store/95vfigaqdg8jg5bk961k1x06j86p5fh0-findutils-4.6.0/bin/updatedb
which was modified in nix (this line is different in the gnu sources):
186: ${LOCATE_DB=/nix/store/95vfigaqdg8jg5bk961k1x06j86p5fh0-findutils-4.6.0/var/locatedb}
Steps to reproduce
run as root or normal user in a login shell: updatedb
Technical details

System: VERSION="16.09.1836.067e66a (Flounder)"
Nix version: nix-env (Nix) 1.11.7
Nixpkgs version: "16.09.1836.067e66a"

By the looks of it the derivations is doing a pretty standard build from a Makefile:
https://github.com/NixOS/nixpkgs/blob/067e66a9b324b335723224b74520be10cddf1499/pkgs/tools/misc/findutils/default.nix#L26
I think what this probably means is all the paths are indiscriminately rewritten to $out (i.e. in the nix-store). Need to confirm that suspicion, but that also raises the question of what it should write to, because it'll depend on which user is using it.

Yep:
in configure in the gnu sources
1985:localstatedir='${prefix}/var'

and locate/Makefile.am
4:LOCATE_DB = $(localstatedir)/locatedb

nix will rewrite prefix to a path in the nix store.
So that's the cause of the updatedb script looking like it does - now to decide what we ought to do with it.

This is fixed with this commit:
https://github.com/NixOS/nixpkgs/commit/417dbaf6a34552f0c7d959e5a63e6672ff85c4d7#diff-8e7fcdc2b11daa4074e040076c6163cf
Can be made to work on 16.09 by pulling findutils from unstable.
Not quite sure why my search pulled up an old version, but that's another matter!

Tested and working. Suggest can be closed.

This seem to have been fixed. Works for me on 18.03.git.4e7deb7. Please close.

Ping: This can be closed


Allow use of ServiceProvider func to create KeyResolver for ProtectKeysWithAzureKeyVault

Allow use of ServiceProvider func to create KeyResolver for ProtectKeysWithAzureKeyVault call (for resolving nested dependencies)
I've come across code where we want to generate our TokenCredential/KeyResolver using other services (CertificateTokenCredential which then relies on another KeyVaultClient for getting AAD certs, etc.) and without access to the ServiceProvider, this is dependency hell.
Being able to use the ServiceProvider to resolve your TokenCredential/KeyResolver allows us to retrieve registered dependencies and write cleaner setup code where needed.

@JoshLove-msft @heaths How long would something like this take to be released in a new package version?

@JoshLove-msft @heaths How long would something like this take to be released in a new package version?

Most likely, these would be released the second week of February.


.service file?

You say in installation, copy the .service file to services but there is no .service file included, y'all some dumb mfs

Thanks for trolling. ;-)
The file is here: https://github.com/dichternebel/csgo-rcon-bot/blob/main/server/csgo-rcon-bot.service


[Sync] Option to disable orientation predictors

This PR:

Sync with disable orientation predictor feature

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.10%. Comparing base (aa9e96d) to head (fa33ef8).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
+ Coverage   98.07%   98.10%   +0.02%
==========================================
  Files          65       65
  Lines        1974     2001      +27
==========================================
+ Hits         1936     1963      +27
  Misses         38       38

Flag
Coverage Δ

unittests
98.10% <100.00%> (+0.02%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Require Git tags to be signed

Require GitHub tags to be signed as per https://github.com/ossf/scorecard/blob/main/checks/checks.md#signed-tags

Reference updated https://github.com/ossf/scorecard/blob/main/docs/checks.md#signed-releases


Experimental tab-in-window-bar feature breaks window styling

Your Windows build number:  (Type ver at a Windows Command Prompt) Microsoft Windows [Version 10.0.18890.1000]

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

What's wrong / what should be happening instead: The tabs (albeit with the experimental feature enabled) causes the border to be completely visible, and the dragging area between the tabs and the buttons isn't working.

This is effectively a dupe of #564.
Since we can't use the tab row to drag the window, we didn't make it take the entire width of the titlebar, because that'd not only mean the window couldn't be dragged, but the min/max/close buttons wouldn't work either.
Styling of the tab row is something we hope to actively improve in the near future.


Replace \n in strings with multi-line strings

I presume this is OK @vvasuki ? It will greatly improve readability...

I presume this is OK @vvasuki ? It will greatly improve readability...

Definitely!

I presume this is OK @vvasuki ? It will greatly improve readability...

Definitely!

Was there an issue with this that you fixed via da49730a6f0a96948a78514b0ab5d9e9a0c7af4f?

shloka fields and some description fields which needed correction


Batch connecting to Azure Key Vault in a pool using a managed Identity

Problem Description
I am trying to use a pool in Azure Batch to connect to an Azure Key Vault. I have found some code online, but I didn't know if this is possible or the certificate root is the only possibility. I have enabled a managed identity for the batch account and added it to the keyvault. But when I try to get the managed Identitry from the python sdk in a batch pool then it fails.
The outline would be this code where DefaultAzureCredential when it comes to ManagedIdentityCredential fails. Any suggestions if this is possible to work from a batch pool when enabling managed identities in Azure batch.
from azure.keyvault.secrets import SecretClient
from azure.identity import DefaultAzureCredential

    KVUri = f"https://{keyVaultName}.vault.azure.net"

    credential = DefaultAzureCredential()
    client = SecretClient(vault_url=KVUri, credential=credential)

    secretName = "secret"
    retrieved_secret = client.get_secret(secretName)
    print(retrieved_secret)

Steps to Reproduce

Create batch account with managed identity.
Create batch pool and make sure has python sdk installed.
Will need to pip install azure-keyvault azure-identity
Make sure to add the managed identity to the key-vault with the get and list attributes for secrets.
Run the above code in a batch filling in necessary variables.

Expected Results
The above has access to the key vault from the batch pool.
Actual Results
Throws this error:
retrieved_secret = client.get_secret(secretName)
EnvironmentCredential.get_token failed: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
ManagedIdentityCredential.get_token failed: ManagedIdentityCredential authentication unavailable. No identity has been assigned to this resource.
libsecret did not perform properly.
* If you encountered error "Remote error from secret service:
  org.freedesktop.DBus.Error.ServiceUnknown",
  you may need to install gnome-keyring package.
* Headless mode (such as in an ssh session) is not supported.
Traceback (most recent call last):
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/msal_extensions/libsecret.py", line 126, in trial_run
    agent.save(payload)  # It would fail when running inside an SSH session
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/msal_extensions/libsecret.py", line 103, in save
    data, None)
GLib.GError: g-io-error-quark: Cannot autolaunch D-Bus without X11 $DISPLAY (0)
libsecret did not perform properly.
* If you encountered error "Remote error from secret service:
  org.freedesktop.DBus.Error.ServiceUnknown",
  you may need to install gnome-keyring package.
* Headless mode (such as in an ssh session) is not supported.

SharedTokenCacheCredential.get_token failed: Shared token cache unavailable
VisualStudioCodeCredential.get_token failed: Failed to get Azure user details from Visual Studio Code.
AzureCliCredential.get_token failed: Please run 'az login' to set up an account
DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
	EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
	ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable. No identity has been assigned to this resource.
	SharedTokenCacheCredential: Shared token cache unavailable
	VisualStudioCodeCredential: Failed to get Azure user details from Visual Studio Code.
	AzureCliCredential: Please run 'az login' to set up an account
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/azure/core/tracing/decorator.py", line 83, in wrapper_use_tracer
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/azure/keyvault/secrets/_client.py", line 72, in get_secret
    **kwargs
  File "/usr/local/lib/python3.6/dist-packages/azure/keyvault/secrets/_generated/_operations_mixin.py", line 1475, in get_secret
    return mixin_instance.get_secret(vault_base_url, secret_name, secret_version, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/azure/keyvault/secrets/_generated/v7_1/operations/_key_vault_client_operations.py", line 276, in get_secret
    pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/azure/core/pipeline/_base.py", line 211, in run
    return first_node.send(pipeline_request)  # type: ignore
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/azure/core/pipeline/_base.py", line 71, in send
    response = self.next.send(request)
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/azure/core/pipeline/_base.py", line 71, in send
    response = self.next.send(request)
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/azure/core/pipeline/_base.py", line 71, in send
    response = self.next.send(request)
  [Previous line repeated 2 more times]
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/azure/core/pipeline/policies/_redirect.py", line 157, in send
    response = self.next.send(request)
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/azure/core/pipeline/policies/_retry.py", line 436, in send
    response = self.next.send(request)
  File "/usr/local/lib/python3.6/dist-packages/azure/keyvault/secrets/_shared/challenge_auth_policy.py", line 111, in send
    self._handle_challenge(request, challenge)
  File "/usr/local/lib/python3.6/dist-packages/azure/keyvault/secrets/_shared/challenge_auth_policy.py", line 137, in _handle_challenge
    self._token = self._credential.get_token(scope)
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/azure/identity/_credentials/default.py", line 140, in get_token
    return super(DefaultAzureCredential, self).get_token(*scopes, **kwargs)
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/azure/identity/_credentials/chained.py", line 90, in get_token
    raise ClientAuthenticationError(message=message)
azure.core.exceptions.ClientAuthenticationError: DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
	EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
	ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable. No identity has been assigned to this resource.
	SharedTokenCacheCredential: Shared token cache unavailable
	VisualStudioCodeCredential: Failed to get Azure user details from Visual Studio Code.
	AzureCliCredential: Please run 'az login' to set up an account
>>> ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable. No identity has been assigned to this resource.
  File "<stdin>", line 1
    ManagedIdentityCredential: ManagedIdentityCredential authentication unavailable. No identity has been assigned to this resource.
                                                                      ^
SyntaxError: invalid syntax
>>> from msrestazure.azure_active_directory import MSIAuthentication
>>>
>>> credentials = MSIAuthentication(resource='https://login.microsoftonline.com/f1177991-5c8e-4cb7-af93-c51ad5bede11')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/msrestazure/azure_active_directory.py", line 592, in __init__
    self.set_token()
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/msrestazure/azure_active_directory.py", line 600, in set_token
    token_entry = self._vm_msi.get_token(self.resource)
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/msrestazure/azure_active_directory.py", line 649, in get_token
    token_entry = self._retrieve_token_from_imds_with_retry(resource)
  File "/home/zjhrdq/.local/lib/python3.6/site-packages/msrestazure/azure_active_directory.py", line 704, in _retrieve_token_from_imds_with_retry
    raise HTTPError(request=result.request, response=result.raw)
requests.exceptions.HTTPError
>>> credential = credential = DefaultAzureCredential('https://login.microsoftonline.com/f1177991-5c8e-4cb7-af93-c51ad5bede11')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__() takes 1 positional argument but 2 were given
>>> credential = DefaultAzureCredential('https://login.microsoftonline.com/f1177991-5c8e-4cb7-af93-c51ad5bede11')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __init__() takes 1 positional argument but 2 were given

Additional Logs
INSERT ADDITIONAL LOGS HERE

Additonal Comments

This was asked/answered here: https://stackoverflow.com/questions/63965005/using-managed-identity-in-azure-batch-to-authenticate-with-key-vault-using-pytho


dkatz-graphite

Description
Please explain the changes you made here.
Checklist
General

[ ] Added the correct label
[ ] Assigned to a specific person or civiform/deployment-system
[ ] Created tests which fail without the change (if possible)
[ ] Performed manual testing (at a minimum run bin/setup without your changes and then bin/deploy with your changes to ensure your changes don't break existing deployments)
[ ] Extended the README / documentation, if necessary

Instructions for manual testing
If instructions are needed for manual testing by reviewers, include them here.
Issue(s) this completes
Fixes #<issue_number>; Fixes #<issue_number>...

#418  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


demo app - version change to 0.6.1

Reverse DNS specifier updated in package.json
Updated service links on UI to safe:// scheme

This change is

r? @ustulation
(maidsafe_highfive has picked a reviewer for you, use r? to override)


No space left on device

❓ Questions and Help
Before asking:

search the issues.     yes
search the docs.      yes

What is your question?
I tried to train roberta with custom criterion and data, after 5 epochs, it gives error that no space left on device.
Besides, I know that in multi-gpus environment, fairseq uses ddp default. But where dose fairseq use DDP to wrap the model?
Code
Traceback (most recent call last):   File "/mnt/cache/wangzhijun2/anaconda3/envs/mixbert/lib/python3.9/multiprocessing/queues.py", line 245, in _feed     obj = _ForkingPickler.dumps(obj)   File "/mnt/cache/wangzhijun2/anaconda3/envs/mixbert/lib/python3.9/multiprocessing/reduction.py", line 51, in dumps     cls(buf, protocol).dump(obj)   File "/mnt/cache/wangzhijun2/anaconda3/envs/mixbert/lib/python3.9/site-packages/torch/multiprocessing/reductions.py", line 358, in reduce_storage     fd, size = storage._share_fd_cpu_() RuntimeError: unable to write to file </torch_4740_2273530805_10039>: No space left on device (28)

What have you tried?
With MLM criterion, it worked.
What's your environment?

fairseq Version (e.g., 1.0 or main): main
PyTorch Version (e.g., 1.0): 1.12.1 + cu102
OS (e.g., Linux):  linux   CenOS-7
How you installed fairseq (pip, source): source
Build command you used (if compiling from source):
Python version: 3.9
CUDA/cuDNN version: 10.2
GPU models and configuration: single node 8 V100 32G GPUS
Any other relevant information:

我刚才也碰到了这个问题，查询了下，好像是 这个安装的依赖东西太多了，tmp盘不够大 快要占满了。pip install的时候文件包会预先下载到tmp盘. 因此要么清空 tmp 目录 要么就可以临时将 /tmp 变大。来尝试进行解决。


"R2 get started guide" doesn't work as-written, steps are out of order?

Which Cloudflare product does this pertain to?
R2
Existing documentation URL(s)
https://developers.cloudflare.com/r2/get-started/
Section that requires update

Create your bucket

What needs to change?
The commands "wrangler r2 bucket create" and "wrangler r2 bucket list" will not work if executed at this point due to no wrangler.toml existing
$ wrangler r2 bucket create test
Error: wrangler.toml not found
$ wrangler r2 bucket list
Error: wrangler.toml not found

How should it change?
this probably needs to be moved later so that a wrangler.toml will already exist
Additional information
No response

Similarly to https://github.com/cloudflare/cloudflare-docs/issues/4698, this only an issue with the old wrangler - wrangler2 supports these commands with no wrangler.toml present.
If https://developers.cloudflare.com/r2/get-started/#1-install-wrangler is followed then you would have wrangler2 but people might skip that if they already have 'wrangler', albeit the old one.
@deadlypants1973 Might be worth adding an aside to explicitly say that wrangler is assumed to be 2.0 or higher?


Feature/module locator registration

New module listener: you can implement Zend\Module\Consumer\LocatorRegistered in your Module class and the listener will register the module instance as a type preference in DI.
In any DI configured class you can add a setter or constructor parameter now that has a typehint of the Module class you want, as long as it implements LocatorRegistered and it will be passed the active instance of that module class. This is very handy for module options.
Additionally, you can parameter hint Zend\Module\Manager and the module manager will be injected into your class.
Includes unit tests, 100% coverage.

Sorry for the late comments @EvanDotPro, will ping you later on IRC...

@EvanDotPro: What about addTypePreference vs addSharedInstance?

As discussed with @ralphschindler yesterday, using addSharedInstance is fine.
Shared instances should be used in Zend\Di for already initialized instances (as if it was a registry), while type preference is to aid Zend\Di in selecting what to instantiate...

Nice one :) thx

@weierophinney, as discussed on IRC with @ralphschindler usage of shared instance is correct here, while not in #794


Fix for search for seeds list.

Closes #716

Quick fix. Merging soon.

+1 - just do it if it fixes things for you.


Improve Camunda Forms User Journey

This is a tracking issue to collect potential improvements in Camunda Forms land.
Larger Issues

https://github.com/camunda/camunda-modeler/issues/2498
Improve form type selection, ensure Camunda Forms is promoted (cf. https://github.com/camunda/camunda-modeler/issues/2496)
https://github.com/bpmn-io/form-js/issues/190 (cf. https://github.com/bpmn-io/form-js/pull/210)
https://github.com/bpmn-io/form-js/issues/209 (cf. https://github.com/bpmn-io/form-js/pull/210)

Smaller Fixes

https://github.com/camunda/camunda-modeler/issues/2603 (cf. https://github.com/bpmn-io/form-js/pull/211)
https://github.com/bpmn-io/form-js/issues/169 (cf. https://github.com/bpmn-io/form-js/pull/177)
https://github.com/bpmn-io/form-js/issues/199
https://github.com/bpmn-io/form-js/issues/219

Misc

https://github.com/camunda/camunda-modeler/issues/2540 (cf. https://github.com/camunda/camunda-modeler/pull/2683)
https://github.com/bpmn-io/form-js/issues/216

CC @MaxTru

Hi, here are my suggestions for features, if not already noted or slated:
Date and Date Time Picker field
Form Layout (columns, rows, groupings ie. containers)
Tabs
Modals
Table builder
Script snippets

A way to extend the framework to create custom components or clone and tweak out of the box elements

cc @ingorichtsmeier
Hi Ingo,
this is our current perspective of key issues required for improvement of form-js. Please feel free to comment.
Thanks

Hi @MaxTru,
looks good for the next round.
I recently stumbled over one missing feature: Text areas. I have filed an extra issue in forms-js to track it: https://github.com/bpmn-io/form-js/issues/194.

Closed via https://github.com/camunda/camunda-modeler/pull/2817


What version of rust is needed to build?

I see you're using various unstable features but the code won't compile with the latest nightly version of rust

FYI I got it to build using nightly-2022-03-13


minnowboard-max: soletta failing to map buttons (gpio/reader) from calamari

Task Description
When running the samples calamari-button-accumulator-persistence.fbp and/or calamari-buttons-rgb-led.fbp, it fails saying that it cannot export the pins for the Buttons.
Dependencies

Have Minnowboard Max
Have any of the following samples:

calamari-button-accumulator-persistence.fbp
calamari-buttons-rgb-led.fbp

Issue Description

Steps to reproduce
Run any of the commands:

sol-fbp-runner calamari-button-accumulator-persistence.fbp
sol-fbp-runner calamari-buttons-rgb-led.fbp

Board information
Host OS and architecture:

Minnowboard Max

Target OS and platform:

Ostro OS 1.0 or Poky 2.1+snapshot-20160608

Logs
https://gist.github.com/brunobottazzini/6a0fba38aa6cad3c7419dbd8b944b3d7

Soletta version (top commit hash): 6a7bc32376904ac385dea073cb8d71a74f2e8629
Soletta log (SOL_LOG_LEVEL = 5): https://gist.github.com/brunobottazzini/f3a1afcbe949cf1a7466c671ba7999b4
strace log (strace -ff sol-fbp-runner test.fbp &> strace.log): https://gist.github.com/brunobottazzini/20674cc21ff686b7eb2d92afeab74653

Issue solved with PR: https://github.com/solettaproject/soletta-dev-app/pull/121


Automation: Add Concurrency Controls to GitHub Workflow Actions #3013

With multiple commits to the same branch, we hit...
e2e-db2-with-bulkdata (11)
Canceling since a higher priority waiting request for 'integration-3014' exists

Signed-off-by: Paul Bastide<EMAIL_ADDRESS>

Just confirming:  this will prevent a single branch/PR from stacking up, but it will still let us run multiple PRs in parallel, right?

Just confirming: this will prevent a single branch/PR from stacking up, but it will still let us run multiple PRs in parallel, right?

Correct


Fix Remove-Item

If you make a symbolic link to a directory on Windows (with administrative privileges of course), and then try to delete said link, you get this:
|Y> Yes |A> Yes to All |N> No |L> No to All |S> Suspend [Default is (Y]
PS C:\Users\anschwa\src\PowerShell> remove-item -Force .\foobar\
Confirm
The item at C:\Users\anschwa\src\PowerShell\foobar\ has children and the Recurse parameter was not specified. If you con
tinue, all children will be removed with the item. Are you sure you want to continue?

|Y> Yes |A> Yes to All |N> No |L> No to All |S> Suspend [Default is (Y]
n
PS C:\Users\anschwa\src\PowerShell> remove-item -Force .\foobar\ -Recurse
remove-item : There is a mismatch between the tag specified in the request and the tag present in the reparse point
At line:1 char:1
+ remove-item -Force .\foobar\ -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-Item], Win32Exception
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\Users\anschwa\src\PowerShell> $error[0].Exception.StackTrace
   at Microsoft.PowerShell.Commands.InternalSymbolicLinkLinkCodeMethods.DeleteJunction(String junctionPath) in C:\Users\
anschwa\src\PowerShell\src\monad\monad\src\namespaces\FileSystemProvider.cs:line 8447
   at Microsoft.PowerShell.Commands.FileSystemProvider.RemoveDirectoryInfoItem(DirectoryInfo directory, Boolean recurse,
 Boolean force, Boolean rootOfRemoval) in C:\Users\anschwa\src\PowerShell\src\monad\monad\src\namespaces\FileSystemProvi
der.cs:line 2859
   at Microsoft.PowerShell.Commands.FileSystemProvider.RemoveItem(String path, Boolean recurse) in C:\Users\anschwa\src\
PowerShell\src\monad\monad\src\namespaces\FileSystemProvider.cs:line 2733
   at System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem(String path, Boolean recurse, CmdletProvi
derContext context) in C:\Users\anschwa\src\PowerShell\src\monad\monad\src\namespaces\ContainerProviderBase.cs:line 422
   at System.Management.Automation.SessionStateInternal.RemoveItem(CmdletProvider providerInstance, String path, Boolean
 recurse, CmdletProviderContext context) in C:\Users\anschwa\src\PowerShell\src\monad\monad\src\engine\SessionStateConta
iner.cs:line 1152

Remove-Item is thinking the link is a directory and so failing to delete it.
If the code is changed such that File.Delete(junction) is used instead of native calls, you get:
PS C:\Users\anschwa\src\PowerShell> rm .\foobar\ -Force
Confirm
The item at C:\Users\anschwa\src\PowerShell\foobar\ has children and the Recurse parameter was not specified. If you con
tinue, all children will be removed with the item. Are you sure you want to continue?

|Y> Yes |A> Yes to All |N> No |L> No to All |S> Suspend [Default is (Y]
y
rm : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
At line:1 char:1
+ rm .\foobar\ -Force
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-Item], FormatException
    + FullyQualifiedErrorId : System.FormatException,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\Users\anschwa\src\PowerShell> $error[0].Exception.StackTrace
   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.Format(IFormatProvider provider, String format, Object arg0)
   at System.Management.Automation.Internal.StringUtil.Format(String formatSpec, Object o) in C:\Users\anschwa\src\Power
Shell\src\monad\monad\src\utils\StringUtil.cs:line 18
   at Microsoft.PowerShell.Commands.FileSystemProvider.RemoveDirectoryInfoItem(DirectoryInfo directory, Boolean recurse,
 Boolean force, Boolean rootOfRemoval) in C:\Users\anschwa\src\PowerShell\src\monad\monad\src\namespaces\FileSystemProvi
der.cs:line 2863
   at Microsoft.PowerShell.Commands.FileSystemProvider.RemoveItem(String path, Boolean recurse) in C:\Users\anschwa\src\
PowerShell\src\monad\monad\src\namespaces\FileSystemProvider.cs:line 2733
   at System.Management.Automation.Provider.ContainerCmdletProvider.RemoveItem(String path, Boolean recurse, CmdletProvi
derContext context) in C:\Users\anschwa\src\PowerShell\src\monad\monad\src\namespaces\ContainerProviderBase.cs:line 422
   at System.Management.Automation.SessionStateInternal.RemoveItem(CmdletProvider providerInstance, String path, Boolean
 recurse, CmdletProviderContext context) in C:\Users\anschwa\src\PowerShell\src\monad\monad\src\engine\SessionStateConta
iner.cs:line 1152

It fails even sooner (I think because there aren't actually any children to pass delete recursively, so it gets an empty list; just a guess).
If you use Directory.Delete(junctionPath), it works just fine!

repro when running Remove-Item -Recurse -Force on a folder which contains a symlink to another folder.
Name                           Value

PSVersion                      5.1.14951.1001
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14951.1001
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

This bug is existent in Windows PowerShell targetting FullCLR, re-opening.

@joeyaiello this bug has been fixed in PowerShell Core per #920; it should probably be slated for backport to the next PowerShell Full release.

@andschwa ps-committee needs to see a test that shows the expected behavior on Windows and Linux

@stevel-msft I don't follow.

@andschwa when we reviewed this yesterday, we didn't understand the expected behavior on Windows and Linux.  we tried a few things with symlinks on both and it seemed consistent in that the soft-link got removed and not the target.  perhaps making it more clear with expected/actual on both Windows and Linux would help us.

@SteveL-MSFT Correct, the issue is fixed in PowerShell 6.0, there should be symlink tests in the  test directory. The issue is that PowerShell 5 on Windows is broken, per @asklar's bug report.

@andschwa we tried to repro it on Windows PowerShell 5.1 as well and it seemed to have the same behavior as PowerShell Core 6.0 on Windows. Could you provide a simple repro?

@asklar would you please provide them with a simple repro?

I ran into this issue today, being unable to remove a symlink on Windows Server 2016. Here is a stepby-step PowerShell session repro case that hopefully illustrates the issue:
PS C:\> & cmd /c mklink /d c:\foo c:\inetpub
symbolic link created for c:\foo <<===>> c:\inetpub
PS C:\> remove-item c:\foo

Confirm
The item at C:\foo has children and the Recurse parameter was not specified. If you continue, all children will be removed with the
 item. Are you sure you want to continue?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
remove-item : C:\foo is an NTFS junction point. Use the Force parameter to delete or modify this object.
At line:1 char:1
+ remove-item c:\foo
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\foo:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : DirectoryNotEmpty,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\> remove-item -force c:\foo

Confirm
The item at C:\foo has children and the Recurse parameter was not specified. If you continue, all children will be removed with the
 item. Are you sure you want to continue?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
remove-item : There is a mismatch between the tag specified in the request and the tag present in the reparse point
At line:1 char:1
+ remove-item -force c:\foo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-Item], Win32Exception
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand

PS C:\> (get-host).version

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14393  206

@PowerShell/powershell-committee thanks @sandersaares for the repro, we need @joeyaiello to see if this repros on Core and if so, we should fix this

Happening on Win10 annivesary with Powershell 5.1 trying to remove folder left by docker installation
PS C:\Users\admin> Remove-Item C:\ProgramData\docker\ -Force -Recurse
Remove-Item : There is a mismatch between the tag specified in the request and the tag present in the reparse point
At line:1 char:1

Remove-Item C:\ProgramData\docker\ -Force -Recurse

  + CategoryInfo          : NotSpecified: (:) [Remove-Item], Win32Exception
  + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand

@sandersaares thanks for the more simple repro! I can confirm that this does happen, but the hunch from @palladia that the children actually get deleted is incorrect.
So to clarify, even after specifying -Force, only the symbolic link is deleted and not the contents of the folder to which the link points.
The behavior that definitely needs to be fixed here is giving the confirmation prompt about the children and the Recurse parameter. The behavior that should be discussed is whether we should require a -Force for symbolic links. I would say 'no', but that would likely be a breaking change (so I'm re-adding Review - Committee here).
And this is all on the latest 6.0 alpha:
Name                           Value
----                           -----
GitCommitId                    v6.0.0-alpha.13
PSRemotingProtocolVersion      2.3
PSEdition                      Core
WSManStackVersion              3.0
CLRVersion
BuildVersion                   <IP_ADDRESS>
PSVersion                      6.0.0-alpha
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
SerializationVersion           <IP_ADDRESS>

@artisticcheese that looks like a very different error message. Could you file another bug? And, if possible, repro on 6.0 to make sure it's happening on PowerShell Core as well?

Note that my example also gave the same error message as @artisticcheese got, after adding the -Force parameter.
And to be clear, the symlink was never actually deleted by Remove-Item. I have to drop down to cmd /c rmdir /s /q c:\foo to actually delete it.

or [IO.Directory]::Delete('c:\foo')
But it is a lot of typing ...

@PowerShell/powershell-committee agrees that -force and message only relevant to removing the folder should not be there for removing a folder symlink as it should be the same as removing a file

So in other words, we shouldn't require the use of -Force to remove a symlink, and we should not traverse the symlink at remove-time to delete the files that it targets. Treat the symlink itself as you would any other file.

I'm running powershell 5.1 on Win10. The use of "Remove-Item" on a directory fails due to some subdirectories containing symlinks. Is there a way to delete the directory from powershell 5.1?

I must be doing something wrong. Anyway, I found a way to get it done, at least.
From a powershell script, do
[System.IO.Directory]::Delete("C:\folder\to\delete", $true)

However, from a powershell terminal session, you have to:
cmd /c "rmdir C:\folder\to\delete"

You cannot use the latter in a powershell script and you cannot use the first on a powershell terminal session.

@Schroedingers-Cat I've been trying this out on a Windows 10 box using PowerShell 5.1:
PS > $PsVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.953
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.953
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

I'm seeing that the methods you mention work the same whether run from the PowerShell prompt or from a script.
I've been testing both, from the prompt and within script, using multiple link types within the sub-directory to be removed, and the only issue I've seen is when using the [System.IO.Directory]::Delete method when the sub-directory contains a Junction. In that case, the Delete call throws an error saying  access to the junction is denied. It actually isn't, and the junction is in fact deleted, but because the error "occurred" the sub-directory is not deleted. Calling Delete again will delete the sub-directory.
For all other types of links, both methods seem to work equally well.

Just tested on a different machine and both methods work there.
Well, maybe something was wrong with the paths when I encountered the issue first.
Btw. when will we be able to use "Remove-Item" instead?

@Schroedingers-Cat In general, Remove-Item is working in PowerShell 6. I was able to remove a sub-directory full of all kinds of link types with
Remove-Item sub -Force -Recurse

What we're working on here is the correct use (or non-use) of -Force and -Recurse when removing a link directly.

@joeyaiello Just to be sure I'm doing the right thing. Using Remove-Item symlink on a either a directory symbolic link or a junction will remove the link but not attempt to traverse the directory that symlink points to. What, then, is the expected behavior if the cmdlet is invoked with -Recurse? Should it delete the contents of the linked-to directory then delete the link, or ignore the -Recurse flag and simply delete the link?

There has to be a precedence for this in the unix world.
But anything but simply deleting the link seems dangerous.

My expectations:
Remove-Item symlink  - remove only symlink.
Remove-Item symlink -Recurse - remove symlink and target too with confirmation by default (w/o with -Force)

The unix rm command even with the -r switch removes only the link itself. That's my preference for how the cmdlet should work as well, but I wasn't sure how well silently ignoring a cmdlet option would go over.
There are already two differing opinions, which is a big part of why I posed the question.

I agree that this is special case and we should follow Unix rm .

I wasn't sure how well silently ignoring a cmdlet option would go over

It seems we usually use non-terminating error. User always can suppress it by "SilentlyContinue".

@jeffbi: that sounds right to me. And a non-terminating error still feels a little weird.  That shouldn't really result in an error just because you don't traverse the symlinks.
If you're absolutely married to the idea, @iSazonov, a warning might be in order, but I don't think anything more than that is necessary.

I've put up a PR for this. At the moment the cmdlet silently ignores the -Recurse option it if is given. I'll change that if required.

@jeffbi be careful with that, as rm -r linktofolder does not recursively delete the contents of the linked folder, unless you add a /, that is, rm -r linktofolder/ will recursively delete the contents of the linked folder. I think it treats the link as a link when the slash is missing, and follows the link if the trailing slash is added.

@andschwa On my Linux box rm -r linktofolder/ behaves pretty much as you describe, with the addition of an error message which is displayed despite having emptied the target directory:
$ tree
.
|-- fred
|   `-- file.txt
`-- fred-sl -> fred

2 directories, 1 file
$ rm -r fred-sl/
rm: cannot remove 'fred-sl/': Not a directory
$ tree
.
|-- fred
`-- fred-sl -> fred

2 directories, 0 files

So how should this knowledge affect the behavior of Remove-Item? You made a comment back in August on #1775 that suggests that users shouldn't have to use a trailing slash to get into a symlink.

A comment from @PaulHigin in a code review on the PR has brought up another question: should junctions be treated differently than file symlinks or directory symlinks?
Before the PR, junctions were treated differently; they required both -Recurse (or answering Y to the prompt) and -Force to remove the junction. After the PR, junctions are treated like other types of symbolic link.
What is the preferred behavior here?

It is better to stick to one pattern.

@joeyaiello

And a non-terminating error still feels a little weird

I could be wrong it seems we use non-terminating errors instead of warnings.

@joeyaiello Regarding @andschwa's comments about rm -r linktofolder/, PowerShell's Remove-Item -Recurse linktofolder/ currently errors out on both Linux and Windows, but in different ways. On Linux the error is not a directory, on Windows it's Cannot find path.
I think this should be a separate issue and not to be addressed in this one. What do you think?

Quoted from the PR:

When Remove-Item is used to remove a symbolic link in Windows, only the link itself is removed. The -Force switch is no longer required.
If the directory pointed to by the link has child items, the cmdlet no longer prompts the user to remove the child items---those child items are not removed. The -Recurse switch, if given, is ignored.
This brings Remove-Item more in line with the behavior of the 'rm' command on Unix.

@jeffbi #3637 has been merged, but it seems it doesn't resolve all the concerns in this issue. Are you going to open a separate issue for the behavior of Remove-Item -Recurse linktofolder/ vs. rm -r linktofolder/?

@daxian-dbw I believe it should have a separate issue, and I posed the question yesterday. If you'd like me to go ahead and open an issue for it, I'll do so.

@jeffbi you should open a new issue and reference this one.  We should then close this one.

@jeffbi Thanks for the fix! I closed the Issue to continue in #3674

Has it been resolved? I still get this issue

Same issue here.

@manigandan-jegannathan-developer @Alwandy Please clarify what kind of problem are you talking about? It is better open new issue with repo steps and link the issue.

@andschwa  Did you look #3674?

If anyone stumbles across this issue as I did trying to remove reparsepoints without deleting the underlying file use
(get-item $removethispathreparsepoint).Delete()

Looks like Windows 10 1809 can't delete profiles even through wmi.  Rm -r in powershell won't work either.  It looks like the MicrsoftOfficeHub app is making weird links.
    Directory: C:\Users\user\AppData\Local\Packages\Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe\LocalCache\Local\Microsoft\CLR_v4.0\UsageLogs

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        7/27/2019  12:20 PM           1253 LocalBridge.exe.log

    Directory: C:\Users\user\AppData\Local\Packages\Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe\LocalCache\LocalLow\Microsoft\CryptnetUrlCache\Content

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a--sl        7/27/2019  12:16 PM         (1507) 6BADA8974A10C4BD62CC921D13E43B18_D9817BD5013875AD517DA73475345203

    Directory: C:\Users\user\AppData\Local\Packages\Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe\LocalCache\LocalLow\Microsoft\CryptnetUrlCache\MetaData

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a--sl        7/27/2019  12:17 PM          (438) 6BADA8974A10C4BD62CC921D13E43B18_D9817BD5013875AD517DA73475345203

Building upon what @erichiller nicely shared, I created a PS function that uses pass-through arguments to customize the deletion of symlinks.
Used to remove links made with mklink
    Get-ChildItem -Force -ErrorAction Stop @Args | Where-Object { if($_.Attributes -match "ReparsePoint"){$_.Delete()} }
}

Example Usage
Remove-SymLinks -Remove all links in the current directory
Remove-SymlLinks -Path .\Builds -Recurse -Recursively Remove all links in the Builds Directory
Disclaimer, I am a C# expert and a wannabe PowerShell weekend warrior so be careful with that Recurse option.

Used to remove links made with mklink
Get-ChildItem -Force -ErrorAction Stop @Args | Where-Object { if($_.Attributes -match "ReparsePoint"){$_.Delete()} }

}
Example Usage
Remove-SymLinks -Remove all links in the current directory
Remove-SymlLinks -Path .\Builds -Recurse -Recursively Remove all links in
the Builds Directory
Disclaimer, I am a C# expert and a wannabe PowerShell weekend warrior so
be careful with that Recurse option.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/621?email_source=notifications&email_token=AN6RWNMFUXXB3NH3NZZERA3QXVWBNA5CNFSM4B5EALCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGHLNCY#issuecomment-563000971,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN6RWNOAIDHSR5ND3BJ46VTQXVWBNANCNFSM4B5EALCA
.

FYI, I had the same problem today on PowerShell 7 and unfortunately the only way to remove the folder was through cmd /c rmdir /s /q C:\Users\Your_User_Name\Your_Folder_Name.
Sorry to give you a bad news :(

If anyone stumbles across this issue as I did trying to remove reparsepoints without deleting the underlying file use
(get-item $removethispathreparsepoint).Delete()

Only thing that worked for me on ps7

If anyone stumbles across this issue as I did trying to remove reparsepoints without deleting the underlying file use
(get-item $removethispathreparsepoint).Delete()

Only thing that worked for me on ps7


w

When creating a Cargo project, check that he name is not already used by another project in the default package repository


Arabic Support

Dear Sir/Madam,
I'm using your amazing framework in my website, and I want to add an option for user to switch Arabic language. My problem is that, in Arabic, we write and arrange items from right to left.
I know I can achieve that by flex-wrap reverse, but in VueJS I will have to use a lot of v-if for that.
I'm trying to see how to create a custom variant, such that it can have two cases like the following
class="flex en:flex-wrap     ar:flex-wrap-reverse"
Having something like this will make my life more easy.
I hope if you can guide me more on this.
Thanks and regards,
Faiez

Ok, I managed to achieve what I want by using vue i18n localization library, and document.dir = 'rtl' or 'ltr'.
I'm very appreciative of your efforts on tailwind. Keep it up.

You can also add dir="rtl" to your <html> tag, or direction: rtl; to html selector in CSS. Unless you absolutely need to use JavaScript for that (e.g. multi language reasons), I recommend against it.

@fox880919 did you tried https://github.com/RonMelkhior/tailwindcss-dir

Dear Bro Faiez,
Please see this link: [https://github.com/20lives/tailwindcss-rtl]
It will help you a lot for Arabic support.
Thank you very much.

Thanks. I. forgot to make. an update here. It. is working fine. For whom may be interested, here is my website link:
https://pnadi.cm
Regards,
Faiez

Thanks for the suggestion and for the kind words!
Closed this issue, but here's a link to a relevant discussion on the RTL topic
As stated there, the recommendation for now is indeed to use this above-mentioned plugin: https://github.com/RonMelkhior/tailwindcss-dir
There are no concrete plans to add this to Tailwind core, but thankfully the plugin system makes it straightforward to augment Tailwind with functionality like this if needed. 👍


AID fade can result with current being too high

NoxVox — Yesterday at 6:40 AM
So the issue I'm having is with a Power, Aid STR.
When the aid dice are applied to the PC, it goes to the 'Max' category of STR. Then when the effect dissolves, it does go awaay from 'Max' but then adds itself to 'Current'
Then does not go away, making an infinitely stacking STR.

#1310


add: sanjeev

I have added my profile

thanks!

i just added my json file i didnt changed anyone else but dont know why its showing as changes
but anyways  if you see they are just copied nothing else can you please guide me more if possible

@sanjeevs9 Thank you so much for your contribution! Your efforts are greatly appreciated and will go a long way in improving our project. Please feel free to share it with others and help us grow even further!