'index out of bounds: the len is 108 but the index is 108', crates/ide_db/src/line_index.rs:107:9

I think I got this panic while I was renaming a structure inside an enum.
This isn't exactly the same version, but it was at this line: https://github.com/PaulGrandperrin/cachou/blob/c24d9ebc65b762942847f0813d06133011675c3f/common/src/api/call.rs#L14
I save my whole OS (a btrfs snapshot) at the moment of the panic.. if something needs to be recovered to help you, please tell me.
Unfortunately, I can't reproduce.
Here is the full trace:
[Error - 2:18:24 PM] Request textDocument/rename failed.
  Message: No references found at position
  Code: -32602
[Error - 2:18:33 PM] Request textDocument/rename failed.
  Message: No references found at position
  Code: -32602
Panic context:
> request: textDocument/codeAction CodeActionParams {
    text_document: TextDocumentIdentifier {
        uri: Url {
            scheme: "file",
            username: "",
            password: None,
            host: None,
            port: None,
            path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
            query: None,
            fragment: None,
        },
    },
    range: Range {
        start: Position {
            line: 14,
            character: 7,
        },
        end: Position {
            line: 14,
            character: 7,
        },
    },
    context: CodeActionContext {
        diagnostics: [
            Diagnostic {
                range: Range {
                    start: Position {
                        line: 14,
                        character: 7,
                    },
                    end: Position {
                        line: 14,
                        character: 7,
                    },
                },
                severity: Some(
                    Hint,
                ),
                code: None,
                code_description: None,
                source: Some(
                    "rustc",
                ),
                message: "expected one of `(`, `,`, `=`, `{`, or `}`",
                related_information: Some(
                    [
                        DiagnosticRelatedInformation {
                            location: Location {
                                uri: Url {
                                    scheme: "file",
                                    username: "",
                                    password: None,
                                    host: None,
                                    port: None,
                                    path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
                                    query: None,
                                    fragment: None,
                                },
                                range: Range {
                                    start: Position {
                                        line: 15,
                                        character: 4,
                                    },
                                    end: Position {
                                        line: 15,
                                        character: 19,
                                    },
                                },
                            },
                            message: "original diagnostic",
                        },
                    ],
                ),
                tags: None,
                data: None,
            },
            Diagnostic {
                range: Range {
                    start: Position {
                        line: 14,
                        character: 7,
                    },
                    end: Position {
                        line: 14,
                        character: 7,
                    },
                },
                severity: Some(
                    Hint,
                ),
                code: None,
                code_description: None,
                source: Some(
                    "rustc",
                ),
                message: "missing `,`",
                related_information: Some(
                    [
                        DiagnosticRelatedInformation {
                            location: Location {
                                uri: Url {
                                    scheme: "file",
                                    username: "",
                                    password: None,
                                    host: None,
                                    port: None,
                                    path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
                                    query: None,
                                    fragment: None,
                                },
                                range: Range {
                                    start: Position {
                                        line: 15,
                                        character: 4,
                                    },
                                    end: Position {
                                        line: 15,
                                        character: 19,
                                    },
                                },
                            },
                            message: "original diagnostic",
                        },
                    ],
                ),
                tags: None,
                data: None,
            },
        ],
        only: None,
    },
    work_done_progress_params: WorkDoneProgressParams {
        work_done_token: None,
    },
    partial_result_params: PartialResultParams {
        partial_result_token: None,
    },
}

thread '<unnamed>' panicked at 'index out of bounds: the len is 108 but the index is 108', crates/ide_db/src/line_index.rs:107:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:92:14
   2: core::panicking::panic_bounds_check
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:69:5
   3: ide_db::line_index::LineIndex::offset
   4: rust_analyzer::from_proto::text_range
   5: rust_analyzer::handlers::handle_code_action
   6: <F as threadpool::FnBox>::call_box
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Panic context:
> request: textDocument/codeAction CodeActionParams {
    text_document: TextDocumentIdentifier {
        uri: Url {
            scheme: "file",
            username: "",
            password: None,
            host: None,
            port: None,
            path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
            query: None,
            fragment: None,
        },
    },
    range: Range {
        start: Position {
            line: 16,
            character: 29,
        },
        end: Position {
            line: 16,
            character: 29,
        },
    },
    context: CodeActionContext {
        diagnostics: [],
        only: None,
    },
    work_done_progress_params: WorkDoneProgressParams {
        work_done_token: None,
    },
    partial_result_params: PartialResultParams {
        partial_result_token: None,
    },
}

thread '<unnamed>' panicked at 'index out of bounds: the len is 108 but the index is 108', crates/ide_db/src/line_index.rs:107:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:92:14
   2: core::panicking::panic_bounds_check
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:69:5
   3: ide_db::line_index::LineIndex::offset
   4: rust_analyzer::from_proto::text_range
   5: rust_analyzer::handlers::handle_code_action
   6: <F as threadpool::FnBox>::call_box
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Panic context:
> request: textDocument/codeAction CodeActionParams {
    text_document: TextDocumentIdentifier {
        uri: Url {
            scheme: "file",
            username: "",
            password: None,
            host: None,
            port: None,
            path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
            query: None,
            fragment: None,
        },
    },
    range: Range {
        start: Position {
            line: 16,
            character: 0,
        },
        end: Position {
            line: 17,
            character: 0,
        },
    },
    context: CodeActionContext {
        diagnostics: [
            Diagnostic {
                range: Range {
                    start: Position {
                        line: 16,
                        character: 8,
                    },
                    end: Position {
                        line: 16,
                        character: 23,
                    },
                },
                severity: Some(
                    Error,
                ),
                code: None,
                code_description: None,
                source: Some(
                    "rustc",
                ),
                message: "expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `UserPrivateData`\nunexpected token",
                related_information: Some(
                    [
                        DiagnosticRelatedInformation {
                            location: Location {
                                uri: Url {
                                    scheme: "file",
                                    username: "",
                                    password: None,
                                    host: None,
                                    port: None,
                                    path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
                                    query: None,
                                    fragment: None,
                                },
                                range: Range {
                                    start: Position {
                                        line: 15,
                                        character: 23,
                                    },
                                    end: Position {
                                        line: 15,
                                        character: 23,
                                    },
                                },
                            },
                            message: "expected one of 7 possible tokens",
                        },
                        DiagnosticRelatedInformation {
                            location: Location {
                                uri: Url {
                                    scheme: "file",
                                    username: "",
                                    password: None,
                                    host: None,
                                    port: None,
                                    path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
                                    query: None,
                                    fragment: None,
                                },
                                range: Range {
                                    start: Position {
                                        line: 15,
                                        character: 23,
                                    },
                                    end: Position {
                                        line: 15,
                                        character: 23,
                                    },
                                },
                            },
                            message: "missing `,`",
                        },
                    ],
                ),
                tags: None,
                data: None,
            },
            Diagnostic {
                range: Range {
                    start: Position {
                        line: 16,
                        character: 8,
                    },
                    end: Position {
                        line: 16,
                        character: 23,
                    },
                },
                severity: Some(
                    Error,
                ),
                code: Some(
                    String(
                        "E0412",
                    ),
                ),
                code_description: Some(
                    CodeDescription {
                        href: Url {
                            scheme: "https",
                            username: "",
                            password: None,
                            host: Some(
                                Domain(
                                    "doc.rust-lang.org",
                                ),
                            ),
                            port: None,
                            path: "/error-index.html",
                            query: None,
                            fragment: Some(
                                "E0412",
                            ),
                        },
                    },
                ),
                source: Some(
                    "rustc",
                ),
                message: "cannot find type `UserPrivateData` in this scope",
                related_information: Some(
                    [
                        DiagnosticRelatedInformation {
                            location: Location {
                                uri: Url {
                                    scheme: "file",
                                    username: "",
                                    password: None,
                                    host: None,
                                    port: None,
                                    path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
                                    query: None,
                                    fragment: None,
                                },
                                range: Range {
                                    start: Position {
                                        line: 92,
                                        character: 0,
                                    },
                                    end: Position {
                                        line: 92,
                                        character: 29,
                                    },
                                },
                            },
                            message: "similarly named struct `GetUserPrivateData` defined here",
                        },
                        DiagnosticRelatedInformation {
                            location: Location {
                                uri: Url {
                                    scheme: "file",
                                    username: "",
                                    password: None,
                                    host: None,
                                    port: None,
                                    path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
                                    query: None,
                                    fragment: None,
                                },
                                range: Range {
                                    start: Position {
                                        line: 16,
                                        character: 8,
                                    },
                                    end: Position {
                                        line: 16,
                                        character: 23,
                                    },
                                },
                            },
                            message: "there is an enum variant `crate::api::Call::UserPrivateData`; try using the variant\'s enum",
                        },
                        DiagnosticRelatedInformation {
                            location: Location {
                                uri: Url {
                                    scheme: "file",
                                    username: "",
                                    password: None,
                                    host: None,
                                    port: None,
                                    path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
                                    query: None,
                                    fragment: None,
                                },
                                range: Range {
                                    start: Position {
                                        line: 16,
                                        character: 8,
                                    },
                                    end: Position {
                                        line: 16,
                                        character: 23,
                                    },
                                },
                            },
                            message: "a struct with a similar name exists",
                        },
                    ],
                ),
                tags: None,
                data: None,
            },
            Diagnostic {
                range: Range {
                    start: Position {
                        line: 16,
                        character: 8,
                    },
                    end: Position {
                        line: 16,
                        character: 23,
                    },
                },
                severity: Some(
                    Hint,
                ),
                code: Some(
                    String(
                        "E0412",
                    ),
                ),
                code_description: Some(
                    CodeDescription {
                        href: Url {
                            scheme: "https",
                            username: "",
                            password: None,
                            host: Some(
                                Domain(
                                    "doc.rust-lang.org",
                                ),
                            ),
                            port: None,
                            path: "/error-index.html",
                            query: None,
                            fragment: Some(
                                "E0412",
                            ),
                        },
                    },
                ),
                source: Some(
                    "rustc",
                ),
                message: "there is an enum variant `crate::api::Call::UserPrivateData`; try using the variant\'s enum",
                related_information: Some(
                    [
                        DiagnosticRelatedInformation {
                            location: Location {
                                uri: Url {
                                    scheme: "file",
                                    username: "",
                                    password: None,
                                    host: None,
                                    port: None,
                                    path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
                                    query: None,
                                    fragment: None,
                                },
                                range: Range {
                                    start: Position {
                                        line: 16,
                                        character: 8,
                                    },
                                    end: Position {
                                        line: 16,
                                        character: 23,
                                    },
                                },
                            },
                            message: "original diagnostic",
                        },
                    ],
                ),
                tags: None,
                data: None,
            },
            Diagnostic {
                range: Range {
                    start: Position {
                        line: 16,
                        character: 8,
                    },
                    end: Position {
                        line: 16,
                        character: 23,
                    },
                },
                severity: Some(
                    Hint,
                ),
                code: Some(
                    String(
                        "E0412",
                    ),
                ),
                code_description: Some(
                    CodeDescription {
                        href: Url {
                            scheme: "https",
                            username: "",
                            password: None,
                            host: Some(
                                Domain(
                                    "doc.rust-lang.org",
                                ),
                            ),
                            port: None,
                            path: "/error-index.html",
                            query: None,
                            fragment: Some(
                                "E0412",
                            ),
                        },
                    },
                ),
                source: Some(
                    "rustc",
                ),
                message: "a struct with a similar name exists",
                related_information: Some(
                    [
                        DiagnosticRelatedInformation {
                            location: Location {
                                uri: Url {
                                    scheme: "file",
                                    username: "",
                                    password: None,
                                    host: None,
                                    port: None,
                                    path: "/home/paulg/Repositories/cachou/common/src/api/call.rs",
                                    query: None,
                                    fragment: None,
                                },
                                range: Range {
                                    start: Position {
                                        line: 16,
                                        character: 8,
                                    },
                                    end: Position {
                                        line: 16,
                                        character: 23,
                                    },
                                },
                            },
                            message: "original diagnostic",
                        },
                    ],
                ),
                tags: None,
                data: None,
            },
        ],
        only: None,
    },
    work_done_progress_params: WorkDoneProgressParams {
        work_done_token: None,
    },
    partial_result_params: PartialResultParams {
        partial_result_token: None,
    },
}

thread '<unnamed>' panicked at 'index out of bounds: the len is 108 but the index is 108', crates/ide_db/src/line_index.rs:107:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:493:5
   1: core::panicking::panic_fmt
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:92:14
   2: core::panicking::panic_bounds_check
             at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:69:5
   3: ide_db::line_index::LineIndex::offset
   4: rust_analyzer::from_proto::text_range
   5: rust_analyzer::handlers::handle_code_action
   6: <F as threadpool::FnBox>::call_box
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Dupe of https://github.com/rust-analyzer/rust-analyzer/issues/4266, I guess.


support file destination volume

If a volume source contains only one file, bind mount it as a file
to the specified mountpoint inside container's namespace, rather than
mounting its parent directory.
Iff volume source has only one file, and destination mountpoint is not
an existing directory, bind mount the file.

what about the user use the volume one one container and reuse it on a new container?
and in some useful cases, destination mountpoint is existing as a file.

how about the user use the volume in one container(created a single file) and reuse it on a new container?
Let's discuss offline and then update here.

and in some useful cases, destination mountpoint is existing as a file.
It is handled in current patch. hyper_create_file() returns 0 for existing files.

updated to use a special filename to identify file based volumes, as we discussed offline.
[lear@hyper-api-router]$mypkt run -d -v https://github.com/nginxinc/docker-nginx/raw/master/stable/alpine/Dockerfile:/data1 -v https://github.com/nginxinc/docker-nginx.git:/data2 busybox
0a2e36e85c47e254bd3b2c3077716966091879c25c21c3184724063868305e09
[lear@hyper-api-router]$mypkt exec 0a2e36e85c47e254bd3b2c3077716966091879c25c21c3184724063868305e09 ls -la /data1 /data2
-rw-r--r--    1 root     root          4349 Jun 22 09:58 /data1

/data2:
total 24
drwxr-xr-x    5 root     root          4096 Jun 22 09:58 .
drwxr-xr-x   14 root     root          4096 Jun 22 09:59 ..
drwxr-xr-x    8 root     root          4096 Jun 22 09:58 .git
-rw-r--r--    1 root     root           453 Jun 22 09:58 README.md
drwxr-xr-x    4 root     root          4096 Jun 22 09:58 mainline
drwxr-xr-x    4 root     root          4096 Jun 22 09:58 stable


ddev import-files with an invalid source path destroys sites/default/files

Describe the bug

A user did ddev import-files --src=/sites/default/files where /sites/default/files did not exist (on a Drupal 7 site)
The result is an error Failed to import files for ...: file not found. Please provide a valid asset path. but it also destroys the project's sites/default/files, which ends up empty.

To Reproduce
On a Drupal 7 site:

ddev import-files --src=/sites/default/files

Expected behavior
A simple error message of some kind.
Instead sites/default/files was emptied.
Screenshots
If applicable, add screenshots to help explain your problem.
Version and configuration information (please complete the following information):

Host computer OS and Version: [e.g. Windows 10, macOS High Sierra]
Docker version information (use docker version) and insert it here.
ddev version information (use ddev version)
config.yaml contents for the misbehaving project
Do you have any custom configuration (nginx, php, mysql) in the .ddev folder? If so, have you tried without them?

Additional context
Add any other context about the problem here. Thanks!

I had a similar experience:

I did cd sites/default and then ddev import-files --src=files where sites/default/files DID exist (on a Drupal 7 site).
The result is an error Failed to import files for ...: destination already exists  AND it also destroyed the project's sites/default/files, which ends up empty.

Put this down for Andrew and v0.19.0, but it's a natural thing to be solved in the refactor of import-files in #666


Client pod without service cannot talk to other services

Feedback from @jocortems - when you install OSM by default and it is in permissive (allow all) traffic mode - individual pods without a service are not allowed to comminucate with other pods/services.
The allow-all mode we observe services and allow each service to communicate with every other service.
Pods that do not belong to a service need to be included as well.
For example - if I install the bookstore example, then spin up a new pod (I'll call in nettools) and try to curl the bookstore from the nettools pod - it should work. Currently this is not allowed.

This issue is true with SMI mode as well, and needs to be resolved.

Glad that it is working the same way in both modes.
All along we have been talking only in terms of services, i.e. policies are always defined for service (or in other words service accounts). Now we have to make a fundamental paradigm shift and say that both Pods and services can be in a mesh. I am wondering whether it is required. If we expose that single Pod as a service does everything work?

ref: https://github.com/openservicemesh/osm/pull/1745


Is there any published paper about this work?

The result looks nice.
BUT, what's the dataset, how you trained the model?
Hope you could share some details

I was considering a paper 3 years ago. But finally I found it is a bit trivial and did not manage one.......

I'm trying to extract sketches from colored cartoon picture, but it's hard to find paired datasets, and few works to refer to.
I tried the model you provided, I suppose you trained a U-Net to do the binary classification to judge whether it's an EDGE or not? And U-Net requires less data to get precise result, is that right?
I wonder how you trained the model.

I believe there was, maybe about at 2017, a dataset of paired illustration and aligned manually-inked line drawings. I forgot the searching keyworks but there should be one. It should be something like "pixiv line drawing" or something else...

pixiv Inc runs PaintsChainer.  Thanks

I download the paired sketch and colored images from pixiv
with this dataset, I'd like to ask about the training procudure, mainly the sketch img process, should I turn the sketch to binary map which has unique value 0 and 1? Loss function with BCE？


Update get-started-analyze-sql-pool.md

Fixed table reference

@SanderVHGD : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Looks correct (matches line 42); thanks @SanderVHGD.


Given a contact id, can a manager join an on-going live call?

Hello,
We have an integration wherein we are storing the contactId for every call with a ticket number. Now we want to develop a feature where a manager sees a live call going on for a while and wants to join in the conversation.
is there an api that allows joining the call if we know the contact id?

Hi, I don't think this is possible via API currently. The only way of doing this is to use the real time metrics page in the Connect Administrator website (/home)


feat(minor): export model name type for easy reuse

Also adds a doc note about how tokens are calculated.

Looks good, thank you!


seed is shown again after succesfull backup

OS: Android
Version: 4.9.1
After successfully backing up the seed it is shown again without any prior warning or the users intend to see it.
Reproducing steps:

Go to settings and do a seed backup
enter the words in the correct order
enter password (didn't try without password)
click on "Got it". (client switches back to the main screen)
click on Settings
Bug: the seed is automatically shown

I won to no

dear gal.
thanks for your msg, for your kind information that i never use any mobile
handset , may be outside do all criminal activities, if anybody try you can
use my mobile , by sending code number , if anybody want to open my account
.
best regards
maquasem talukder
On Thu, May 10, 2018 at 3:05 AM, Gal Buki<EMAIL_ADDRESS>wrote:

OS: Android
Version: 4.9.1
After successfully backing up the seed it is shown again without any prior
warning or the users intend to see it.
Reproducing steps:

Go to settings and do a seed backup
enter the words in the correct order
enter password (didn't try without password)
click on "Got it". (client switches back to the main screen)
click on Settings
Bug: the seed is automatically shown

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Bitcoin-com/Wallet/issues/105, or mute the thread
https://github.com/notifications/unsubscribe-auth/Ahe_78lnBsk71vXRmV_YQ7gaTg05heg7ks5tw1odgaJpZM4T4_5A
.

I saw this behavior when onboarding a new merchant. Suddenly the seed phrase (which we had just discussed not showing to anyone) appeared while several people were looking at it. She was not impressed. I think she pressed the receive button when it happened but I cannot be sure.
It continued to act strange and bring back up the seed phrase until we closed/restarted the app. It was also on Android although I do not know the details of the merchant's hardware or OS version.


Bug does not allow updating the latest version

Microsoft PowerToys version
0.79.00
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
General
Steps to reproduce
Pressing the update option gives  a error
✔ Expected Behavior
To get update
❌ Actual Behavior
Just an error message
Other Software
No response

/bugreport

Never mind I find out that uninstalling the app solve the issue
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: microsoft-github-policy-service[bot] @.>
Sent: Wednesday, April 17, 2024 1:16:32 PM
To: microsoft/PowerToys @.>
Cc: jcesar18 @.>; Author @.>
Subject: Re: [microsoft/PowerToys] Bug does not allow updating the latest version (Issue #32466)
Hi there!
We need a bit more information to really debug this issue. Can you add a "Report Bug" zip file here?  Then drag the zipfile from your desktop onto the GitHub comment box in this issue. Thanks!
[Report Bug]https://user-images.githubusercontent.com/11349917/133042052-4975be21-4699-4363-83c9-a8e1869d079d.png
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerToys/issues/32466#issuecomment-2061801432, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJVT6NDEKARVJSQ7AJIRB43Y52U7BAVCNFSM6AAAAABGHWX4IWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRHAYDCNBTGI.
You are receiving this because you authored the thread.Message ID: @.***>

@jcesar18
So after uninstalling PowerToys you were able to install the latest version again? /needinfo

Yes it works fine after that
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Heiko @.>
Sent: Wednesday, April 17, 2024 6:54:10 PM
To: microsoft/PowerToys @.>
Cc: jcesar18 @.>; Mention @.>
Subject: Re: [microsoft/PowerToys] Bug does not allow updating the latest version (Issue #32466)
@jcesar18https://github.com/jcesar18
So after uninstalling PowerToys you were able to install the latest version again? /needinfo
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerToys/issues/32466#issuecomment-2062614524, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJVT6NEDM5Z6YMTCLDSK7HDY534RFAVCNFSM6AAAAABGHWX4IWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRSGYYTINJSGQ.
You are receiving this because you were mentioned.Message ID: @.***>


Incorrect wallet balance on trade tab fix

Fixes #1301  .
Changes proposed in this PR:

display correct  token balance  from wallet

I have 0 dt in wallet

Found some issues.

Maximun to spend DT is not reset to 0 if the user has 0 DT

Maximun to spend Ocean seems incorrect. I'm not sure how much we should show, but this number is not consistent between In or Out

If you're trading ocean for dt (IN) the value for maximun to spend is 859.994 but if you trade DT to Ocean the Maximun is 580.143 OCEAN
IN -

OUT -

Maximun to spend DT seems off

When you trade IN the amount of maximun to spend DT is different than when you trade OUT (see above)

If you change from IN to OUT, it kicks in the validation anyway, I'm not completely sure but I think it should not validate the fields if it's all still 0

https://user-images.githubusercontent.com/13741335/161939920-9282e9cd-39af-4304-9617-28e61a586c71.mp4

if you start a tx we should disable all the inputs to avoid issues

https://user-images.githubusercontent.com/13741335/161940808-21673aff-bee3-4f42-bfde-282d9e14c0f5.mp4

After the tx, the trade tab doesn't work anymore. (see error in console)

https://user-images.githubusercontent.com/13741335/161941438-c5523167-c953-467e-a2eb-4882372667cd.mp4
Sorry for the long post 😅 I'm sure some of this are not related to wallet's balance itself, but it'd be helpful to take a look at it. Maybe some of this has been fix in the meanwhile, so try to update from v4 branch to see if there's any fix for any of this issues.

Sorry for the long post sweat_smile I'm sure some of this are not related to wallet's balance itself, but it'd be helpful to take a look at it. Maybe some of this has been fix in the meanwhile, so try to update from v4 branch to see if there's any fix for any of this issues.

No problem really, thanks for testing it thoroughly. I'll try to reproduce the issues mentioned one by one and see what could be done

It seems this is a bit more complicated, not sure yet the extent of the issue. I'll jump on this PR.

Given that @mihaisc made various fixes which include the issues in here, I think we can close this pr after all the fixes are merged.

This pr is not yet done

All math is good now. There is still one weird exception. After the swap i call fetchAllData from pool context but it seems to cache the data, when it is called on the interval it still fetches old data. Only when i click on refresh it fetched new data from subgraph. All these events call the same function. It is very strange or i am too tired and missing something. Still debugging this

I'm still not sure these numbers are actually correct as I keep getting weird differences between balance and max to spend. For example:
The balance on this asset seems correct:

But this asset instead doesn't seem like it:

It might be correct, but I'm having difficulties to completely get these calculations. They seem correct though. Any thoughts on this?

Maximum to spend is a mix between your balance and how much you can actually spend in a pool. There is a limit to how much you can trade based on the pool liquidity.

I fetch the pool liquidity from the contracts now so we don't depend on subgraph refreshing fast enough. This should be good to go

accessing the trade tab with this PR preview just crashes app for me:
https://market-git-fix-issue1301-incorrect-wallet-balance-oceanprotocol.vercel.app/asset/did:op:86838d23c988aa91ed225ed7df04cbfbe9daf542d9230c4c4af032c0c286db78

Yes, this is a new feature. Looking into it 😁

Done.

I found a couple of issue on my end.

the balance is not updating after the tx

https://user-images.githubusercontent.com/13741335/166219758-1f2ad082-2ab1-4295-bb50-50c3f15bb61d.mp4

"Your Liquidity" is not updating as expected, also if you refresh, most of the time this value doesn't get updated

https://user-images.githubusercontent.com/13741335/166220177-6f4a1f5b-8608-45ac-9c47-f290551d0dca.mp4

We discussed many times this issue, it is still open. But how is this related to this pr?

We discussed many times this issue, it is still open. But how is this related to this pr?

Yeah, you're right. Never mind, I'll remove this comment as not related.

@kremalicious can you take another look?

Functionality

in general, all numbers are top-notch now, could trade in both directions, would trade again.
continue to run into long tx issue where we simply error out and stop everything although tx is still running in background, although this might require more generic solution in #1118

our site-suggested gas fee is still dramatically lower than all the auto-values and would assume this is reason sometimes tx not get through within 50 blocks, just noting here as PR is not supposed to solve this

Some UI findings, can also be moved to new enhancement issue as it's present on v4 too:
Labeling
Would suggest instead of Balance & Available from pool to rather use Your Balance & Pool Balance for the top labels. Simple change so we can sneak this into this PR as final commit.
Switching tokens interaction
So users start with this screen, all nice:

Then they hit the switch arrow and are presented with errors right away, giving them impression they did something wrong:

After hitting the arrow, expectation would be to get a blank screen, not a prefilled screen with wrong values filled in triggering errors.

The gas stuff is not related to this
Changed the labels
Agree with the validation stuff but would leave it for another pr.


Unable to query request status

There is no way to query the status of a request. The get_request() method returns the information about the request itself, but the status needs to be queried via requests/{request_id}/status, but there is no method available for that. So please add a get_request_status() method.

After looking at the source code, I found it: I have to pass status=True to get_request()


Added pooling for ServiceRequestBase

After using the fix #428 to make the ExchangeService thread safe, a developer can run into a "ServiceRequestException: The request failed. Connection is still allocated".
This can be fixed by using the ExchangeServiceBase#httpPoolingClient for requests.
This Pull-Requests provides a simple differentiation between the ExchangeServiceBase#httpClient and ExchangeServiceBase#httpPoolingClient.

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

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.azure.com.

TTYL, AZPRBOT;

Current coverage is 10.42%

Merging #491 into master will not affect coverage as of e6ea8ea

@@            master    #491   diff @@
======================================
  Files          550     550
  Stmts        20432   20435     +3
  Branches      2625    2626     +1
  Methods          0       0
======================================
  Hit           2131    2131
  Partial        153     153
- Missed       18148   18151     +3

Review entire Coverage Diff as of e6ea8ea

Powered by Codecov. Updated on successful CI builds.

@SebastianWe thanks for your contribution


Do not allow empty strings for attributePrefix, valueTag and rowTag

This PR adds requirements for attributePrefix, valueTag and rowTag.
Since those options are used to differentiate attributes, attributePrefix should not be just a empty string
valueTag is used for a column name so it should not be empty string.
Lastly, we should set the explicit range for each row via rowTag. Therefore, this should not be just empty string too.

Current coverage is 90.46% (diff: 100%)

Merging #170 into master will increase coverage by 0.04%

@@             master       #170   diff @@
==========================================
  Files            14         14
  Lines           679        682     +3
  Methods         619        621     +2
  Messages          0          0
  Branches         60         61     +1
==========================================
+ Hits            614        617     +3
  Misses           65         65
  Partials          0          0

Powered by Codecov. Last update b79b1a9...c80edac

I am going to merge this.


Tracks can fail to scrobble

Tracks fail to scrobble when scrobbler future isn't during playback. Support for scrobbling on end-of-track must be added.

Added support for scrobbling on track-end events (ensure current track has been scrobbled before moving focus to the new now-playing track Spotify informs us of).


[Bug]: Some anonymous models failed to set program.stateMap({ourKey}).set in v0.56 compiler

Describe the bug
After adopting to v0.56 JS codegen failed to generate some models and after debugging we found we failed to call program.stateMap(modelKey).set due to the key for our type is undefined.
JS pr: https://github.com/Azure/autorest.typescript/pull/2503/files#r1598544306
TypeSpec releted pr: https://github.com/microsoft/typespec/pull/3308#discussion_r1598530439
Reproduction
I have no idea of why this happened and currently I just debugged this in JS repo.
Checklist

[X] Follow our Code of Conduct
[X] Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion.
[X] The provided reproduction is a minimal reproducible example of the bug.

Talked offline, issue seems to be a misuse of the program stateMap to save internal data for emitters and getting bitten by the grouping by projector. Some accessor might created some dynamic models that are not part of the program and would not work with this.


[Question] How to create a dep group transaction in Lumos?

As per title, I'm wondering: within a Lumos typescript, what's the most idiomatic way to build a transaction that create a dependency group?
So as far as I understand it's just a normal cell within a normal transaction with the data serialized in a specific way.
The only practical reference I found is from the RFC Transaction Structure:

Dep Group stores the serialized list of OutPoint in cell data. Each OutPoint points to one of the group members.

The only implementation reference on how to serialize this data is from the nervosnetwork/ckb:
let (outputs, outputs_data): (Vec<_>, Vec<_>) = self
.genesis
.dep_groups
.iter()
.map(|dep_group| {
    let out_points: Vec<_> = dep_group
        .files
        .iter()
        .map(|res| {
            let data: Bytes = res.get()?.into_owned().into();
            let data_hash = packed::CellOutput::calc_data_hash(&data);
            let out_point = find_out_point_by_data_hash(cellbase_tx, &data_hash)
                .ok_or_else(|| {
                    format!("Can not find {res} in genesis cellbase transaction")
                })?;
            Ok(out_point)
        })
        .collect::<Result<_, Box<dyn Error>>>()?;

    let data = out_points.pack().as_bytes();
    let cell = packed::CellOutput::new_builder()
        .lock(self.genesis.system_cells_lock.clone().into())
        .build_exact_capacity(Capacity::bytes(data.len())?)?;
    Ok((cell, data.pack()))
})
.collect::<Result<Vec<(packed::CellOutput, packed::Bytes)>, Box<dyn Error>>>()?
.into_iter()
.unzip();

@homura now I'm wondering: how to actually serialize that data within a Lumos typescript?
As usual I'm asking here since GitHub issues are SEO friendly and very likely in the future there will be other L1 developers wondering the same :wink:
Phroi

What a complete answer!! @homura thanks to you every day I learn a bit more about Nervos L1, thanks a lot! :pray:


Spectate

In this PR:

When any number of players join when the room is full, they are spectating
If a player leaves, the first spectator to refresh will enter the game

LGTM


Bluetooth status code

On API 25, Bluetooth status code causes a NPE.

Issue not specific to API 25.
Fixed by adding new String constants in BluetoothConnectionProbe.


Revise README.md

What type of PR is this?
/kind documentation
What this PR does / why we need it:
Revise the README.md

/lgtm
/approve


Certificate issue with RTVS and Remote Workspace

Steps executed this far:  Created configured Windows VM (Server 2016) using One box config using ARM Template.   Installed RTVS_Remote_2017-06-27.1 which installs (R Remote Service for Visual Studio), installed R Open microsoft-r-open-3.4.0 and have .Net Framework 4.6.1 installed.   Both my services are running successfully including R Remote Services,  R User Profile Services.  Both of these are added to inbound and outbound firewall rule (Microsoft.R.Host.exe and Microsoft.R.Host.Broker.exe)
I have changed the opened ports 5444,  463, 12800 (inbound and outbound) on both the VM firewall and the Windows Firewall.  I can ping my server on port 5444 and 12800 successfully.  I created a certificate and configuered the Microsoft.R.Host.Broker.Config.json file accordingly. I have exported the certificate from the server that I created and imported onto my machine ... when I try to connect with R Remote in Visual Studio, I get the following error from the logs on the remote R Server:
The server mode SSL must use a certificate with the associated private key.
Authentication failed because the remote party has closed the transport stream.
Please can someone help me and tell me where I am going wrong here or what the issue could be.  It's like it doesn't see my certificate

Can you check network service directory on the server for the logs to see if there are any error messages?
C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp
The logs should be named some thing like Microsoft.R.Host.Broker_2017725_093620_pid3800.log

Can you also paste the command you used to create certificate?

Hi Thank you for the response.  I ran the following on the R Remote Server to create the certificate  ... New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "xxx.westcentralus.cloudapp.azure.com" as per the documentation, this creates the certificate in the Local Computer --> Personal certificate store.  I then right clicked on Manage Private Keys and added NETWORK SERVICE with full control as per the documentation.  I have also added this certificate to the trusted root certification store.
This is where I may be going wrong as I don't see any documentation on this, I then exported this and selected export option with Private key with default of include all certificates in the certification path if possible.  I then imported the certificate onto my local machine where I want to connect to the R Remote Server. I have tried a number of options such as adding to the Personal certificates folder and the trusted root certification folder but none of this seems to resolve the problem.  I am trying to connect via VS 2017 and the remote R server is running on Windows 2016 ... could this be a problem?  My last resort now is to connect on a different machine using VS 2015. Attached is the full log from the R Host Broker log files. I have just changed my server name to xxx for security purposes.  After a server restart, I now seem to be getting a different error "The credentials supplied to the package were not recognized". I have not joined my VM to the domain and am just using the standard credentials used to login to the VM
Microsoft.R.Host.Broker_2017827_122734_pid3088.txt
Thanks again for the help.

Lets try this.

On the client machine, start Visual Studio Command prompt as admin.
Change <server> to your server's full DNS name (this will be xxx.westcentralus.cloudapp.azure.com ). It will ask for a password. Run this:
makecert.exe -r -pe -n "CN=<server>" -sky exchange -b 01/01/2011 -e 01/01/2025 -eku <IP_ADDRESS>.<IP_ADDRESS>.1 -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 -sv servercert.pvk servercert.cer
Change <password> in the command, and run this:
pvk2pfx -pvk servercert.pvk -spc servercert.cer -pfx servercert.pfx -pi <password>
Copy the generated servercert.pfx file to the server.
On the server machine import the servercert.pfx file using certlm.msc to Personal store.
Give NETWORK SERVICE permissions to access the imported cert.

Let me know if you get the same error message in the logs.

Hi Karthnik,  Thank you for your assistance, I managed to get this setup using the script in this post of yours https://github.com/Microsoft/RTVS/issues/3315.


Synapse Artifacts Readme issues

Section link:

Suggestion:
1 Add [jdk]: https://docs.microsoft.com/en-us/azure/developer/java/fundamentals/?view=azure-java-stable
2 Add [azure_sub] : https://azure.microsoft.com/en-us/free/
@scottaddie , @joshfree , @jameszliao-msft , @lmazuel for notification.

Closed this issue, due to PR https://github.com/Azure/azure-sdk-for-java/pull/20054 merged.


querying the GDC-API returns no results for q=GRIB but it does return results for q=GRIB2

Currently the GDC-API returns no results for q=GRIB but it does return results for q=GRIB2

wis2-gdc is evaluating term searches (i.e. GRIB2 exists, GRIB does not).  You could also use q=GRIB* as a wildcard option to q.

Hi Tom you said "GRIB2 exists, GRIB does not" but the issue I reported is the opposite:
https://wis2-gdc.weather.gc.ca/collections/wis2-discovery-metadata/items?q=GRIB
https://wis2-gdc.weather.gc.ca/collections/wis2-discovery-metadata/items?q=GRIB2
first call returns nothing, second returns results !
Is it because q= requires more than 4 chars ?

As discussed with @maaikelimper, the user/client could also "mask" a q= search with a wildcard, so that q=GRIB is sent to the wis2-gdc backend as q=*GRIB*.


Memory leak when converting a list of dicts to a list pydantic-models using TypeAdapter?

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
Hi,
thanks for all the great work on pydantic, and sorry for this mess of a title. I was unsure how to easily explain this.
We have discovered a memory-leak in our FastAPI-application, and think it is due to a bug in pydantic. Calls to a certain route resulted in the memory-usage of the application rising for each call, and the memory were never released.
We separated the pydantic-operations done inside the route, and tested them outside of the FastAPI-application, and experienced the same leakage.
When rolling back to pydantic 2.4.2 we do not experience the memory-leakage anymore.
A minimal, reproducible example is attached below. Just run the code and watch your memory-usage steadily rise.
Example Code
from pydantic import TypeAdapter, BaseModel

class Bar(BaseModel):
    ...

class Foo(BaseModel):
    children: list["Foo"]
    bar: Bar

def get_foo():
    return TypeAdapter(list[Foo]).validate_python(
        [{
                "children": [],
                "bar": Bar(),
            }
        ]
    )

while True:
    get_foo()

Python, Pydantic & OS Version
             pydantic version: 2.5.2
        pydantic-core version: 2.14.5
          pydantic-core build: profile=release pgo=true
                 install path: /usr/local/lib/python3.11/site-packages/pydantic
               python version: 3.11.7 (main, Dec  5 2023, 18:55:16) [GCC 12.2.0]
                     platform: Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.36
             related packages: pydantic-settings-2.1.0 pyright-1.1.341 email-validator-2.1.0.post1 fastapi-0.105.0 pydantic-extra-types-2.2.0 typing_extensions-4.9.0

@sondrfos,
Thanks for reporting this. We'll look into a fix for this for 2.6.0!
@davidhewitt, do you think this is stemming from our changes to pydantic-core?


Some added armor mods are not patched for CBBE and HIMBO

This causes these armors to always use the vanilla body for their shape. This is mostly a benign issue, but it is a MAJOR improvement for them to work correctly.
I'll be learning to create BodySlide patches to make patches for each mod that needs one. This will be a long term process.

Hunter Archer Armor has had HIMBO and CBBE BodySlide refits created.

To be fixed: https://github.com/zediious/tpfz-sprinkles/issues/32

Cyrodiilic Thief sets have had CBBE refits created https://github.com/zediious/tpfz-sprinkles/issues/39

I found a cbbe patch for Vigilant that make the armors all look so much better on female bodies. If you put it in the load order just before the retexture you already have, it has both the improved fit and the improved look
https://www.nexusmods.com/skyrimspecialedition/mods/43676?tab=description


Bitdefender marks netbird.exe as cryptomining app

Describe the problem
Bitdefender thinks that netbird.exe is trying to mine crypto. Threat name:  Gen:Miner.Kenari.BitcoinCore.@N2@bGtE44
This happens firs time when the installation proces executes netbird service install but Bitdefender detects cryptomining activity at all netbird commands (netbird status, atc...).
This does not happen when installing previous versions - tested on 0.28.7 without being marked as crypto mine on the same Bitdefender definitions.
Bitdefender definitions in screenshot below.
To Reproduce
Steps to reproduce the behavior:

Install Bitdefender Total Security
Install Netbird 0.28.8
Bitdefender automatically puts netbird.exe into Quarantine

Expected behavior
Netbird is installed correctly withtout being marked as a security threat
Are you using NetBird Cloud?
Unrelated - self-hosted
NetBird version
0.28.8
NetBird status -dA output:
N/A
Do you face any (non-mobile) client issues?
N/A
Screenshots

Additional context
N/A

Reported to Bitdefender Malware Lab as well and should have reply within 72hours.

New user - trying to download connector for Windows - Bitdefender still blocking (despite adding as exception) - 0.28.9

@lymington Set the cryptomining protection to only detect activities

@tomashora we still got no response from Bitdefender on the partner program. Did you received anything from them on your submission?

@tomashora we still got no response from Bitdefender on the partner program. Did you received anything from them on your submission?

@mlsmaycon they did not react on the first message so I asked them again and got response from then 2 days ago that they sent it to Malware Research Team for analysis purposes and will let me know once it's done.
I will post a comment to this issue once I have more information.

Thanks for the update

Today's update from Bitdefender support:
Our Malware Research Team has finished analyzing your case.
The file is clean and detection should be removed in the next couple of updates.

Seems to be fixed after updating netbird to 0.29.0. Bitdefender has not yet fixed the issue with netbird version 0.28.8


Static Values Do Not Get Garbage Collected After Play

Static Values Do Not Become Null When the game ends. This causes issues when accessing a nullptr when the game restarts, causing the engine to crash.
protected static BowlGameModeComponent ThisInstance = null;

public static BowlGameModeComponent GetInstance(UObject worldContextObject)
{
    if(ThisInstance == null)
    {
        ThisInstance = UGameplayStatics.GetGameMode(worldContextObject).GetComponentByClass<BowlGameModeComponent>();
    }
    return ThisInstance;
}

If I try to obtain ThisInstance When the game restarts, the null check won't work, even if the field is a nullptr. Normally null exceptions don't cause the engine to crash, but in this case, it will.
protected override void ReceiveEndPlay_Implementation(EEndPlayReason EndPlayReason)
{
    //Set ThisInstance To Null, Otherwise Value Doesn't Get Destroyed and Will Crash Engine.
    ThisInstance = null;
}

I can prevent this by setting the static field to null in ReceiveEndPlay. Newcomers may not understand why their engine is crashing when they attempt to retrieve a value that doesn't get garbage collected when they restart the game.

Actually Setting The Static Value To Null Inside The Initialize Method is actually a lot more effective. That way it'll only become null when it first spawns into the world.
public override void Initialize(FObjectInitializer initializer)
{
    //Set ThisInstance To Null, Otherwise Value Doesn't Get Destroyed and Will Crash Engine.
    ThisInstance = null;
}

Yea USharp isn't loaded per game instance / world, there is only ever one USharp loaded. You need to be careful with using static members. I wouldn't recommend using the Initialize method as that is called every time a new object of that type is created.
I think it would be nice to have something which allows you to work with statics on a per world basis or perhaps on a PIE basis.

That's a good point! I feel like I'm over thinking my architechure, but I really wanted a singleton component similar to those in unity. I actually set ThisInstance to null in both the Initialize and EndPlay methods. But I use a boolean flag to dictate I can only set the value when the game hasn't ended.
[UPropertyIngore]
protected static bool bCanSetInstance;

public override void Initialize(FObjectInitializer initializer)
{
    //Set ThisInstance To Null, Otherwise Value Doesn't Get Destroyed and Will Crash Engine.
    ThisInstance = null;
    bCanSetInstance = true;
}

protected override void ReceiveEndPlay_Implementation(EEndPlayReason EndPlayReason)
{
    bCanSetInstance = false;
    ThisInstance = null;
}

public static BowlGameModeComponent GetInstance(UObject worldContextObject)
{
    if(ThisInstance == null && bCanSetInstance)
    {
        ThisInstance = UGameplayStatics.GetGameMode(worldContextObject).GetComponentByClass<BowlGameModeComponent>();
    }
    return ThisInstance;
}

I was considering creating a Singleton class, that any actor or component base class can inherit from.
public class UActorSingleton<T> where T : AActor
{

}

public class BowlGameModeComponent : UActorSingleton<BowlGameModeComponent >
{

}

I don't know if USharp would allow inherited c# classes to be blueprintable.

I'm not sure singleton actors make sense since as actors are inherently an instanced based thing. I haven't looked into singletons yet for USharp but I guess it would be best to follow how its done with C++.
https://wiki.unrealengine.com/Global_Data_Access,_Data_Storage_Class_Accessible_From_Any_CPP_or_BP_Class_During_Runtime
Doing it the way in the link sounds reasonable, you would have one object which would control your global objects, that way you don't need to make anything static and it should work between runs with PIE.
As for blueprintable inheritance yes that should work. If it doesn't for any reason I'll have to look into it and fix it up.

Got a nasty error on hot-reload. I'll try to fix it!

[UClass, Blueprintable, BlueprintType]
public class MyActorComponentSingleton<T> : UActorComponent where T : UActorComponent
{

}

Cannot create blueprint from this class.

Yea generic classes aren't supported. That is a limitation of Unreal, you can't make generic classes in C++ either. That isn't something that could ever be supported by USharp. I'll make a note to print an error in AssemblyRewriter when it sees a generic class.

That's a good point

I figured out how to make it work!!


Add FAQ section to enhance user understanding

Description:
This pull request introduces a new FAQ section to the Octoffers project, which aims to make it easier for users and contributors to navigate and understand the platform. The FAQ covers topics such as how to contribute, how non-coders can get involved, and what to do if they encounter bugs. It also includes guidance on setting up the project locally and submitting pull requests.
Main changes:
Added a Frequently Asked Questions (FAQ) section that answers common queries about the platform, contribution process, and troubleshooting.
Clarified steps for non-coders to participate in Hacktoberfest through this project.
Provided links and references to open issues and documentation for easier navigation.

Hey @DidiNDexter, thank you for the pull request. You were supposed to add FAQ content to the existing file octoffers/qna.md. I made those fixes, so you don't have to worry. Next time, try to use markdown over plaintext.
You can learn more about markdown here


Failed to resolve conflicts for .NETCoreApp, Version=v1.1.

Issue / Steps to reproduce the problem
I am on MacOS with Visual Studio Code and am trying to install IdentityServer4 after creating a fresh Empty Web Application via >dotnet new web. It is returning errors. Here is the .csproj file contents:
<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>netcoreapp1.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <Folder Include="wwwroot\" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
    <PackageReference Include="IdentityServer4" Version="1.0.0" />
  </ItemGroup>

</Project>

If I repeat these on a docker (with image FROM microsoft/dotnet:1.1.1-sdk), it works.
Relevant parts of the log file
   Restoring packages for /Users/myname/Developing/Experiments/identityserver4/identityserver4.csproj...
/usr/local/share/dotnet/sdk/1.0.1/NuGet.targets(97,5): error : Failed to resolve conflicts for .NETCoreApp,Version=v1.1.
[/Users/myname/Developing/Experiments/identityserver4/identityserver4.csproj]
/usr/local/share/dotnet/sdk/1.0.1/NuGet.targets(97,5): error : Sequence contains more than one matching element [/Users/myname/Developing/Experiments/identityserver4/identityserver4.csproj]
Done: 1.

Try updating everything to latest.

Thanks. Will do.

Still an issue for me, everything is latest.

TL;DR Seems there's an issue with the .NET Core tooling (quelle surprise). Sharing story here in case someone else stumbles on this.

I've also had the same issue..

Visual Studio 2017: 15.1 (26403.7)
.NET Core: 1.0.3

Install-Package IdentityServer4 failing on a new project based on the "Empty" ASP.NET Core project template.
Here's what I've tried:

Update VS
Update .NET Core SDK

At this point - I was unsure of what else I could even update - so then started thinking along the lines of versioning issues, because, .NET Core 😉

Cleared All NuGet Caches (Options > NuGet Package Manager > Clear All Caches)

Looked very promising, but once packages were downloaded - still the same problem. 😠
At this point, I am scratching my head and questioning my life choices - when I noticed something...
Install-Package : Failed to resolve conflicts for .NETCoreApp,Version=v1.1.
At line:1 char:1
+ Install-Package IdentityServer4
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install-Package : Unable to satisfy conflicting requests for 'IdentityServer4': project/IdentityServer4

I wondered:

Is it possible it's not liking the Project name also being IdentityServer4?

So - I  "File > New Project'd" and did the exact same steps and everything was fine!
Repro
I cleared everything. very reproducible:

Create a Project with the name IdentityServer4.
Install-Package IdentityServer4
Observe a whole lot of red.

Fix

Rename/create new Project not called IdentityServer4.
Install-Package IdentityServer4
Be happy 😄

The Root Cause
At this point - I am thinking there's something weird going on, so I did this:

File > New Project > Class Library (.NET Core)
Name the Project xunit.
Install-Package xunit
Observe the world implode.

So - I'll look at getting these notes reported to the right people :smile:
Hope this helps!!

I got the same error when I named my vs2017 (15.2) project Serilog  (for demo purpose) and after that tried to add Serilog package and boom.

I'm getting the same thing for random packages that I'm trying to install.
And if I would start a new project I would be able to install them.
Any solution?

This is DEFINITELY still an issue today with current tools for .NET Core 2.0.  I had renamed a project to 'IdentityServer4' and of course it had the package of the same name included.  It went to heck for no apparent reason.  I found this post, changed the name, and now it works just like it did previously.


[enhancement]: Selective highres_fix

Is there an existing issue for this?

[X] I have searched the existing issues

Contact Details
No response
What should this feature add?
highres_fix is amazing I think we'd all agree, but it dramatically slows down image creation on images that I can see from the low res preview are not good. If it's a single file from the prompt this is not bad, you an stop Invoke and try again for a different seed, but if you want to render say 20 images for a prompt you have to either wait a long time or keep stopping and starting - which means sitting watching the job all the time.
Would it be possible to have all the low res previews generated and then flag which ones to apply the highres_fix to? This would dramticaly speed up generation by only creating the large high res assets for the preselected best low res.
Alternatives
It's possible to manually do this by generating low res assets then using Img>Img but this has to be done single file at a time.
Aditional Content
No response

HRO is not directly implemented in v3 but you can use the node editor to do the same thing for specific images.


Add visual studio build output as message source

It would be terrific if we could direct the output of Build to DebugView.  For large projects, it can be just so difficult to find the errors among a stream of warnings, boost complaints, etc.  DebugView would be a powerful tool to help find what's meaningful in the build output.
You already have a forwarder VSIX, would it be tough to plug into the debug output in visual studio?

it is easy, to try it, just change GUID_BuildOutputWindowPane in Forwarder.cs to
GUID_BuildOutputWindowPane
However, to put it into production code, I would need to make an options windows to choose to enabled/disable this. And currently I'm working on the CTimeLine class
So, feel free to try it, and if you could add an option window to the .vsix I would pull gladly pull it in?


Analyzing the reason behind the decrease in the energy consumption

Hi,
The results mentioned in the paper present in general the overall power consumption and the thermal comfort without checking the major elements leading to the decrease in the energy consumption. According to the reinforcement learning model presented, we should expect a decrease in the HVAC power consumption that will lead at the end to the decrease in the total electric demand since the actions (action space) taken are all related to HVAC setpoints temperature adjusting. However, when interpreting the results, I found that the decrease in the energy consumption is related to the decrease in the IT electric power consumption and not the HVAC power consumption which increases a little bit.
I would like to know if you have some figures comparing the HVAC power consumption as well as comparing the ITE power consumption in the first and last episodes. Moreover, I couldn’t figure out the reason behind the decrease in the ITE power consumption since I think it should be the same as the baseline and through all the episodes. I have analyzed in addition the power consumption of the ITE components: ITE_CPU, ITE_FAN, and ITE_UPS that show a decrease in the power consumption. Looking at the idf file, there is an object called: ElectricEquipment:ITE:AirCooled, does this mean that the ITE is connected to the HVAC and thus the actions taken affect also the ITE power consumption? If the answer is yes, how could we prevent this from occurring? Finally, it would be good to have a figure comparing the values of the controlled setpoints between the baseline and reinforcement learning models.
Below are some figures illustrating the problem (Model used is the temperature model with the weather file CA): 0 means first episode, and 44 here is the last episode

Thank you in advance for your help.
Best Regards,
Khoder Jneid

The ITE power is dependent on inlet air temperatures. Have you compared the air temperatures, has the agent learned to supply lower temperature by the last episode? There is some correlation with inlet temperature and CPU usage. You could adjust the ITE CPU loading schedule to minimize the dependencies.
Question, how do you control the the number of episodes?

Thanks for your reply. A hint of the answer of your question could be found in the following issue: "Could training at system timestep frequency be avoided". Anyway, I will write my interpretation.
Two types of timesteps exist in Energyplus: zone timestep (defined in the energyplus model file; 4 = 15 min) and system timestep. The system timestep frequency ranges from 1 per minute to 1 per zone timestep (1 per 15 min), and so far it is not controlled in the IBM code. The communication between the agent and the environment occurs according to system timestep and not zone timestep. Thus, in the worst case the agent will communicate 60 times with the environment per hour and thus (60 * 24 * 365) times per year. To get the number of episodes, we divide the number of communications per year by the number of timesteps per batch (16*1024; defined in the run_energyplus code) that will result in 32 iterations per episode. As I mentioned, the system timestep is not controlled and thus the number of iterations per episode is not fixed.

Sorry to diverge I bit from the original topic.
Your summary makes sense and I now understand that an episode is the number of batches of communication points per year.
This would mean that the range of iterations if from 2 to 32 per episode. When I run the model with default settings, I see several hundred iterations per episode (400 to 600 hundred).
Also several episodes into the run, the program exits with errors noted below;
Program Version,EnergyPlus, Version 8.8.0-7c3bbe4830, YMD=2019.05.09 07:17,IDD_Version 8.8.0
************* Beginning Zone Sizing Calculations
** Warning ** Weather file location will be used rather than entered (IDF) Location object.
**   ~~~   ** ..Location object=CHICAGO_IL_USA TMY2-94846
**   ~~~   ** ..Weather File Location=San Francisco Intl Ap CA USA TMY3 WMO#=724940
**   ~~~   ** ..due to location differences, Latitude difference=[4.16] degrees, Longitude difference=[34.65] degrees.
**   ~~~   ** ..Time Zone difference=[2.0] hour(s), Elevation difference=[98.95] percent, [188.00] meters.


Ability to include multiple header levels in a page toc

Previously, a page-level toc could only include h2 headers. Now, we have the choice to include just h2 headers or both h2 and h3 headers. It makes sense to include h3 headers as well when we want users to be able to jump directly to sections at that level, e.g., specific examples within an Examples section.
Here's what the toc looks like with both h2 and h3 included:

This change is

LGTM


Team notifications settings not saving

Within a Team channel, enabling notifications and saving the setting does not apply/save
Steps:
Within a team, select "Channel Notifications"
Select any option (other than "Off") for "All new posts"
Click Save
Return to "Channel Notifications"
The previously selected option for "All new posts" is not saved
Impact:
No notifications for Team channels
*All members of the team experience this issue
System: Windows 10 Pro Build 18363.720
Teams Version: <IP_ADDRESS>61 (64-bit)

@matthew-mcginty thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


How to assign graphiql to a different path

README suggests that graphiql is available at the root /. Is there any way to assign it to a different path?

The graphiql index.html is exposed by placing it in src/main/resources/META-INF/resources/.  I don't know enough about how spring-boot handles static resources to know if that can be changed by a property or not.

https://github.com/graphql-java/graphql-spring-boot#enable-graphql-servlet


Support cloudsqlpostgres dialect

This is needed for proper cloud sql proxy.
see https://github.com/GoogleCloudPlatform/cloudsql-proxy and https://github.com/GoogleCloudPlatform/cloudsql-proxy/blob/master/proxy/dialers/postgres/hook_test.go for details.
With this patch the gorm dialect of cloudsqlpostgres is recognised as postgres.
Make sure these boxes checked before submitting your pull request.

[X] Do only one thing
[X] No API-breaking changes
[X] New code/logic commented & tested
Does not look like a unit testable commit.
[X] Write good commit message, try to squash your commits into a single one
[] Run ./build.sh in gh-pages branch for document changes

For significant changes like big bug fixes, new features, please open an issue to make a agreement on an implementation design/plan first before starting it.
Thank you.
What did this pull request do?

thank you for your PR

After I add the driver I get the following error
dbConn, err = gorm.Open("cloudsqlpostgres", connectionString)

unknown driver "cloudsqlpostgres" (forgotten import?)
Any idea?

@eikebartels have you imported the CloudSQL dialer?
_ "github.com/GoogleCloudPlatform/cloudsql-proxy/proxy/dialers/postgres"


[management] pretty print op tool

Ensure these two pretty print commits get into premainnet
https://github.com/libra/libra/pull/5378
https://github.com/libra/libra/pull/5392

:umbrella: The latest upstream changes (presumably f4561dc5e78d44f12e6ae5e11b7e5c552daed481) made this pull request unmergeable. Please resolve the merge conflicts.

Manually merged. Thanks!


⚠ Mobitopup has degraded performance

In b59de5f, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 4018 ms

Resolved: Mobitopup performance has improved in dc70556.


Invalid Integer value for key: X-Ratelimit-Limit, value :null

Can we confirm if instagram is still using these headers. Our graphs show this not working since 16th of June.

I see this was actually fixed in - https://github.com/sachin-handiekar/jInstagram/pull/160


How to set the param when we use model='Inception'

Hi @649661204 ,
Sorry that we did not experiment with the Inception model before. You may try the default param of ResNet50 model to conduct your experiments.


Can kubernetes be upgraded？

Short summary about the issue/question:
The version of kubernetes is 1.9.9. Can it be upgraded? What changes need to be made?
OpenPAI Environment:

OpenPAI version: 0.9.0
Cloud provider or hardware configuration: hardware configuration
OS (e.g. from /etc/os-release): Ubuntu16.04
Kernel (e.g. uname -a): Linux master 4.15.0-47-generic
Hardware (e.g. core number, memory size, storage size, GPU type etc.):
Others:

yes you can upgrade it. please refer to k8s community for details.


[Feature]: Documentation for enabling ESM Server bundle

What is the new or updated feature that you are suggesting?
Add documentation for enabling ESM for server bundle
Why should this feature be included?
ESM for server bundle is supported from V1.1.0 but documentation for enabling ESM and pitfalls are missing in the main documentation.

Hm, looks like it didn't work atm
https://github.com/remix-run/remix/issues/1279

Documented in https://remix.run/docs/en/v1/pages/gotchas#importing-esm-packages


Setup codecov code coverage

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@31b5a9c). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #57   +/-   ##
=========================================
  Coverage          ?   98.34%
=========================================
  Files             ?       35
  Lines             ?     1151
  Branches          ?      165
=========================================
  Hits              ?     1132
  Misses            ?       19
  Partials          ?        0

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


Remove unsupported flag in rustfmt.toml

Which issue does this PR close?
Closes https://github.com/apache/arrow-rs/issues/1240
Rationale for this change
This item is not supported resulting in Warning: Unknown configuration option 'rust-version' when cargo fmt us run
What changes are included in this PR?
Remove unsupported key as suggested by @HaoYang670 https://github.com/apache/arrow-rs/issues/1240#issuecomment-1022770513
Are there any user-facing changes?
No
cc @HaoYang670

LGTM


Normalizing metrics for scatter plots so NE is always “better”

Some thoughts:

EG: leave as is; + is R advantage; - is D advantage
average margin: invert (i.e., 1 - average margin) so bigger is better
opportunity_district_pct: works as is
compactness: works as is
splitting: do what we do in DRA except for the last re-scale to int's in [0-100] step

### RATE SPLITTING ###

# Rating county- & district-splitting are inverses of each other.
# Sometimes counties >> districts sometimes counties << districts.

MAX_SPLITTING: float = 1.20  # 90–10 => 95–5 splits
MIN_SPLITTING: float = 1.00  # No splits still vs. 97–03 splits
WORST_MULTIPLIER: float = 1.33  # 1/3 bigger

def best_target(n: float, m: float) -> float:
    """=LAMBDA(n, m, most, least, (((MIN(n, m) - 1) / MAX(n, m)) * most) + ((1 - ((MIN(n, m) - 1) / MAX(n, m))) * least))"""

    more: float = max(n, m)
    less: float = min(n, m)

    w1: float = (less - 1) / more
    w2: float = 1 - w1

    target: float = (w1 * MAX_SPLITTING) + (w2 * MIN_SPLITTING)

    return target

def rate_county_splitting(
    raw_county_splitting: float, n_counties: int, n_districts: int
) -> int:
    _normalizer: Normalizer = Normalizer(raw_county_splitting)

    # The practical ideal raw measurement depends on the # of counties & districts
    best: float = (
        best_target(n_counties, n_districts)
        if (n_counties > n_districts)
        else MAX_SPLITTING
    )
    worst: float = best * WORST_MULTIPLIER

    _normalizer.clip(best, worst)
    _normalizer.unitize(best, worst)
    _normalizer.invert()
    _normalizer.rescale()

    # 09-07-21 - Preserve max value (100) for only when no counties are split
    rating: int = _normalizer.normalized_num
    if (rating == 100) and (raw_county_splitting > 1.0):
        rating = 100 - 1

    return rating


Make docker entrypoint mvn clean test for all docker images

Purpose
Instead of running 4 containers, update the reproduction process to run only 2 containers (one before and one after the dependency update) and check the logs to see at which step the process failed.
Following new reproduction labels are also introduced for better classification of the failure.

UNKNOWN_FAILURE,
DEPENDENCY_RESOLUTION_FAILURE,
MAVEN_ENFORCER_ERROR

Related Issues
https://github.com/chains-project/breaking-updates/issues/52

todo: update the schema

great!
tip: if this fixes #52, write fix #52 in the PR description and the issue gets closed when the PR is merged (this is a best practice)


issue 27543 workaround, allow model with inputs not used to be saved successfully

This is a workaround for #27543, allowing model with inputs not used to be saved successfully
I think this PR should also be merged to r1.14 and r2.0 branch, this issue does not exist before r1.14
import numpy as np

import tensorflow as tf
import tensorflow.keras as tfk
Sequence = tfk.utils.Sequence

Dense = tfk.layers.Dense
Input = tfk.layers.Input

Model = tfk.models.Model

def special_loss(weights):
    def special_loss_internal(true, pred):
        return (true - pred / weights)
    return special_loss_internal

# Model 1 which does not have Flatten
input_tensor1 = Input(shape=[200], name='input_1')
input_tensor2 = Input(shape=[10], name='input_2')
output_tensor1 = Dense(units=10, name='output_1')(input_tensor1)
output_tensor2 = Dense(units=10, name='output_2')(input_tensor1)

neuralnet = Model(inputs=[input_tensor1, input_tensor2], outputs=[output_tensor1, output_tensor2])
neuralnet.compile(loss=special_loss(input_tensor2), optimizer='adam')

neuralnet.save("test.h5")

which performs successfully with this patch.
and to load the .h5 model back
import numpy as np

import tensorflow as tf
import tensorflow.keras as tfk
Sequence = tfk.utils.Sequence

Dense = tfk.layers.Dense
Input = tfk.layers.Input

Model = tfk.models.Model

def special_loss(weights):
    def special_loss_internal(true, pred):
        return (true - pred / weights)
    return special_loss_internal

# Model 1 which does not have Flatten
input_tensor1 = Input(shape=[200], name='input_1')
input_tensor2 = Input(shape=[10], name='input_2')
output_tensor1 = Dense(units=10, name='output_1')(input_tensor1)
output_tensor2 = Dense(units=10, name='output_2')(input_tensor1)

neuralnet = Model(inputs=[input_tensor1, input_tensor2], outputs=[output_tensor1, output_tensor2])
neuralnet.compile(loss=special_loss(input_tensor2), optimizer='adam')

model = neuralnet.load_weights('test.h5')

which also performs successfully with this patch.

@henrysky Thanks for adding this workaround!  This issue has been fixed in this change: https://github.com/tensorflow/tensorflow/commit/401bbfc33684c21325d81a03708fe123d59ce527#diff-4ee308ea180d49ae81691348531a2b6d


Mobile Devices

We intend to use the plugin within a project, where we need to deliver the application for several plattforms - including Desktop, VR and Mobile (iOS and Android).
How would the plugin work on a mobile device? I am not familiar with running python on mobile devices, which might already answer the question.

Hi, currently the kivy project is the best bet to add libpython to the final build. Unfortunately we still have not focused on the mobile platforn, but it should be doable

Android support has been added: https://github.com/20tab/UnrealEnginePython/blob/master/docs/Android.md

iOS support proposed: https://github.com/20tab/UnrealEnginePython/pull/601


[MINOR][PYTHON][TESTS] Move a test out of parity tests

What changes were proposed in this pull request?
Move a test out of parity tests
Why are the changes needed?
it is not tested in Spark Classic, not a parity test
Does this PR introduce any user-facing change?
no
How was this patch tested?
ci
Was this patch authored or co-authored using generative AI tooling?
no

LGTM, thank you!

thanks, merged to master


Random deadlock that happens once in a while

Since latest version (0.9.6) we noticed that sometimes there is a deadlock in Macaw. I am attaching a snapshot of the stack when pausing the application below. We have no idea why it might happen and would be happy if you guys could take a look at it.

@esapir Never happened for us, so could you please provide more details? Are you rendering an svg? Could you attach it? Or create a minimal example where this reproduces? Are you doing something special when this happens, like animating or tracking mouse movements? Looks like it happens in applyEffects method, is it always in this method? If it is, I guess you have an example with offset shape with effects - if not, then it's just coincidental, and maybe the info needed is in another thread.

@f3dm76 It always happens in applyEffects. We identified that bug happens once in a while when coming from background to foreground and the view is actually hidden. In this case draw method is still called and it sometimes causes the deadlock. We currently added a fix that prevent the draw func logic if view is hidden

@esapir Great that you located the issue! Would you maybe want to create a PR so we can fix this for everybody?


Rerun ERROR: Shape must be rank 2. when logging depth image with shape (H, W, 1) from C++

Describe the annoyance
Minor annoyance: when logging a DepthImage with a tensor shape of length 3 (such as {height, width, 1}) Rerun reports

Rerun ERROR: Shape must be rank 2.

on every log call; however, the depth image shows up nonetheless.
This is a little annoying, because the same code to log an Image will not work when logging a depth image, i.e., you need some separate logic to get the tensor shape for a depth image compared to a normal image.
In Python there is no equivalent warning when logging a DepthImage with shape (H, W, 1).
Workaround
rerun::DepthImage({img.rows, img.cols}, rerun::TensorBuffer::u16(img))

instead of
rerun::DepthImage({img.rows, img.cols, img.channels()}, rerun::TensorBuffer::u16(img))

Expected behavior
Accepts tensor shapes of rank 3 as long as the last dimension has size 1.

I agree that "rank" is a confusing term. I suggest we replace "rank N" with "N-dimensional" in our language. In this case, the error message should be something like "The tensor must be 2-dimensional, but got shape 800x600x1"


codespace cs50 is always crashing

codespace cs50 is always crashing, it disconnects and then attemps to reconnect but always fails and then asks me to reload window, I do so and then when I try to write something in the terminal it just freezes and repeats the same stuff... Cant do anything
Version: 1.71.1
Commit: e7f30e38c5a4efafeec8ad52861eb772a9ee4dfb
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
Embedder: codespaces

pls create an issue in the codespaces repo about this


Fix loading time for images

This PR resolves the issue #2 and improves the loading time for JPGs, JPEGs, PNGs and WEBPs.
Please, go through these steps before you submit a PR.

[x] My Pod Leader knows I'm working on this Pull Request
[x] I've explained what the Pull Request is adding.
[x] I've explained why this is important.

Ready to be merged 🚀


React Native support for ofetch

Environment

react-native: 0.72.4
ofetch: 1.3.3
node-fetch-native: main branch (97bcf42aae94794d5cae6ef63c17bfa6dfb3e128)

Reproduction
Checkout following repository: https://github.com/homersimpsons/react-native-ofetch-demo

initiate a new react-native-cli repository
yarn add ofetch
Use ofetch in your code

Describe the bug
Using published version of node-fetch-native (1.4.0):
Reproduction commit: https://github.com/homersimpsons/react-native-ofetch-demo/commit/d62a7b7f6274783aeb0c5b1e614d76d83037d2cf
The bundle fail to compile with the following error:
error: Error: Unable to resolve module node:http from /home/user/project/node_modules/ofetch/dist/node.cjs: node:http could not be found within the project or in these directories:
  node_modules
  ../../../node_modules
  1 | 'use strict';
  2 |
> 3 | const http = require('node:http');
    |                       ^
  4 | const https = require('node:https');
  5 | const nodeFetch = require('node-fetch-native');
  6 | const fetch$1 = require('./shared/ofetch.92c14be7.cjs');
    at ModuleResolver.resolveDependency (/home/user/project/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:139:15)
    at DependencyGraph.resolveDependency (/home/user/project/node_modules/metro/src/node-haste/DependencyGraph.js:277:43)
    at Object.resolve (/home/user/project/node_modules/metro/src/lib/transformHelpers.js:169:21)
    at Graph._resolveDependencies (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:473:35)
    at Graph._processModule (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:261:38)
    at async Graph._addDependency (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:372:20)
    at async Promise.all (index 6)
    at async Graph._processModule (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:322:5)
    at async Graph._addDependency (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:372:20)
    at async Promise.all (index 2)

Using main branch of node-fetch-native (97bcf42aae94794d5cae6ef63c17bfa6dfb3e128):
Reproduction commit: https://github.com/homersimpsons/react-native-ofetch-demo/commit/2168936950a04377fcabd30974e2b710ea1ebca5
The bundle fail to compile with the following error:
error: Error: Unable to resolve module node:http from /home/user/project/node_modules/ofetch/dist/node.cjs: node:http could not be found within the project or in these directories:
  node_modules/ofetch/node_modules
  node_modules
  ../../../node_modules
  1 | 'use strict';
  2 |
> 3 | const http = require('node:http');
    |                       ^
  4 | const https = require('node:https');
  5 | const nodeFetch = require('node-fetch-native');
  6 | const fetch$1 = require('./shared/ofetch.92c14be7.cjs');
    at ModuleResolver.resolveDependency (/home/user/project/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:139:15)
    at DependencyGraph.resolveDependency (/home/user/project/node_modules/metro/src/node-haste/DependencyGraph.js:277:43)
    at Object.resolve (/home/user/project/node_modules/metro/src/lib/transformHelpers.js:169:21)
    at Graph._resolveDependencies (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:473:35)
    at Graph._processModule (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:261:38)
    at async Graph._addDependency (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:372:20)
    at async Promise.all (index 0)
    at async Graph._processModule (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:322:5)
    at async Graph._traverseDependenciesForSingleFile (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:249:5)
    at async Graph.traverseDependencies (/home/user/project/node_modules/metro/src/DeltaBundler/Graph.js:157:9)

Additional context
This is a follow-up of the following issue https://github.com/unjs/node-fetch-native/issues/91
@pi0 You may want to follow-up here
Logs
No response

I noticed in your error log that the error is occurring in node_modules/ofetch/dist/node.cjs, which isn't the intended file. I checked your metro.config.js and it doesn't look like you've enabled the beta package exports feature. The docs say that it will be enabled by default from v0.73.
I also need this in my React Native app and can check myself in the next couple of days :)

After enabling unstable_enablePackageExports in metro.config.js, this package installs without a problem on 0.72. However, all responses are returning undefined. I attached an onResponse interceptor to see what was going on, and the status code is returning 200 as expected, the body is just not being returned.
const data = await ofetch('https://reqres.in/api/users?page=2', {
  async onResponse({request, response, options}) {
    // Log response
    console.log(
      '[fetch response]',
      request,
      response,
      response.status,
      response.body,
    );
  },
});

console.log(data);

Thanks for investigating dear @gtjamesa. Do you think you can assemble a minimal repository? I had been planning to investigate on this but always short on time to make an initial setup.


Add .Release.Namespace to helm template

This allows for helm template --namespace x [...] | kubectl apply -f -.
Also, we removed the namespace in cluster_role.yaml, because ClusterRole is not namespaced.

First step to fix https://github.com/cloudfoundry-incubator/cf-operator/issues/763


feat: :sparkles: adds support for campaign classic

Description
Adds wrapper code for Campaign Classic, sample app, documentation
How Has This Been Tested?
New unit tests have been added to cover new features
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have signed the Adobe Open Source CLA.
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Looks like there are still some test failures on CI/CD. Is that expected?