PANIC: index out of bounds: the len is 1 but the index is 1

Hi Prisma Team! My Prisma Client just crashed. This is the report:
Versions

Name
Version

Node
v10.16.0

OS
darwin

Prisma Client
2.12.0

Logs
  prisma-client { clientVersion: '2.12.0' }
  plusX Execution permissions of /Users/agarciag/Documents/Repos/point-shipping-providers/node_modules/.prisma/client/query-engine-darwin are fine
  plusX Execution permissions of /Users/agarciag/Documents/Repos/point-shipping-providers/node_modules/.prisma/client/query-engine-darwin are fine

Hello! Can you please provide a minimal reproduction for the above crash? Unfortunately the automatically collected information in the issue does not give us much to go with here - we will need a bit more information. What were you doing? Can you share the code and schema that was active?

This is consistently reproducible for me.
I have a schema like:
model Proposal {
    id                            String                         @default(cuid()) @id
    matchAsFirst         ProposalMatch?        @relation("ProposalMatchToFirst")
    matchAsSecond    ProposalMatch?        @relation("ProposalMatchToSecond")
}

model ProposalMatch {
    id               String              @default(cuid()) @id
    first            Proposal         @relation("ProposalMatchToFirst", fields: [firstId], references: [id])
    firstId         String             @unique
    second       Proposal        @relation("ProposalMatchToSecond", fields: [secondId], references: [id])
    secondId    String            @unique
    contract      Contract?
}

model Contract {
    id                 String                    @default(cuid()) @id
    match          ProposalMatch    @relation(fields: [matchId], references: [id])
    matchId       String                    @unique
}

And this is triggered by prisma.proposal.findMany query where the where looks like:
           const where: Prisma.BetWhereInput
            if (includeInContract) {
                where = {
                    OR: [
                        {
                            matchAsFirst: {
                                NOT: { contract: null }
                            }
                        },
                        {
                            matchAsSecond: {
                                NOT: { contract: null }
                            }
                        }
                    ]
                }
            } else {
                where = {
                    AND: [
                        {
                            OR: [
                                { matchAsFirst: { contract: null } },
                                { matchAsFirst: null },
                            ]
                        },
                        {
                            OR: [
                                { matchAsSecond: { contract: null } },
                                { matchAsSecond: null },
                            ]
                        }
                    ]
                }
            }
    ```
Hope this helps narrow things down, this is a pretty annoying error.

Thanks for reproduction @pm-dev
I can reproduce the crash with an empty database.
Here is the script that I used along with above data model that you provided:
import { PrismaClient } from "@prisma/client";

async function main() {
  const prisma = new PrismaClient();
  const where = {
    OR: [
      {
        matchAsFirst: {
          NOT: { contract: null },
        },
      },
      {
        matchAsSecond: {
          NOT: { contract: null },
        },
      },
    ],
  };
  const data = await prisma.proposal.findMany({
    where,
  });
  console.log(data);
  prisma.$disconnect();
}

main();

Model:
model Proposal {
  id            String         @id @default(cuid())
  matchAsFirst  ProposalMatch? @relation("ProposalMatchToFirst")
  matchAsSecond ProposalMatch? @relation("ProposalMatchToSecond")
}

model ProposalMatch {
  id       String    @id @default(cuid())
  first    Proposal  @relation("ProposalMatchToFirst", fields: [firstId], references: [id])
  firstId  String    @unique
  second   Proposal  @relation("ProposalMatchToSecond", fields: [secondId], references: [id])
  secondId String    @unique
  contract Contract?
}

model Contract {
  id      String        @id @default(cuid())
  match   ProposalMatch @relation(fields: [matchId], references: [id])
  matchId String        @unique
}

Thanks for reproduction @pm-dev
I can reproduce the crash with an empty database.
Here is the script that I used along with above data model that you provided:
import { PrismaClient } from "@prisma/client";

async function main() {
  const prisma = new PrismaClient();
  const where = {
    OR: [
      {
        matchAsFirst: {
          NOT: { contract: null },
        },
      },
      {
        matchAsSecond: {
          NOT: { contract: null },
        },
      },
    ],
  };
  const data = await prisma.proposal.findMany({
    where,
  });
  console.log(data);
  prisma.$disconnect();
}

main();

Model:
model Proposal {
  id            String         @id @default(cuid())
  matchAsFirst  ProposalMatch? @relation("ProposalMatchToFirst")
  matchAsSecond ProposalMatch? @relation("ProposalMatchToSecond")
}

model ProposalMatch {
  id       String    @id @default(cuid())
  first    Proposal  @relation("ProposalMatchToFirst", fields: [firstId], references: [id])
  firstId  String    @unique
  second   Proposal  @relation("ProposalMatchToSecond", fields: [secondId], references: [id])
  secondId String    @unique
  contract Contract?
}

model Contract {
  id      String        @id @default(cuid())
  match   ProposalMatch @relation(fields: [matchId], references: [id])
  matchId String        @unique
}


Please update version

Hi,
Can you please update the plugin to the latest version?
Would you like it, if we do a feature-request in jetbrains to add your plugin to the core of idea? For this feature is a must-have!
Thanks in advance!

Hi @alexey-anufriev ,
Thanks for your response.
1 > the plugin is 'incompatible' with the latest eap-version of phpstorm :-(
2 > no not the community-edition (only), but into the core of jetbrains itself. But maybe you do not want that, for then jetbrains decides how it works etc.
Greetz, flexjoly


ATTiny402 Exception: Timeout waiting for flash ready after page write

trying to program ATtiny402
seem to be able to run
python3 pyupdi.py -d tiny402 -c /dev/ttyUSB0  -e
to Erase the chip
but when running
python3 pyupdi.py -d tiny402 -c /dev/ttyUSB0 -v -f SbusSwitchATtiny.hex
INFO:phy Opening /dev/ttyUSB0 at 115200 baud
INFO:phy send : [0x0]
INFO:link STCS to 0x03
INFO:phy send : [0x55, 0xc3, 0x8]
INFO:link STCS to 0x02
INFO:phy send : [0x55, 0xc2, 0x80]
INFO:link LDCS from 0x00
INFO:phy send : [0x55, 0x80]
INFO:phy receive : []
INFO:link UPDI not OK - reinitialisation required
INFO:phy Sending double break
INFO:phy Opening /dev/ttyUSB0 at 115200 baud
INFO:link STCS to 0x03
INFO:phy send : [0x55, 0xc3, 0x8]
INFO:link STCS to 0x02
INFO:phy send : [0x55, 0xc2, 0x80]
INFO:link LDCS from 0x00
INFO:phy send : [0x55, 0x80]
INFO:phy receive : [0x20]
INFO:link UPDI init OK
INFO:nvm Entering NVM programming mode
INFO:link LDCS from 0x0B
INFO:phy send : [0x55, 0x8b]
INFO:phy receive : [0x82]
INFO:app Entering NVM programming mode
INFO:link Writing key
INFO:phy send : [0x55, 0xe0]
INFO:phy send : [0x20, 0x67, 0x6f, 0x72, 0x50, 0x4d, 0x56, 0x4e]
INFO:link LDCS from 0x07
INFO:phy send : [0x55, 0x87]
INFO:phy receive : [0x10]
INFO:app Key status = 0x10
INFO:app Apply reset
INFO:link STCS to 0x08
INFO:phy send : [0x55, 0xc8, 0x59]
INFO:app Release reset
INFO:link STCS to 0x08
INFO:phy send : [0x55, 0xc8, 0x0]
INFO:link LDCS from 0x0B
INFO:phy send : [0x55, 0x8b]
INFO:phy receive : [0x21]
INFO:link LDCS from 0x0B
INFO:phy send : [0x55, 0x8b]
INFO:phy receive : [0x8]
INFO:link LDCS from 0x0B
INFO:phy send : [0x55, 0x8b]
INFO:phy receive : [0x8]
INFO:app Now in NVM programming mode
INFO:nvm Reading device info
INFO:phy send : [0x55, 0xe5]
INFO:app SIB read out as: b'tinyAVR P:0D:0-3'
INFO:app Family ID = b'tinyAVR'
INFO:app NVM revision = 48
INFO:app OCD revision = 48
INFO:app PDI OSC = 51MHz
INFO:link LDCS from 0x00
INFO:phy send : [0x55, 0x80]
INFO:phy receive : [0x20]
INFO:app PDI revision = 0x2
INFO:link LDCS from 0x0B
INFO:phy send : [0x55, 0x8b]
INFO:phy receive : [0x8]
INFO:app Reading 3 bytes from 0x1100
INFO:link ST to ptr
INFO:phy send : [0x55, 0x69, 0x0, 0x11]
INFO:phy receive : [0x40]
INFO:link Repeat 3
INFO:phy send : [0x55, 0xa1, 0x2, 0x0]
INFO:link LD8 from ptr++
INFO:phy send : [0x55, 0x24]
INFO:phy receive : [0x1e, 0x92, 0x25]
INFO:app Reading 1 bytes from 0x0F01
INFO:link ST to ptr
INFO:phy send : [0x55, 0x69, 0x1, 0xf]
INFO:phy receive : [0x40]
INFO:link LD8 from ptr++
INFO:phy send : [0x55, 0x24]
INFO:phy receive : [0x1]
INFO:app Device ID = 1E9225 rev B
INFO:nvm Loading from hexfile 'SbusSwitchATtiny.hex'
INFO:nvm Loaded 3317 bytes from ihex starting at address 0x2000
INFO:nvm Adjusting flash offset to address 0x8000
INFO:app Chip erase using NVM CTRL
INFO:app Wait flash ready
INFO:link LD from 0x1002
INFO:phy send : [0x55, 0x4, 0x2, 0x10]
INFO:phy receive : [0x0]
INFO:app NVMCMD 5 executing
INFO:link ST to 0x1000
INFO:phy send : [0x55, 0x44, 0x0, 0x10]
INFO:phy receive : [0x40]
INFO:phy send : [0x5]
INFO:phy receive : [0x40]
INFO:app Wait flash ready
INFO:link LD from 0x1002
INFO:phy send : [0x55, 0x4, 0x2, 0x10]
INFO:phy receive : [0x0]
INFO:nvm Padding to blocksize 64 with 0xFF
INFO:nvm Paging into 64 byte blocks
INFO:nvm Writing page at 0xA000
INFO:app Wait flash ready
INFO:link LD from 0x1002
INFO:phy send : [0x55, 0x4, 0x2, 0x10]
INFO:phy receive : [0x0]
INFO:app Clear page buffer
INFO:app NVMCMD 4 executing
INFO:link ST to 0x1000
INFO:phy send : [0x55, 0x44, 0x0, 0x10]
INFO:phy receive : [0x40]
INFO:phy send : [0x4]
INFO:phy receive : [0x40]
INFO:app Wait flash ready
INFO:link LD from 0x1002
INFO:phy send : [0x55, 0x4, 0x2, 0x10]
INFO:phy receive : [0x0]
INFO:link ST to ptr
INFO:phy send : [0x55, 0x69, 0x0, 0xa0]
INFO:phy receive : [0x40]
INFO:link Repeat 32
INFO:phy send : [0x55, 0xa1, 0x1f, 0x0]
INFO:link ST16 to *ptr++
INFO:phy send : [0x55, 0x65, 0x19, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x33, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x32, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x31, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x30, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x2f, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x2e, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x2d, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x2c, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x2b, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x2a, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x29, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x28, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x27, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x26, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x25, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x24, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x23, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x22, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x21, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x20, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x1f, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x4f, 0xc5]
INFO:phy receive : [0x40]
INFO:phy send : [0x77, 0xc5]
INFO:phy receive : [0x40]
INFO:phy send : [0x1c, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x1b, 0xc0]
INFO:phy receive : [0x40]
INFO:phy send : [0x11, 0x24]
INFO:phy receive : [0x40]
INFO:phy send : [0x1f, 0xbe]
INFO:phy receive : [0x40]
INFO:phy send : [0xcf, 0xef]
INFO:phy receive : [0x40]
INFO:phy send : [0xcd, 0xbf]
INFO:phy receive : [0x40]
INFO:phy send : [0xdf, 0xe3]
INFO:phy receive : [0x40]
INFO:phy send : [0xde, 0xbf]
INFO:phy receive : [0x40]
INFO:app Committing page
INFO:app NVMCMD 1 executing
INFO:link ST to 0x1000
INFO:phy send : [0x55, 0x44, 0x0, 0x10]
INFO:phy receive : [0x40]
INFO:phy send : [0x1]
INFO:phy receive : [0x40]
INFO:app Wait flash ready
INFO:link LD from 0x1002
INFO:phy send : [0x55, 0x4, 0x2, 0x10]
INFO:phy receive : [0x4]
INFO:app NVM error
Traceback (most recent call last):
File "pyupdi.py", line 157, in
_main()
File "pyupdi.py", line 98, in _main
if not _process(nvm, args):
File "pyupdi.py", line 122, in _process
return _flash_file(nvm, args.flash)
File "pyupdi.py", line 132, in _flash_file
nvm.write_flash(start_address, data)
File "./pyupdi/updi/nvm.py", line 106, in write_flash
self.application.write_nvm(address, page)
File "./pyupdi/updi/application.py", line 267, in write_nvm
raise Exception("Timeout waiting for flash ready after page write ")
INFO:phy Closing /dev/ttyUSB0

The device [family] selection mechanism has issues, so the flash page size is 64 instead of 32.  I will try to fix this soon, but in the mean time you can change it locally to 32b in device.py

ATtiny402 has 4K FLASH.
Your hexfile has 3317 bytes (ok) but it has an offset of 0x2000:
"Loaded 3317 bytes from ihex starting at address 0x2000"
This puts it outside the range for this part.
Where did you get this hexfile from?  Or is there some custom linker or post-build which adds this offset?


Broken links

Hello,
The link to QE extraction in https://github.com/tdep-developers/tdep-tutorials/tree/main/07_Raman#steps  is broken.

thanks!


Read 128 bit trace ID in End Invocation

What does this PR do?
@duncanista pointed out we also need to read the upper 64 bits of a trace ID in the End Invocation flow. This is a quick hack to add that. The right way, of course, would be using tracer.Inject and tracer.Extract.
Motivation
Describe how to test/QA your changes
Possible Drawbacks / Trade-offs
Additional Notes

/merge

/remove

/merge


Cannot derive Debian package name: unknown hoster "cloud.google.com"

While I was trying to update the golang-google-cloud Debian package, I noticed that Google has recently changed the import path from google.golang.org/cloud to cloud.google.com/go.
I then attempted to fetch the latest version as a tarball using dh-make-golang cloud.google.com/go, but was greeted with this error:
Cannot derive Debian package name: unknown hoster "cloud.google.com".
See -help output for -allow_unknown_hoster

Thanks!

Please submit a pull request to add the hoster to https://github.com/Debian/dh-make-golang/blob/master/make.go#L330
Until that pull request is merged, you can use -allow_unknown_hoster, as the error message suggests.

Thank you for your reply.  However, the reason that I sent an Issue rather than a Pull Request in the first place, was that I do not know what to name the "cloud.google.com" hoster.  The name google is already taken, and using just cloud doesn't seem appropriate either.  Should it be googlecloud or cloudgoogle or cloud.google or cloud-google or whatnot?  I think you, as the original author of dh-make-golang, are way more qualified than I am to make that decision.
So, please just go ahead and make the change yourself, at your convenience.  Thank you1


Deno doc shouldn't include the implementation signature of functions and methods

Given a method or function that looks like the following:
// example.ts
export function env(items: Record<string, string | undefined>): void;
export function env(name: string, value: string | undefined): void;
export function env(nameOrItems: string | Record<string, string | undefined>, value?: string) {
}

Running:
deno doc example.ts

Outputs:
> deno doc example.ts
Defined in file:///V:/dax/example.ts:1:0

function env(items: Record<string, string | undefined>): void

Defined in file:///V:/dax/example.ts:2:0

function env(name: string, value: string | undefined): void

Defined in file:///V:/dax/example.ts:3:0

function env(nameOrItems: string | Record<string, string | undefined>, value?: string)

This shouldn't happen because the implementation signature is an implementation detail that the consumer should be concerned about. For example, TS's language server does not display the implementation signature:

I disagree... deno_doc should return all the doc nodes.  It is up to the displayer to determine what is meaningful to display.  Anything else would be a "lie".
That only potential change is the function node would indicate if the function/method contains a body.  Then clients could determine what to display.
Ref: denoland/docland#122

I disagree because the implementation signature is an implementation concern.

This would require the walker to keep state with functions and overloads.  That is not what it is meant to do.  It is the "printer" that can determine what is appropriate and not appropriate to print.

Couldn’t we just look at the previous node without maintaining any state? Also, is there a purpose to returning back the implementation signature?

Couldn’t we just look at the previous node without maintaining any state?

The "previous node" is keeping state. 😕

Also, is there a purpose to returning back the implementation signature?

99% of the time there is only the implementation signature.  In situations where a printer want to link to (or display) the implementation, they need the doc node.  I agree currently there is no way to determine an overload versus an implementation, and that is what we should fix.  Then printers can determine what is most meaningful give a specific context.

The "previous node" is keeping state. 😕

You can just look at what the previous node is. I opened this PR quickly to demonstrate it https://github.com/denoland/deno_doc/pull/261
swc's API for dealing with nodes is very verbose, but that could be cleaned up and made to look nice. It seems like we should exclude it at the source. Then the rest of the doc code doesn't need to worry about dealing with an internal aspect of the code.

Just taking a look at this to... I am going to raise a PR for has_body.  In looking at that, the problem is that if there are overloads and decorators, the decorators go against the implementation.  So if we just dropped implementation, we would drop decorators.  If we didn't drop the definition if there were decorators, then we run into the same problem.
So again, I am pretty sure the best thing to do in the doc nodes is represent the code as it is written and leave it up to the printers to determine the best way to display this.

Oh yeah, I forgot about decorators. That makes a lot of sense to me! I will review that PR probably tomorrow.


Make the parser throw error on invalid strings inside JSON Literals

The JSON Formula Parser supports any character after the escape character inside JSON Stings. i.e. as per parser the string below is a valid json string but as per the standards it is not. The antlr grammar also throws an error for this particular string but
the parser succeeds
`"\\z"`

See the discussion around the issue
https://github.com/adobe/json-formula/pull/67#discussion_r1318058758
Expected Behaviour
The parser should be strict and throw an error for these strings

fixed with https://github.com/adobe/json-formula/pull/86


Micro-SD Slot pinout does not follow the standard

Description
Hello,
I am checking the schematics for Dev Board. In sheet number six you can find the pinout for the micro-SD slot. My question is that why you can find a signal called "SD2_nCD" in pin number 9 in the slot if the standard for the slots says there are only 8 pins. I have check iMX8 documentation and that signal is for card detection, so it is an input for the SoM, but... how can be connected to a micro-SD slot with just eight pins?
Thank you

Click to expand!
Issue Type
Build/Install, Feature Request, Documentation Feature Request, Documentation Bug
Operating System
Mendel Linux
Coral Device
No response
Other Devices
No response
Programming Language
No response
Relevant Log Output
No response

Hello @DevelopingElectronics please check this article and let me know if you have any questions: https://community.circuitmess.com/t/understanding-the-sd-card-slot/2801

I still don't understand where to connect a pin that does not exist in the SD slot footprint

I still don't understand where to connect a pin that does not exist in the SD slot footprint

Depends on the slot, some have NC, some NO. At least they all seem to be connected to ground.
For example
MEM2061-01-188-00-A is NC
and DM3CS-SF is NO


[Task] 为 utils 包下每个函数添加 jsdoc

Task Description
为 utils 包下每个函数添加 jsdoc，用于自动化生成文档
Specific Task Requirements

[ ] 为 utils 包下每个函数添加 jsdoc

Claiming Process
If you would like to claim this task, please reply with “I want to claim this task” in the comments.
Task Remarks
Any additional information or remarks about the task.

认领

认领

11


It's not an issue, but... (traverse from a5_town_start to a5_malah) v0.6.7

Hello.
It's not an issue, but I can't deal with it.
I found one post on this topic, but no clear answer.
Could someone please tell me how to assign a key to the "force_move=" option in params.ini ?
I don't have this option in the in-game keyboard setup.
Regards.

This is not the right place for support queries

Study Readme
Google as it's generic D2R question
Use support channel on our discord where other users can help you


No validation error on empty request data

Hello, I faced an issue with passing empty request. I expected that if request data is empty, there will be a ValidationError. But instead I get None value in callback function.
class User(Object):
    properties = {
        'name': String
    }

def create_user(user: User):
     pass

routes = [
    Route('/user', 'POST', create_user)
]

Okay. Useful to know: Is there any Content-Type header on the incoming request?

Yeah. Content-Type is empty, and if I set application/json then receive 'Empty JSON' response.

Seems easy enough to fix, I'll tackle this one.

Thanks!

Not sure if that's a bug or a feature, but either way, created a PR.

Resolved via #430.


Like a pie chart, but different

Just checked out making pie charts; holy crap this is nice.
I'm hoping to make a diagram that is "pie char like." I am wanting to make a visualization of a consistent hash ring similar in spirit to the image below. Basically, a node has a given int32 value, and many nodes exist, and there can be duplicates. In the image below, there could be multiple red and or green nodes for example. Ideally, I would be able to have control over the color, size, and shape of the node representation along the circle diagram (like, square, circle, triangle). Do you feel that go-chart could be leveraged or hacked to do something like this? If not, I can start digging into the std lib, but it was just so easy to make a pie chart, I thought I'd get your input on the flexibility of go-chart to be leveraged first. Cheers!

I'm most of the way through my implementation now; working on a legend.


T-SNE Suddenly Not Working in Projector

Hello,
I'm sorry this isn't a technical question, but just this week I've noticed that T-SNE in the tensorboard projector is no longer clustering data properly. I am running the same vectors I did a few weeks ago, with the same perplexity. While before I saw distinct clusters, now the points are all forming an indistinct ball. Has anyone else noticed this?

Hi HarryBaker,
Without a reproduction, this will be very hard to dig into. I recommend installing an older version of TensorFlow, and seeing if you can demonstrate that this is actually a bug in the TensorBoard projector. Since T-SNE is stochastic, you may have just gotten lucky the first time, or something else in the environment may have changed.
Also, this issue should be filed against http://github.com/tensorflow/tensorboard rather than TensorFlow, since TensorBoard is its own project now. Please file there once you have a repro :)

Ok, thanks for the link. You should redo the link on the projector page, since it goes to this repo.


New command: upgrade specified app in a site

Upgrade the specified app in a site using the ALM API: <siteUrl>/_api/web/tenantappcatalog/AvailableApps/GetById({id})/Upgrade

command name: spo tenant app upgrade --siteUrl|-u <siteUrl> --id <appId>
requires connection to a SharePoint site

More information: https://github.com/SharePoint/PnP-Sites-Core/blob/73c703c507d480142ec18c241e6e72aae67982cc/Core/OfficeDevPnP.Core/ALM/AppManager.cs

@erwinvanhunen is working on this


Simplify promise

This patch introduces a simplified redesign for hpx:lcos::promise.
It tries to simplify the current implementation by splitting up the shared_state, promise and lco component into three different classes. This makes the referencing scheme a little more obvious and therefor is able to remove the global reference counting alltogether by creating a cycle between the component and the shared state which is explicitly broken once the shared_state is set ready.

General question: will the shared state be ever released if the value is never set? I.e. will this be memory-leak free:
{
hpx::lcos:promise p;
p.get_id();
}
?

All in all, LGTM. Please correct the minor issues and we can go ahead with this. Thanks a lot!


Use GitHub Issue and Pull Request templates

For #3596.
This initializes new issues and pull requests comments with instructions (see https://github.com/blog/2111-issue-and-pull-request-templates).  I think we'll have to merge it to see how it feels.

I think these templates should be more like "fill in the blank" instead of instructions.  If there are important instructions (like for issues, "post in the forum if you have a question") they should be brief bullet points at the top. Then link to the contributing guide if people want more info.
I think if it's too wordy, people aren't going to read it. Especially since it says "delete all of this" at the top.

@hpinkos I guess great minds think alike :smirk:

OK, will see how it feels.

Made some updates.  I like the PR template.  See
https://github.com/AnalyticalGraphicsInc/cesium/blob/templates/.github/PULL_REQUEST_TEMPLATE.md
The issue template is better but could still use some work if someone wants to tweak it.  See
https://github.com/AnalyticalGraphicsInc/cesium/blob/templates/.github/ISSUE_TEMPLATE.md
I'm not convinced that a fill in the blank formula will work; generally, people will just do a brain-dump into the first question (go check Firefox's bugs), but what we have now could probably be streamlined a bit.  I'm also fine with just seeing how people react to this.

After reading this:

A lot of maintainers complain that there isn’t a more heavy handed way of forcing people to read a document before they log an issue on GitHub. We have documents all over projects in the Node.js Foundation about writing good bug reports but, first and foremost, we encourage people to log something and try to avoid putting barriers in the way of that.
Sure, we get bad bugs, but we have a ton of contributors who can immediately work with people who log them to educate them on better practices and treat it as an opportunity to educate. This is why we have documentation on writing good bugs, in order to educate contributors, not as a barrier to entry.

And listening to this where they also advocate for a low barrier-to-entry and then working with contributors, especially as they show commitment and promise, I suggest we:

Changes the default PR and issue text in this PR to just be one or two sentences that point to the Contributor's Guide, or
Just close this

I'm okay with just closing this and node foundation's thoughts make sense.  Thankfully issue volume isn't too out of control for us, and while I think all maintainers wish every bug report or PR was complete and well written, this probably wouldn't help achieve that.


feat: enable additional scheduling options for wasmCloud host pods

Feature or Problem
This refactors the WasmCloudHostConfig CRD so that it has a single field (schedulingOptions) for configuring how the underlying Pods are scheduled in Kubernetes. This includes:

Relocating the daemonset option to this new field
Relocating the resources option to this new field
Adding a new pod_template_additions field that allows you to set any valid option in a PodSpec

Doing so allows cluster operators to do things like set node affinity and node selector rules, along with any other valid PodSpec option. The only thing that cannot be done is adding additional containers to the pod, since that is all handled by the controller. We could look at exposing that option if users want to be able to add additional sidecars.
Related Issues

Release Information
next
Consumer Impact

Testing
Tested locally in kind by setting daemonset: true and adding a node selector, both of which correctly changed the configuration of the underlying pods.
Unit Test(s)

Acceptance or Integration

Manual Verification

@thomastaylor312 all fixed. PTAL


fatal: detected dubious ownership in repository at

Description
I started seeing this error yesterday

It does not make sense, because the checkout action is already running the suggested git command to set the repo as safe

What could the issue be in this case?
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[X] Ubuntu 22.04
[ ] macOS 11
[ ] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link

Is it regression?
yes. Version: 20221125.1 https://github.com/VodafoneIS/sf-metadata/actions/runs/3601296318/jobs/6066928420
Expected behavior
Since actions/checkout@v3 already run /usr/bin/git config --global --add safe.directory /__w/sf-metadata/sf-metadata  I was not expecting to have issues with safe directories.
Actual behavior

Repro steps

Create a docker container with git installed
Add this image to a job
Run a git command

...

jobs:

  upload-lwc-converage:
    name: Test
    runs-on: ubuntu-latest
    container:
      image: ghcr.io/vodafoneis/salesforce-build-image:main
      credentials:
        username: ${{ github.actor }}
        password: ${{ secrets.GITHUB_TOKEN }}

  steps:
      - name: Checkout
        uses: actions/checkout@v3

       - name: run my sh script located in the docker container
         run:  /scripts/do_something_with_git.sh

Hi @AllanOricil we will take a look, thanks.

@igorboskovic3 I've set all my workflows to run on ubuntu-20.04 but the same issue happened, maybe because it is using Version: 20221212.2. The last job that ran without a problem was using ubuntu-20.04 20221125.1. So, how can I also set the build version?

Hi @AllanOricil, unfortunately you cannot set an old build version, just current one.

@igorboskovic3
I dont understand why we started seeing this issue. This safe dir feature was introduced to git in v2.35.2 https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
but the checkout action shows that we are using git v2.2.1

Hello @AllanOricil, we have noticed that the "checkoutv3" action uses a git version that is already installed no matter in the container or in the runner. Below you can find our simple workflow, which went successfully.
jobs:
  run_from_container:
    name: test1
    runs-on: ubuntu-latest
    container:
      image: alpine/git

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: git clone
        run: |
          git clone --depth=1 https://github.com/actions/runner-images
          ls -la runner-images

  run_from_runner:
    name: test2
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Check the data
        run: ls $GITHUB_WORKSPACE

From this small experiment, you can see that container and runner have different versions. of git. Please pay close attention to your rights in the container and the git version installed in your container as well.
It seems like the issue does not directly relate to a runner, so we will close the issue for now. Feel free to reach us if you have any questions.

@Alexey-Ayupov @igorboskovic3 I did not change anything in any of my workflows since yesterday and this issue started. There is something wrong somewhere and I cant figure out what is it...

@Alexey-Ayupov @igorboskovic3 could this action be the reason?
https://github.com/fregante/setup-git-user/blob/master/index.js
I run it after running git checkout. I need it, because inside my workflow I create commits and tags.
This action was in my workflow already, and It should not be causing the issue.

I ran this workflow, and again I had the same problem

...
jobs:
  validate-changes:
    name: Validate Metadata Changes
    strategy:
      matrix:
        environment: ${{ fromJSON(inputs.VALIDATION_ENVIRONMENTS) }}
    environment: ${{ matrix.environment }}
    runs-on: ubuntu-20.04
    container:
      image: ghcr.io/vodafoneis/salesforce-build-image:main
      credentials:
        username: ${{ github.actor }}
        password: ${{ secrets.GITHUB_TOKEN }}
    env:
      SF_REPORT_APEX_CODE_COVERAGE: ${{ secrets.SF_REPORT_APEX_CODE_COVERAGE }}

    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 2

      - name: Print Git Version
        run: |
          git --version
          touch a.txt
          git add .
          git commit -m "test"

@igorboskovic3 @Alexey-Ayupov tell me it is not a bug somewhere...
Look, I added a step  Add safe.directory /__w/sf-metadata/sf-metadata and later on the my other git commands fail? Something weird is happening. I insist you reopen this ticket and investigate more. This was not happening, my workflows were working without a problem few days ago without this extra step to set the safe.directory.

It is something on my image. I dont know what is it yet, but I just used an image from 7 days ago, and it is working again. will check all my dependencies and then I come back here to tell you what I found.

Hi @AllanOricil . Thank you for not giving up on searching for root cause. It would be great if you provide your findings.

@benzsuankularb @Alexey-Ayupov @igorboskovic3
No idea. I just used an older docker image and my problem was gone. Im not sure exactly what is wrong here because there are people reporting the same error and they are not even using docker images. Im just luck, I guess?
In the image below, every commit represents a new container image build. I used the image from b937316 and my issue was gone.  My workflows were using @main before and the problem started.

Why did I choose that one? I just picked up the image from the week where all my workflows were not facing that issue.
I just don't know why changing the image fixed my problem, as the only changes between both images are these

https://github.com/actions/checkout/issues/1048#issuecomment-1356485556

I am having the same issue and haven't done any changes. I can see that this issue has been closed with no solution

this is fixed by using
sudo git config --global --add safe.directory /is/htdocs/wp1090589_IC9AIO06VX/your_project_name
it will ask you for the sudo password and there you go :)

this is fixed by using sudo git config --global --add safe.directory /is/htdocs/wp1090589_IC9AIO06VX/your_project_name it will ask you for the sudo password and there you go :)

this isn't a fix for all scenarios

@igorboskovic3  @Alexey-Ayupov  could you please reopen this and investigate more.  Another random guy reported this in Reddit.
https://www.reddit.com/r/github/comments/znfag2/new_dubious_ownership_error_in_github_workflow/

@igorboskovic3 @Alexey-Ayupov I believe the issue comes from this debian updgrade

Do you have any ideas how I can set this in the dockerfile?

This post also thinks this debian upgrade is the cause of the problem
https://phabricator.wikimedia.org/T325128

@Alexey-Ayupov @igorboskovic3 I HAVE FINALLY SORTED THIS ISSUE. I built my images without upgrading git to deb10u6. For those out there that are not using container images, you are probably facing the same issue because the runners has probably upgraded this git package. So, you can solve this by creating your own container image which does not have this security upgrade that was released to git. In your image, make sure to not upgrade the package. You can do it in my ways,
I did it like this
RUN apt-mark hold git
RUN apt-mark hold git-man

Thanks @AllanOricil !
Another temporary fix is to add the suggested command in the CI/CD pipeline:
git config --global --add safe.directory /__w/{repo_name}/{repo_name}

Thanks @AllanOricil !
Another temporary fix is to add the suggested command in the CI/CD pipeline:
git config --global --add safe.directory /__w/{repo_name}/{repo_name}

@Nicoowr this does not work when using containers. I tried it already

As with @Nicoowr, we encountered this for the first time today on the self-hosted 2.299.1 version of the GitHub Actions Runner. In our case, we were using a python:3.8-buster Docker Container inside the action. We observed that the issue disappeared after switching to a python:3.8-bullseye container which presumably has an updated version of Git. As suggested by @AllanOricil above, try to find a newer container image, currently that seems to be resolving the issue!

To be honest this should not have being closed because it is 100% related to runners. I see no reason why the permissions should be messed on a runner, it is just bad runner configuration or bad volument mounting for action images.
Yep, it is a side effect of getting a newer git, one that is more sensitive to bad permissions, one that uncovers an issue that was ignored for a very long time.

@ssbarnea setting the permissions correctly should be a better solution. A workaround is to do so manually in the CI when running as root:
     steps:
      - name: Change Owner of Container Working Directory
        run: chown root:root .

@ssbarnea setting the permissions correctly should be a better solution. A workaround is to do so manually in the CI when running as root:
     steps:
      - name: Change Owner of Container Working Directory
        run: chown root:root .

Thanks. I did not thought about it. Does it really work? The downside of this approach is that we must add this step on every workflow in multiple repositories.

I also think this issue shouldn't be closed as, clearly, the permissions are set wrongly. The failing git is only a symptom.

i have similar error to yours , but i can't solve? may you helpp me.

I hit this issue too, not sure what is the right way to fix this. My workflow is failing at line 35 at https://github.com/hungry1526/arc-cicd-demo-src/blob/master/.github/workflows/az-vote-cicd.yml . Anyone has clue?

Problem started again, even holding git packages upgrades.

name: Change Owner of Container Working Directory
run: chown root:root .

This works if you are running jobs using containers.

Started having this issue as well.. out-of-the-blue..

👍 Running into this issue now as well

@joelnotified  if you are installing additional packages in your build one of them might be causing this. What I noticed is that previous "succesful" builds no longer work anymore as well.

Me too.
Correct output of my action from yesterday - https://github.com/filamentphp/filament/actions/runs/4036577703/jobs/6939267792
The same action today - https://github.com/filamentphp/filament/actions/runs/4043321725/jobs/6952104956

Same error for us

@Alexey-Ayupov could you reopen this issue please?

Same issue today after I force pushed my repository, the github pages build failed giving out this error.

added this line after my checkout step, which resolved it...but i too started getting this weird error
    steps:
      - name: Checkout Code
        uses: actions/checkout@v3
      - run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

@jmmclean sorry, did that fix the issue or did you get the errors despite that? 🤔

@joelnotified @jmmclean, it doesn't fix the issue for us (I'm part of the @filamentphp team with @danharrin).

We just started seeing this problem today for the first time. For our Docker-based action the git config needs to run inside the container.

Yup, this is likely to crash all 3rd party container-based actions that do any git work, and are based on an image that has a recent enough version of git. This is what happened to us at https://github.com/py-cov-action/python-coverage-comment-action/issues/127 : suddenly, users all started to report this error.

Yeah, I've realized that is the issue as well.
In our case we have a Dockerfile for a custom GitHub Action that uses Git, which I guess has received the latest security updates, causing this.

For anyone else with similar issues. I couldn't figure out how to property set the config from GitPython (which we use within the container), so the easiest solution for us was to put this in the Dockerfile for the custom GitHub Action:
RUN git config --system --add safe.directory *

I realize it's not the best solution, but it works and I don't think there's any risk involved in our case.

For anyone else with similar issues. I couldn't figure out how to property set the config from GitPython (which we use within the container), so the easiest solution for us was to put this in the Dockerfile for the custom GitHub Action:
RUN git config --system --add safe.directory *

I realize it's not the best solution, but it works and I don't think there's any risk involved in our case.

Thanks 😊

I realize it's not the best solution, but it works and I don't think there's any risk involved in our case.

Honnestly, I think it's much much cleaner to do it in the Dockerfile like this than inside the action application code. Great idea :)

Our project just randomly started to see this error today (we use actions/checkout@v2 with ubuntu-latest and it never had this issue before).
I'm not sure why this issue is closed. Yes there're workarounds available, but those are not actual fixes. This is still a bug that should be fixed?

We also started seeing this error in our CIs.
We are using the base image mambaorg/micromamba:bullseye-slim.
Adding git config --global --add safe.directory <your directory> temporarily fixes the issue (but should we consider this directory safe?).
I suspect the problem is that the WORKDIR in the base image is created by a different user than the one executing the problematic command. My 2 cents.

(but should we consider this directory safe?)

As far as I can tell, the class of problems that this check protects you from is not something that may happen in the context of an action (though I can be mistaken).
The idea is if you're evil user A and want to execute code as B on the same machine, you can write that evil code as a git hook, and try and convince user B to do git something on the repo. B would think they're only doing safe git stuff, but in reality, they'll be executing hooks that you wrote. So the idea is that git won't let you execute git on a repo whose .git doesn't belong to you.
I don't see how this would be an issue in GHA.

I don't think this is a runner-images issue, but I certainly think that this is a checkout issue:
https://github.com/actions/checkout/issues/1048
checkout@v3 actually is attempting to fix this with
/usr/bin/git config --global --add safe.directory /__w/.../...

But it doesn't necessarily work sometimes due to permissions (this would make sense) or in any container based build.

If you are experiencing this failure in container-based GitHub-hosted Actions runs, I believe this is the cause
https://github.com/actions/checkout/issues/1169

I had the same fail, but my solution was different. I use cmder as terminal shell and when I started my git I started terminal as Administrator; when I get the fail message I had started as normal user. Just restart terminal as Administrator solved in my case.

Reopen this, lol, @Alexey-Ayupov.

FFR: https://github.com/actions/runner/issues/2033#issuecomment-1598547465
Just use the users option to solve the issue.


Bump dependencies

no issue

bump top-level deps with no breaking changes
bump yarn.lock sub-dependencies

Coverage increased (+0.02%) to 71.928% when pulling 0714cb04a523bfa5579eb590c0be7fd49bdc1f0d on kevinansfield:bump-deps into 796b3a3aab23221bf7359a5c3f482053422acde4 on TryGhost:master.


Dcn/fix windows fs bug

fixed a bug that made the PDF generator to crash on windows.
fixed few bugs with Gitea
updated jxl-pdf

Documentation purpose only: this PR throws this error and unable to build the Windows package.

Documentation purpose only: this PR throws this error and unable to build the Windows package.

@DanielC-N thanks for the fixes. @vipinpaul, this PR can be merged, all the functions are working as expected.


Scrape without overwrite the game name or description.

Hello, when I scrape just some image, video or whatever, it always overwrites the title or the description of the game, which is quite tedious because I have some titles and descriptions translated or customized. The ideal would be to have an option on the scraping screen to avoid this.
Thanks

I wholehartedly agree...  the scrap functionality is fantastic except for being able to turn off renaming of the title.
I've several titles which are slightly different versions and i've manually changed them as such.   The all scrape the same detail, which is the expected behaviour, however the filenames  "Game Title (V1).zip", "Game  Title (2 Player).zip", "Game Title (4 Player).zip" all become 3 entries of "Game Title" without their versions included.
A small change on the scraper would go a long long way to prevent us all having work arounds and vastly improving the UE.

Hello, when I scrape just some image, video or whatever, it always overwrites the title or the description of the game, which is quite tedious because I have some titles and descriptions translated or customized. The ideal would be to have an option on the scraping screen to avoid this.
Thanks

I was just thinking about this same thing the other day.  For example, screenscraper changes quite a few items it thinks are not games with the name prefix ZZZ:notgame (or something similar).  Many of the scraped arcade descriptions leave a lot to be desired too.
I wrote a gamelist manager script and have been thinking about a 'post scraping' cleanup to put back ratings, descriptions etc (frome a metadata backup).  Your post serves to make me think this is something worthwhile proceeding with.  It won't take much effort to add.
Rob

Hello, when I scrape just some image, video or whatever, it always overwrites the title or the description of the game, which is quite tedious because I have some titles and descriptions translated or customized. The ideal would be to have an option on the scraping screen to avoid this.
Thanks

I was just thinking about this same thing the other day. For example, screenscraper changes quite a few items it thinks are not games with the name prefix ZZZ:notgame (or something similar). Many of the scraped arcade descriptions leave a lot to be desired too.
I wrote a gamelist manager script and have been thinking about a 'post scraping' cleanup to put back ratings, descriptions etc (frome a metadata backup). Your post serves to make me think this is something worthwhile proceeding with. It won't take much effort to add.
Rob

That would be a pretty cool and useful helper.

Continue in the new channel dedicated to suggestions on discord:
https://discord.com/channels/357518249883205632/1153287066935906355


Adding Unsplash credits to hero images?

Do you have a recommend way of adding an Unsplash credit to a page image? Preferably as a link, but if not, text would be OK. Otherwise I can just add text to the image itself.
Thanks.

I didn't add image caption support to this theme, but it shouldn't be hard for you to adapt what I've done in my other themes if you're up to it.

Liquid source for image caption
CSS source for image caption
Sample YAML for image caption

Thanks!


[TW#16701] Heap trace and WiFi / networking interference

I was debugging some heap problems and had my heap trace set to 10000 entries using a WROVER with 4MBytes.   I was running a heavy soak test against my ESP32 forming connections, sending data, receiving a response and closing the connections all in a tight loop.  What I found was that eventually my program would "lock up" and I would receive errors about watchdogs being fired in IDLE.  The strange thing was that when I slowed my program down by inserting delays in the network client running on my PC, I would still eventually lock up after about 70-80 connections.  As I dug and dug into this, I came to the conclusion that some resource must be being "used up".  After much fruitless testing, I disabled heap memory tracing and I was able to run indefinitely.  This makes me feel that there was something "odd" in that area.  My best bet is that something isn't quite right if we run out of storage space for heap trace records.   I will research more ... and try and create a stand-alone test.  But I wanted to raise this issue as a tracker in case others might see something or in case it might spark something in the minds of the heap trace developers.

Hi @nkolban ,
Were the heap trace records placed in external PSRAM? If you run tracing with an internal buffer (smaller number of entries), does this work? How about the smaller number of entries when placed in external PSRAM?
Angus

I'm afraid I don't have an immediate re-create for this.  Closing.


[Bug] Need a better way to indicate to the user that a bracket is present/missing the other pair (not closed/open/extra bracket present in the code) No error is displayed currently.

Description
Need a better way to indicate to the user that a bracket is present/missing the other pair (not closed/open/extra bracket present in the code). No error is displayed currently.

Duplicate of #6923


Use tape for tests

I feel like mocha might be a bit too much for such a simple project. I want to try out tape. Also, will tape integrate well with Codecov? #7.

Jest has worked well for me so far. Might switch to that instead. :thinking:


upstream lb: remove unnecessary original dst lb config from cluster info

Commit Message: upstream lb: remove unnecessary original dst lb config from cluster info
Additional Description:
The orignal dst lb config is only used when we construct the original dst cluster. And we needn't store it in the cluster info because the constructor of original dst cluster could load the config directly.
Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

/retest


Updated Opportunities.md

[ :heavy_check_mark:] I've read Readme and Contributing guidelines✌
[ :heavy_check_mark: ] 🌟 this repo!

hey! @SohamG934 thanks for contributing but you have to add Allopswebsite link, not the official link.
I've mentioned it here #10

Sure, I'll update it soon.
On Wed, 12 Oct, 2022, 8:15 pm Siddhant Sharma, @.***>
wrote:

hey! @SohamG934 https://github.com/SohamG934 thanks for contributing
but you have to add Allops https://allops.herokuapp.com/website link,
not the official link.
I've mentioned it here #10 https://github.com/Sidd2024/Allops/issues/10
—
Reply to this email directly, view it on GitHub
https://github.com/Sidd2024/Allops/pull/56#issuecomment-1276301925, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AX3DW7VLZTRLH52ONWZB3JDWC3FKJANCNFSM6AAAAAARCRO5FM
.
You are receiving this because you were mentioned.Message ID:
@.***>


Make {% if %} tag able to perform comparisons

Currently {% if %} can only do "if " or "if not "
It would obviously be far more powerful to be able to express other comparisons, against full expressions.

I've a branch, now, that uses python's built in expression parsing to handle all expressions.
This makes ALL tags far more flexible. However, it presents a large stumbling block: the handling of {% include %}
Currently since we control the parsing of tokens, we can parse a single expression from the token stream, then parse a series of name=expre sequences.
I can't yet see a way to provide this same functionality without recreating the full expression parsing abilities of Python anyway.

Hey is there a workaround for this? I'm using stencil with Gilbert and trying to display certain team cards if they match the author/s of a post
For example I have a BlogPost and TeamMember class in plugins.py:
class BlogPost(Templated, Content):
    authors: list
    template: str = "blog/post_detail.html"

class TeamMember(Templated, Content):
    name: str
    template: str="team/team_detail.html"

Then in the post_detail template I pass each author of the post with all the team members to team_list template:
{% for author in this.authors %}
{% include "team/team_list.html" author=author, members=site.content["team.yaml"].pages %}
{% endfor %}

Now in team_list I want to display the team information only if the member.name matches the author:
{% for member in members %}
{% if member.name == author %}

display team member details

{% endfor %}

A dirty hack might be to use "{% if author.contains(member.name) %}".
>>> from stencil import Template
>>> t = Template("""{% if authors.__contains__(user) %}Woo{% endif %}""")
>>> t.render({"authors": ['one', 'two', 'four'], "user": "foo"})
''
>>> t.render({"authors": ['one', 'two', 'four'], "user": "one"})
'Woo'

A dirty hack might be to use {% if author.__contains__(member.name) %}.

Ah clever I think that will be fine to use, thanks for providing an example


[$500]  Wallet - The add payment button is located not at the bottom, but in the middle of page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.3.85-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:

Go to URL https://staging.new.expensify.com/
Login with any account
Go to Settings -> Wallet -> Add Payment method -> Complete adding BA method
Click on just added BA method
Notice that the add payment button is located not at the bottom, but in the middle of the page, under the added BA

Expected Result:
The add payment button is located at the bottom of page
Actual Result:
The add payment button is located not at the bottom, but in the middle of page
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[x] Android: mWeb Chrome
[ ] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/78819774/c5fcc66a-9496-4bd1-8f21-004ed2bea4fc

MacOS: Desktop

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~011bb2da831f812c7e
Upwork Job ID:<PHONE_NUMBER>644563968
Last Price Increase: 2023-10-17

I agree it looks expected. I will confirm today!

Yep, confirmed in the design doc this is expected. When the payments page is in the empty state, add payment method button is at the bottom. When a bank account is added, we begin showing the bank accounts tile, and the add bank account button is moved up into the tile.
So makes sense to me that when the only bank account is deleted, we'd get rid of the tile, and go back to the empty state.

Closing as this is not a bug!


Added Watermark (credits)

ignore line 12

Remove Line 12, once fixed, i'll review again.
Thanks,
Sulaymaan

Fixed in https://github.com/SintcoLTD/music-player/pull/4


Add GinkgoRecover() to the goroutines to prevent panics

Assertion in goroutines may cause panics that cannot be rescued by
ginkgo. Add GinkgoRecover() to prevent tests panicing.

Failure message:
Ginkgo panics to prevent subsequent assertions from running.
Normally Ginkgo rescues this panic so you shouldn't see it.

But, if you make an assertion in a goroutine, Ginkgo can't capture the panic.
To circumvent this, you should call

	defer GinkgoRecover()

at the top of the goroutine that caused this panic.

/cc @feiskyer

LGTM. Thanks.


Unable to run node-gyp configure

Node Version:

22.5.1 / 10.8.2

Platform:
OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22631 N/A Build 22631
System Type:               x64-based PC

Compiler:
cl: The term 'cl' is not recognized as a name of a cmdlet
msbuild: The term 'msbuild' is not recognized as a name of a cmdlet

Module:
I get the error even if I run node-gyp configure in a an empty folder after running npm init

Verbose output (from npm or node-gyp):
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\Users\jakob\AppData\Local\Volta\tools\image\node\22.5.1\node.exe',
gyp verb cli 'C:\Users\jakob\AppData\Local\Volta\tools\image\packages\node-gyp\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose'
gyp verb cli ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| win32 | x64
gyp verb clean removing "build" directory
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if the py launcher can be used to find Python 3
gyp verb find Python - executing "py.exe" to get Python 3 executable path
gyp verb find Python - executable path is "C:\Users\jakob\AppData\Local\Programs\Python\Python39\python.exe"
gyp verb find Python - executing "C:\Users\jakob\AppData\Local\Programs\Python\Python39\python.exe" to get version
gyp verb find Python - version is "3.9.6"
gyp info find Python using Python version 3.9.6 found at "C:\Users\jakob\AppData\Local\Programs\Python\Python39\python.exe"
gyp verb get node dir no --target version specified, falling back to host node version: 22.5.1
gyp verb install input version string "22.5.1"
gyp verb install installing version: 22.5.1
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 11
gyp verb needs "installVersion" 11
gyp verb install version is good
gyp verb on Windows; need to check node.lib
gyp verb get node dir target node version installed: 22.5.1
gyp verb build dir attempting to create "build" dir: C:\Users\jakob\temp\08\empty\build
gyp verb build dir "build" dir needed to be created? Yes
gyp verb find VS msvs_version not set from command line or npm config
gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp verb find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details.
gyp verb find VS
gyp verb find VS Failure details: undefined
gyp verb find VS unsupported version "15.9.28307.1622" found at "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp verb find VS checking VS2022 (17.10.35122.118) found at:
gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
gyp verb find VS - found "Visual Studio C++ core features"
gyp verb find VS - found VC++ toolset: v143
gyp verb find VS - found Windows SDK: 10.0.22621.0
gyp info find VS using VS2022 (17.10.35122.118) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\Users\jakob\temp\08\empty\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\jakob\temp\08\empty\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\jakob\temp\08\empty\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Users\jakob\AppData\Local\Programs\Python\Python39\python.exe
gyp info spawn args [
gyp info spawn args 'C:\Users\jakob\AppData\Local\Volta\tools\image\packages\node-gyp\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\jakob\temp\08\empty\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\jakob\AppData\Local\Volta\tools\image\packages\node-gyp\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\jakob\AppData\Local\node-gyp\Cache\22.5.1\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\jakob\AppData\Local\node-gyp\Cache\22.5.1',
gyp info spawn args '-Dnode_gyp_dir=C:\Users\jakob\AppData\Local\Volta\tools\image\packages\node-gyp\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\jakob\\AppData\\Local\\node-gyp\\Cache\\22.5.1\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\Users\jakob\temp\08\empty',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\Users\jakob\temp\08\empty\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp: binding.gyp not found (cwd: C:\Users\jakob\temp\08\empty) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess. (C:\Users\jakob\AppData\Local\Volta\tools\image\packages\node-gyp\node_modules\node-gyp\lib\configure.js:317:18)
gyp ERR! stack at ChildProcess.emit (node:events:520:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
gyp ERR! System Windows_NT 10.0.22631
gyp ERR! command "C:\Users\jakob\AppData\Local\Volta\tools\image\node\22.5.1\node.exe" "C:\Users\jakob\AppData\Local\Volta\tools\image\packages\node-gyp\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose"
gyp ERR! cwd C:\Users\jakob\temp\08\empty
gyp ERR! node -v v22.5.1
gyp ERR! node-gyp -v v10.2.0
gyp ERR! not ok

Have also tried Node 17, but same error.

gyp: binding.gyp not found (cwd: C:\Users\jakob\temp\08\empty) while trying to load binding.gyp

Need a binding.gyp file?

https://github.com/nodejs/node-gyp?tab=readme-ov-file#how-to-use
https://github.com/nodejs/node-gyp/blob/main/docs/binding.gyp-files-in-the-wild.md

As explained in the previous comment, the issue is a missing bindings.gyp file. Closing this.


Message text formatting not working when using named slot

Describe the bug
Message text formatting not working when using named slot
For some reason we needed to use named slot to replace the template of the message box . After we did this we discovered that all the text-formatting features are not working
Steps to reproduce
<template>

		<vue-advanced-chat
			height="calc(100vh - 20px)"
			:current-user-id="currentUserId"
			:rooms="JSON.stringify(rooms)"
			:rooms-loaded="true"
			:messages="JSON.stringify(messages)"
			:messages-loaded="messagesLoaded"
			@send-message="sendMessage($event.detail[0])"
			@fetch-messages="fetchMessages($event.detail[0])"
		>

This is a new room header

System message: {{ message.content }}

Normal message: {{ message.content }}

		</vue-advanced-chat>

</template>

When  using named slot for Message . can't use any formatting-text options
Expected behavior
Make use of  text-formatting  message feature like bold . italic , multiline ....
Additional context
"vue": "^2.6.14",
"vue-advanced-chat": "^2.0.3",

Indeed, I would need to make the text formatting service available outside, which can be a nice addition.
But in the meantime, can't you customise messages using CSS only?

After thinking about it that's the purpose of slots. If you replace a part of the component by using slots, you canot expect to still use a part of the replaced component. Closing this as it's a won't fix.


Where is the complete documentation, including dos and donts for Angular.json ?

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x ] feature request

Area
- [ x] devkit
- [ ] schematics

Versions
node: 8.9.2
npm: 6.2.0
Repro steps
ng serve --extract-css
The log given by the failure
Unknown option -extractCSS
Desired functionality
A comprehensive guide (not just a syntax diagram) of how to set up angular.json, especially now that easy-to-use things such as --extract-css and others are no longer allowed during ng serve.  I don't mind that they are gone -- it is the lack of comprehensive "how to" (what is allowed with what, what is NOT allowed with what) inside angular.json.
I have searched in vain through the docs folder on GitHub.com, but cannot find what I need.
For example, how do I set up a "development" serve with the equivalent of the old "ng serve --common-chunk --vendor-chunk --extract-css  --named-chunks --watch"?   I cannot find this information anywhere.  Every blog article and ng-conf session I've looked at glosses over the changes, but doesn't provide links to a comprehensive guide on how to use angular.json to replace what we used to do via package.json.
Mention any other details that might be useful

Documentation for angular workspace https://github.com/angular/angular-cli/wiki/angular-workspace

That WiKi page barely skims the surface in terms of answering my question.
Perhaps I was not clear and/or precise in what I was asking, so let me try again.
What are the Angulat-CLI 6.x Angular.json equivalents of the following Angular-CLI 1.7.x ng build and ng serve command-line arguments?
--extract-css
--common-chunk
--named-chunks
--vendor-chunk

In other words, I’m looking for a concise, side-by-side “mapping” of the old way to the new way of specifying the above options that used to be allowed directly on the ng command line.
Also, while I am at it, if the RxJS folks could find a way to create RxJS-compat to help ease the pain of moving from RxJS 5.x to RxJS 6.x,, why on Earth couldn’t the Angular-CLI crew come up a similar approach to ease the pain of moving from Angular-CLI 1.7.x to Angular-CLI 6.x?


Zingo sync mempool getsetless

Builds on #1575 and #1573 which outlines the argument for a getsetless approach.
#1580 builds on this but controversially removes probably future-proofing work. (In an easily reapplied commit.)
Probably the right pattern is to keep dead code on feature branches until it's ready to LLIiiiVE!

In my experience, during an involved feature is not the best time to refactor.


Use SDK podhelper in add-to-app module Podfile

Description
In the add-to-app module Podfile use the Flutter SDK podhelper helper methods to match the behavior of normal apps, instead of using the podhelper that's generated in the module, which will still be imported in the host app's Podfile.

Update module plugin symlinks directory to match apps, .ios/Flutter/.symlinks/ -> .ios/.symlinks/plugins/
Remove extraneous engine copy from build ios-frameworks since the plugins now link on the engine artifacts instead of the one copied into the module app.
Change the module Podfile to pretty closely mimic a regular app Podfile, with the addition of the FlutterPluginRegistrant pod.
Default to copying release framework that contains bitcode, instead of copying the debug framework.

Related Issues
Fixes flutter build ios --release --local-engine in modules since the plugins are linking directly against the engine artifacts. https://github.com/flutter/flutter/issues/51989
Fixes https://github.com/flutter/flutter/issues/48092
Tests
Added checks for the host app Podfile.lock in module_test_ios.
Thoroughly tested by build_ios_framework_module_test.

@xster Can you test flutter build ios --release --local-engine on this PR?  I've been banging my head on https://github.com/flutter/flutter/issues/64849

@xster Can you test flutter build ios --release --local-engine on this PR?  I've been banging my head on https://github.com/flutter/flutter/issues/64849

Added a Background section to the description, the original description was too confusing.

Added a Background section to the description, the original description was too confusing.


cuda_block_solver.cu(147): error: no instance of overloaded function "atomicAdd" matches the argument list             argument types are: (cuba::Scalar *, cuba::Scalar)

I am trying to build this setup in external SSD where I have installed Ubuntu 22.04. I am getting this error while running make command. I have added the results of "cmake .." command followed by "make". Please help me to resolve this issue.
nisha@nisha-OMEN:~/cuda-bundle-adjustment/build$ cmake ..
-- Automatic GPU detection failed. Building for common architectures.
-- Autodetected CUDA architecture(s): 5.3;6.0;6.1;7.0;7.5;8.0;8.6;8.6+PTX
-- CUDA_ARCH: "-gencode;arch=compute_53,code=sm_53;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_86,code=compute_86"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nisha/cuda-bundle-adjustment/build
nisha@nisha-OMEN:~/cuda-bundle-adjustment/build$ make
[ 14%] Building NVCC (Device) object src/CMakeFiles/cuda_bundle_adjustment.dir/cuda_bundle_adjustment_generated_cuda_block_solver.cu.o
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
435 |         function(_Functor&& __f)
|                                                                                ^
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
530 |         operator=(_Functor&& __f)
|                                                                                ^
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
CMake Error at cuda_bundle_adjustment_generated_cuda_block_solver.cu.o.cmake:280 (message):
Error generating file
/home/nisha/cuda-bundle-adjustment/build/src/CMakeFiles/cuda_bundle_adjustment.dir//./cuda_bundle_adjustment_generated_cuda_block_solver.cu.o
make[2]: *** [src/CMakeFiles/cuda_bundle_adjustment.dir/build.make:955: src/CMakeFiles/cuda_bundle_adjustment.dir/cuda_bundle_adjustment_generated_cuda_block_solver.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:115: src/CMakeFiles/cuda_bundle_adjustment.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

i solved it by changing the CMakeLists.txt file in the src dir
set(CUBA_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include)
include_directories(${CUBA_INCLUDE_DIR})

# CUDA
find_package(CUDAToolkit REQUIRED)
include_directories(${CUDA_INCLUDE_DIRS})
set(CUDA_ARCH "${ARCH_FLAGS}" CACHE STRING "Value of the NVCC -arch option." FORCE)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} ${CUDA_ARCH} -lineinfo -gencode=arch=compute_61,code=sm_61")

basically i changed the architecture to sm_60 after reading:
https://forums.developer.nvidia.com/t/why-does-atomicadd-not-work-with-doubles-as-input/56429
let me know if you have more troubles
@atakagi-fixstars maybe it's something to consider adding to the CMakeLists.txt


wideq: Implement AC

I dont's make HA part yet(sorry I'm new of the ha)
this patch add to support AC control (related #37) and I'm only tested my system AC(model: CST_570004_WW)
properties:

is_on: return the device on/off state
current_temp
target_temp
current_humidity: a value seems *10
wind_strength [= enum]: current strength & set new value, enum should be part of SUPPORT_AC_WIND_STRENGTH
operation [= bool]: current state & turn on/off device
operation_mode [= enum]: current wind type & set new value, enum should be part of SUPPORT_AC_OPERATION_MODE
autodry_mode [= bool]: current mode & turn on/off mode
airclean_mode [= bool]: current mode & turn on/off mode
filter_remain: return the percent of the AC filter
wind_up_down [= bool]: current state & turn on/off up/down wind mode
wind_left_right [= bool]: current state & turn on/off left/right wind mode
wind_vstep [= int]: current value & change up/down wind degrees, value should be 1-6

a control action uses @stefxx 's information of #47 & @brunostavares 's implementation.

Wow. 👏 That's a lot. Try to have a version ready without commented out code, when it's time for this to be merged.

removed some TODO comments; I think it is unimportant.
maybe a project should make the guide about command like syssi/xiaomi_airpurifier
and add GuideType for next work(air purifier)

Thanks for your job, I will take a look tp this PR this w.e.

@d3m3vilurr,
this is a big change that also will require additional work to have climate device available for integration.
If you agree I can create a new dedicated branch and you can push your PRs to this branch, so that we can handle multiple PRs without having the risk to break current implementation in master branch. We will finally merge to master when everything is ready.

@ollo69 yep. that sounds good to me. :)

Created new branch: https://github.com/ollo69/ha-smartthinq-sensors/tree/AC-Implementation
Please create new PR pushing your change to this branch

rebased & changed base branch

Any progress here? Any forecast?

I couldn't start to make the HA components yet. but if someone make the component, it probably work.
next step i'll invest air purifier. (actually i also have plan to invest styler. but it seems already added at ce98e896731)

I start merging this and  than I will rebase with my last changes, than I will try to manage HA component as next step.
If you have some update don't hesitate to create new PR.


Pro Version

AdminLte2 is amazing beautiful and simple, is there a paid version of adminLte2 with more features?
Thank you for this beautiful free template.

I think the real question is what features are you after?
There's already a rather nice foundation for anyone to build upon.

I asked because of the LTE name, I thought it was a light version of another.
I would like a form wizard like this: https://wrappixel.com/ampleadmin/ampleadmin-html/ampleadmin-minimal/form-wizard.html
Thanks

Obrigado.


Rgb variants

Do we use a trait based solution for the Rgb variants, we have atleast 3 variants so far Adobe Rgb, sRgb and linear sRgb (maybe use linear sRgb as the default Rgb variant).
Opening this issue to keep track of it. We need to implement other changes before we come back to this.

I have already opened #7 to discuss the separation of the RGB types.


add a dynamic buffer

noticed that as font size increased the buffer of 5 turns out to be too small. Created a line buffer based on the font size so it increases as the fonts get bigger

Changes Unknown when pulling 7bdc7f68a58b4cae9d517260a42c6eb44978d65e on font-height-buffer into ** on master**.

Changes Unknown when pulling 7bdc7f68a58b4cae9d517260a42c6eb44978d65e on font-height-buffer into ** on master**.


[BFCL] Potential bug in calculating accuracy

Describe the issue
A clear and concise description of what the issue is.
What is the issue
I find the calculation of the simple AST score in the non-live part in v2 is not consistent with that in v1.
v1: scores of python, java and js are summed with calculate_weighted_accuracy
v2: scores of python, java and js are summed with calculate_unweighted_accuracy
Maybe the results on the webpage are not so correct. (I guess the results on current webpage are directly calculated with the results on the previous page and the results in the live part, (score_v1+score_v2)/2 .)
Proposed Changes
Additional context
Add any other context about the problem here.

Hi @XuHwang,
It is intentional and not a bug. As mentioned in #580, in BFCL V2, we have changed the overall accuracy to be the unweighted average of each of the sub-categories.

"exec_simple", "exec_parallel", "exec_multiple", "exec_parallel_multiple", "simple", "irrelevance", "parallel", "multiple", "parallel_multiple", "java", "javascript", "rest", "live_simple", "live_multiple", "live_parallel", "live_parallel_multiple", "live_irrelevance", "live_relevance"

And so the summary score for python simple, python java and python javascript are also summed unweighted.


cannot fix himself the problem

Describe the bug
Potential problem detected.
1
Hide problem
Command failed
npx astro build and it's cost a lot of token ...
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-hb5sjm
Steps to reproduce
Npm build failed
Expected behavior
I just try to build to deploy ..
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 84428497,
  "usedJSHeapSize": 80702381,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = agencepantera
Chat ID = f8c644e90dae

Additional context
No response

Appreciate the feedback! We are aware of this issue and are tracking it here: https://github.com/stackblitz/bolt.new/issues/2021.


 However, in some cases, most notably within loops, a lambda doesn't capture the variable as expected. It only captures the final value, not the value as it mutates after each iteration. The following example illustrates the problem. It PASSES A LOOP COUNTER TO A LAMBDA EXPRESSION that instantiates a CustomData object and uses the loop counter as the object's identifier. As the output from the example shows, each CustomData object has an identical identifier."

Two different scenarios are confused:

case A: access in lambda expressions to the local variables in the enclosing scope (here the "final-value-capturing" issue does exist);
case B: passing parameters to lambda expressions (here everything is OK when the lambda uses the passed value which is not the case in the example).

In order to illustrate the case A, the authors announce an example which is supposed to use the case B.

But actually the example demonstrates the case A, not B, as the passed parameter (obj) is never used, and the value of the local variable from the enclosing scope (i) is captured instead.

In the second example the creation of object CustomData() {Name = i, CreationTime = DateTime.Now.Ticks} works but is redundant as it's enough to take the passed parameter value in the lambda, replacing the line
var data = new CustomData() {Name = i, CreationTime = DateTime.Now.Ticks};
with
var data = new CustomData() {Name = (int)obj, CreationTime = DateTime.Now.Ticks};

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

ID: 050b2b8a-8b8d-c2de-f03d-b2ebb26a9c95
Version Independent ID: 7d23f296-9a5e-ca0a-08c3-f718d0a90d94
Content: Task-based asynchronous programming - .NET
Content Source: docs/standard/parallel-programming/task-based-asynchronous-programming.md
Product: dotnet
Technology: dotnet-standard
GitHub Login: @rpetrusha
Microsoft Alias: ronpet

@BillWagner Can you determine what needs to be changed in the doc?


Switch from launch configurations to launch templates

Given the upcoming deprecation of launch configuration, we need to migrate to launch templates. As you can see, the underlying Terraform module already supports launch templates and the changes needed to the installer are trivial but making the switch for existing clusters would imply downtime as all the nodes need to be destroyed and then recreated.
How do we want to manage the migration? I think the heavy lifting should be done by furyctl (I'm trying to figure how) but we need an installer that can support but launch configuration and launch templates for the sake of migration.
What are your thoughts on the topic?
Closes #39

Maybe a conditional dynamic block with a parameter that pilot if we are using worker_groups or worker_groups_launch_template ?
https://codeinthehole.com/tips/conditional-nested-blocks-in-terraform/

In the end, dynamic blocks where not needed. I managed to achieve something meaningful using just conditionals. Obviously, in the installer, it's up to the user to select the value and apply the correct steps to migrate from launch configurations to launch templates.

Hi @lnovara
From the announcement you linked, it seems that the Auto Scaling Groups can be switched from launch configuration to launch templates without needing to recreate them.
Maybe the only thing to have in mind is the order that the operations are performed (first add the launch template field and then remove the launch configuration)
I wonder if changing the value makes Terraform recreate the ASG or if it is smart enough, did you test this by any chance?
Thanks!

We also tried to make the transition as transparent as possible to the end user and without any downtime, but that migration path involved doing nasty stuff such as manually editing the Terraform state so, even if we had some success, we gave up in that route.


Add renameTab to docs

Does what title says
closes #74
see microsoft/terminal#6557

Docs Build status updates of commit 69b02de:
:clock10: Pending: waiting for processors (73 builds ahead of you)
:warning: Docs Build is busy, currently there are 73 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 69b02de:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

TerminalDocs/customize-settings/key-bindings.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Apologies for approving a later PR, but it looks like #90 covers this. Thanks for going through this process though, that's my bad that I merged a later PR.


add provider logos to "verify at source"

same as we have for image info tab, but experiment with presentation in UI

it's a little bit vague for newcomers like me , can you add more details ?.

I tried to help with this one, here is the pull request I opened: #523


Adds huggingface FillMaskTranslator

Adds huggingface FillMaskTranslator

Codecov Report

Merging #1876 (98978a5) into master (bb5073f) will decrease coverage by 2.27%.
The diff coverage is 64.62%.

@@             Coverage Diff              @@
##             master    #1876      +/-   ##
============================================
- Coverage     72.08%   69.81%   -2.28%
- Complexity     5126     5561     +435
============================================
  Files           473      529      +56
  Lines         21970    24603    +2633
  Branches       2351     2676     +325
============================================
+ Hits          15838    17176    +1338
- Misses         4925     6112    +1187
- Partials       1207     1315     +108

Impacted Files
Coverage Δ

api/src/main/java/ai/djl/modality/cv/Image.java
69.23% <ø> (-4.11%)
:arrow_down:

...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java
76.00% <ø> (ø)

...rc/main/java/ai/djl/modality/cv/output/Joints.java
71.42% <ø> (ø)

.../main/java/ai/djl/modality/cv/output/Landmark.java
100.00% <ø> (ø)

...main/java/ai/djl/modality/cv/output/Rectangle.java
72.41% <0.00%> (ø)

...i/djl/modality/cv/translator/BigGANTranslator.java
21.42% <0.00%> (-5.24%)
:arrow_down:

...odality/cv/translator/BigGANTranslatorFactory.java
33.33% <0.00%> (+8.33%)
:arrow_up:

...nslator/InstanceSegmentationTranslatorFactory.java
14.28% <0.00%> (-3.90%)
:arrow_down:

.../cv/translator/SemanticSegmentationTranslator.java
0.00% <0.00%> (ø)

.../cv/translator/StyleTransferTranslatorFactory.java
40.00% <ø> (ø)

... and 425 more

Help us with your feedback. Take ten seconds to tell us how you rate us.


Add parse_switch sample code

Overview
I'm not sure the order is right. Should we parse the {switch=} always after the other variables?
Nature of This Change

[ ] 🐛 Fixes a bug
[ ] 🚀 Implements a new feature
[x] 🛁 Rewrites existing documentation
[ ] 💅 Fixes coding style
[ ] 🔥 Removes unused files / code

I don't think you need to bother Yuri, @ops-andy , because this is written at the previous paragraph:

You may also parse the result rows yourself, which could be useful if for some reason you need to modify the TMPL::$tagdata for each row based on certain criteria. You can still benefit from the simplified variable parsing by using TMPL::parse_variables_row, though you will no longer automatically have {count}, {total_results}, or {switch=} variables. To include these variables when parsing your own result rows, you will need to add them yourself.

Just the sample is missing.


pod search Alamofire, version is 1.1.4

Cannot reproduce:
~ ⮀ pod search alamofire

-> Alamofire (1.2.0)
   Elegant HTTP Networking in Swift
   pod 'Alamofire', '~> 1.2.0'
   - Homepage: https://github.com/Alamofire/Alamofire
   - Source:   https://github.com/Alamofire/Alamofire.git
   - Versions: 1.2.0, 1.1.5, 1.1.4, 1.1.3 [master repo]

-> RACAlamofire (0.0.6)
   ReactiveCocoa extensions for Alamofire
   pod 'RACAlamofire', '~> 0.0.6'
   - Homepage: https://github.com/ararog/Alamofire-RACExtensions
   - Source:   https://github.com/ararog/Alamofire-RACExtensions.git
   - Versions: 0.0.6 [master repo]

-> TKAlamofire (1.1.4)
   Elegant HTTP Networking in Swift
   pod 'TKAlamofire', '~> 1.1.4'
   - Homepage: https://github.com/nicolastinkl/TKAlamofire
   - Source:   https://github.com/nicolastinkl/TKAlamofire.git
   - Versions: 1.1.4, 1.0.2 [master repo]

Try updating your version of the CocoaPods gem. Or perhaps you are confused by TKAlamofire?

hi, i'm find is 1.1.4

i have update cocoapods。

This is not an issue with Alamofire. You should try asking the CocoaPods maintainers.

ok~thx

You need to run pod repo update first which will update the main spec repo. Yours is most likely out-of-date.


Migrate all publish to central workflow to include multiple central environments

Description:
$subject
Module List:
Level 1

[x] io
[x] java.arrays
[x] regex
[x] time
[ ] url
[x] xmldata
[x] constraint

Level 2

[ ] crypto
[x] log
[x] os
[x] random
[x] task
[x] xslt
[x] serdes
[x] protobuf

Level 3

[x] cache
[x] file
[x] ftp
[ ] mime
[x] nats
[x] stan
[x] tcp
[x] udp
[x] uuid

Level 4

[x] auth
[ ] email
[x] jwt
[x] oauth2

Level 5

[x] http

Level 6

[x] grpc
[x] websocket
[ ] websub
[ ] websubhub

Level 7

[x] graphql
[x] kafka
[x] rabbitmq
[x] sql

Level 8

[x] java.jdbc
[x] mysql
[x] postgresql
[x] mssql
[x] oracledb

https://github.com/ballerina-platform/module-ballerina-websocket/pull/630
https://github.com/ballerina-platform/module-ballerina-tcp/pull/634
https://github.com/ballerina-platform/module-ballerina-udp/pull/538

https://github.com/ballerina-platform/module-ballerina-jwt/pull/636


Remove import from StorageTwoLayer

Remove import StorageTwoLayer; from model DistrictHeating.Examples.Storage.StorageTwoLayer

fixed with version commit d013d2aa4b1e3889ffdf835ec0687043b88edbc1


Progress - controlling line ends

Feature
It will be nice to have control over line endings in Progress element.
In short, I would like to remove empty lines as it is shown here:

I have started a discussion for this https://github.com/spectreconsole/spectre.console/discussions/1450


fix: Flyout labels, property editor title/subtitles for action nodes updated

Description
Updated following labels

Action node flyout menu
Property editor main titles for action nodes
Property editor subtitles for action nodes

Task Item
fixes  #2845

Matched the flyout menu labels with the editor main titles
Updated subtitles.

Coverage remained the same at 0.0% when pulling 917199a272dd614dae092fb22b68eeff1d215fbb on sangwoohaan:updatelabels into 88aabd719fd270c333bfb5eb4e756df3ce358db0 on microsoft:master.


Review use of Masked Arrays in Transfer Function Estimation

property n_data is usually used for identification of the number of FFT-ed segments available, but there are cases where we would like to know the number of "valid data".
This could probably be done cleanly with masked arrays
The nan-checks are done in the matlab codes in TTFestBand.m
There are a total of 5 nan-checks in TTFestBand.m
2 are in the Single Station (SS) mode on lines 93 and 115,
L93 checks for nans in X (the input channels-- magnetics), these indices then correspond to data having weight =0
L115 is inside of a loop over channels (SS estimates TF for each channel independently) and finds nan in the output channels, and sets weights for these equal to zero as well
2 are in the Remote Reference (RR) mode on lines 131 and 154, 180,
L131 and L154 do the same checks as SS, except that L131 needs to check the magnetics at both the local and RR station
The last isnan is actually in Edfwts which will be addressed in issue #54
Here is a sample code block from the input channel check:
% eliminate all segments with any magnetics missing indX = all(~isnan(obj.X),2); % assuming here that weights are never missing % (unless something else is) switch obj.weights case {'Seg','Both'} indX = obj.WtSeg>0 & indX; Wtt = obj.WtSeg(indX); otherwise Wtt = ones(sum(indX),1); end Xt = obj.X(indX,:); Yt = obj.Y(indX,:);
To practically test this we will need some data with NaN in them. see issue #59.
Two notes about how Nan in FC series are handled in EMTF:

The way EMTF works in single station and remote reference modes, the TFs are estimated for each output channel separately, and since the missing data cannot be guaranteed to be from the same time intervals for all channels, we need to consider NaN handling methods that allow for each channel to have different data gaps. (see issue #7)
Input channels should in general be treated with different rules than output channels. Inputs must all be simultaneously present over any interval we will use for TF estimation. Output channels are treated one at a time, and are only processed for intervals where the output and all inputs are present.

This nan-handling is only specific to the Regression data.  More general NaN in time series are considered in issue #66

There are a total of 5 nan-checks in TTFestBand.m
2 are in the Single Station (SS) mode on lines 93 and 115,
L93 checks for nans in X (the input channels-- magnetics), these indices then correspond to data having weight =0
L115 is inside of a loop over channels (SS estimates TF for each channel independently) and finds nan in the output channels, and sets weights for these equal to zero as well
2 are in the Remote Reference (RR) mode on lines 131 and 154, 180,
L131 and L154 do the same checks as SS, except that L131 needs to check the magnetics at both the local and RR station
The last isnan is actually in Edfwts which will be addressed in issue #54
Here is a sample code block from the input channel check:
% eliminate all segments with any magnetics missing                     indX = all(~isnan(obj.X),2);                     %    assuming here that weights are never missing                     %    (unless something else is)                     switch obj.weights                         case {'Seg','Both'}                             indX = obj.WtSeg>0 & indX;                              Wtt = obj.WtSeg(indX);                         otherwise                             Wtt = ones(sum(indX),1);                     end                      Xt = obj.X(indX,:);                     Yt = obj.Y(indX,:);

In order to keep the scope of this issue focussed,I created issue #66 to discuss Nan handling in time series.  For this issue we worry only about series fo Fourier coefficients.

To implement the handling of nan as it is done in the matlab codes we need to do the following

Create a test case where we sprinkle some NaN into the Fourier coefficient arrays
-- This can be hacked by manipulating the array of Fourier coefficients, but this doesn't feel right, because I need to drop a kwarg and if-statment into some core code in the middle of the pipeline to manipulate the FC file.  A better solution would be to start with the syntetic data from issue #59 and modify the processing pipeline so that nan show up in the FC array.
Modify the logic in aurora.pipelines.preocessing_helpers.process_transfer_functions so that we are estimating per channel
--This is needed because we will in general drop different indices for different channels.
Implement a dropna() method on a channel by channel basis

Rather than used masked arrays, I used a dropna method, similar to what Gary is doing in the matlab codes.
We could revisit the masked arrays later, when dealing with NaN in timeseries.
While wrangling the nans the following snippets were helpful:
import numpy as np qq = np.intersect1d(X.time, Y.time) for ch in list(Y.data_vars):     Y[ch] = Y[ch].loc[X.time,:]