LSP Extension problems with Pylance

Environment data

Language Server version: v2024.4.1
OS and version: Windows 11, version: 22631.3296
Python version (& distribution if applicable, e.g. Anaconda): 3.12.2

Code Snippet

# None... Just opening an empty .py file will trigger this from my experience this morning.

Repro Steps

Create a VS Code LSP Extension from the lsp-sample
Run the extension with the newest Pylance version (v2024.4.1) and open a python project in the debugger VS Code  window.
Error should pop up in the extension IDE debug Console.

Expected behavior
Well, not to much here but to work I would say... As this error is not present in the v2024.3.2 version and neither versions have the requested file "package.nls.en-us.json" in the given location, something feels odd with the Pylance v2024.4.1 version..
Actual behavior
The received behavior is the error and not fully sure if it hinders the development per say, but it's annoying that it is there.
Logs

As the error comes to the extension, and not from the python debugger, I could not get any other information. But as the bug is only present when running the pylance version 2024.4.1 I report it here. So the log below is the Debug Console output from the starting the extension and then opening a python file from the new window, where the error is displayed in the extension development environment and not the debugger window.

EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open 'c:\Users\Allka\.vscode\extensions\ms-python.vscode-pylance-2024.4.1\package.nls.en-us.json'
	at k.e (c:\Users\Allka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:149:6084)
	at Object.readFile (c:\Users\Allka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:149:4463)
	at async _0x9c8500 (c:\Users\Allka\.vscode\extensions\ms-python.vscode-pylance-2024.4.1\dist\extension.bundle.js:1:204314)
	at async _0x4bfbb1 (c:\Users\Allka\.vscode\extensions\ms-python.vscode-pylance-2024.4.1\dist\extension.bundle.js:1:203891)
	at async _0x1785d4 (c:\Users\Allka\.vscode\extensions\ms-python.vscode-pylance-2024.4.1\dist\extension.bundle.js:1:313136)
	at async _0x15825a (c:\Users\Allka\.vscode\extensions\ms-python.vscode-pylance-2024.4.1\dist\extension.bundle.js:1:242985)
	at async u.n (c:\Users\Allka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:140:6255)
	at async u.m (c:\Users\Allka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:140:6218)
	at async u.l (c:\Users\Allka\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:140:5675) {code: 'FileNotFound', name: 'EntryNotFound (FileSystemError)', stack: 'EntryNotFound (FileSystemError): Error: ENOEN…ch\api\node\extensionHostProcess.js:140:5675)', message: 'Error: ENOENT: no such file or directory, op…ode-pylance-2024.4.1\package.nls.en-us.json''}

This is a duplicate of https://github.com/microsoft/pylance-release/issues/5686. It will be fixed in our next prerelease build.


Unable to update the Azure SQL Backup storage redundancy

Hi Team,
As per the below link in MS document
https://docs.microsoft.com/en-us/azure/azure-sql/database/automated-backups-overview?tabs=single-database#configure-backup-storage-redundancy-by-using-the-azure-portal
Change the backup storage redundancy for Database01 to zone-redundant.
Set-AzSqlDatabase -ResourceGroupName "ResourceGroup01" -DatabaseName "Database01" -ServerName "Server01" -BackupStorageRedundancy Zone
The backup storage redundancy can be changed by the above command
But when i try i am getting the below error in my Azure subscription. I am running the below command from Azure Cloudshell

But the RG name and every details are correct. Can someone let me know if the issue is due to the changes in Powershell

Set-AzContext -SubscriptionId "093a6515-332c-45a3-a7e4-d88645b2395c"
Set-AzSqlDatabase -ResourceGroupName "asr-poc-dc" -DatabaseName "testsqldb" -ServerName "testsqlpoc" -BackupStorageRedundancy Zone

@nidiculageorge The repository is for PowerShell development only. Please use other channels to report the issue like Azure support, forums and so on.


Suggest removal of .card wrappers

The div.card, div.cart-body, .div.card-title wrappers are causing problems with alignment in my app. I suggest removing them for a few reasons:

They are unneccesary and can cause styling conflicts
Naming a div .card is too generic which may easily conflict with other styles since there is not a parent wrapper (and adding one is also unneccesary)
Although title can be passed via props, this isn't even documented in the documentation and also doesn't add any value to this library

Hi, @titusdecali , thanks your advice!
Many unnecessary class was forget removed it after test.
So, I am adjust class-name to avoid conflict, I hope it will be solve this troubles.

Hello, I expected this! Many thanks!
What about margin-left/right: -15px on vtl-row? This expands the table on the sides.

Hi, @alexey-us , thanks for your kindly reminder!! It's Bug and I always used Bootstrap so I Didn't noticed.
I am already removed it on v1.1.8-2.

Many thanks!

Hi, I closed this issue. If any questions, reopen it. thx.


reversal of micro-deposit values not in ach file

The reversal of the micro-deposit values do not appear in the ach file.  That transaction is just missing right now.

This should be fixed on master now.


Logs and restart

Hi,
I have two questions:
-Where can I found plex-scrobble logs on my Syno?
-How can I restart the service?
Thanks
Best regards

Ok sorry for logs I have found


P2P peer selection first milestone

The goal for the first demonstration of the peer selection for peer-to-peer graph construction is to have a small number of nodes connected to an existing network (e.g. mainnet) and for them to discover and connect to each other.
The technical goals are:

[x] p2p governor with basic QC tests
[x] design to cover both federated and distributed cases, to allow early integration
[x] DNS based provider for finding existing federated peers
[ ] gossip protocol
[ ] integration with existing code for establishing and monitoring connections
[x] initial simulation framework to evaluate quality of graph construction

The code is now included, and is tested pretty thoroughly in isolation, but not yet integrated with the rest of the system.
Some remaining things to do for future milestones:

[ ] complete testing with simulated connection failures and hot -> warm demotion
[ ] decide how to handle connection backoff with failures that occur shortly after connecting, to avoid reconnect loop
[ ] integration for federated setting (using the DNS provider of public root peers)


Changefeeds block forever when connection is dropped

As reported by @omeid when iterating through a changefeed stream using Next the driver sometimes blocks forever (even when changes are made). This seems to be due to the connection being dropped but the changefeed does not detect this.
I am still investigating the source of this issue and will update the issue when I know more.

To replicate this issue, simply drop the connection between the software and database after starting a change feed, the Next call be blocking even when the connection is dropped.

So it seems like Go is not actually closing the connection in certain situations which is causing the driver to read from the connection forever. The situation that I used to replicate this was running the DB on an external server and then disabled the WiFi on my laptop. Attempting to break the connection by killing the DB process and also when I killed the SSH tunnel I was using caused the connection to be closed.
I am not really sure if there is a solution for this issue so unless anybody has any other ideas I will close this issue.

Pretty sure im running into similar issues, except I'm not using change feeds. I've noticed that periodically my app stall's out and blocks on the vanilla Run(rethinksession) call when I go to execute a query.
Running with SetVerbose(true) doesn't giving me any additional output.

Heh, nevermind, I was running a Delete elsewhere and never returning the connection to the pool.

Glad you solved your issue @pandemicsyn, I would recommend running Delete queries using RunWrite or Exec as this automatically returns the connection to the pool.

@omeid since we couldn't reliably reproduce this issue and nobody else has reported this issue I will close it.

I could not reproduce the problem any more and it seems like the issue with something else.
14 days in and the changefeed is alive and strong. :+1:


Add missing DOIs

This PR adds a pair of missing DOIs that were detected by the JOSS editorialbot.

@mcflugen Lazy consensus in T-5 min.


Unit testing environment set up and addition of some unit tests

Set up the unit testing environment and added some initial unit tests.
The unit testing environment has been set up following the Gatsby Unit Testing and Gatsby Testing React Components guides.
The "gatsby-plugin-firebase" dependency has been replaced by a stub implementation called "FirebaseStub" and placed under the new "__mocks__" directory.
Jest has been configured to collect coverage information and store it under the "test-coverage" directory.
The "test" script in package.json has been updated to run "jest" and is also run as prebuild step.
Some basic unit tests for the Dashboard and Builder components, and for the Castform template, have been added.
I would be keen to implement additional unit tests later on to try and cover more user interactions.

This is a great addition, and one that is very much necessary now that the project is growing. Thank you for taking the time to do this. Will review this in the coming weekend if time permits and see if I can add some test cases as well. Thank you very much for this contribution! 💯

This is a great addition, and one that is very much necessary now that the project is growing. Thank you for taking the time to do this. Will review this in the coming weekend if time permits and see if I can add some test cases as well. Thank you very much for this contribution! 💯

Glad to know that this could be a useful addition. I also think that it is useful to have some unit tests which can be run automatically. Thanks! 👍

Glad to know that this could be a useful addition. I also think that it is useful to have some unit tests which can be run automatically. Thanks! 👍

Added basic implementation of data updates to FirebaseStub.database() . This should suffice to support most current usage of the Firebase.database() dependency in the app.
The Firebase Stub can anyhow be extended as more unit tests are implemented in the future, if these tests leverage Firebase functionality that has not yet been implemented in the stub. For example: currently only auth().signInAnonymously() has been implemented in the stub. If in the future we would need to also test the loginWithGoogle user interaction then we should implement auth().signInWithPopup() in the stub, or just mock the function in the unit test.

Added basic implementation of data updates to FirebaseStub.database() . This should suffice to support most current usage of the Firebase.database() dependency in the app.
The Firebase Stub can anyhow be extended as more unit tests are implemented in the future, if these tests leverage Firebase functionality that has not yet been implemented in the stub. For example: currently only auth().signInAnonymously() has been implemented in the stub. If in the future we would need to also test the loginWithGoogle user interaction then we should implement auth().signInWithPopup() in the stub, or just mock the function in the unit test.


[XK-AVB-LC-SYS] Which IP Address? How to connect with switch?

Hello,
I want to build a network with two AVB Endpoints (XK-AVB-LC-SYS), a Laptop and an AVB Switch.
An avdecc library/controller (https://github.com/audioscience/avdecc-lib) is installed on my linux system.
The avdecc controller can be used over command line. For test purposes I have connected the endpoint with my laptop over Ethernet. But the endpoint doesn't show up in the list of the connected endpoints in the controller program.
Why not?
Can I ping the endpoint?
Do I have to config the Ethernet ports of the endpoint so that they work?
Don't know what is wrong...
Pls help.
Greetz
Chris

Hello wollerosekaufen ,
Did you get solution of this?
Can you please share?
I am also facing same issue but with i210 at both ends.
Only the host i210 IP is listed, but none in the AVB network.

Hello,
my AVB devices don't have an IP address at the moment. But they are
connected to the switch and the application works!
As "peter" wrote in the thread:
the AVB firmware is working at the layer below IP and so it doesn't
have an IP address.
the devices work at the level of MAC addresses and a protocol on
top of that.
the devices won't be able to ping unless TCP is added.
I hope I could help you.
Am 15.02.2017 um 13:02 schrieb sachindes:

Hello wollerosekaufen ,
Did you get solution of this?
Can you please share?
I am also facing same issue but with i210 at both ends.
Only the host i210 IP is listed, but none in the AVB network.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/audioscience/avdecc-lib/issues/312#issuecomment-279993332,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATlW6pE3hhfO1pdQJ_PXTwLRK14LxcE_ks5rculLgaJpZM4Kxs5E.

Thanks for info

What software stack is running on the i210 system to do IEEE 1722.1?

I did not get success with AVDECC from Open AVNu AVDECC feature branch, seems it need to extend further.  For IEEE 1722.1, I am using  AVDECC daemon referred from RCAR AVB stack. For control, I am using Audio Science avdecc cmdline console.  I am able to discover avdecc entities.
For above issue, I need to set IP address to host i210 card. With avdecc cmdline, once i connect; I can interact with AVDECC of end stations.


Linux: Initial support for Gentoo installations.

Add Gentoo to list of supported distributions and add a
tools/installpsh-gentoo.sh script which installs the Ubuntu 18.04
powershell or powershell-preview .deb using the Gentoo dpkg port.
If -includeide is specified, also installs Visual Studio Code via
flatpak, installing flatpak-overlay and flatpak if necessary.
This should work for most Gentoo users with a relatively recent system.
Also fix sudo check and pwsh-preview test in tools/installpsh-debian.sh.
Signed-off-by: Rafael Kitover<EMAIL_ADDRESS>
[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[ ] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:

Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode (which runs in a different PS Host).
Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).
Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: rkitover sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Fixed removing the temp directory and made the output nicer.

Added support for -includeide via flatpak.

Made more improvements, it now finds the latest ubuntu dist automatically and doesn't use /tmp.

I am pretty much done with this. I know it's the holidays and everything, but can someone take a look please? I can work on other stuff separately.

@daxian-dbw I realize I made some opinionated decisions here, but horrible hacks are often the best solution on gentoo. I might work on a proper ebuild in the main gentoo repository for this, but I think this solution is not terrible for the time being and will work for most gentoo users.
Also this code does not affect the other installers much, so there is little potential for breakage.
I am also happy to contribute to these scripts in the future.
Let me know if you need anything else.

@rkitover My apology for the delay. I will drive the review process on our side. Thank you for your patience!

@anmenaga @TravisEz13 Can you please review this PR after the 7.0.0-rc.3 release? Thank you!

@anmenaga @TravisEz13 A gentle ping :) Please take a look at this PR, thanks!

Thank you very much for looking at this, it's not very important of course, but I might do more work on these scripts too.
Just a note that the DarwinJS URL is taken straight from the debian script for the vscode extension.

@daxian-dbw ping,
I have one review.
Explanation of URLs:

URL
Description

https://github.com/fosero/flatpak-overlay.git
This is a third party repository for gentoo, it has the flatpak ebuild which is not in core gentoo.

https://raw.githubusercontent.com/DarwinJS/CloudyWindowsAutomationCode/master/pshcoredevenv/testpowershell.ps1
This is taken straight from installpsh-debian.sh, it's a script to test the Visual Studio Code PowerShell plugin installation.

I'd like to get more involved in this project, I have been waiting on this PR.
Thank you!


Stack Using Linked List

Added C program File of Stack Using Linked List
please do test the code 👍

Check cheyan tester e Hire cheyanam nammak😅

Check cheyan tester e Hire cheyanam nammak

Tested and Updated :)


Set user agent for Logging client

Coverage increased (+0.03%) to 85.901% when pulling c6b19ca1b5ebcd0f337214ba7799b2e8a0b50cbf on mziccard:logging-user-agent into 0637c80cc23938e4bbfa6304005f975a319648b5 on GoogleCloudPlatform:master.

/cc @lesv
Codacy seems to be stuck on this (even though it reports failure).

Update: Codacy is now done and happy

LGTM - I presume I'll be seeing this kind of CL for all rpc's.

LGTM - I presume I'll be seeing this kind of CL for all rpc's.

User agent is all set for other rpc's. Just logging was left behind.


chore(release): Automated agent plugin release notes (v0.8.43)

Automated PR

Merging into 1 release notes branch


Add test case for ssh config

Related issue:
https://github.com/rancher/os/issues/2581
============================= test session starts ==============================
platform linux -- Python 3.5.2, pytest-3.9.2, py-1.7.0, pluggy-0.8.0
rootdir: /tmp/pycharm_project_699, inifile:
plugins: cov-2.6.0
collected 1 item

engine/test_ssh_config.py Formatting '/opt/os-tests/images/Z4EW517D.qcow2', fmt=qcow2 size=10737418240 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
.

========================== 1 passed in 448.37 seconds ==========================

Process finished with exit code 0

LGTM


okcoincny need to add BCH/ETH/ETC markets

It's so sad they don't have an API for fetching all markets at once... All developers have to hardcode it... We'll put a watchdog on chinese exchanges to check when their markets are updated.
I'll add missing symbols to okcoin as well, of course.

thanks!  👍

Ok, these markets have been added to OKCoin CNY in version 1.6.100+. Thanks for updating us on this. Let us know if you have any difficulty with it.

test BCH/ETH/ETC, all work fine. 👍


Physical device features chain

vkPhysicalDeviceFeatures2Builder has no push_next method.
vkPhysicalDeviceFeatures2 has been introduced as the original vkPhysicalDeviceFeatures containes no pNext field. Vulkan allows new physical device feature extensions to be added in the next chain of either vkPhysicalDeviceFeatures2 or vkDeviceCreateInfo. As vkPhysicalDeviceFeatures2 is effectively also in the vkDeviceCreateInfo chain this results in that it will be not marked as root struct and therefore no push_next is generated.
It's per se not a blocker just inconvenient in my opinion. Perhaps, vkPhysicalDeviceFeatures2 could be manually whitelisted somehow?

Sorry not for responding sooner, I'll look into it now.

Yes that should be possible, thanks for the report.

It's still not there :(

I came up with a hopefully proper fix:

implement a push_next functions for all structures that declare a p_next field (used to do it only for "root" structures)
honor all extends (was honoring only "root" extends)
removed root_struct_names function as it was not used anymore (the notion of root structure is not well defined in Vulkan)


chore: Delete launch template with context

Fixes #N/A
Description
Update call from DeleteLaunchTemplate to use context.Context like other SDK functions
How was this change tested?
make presubmit
Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 82.246%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/providers/launchtemplate/launchtemplate.go
0
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5332

Relevant Lines:
6483

💛  - Coveralls


webserver container with static files and api-call forwarding

This is a first pass at the webserver container. The included readme details the changes and my concerns. The main feature this is missing is the configuration to use https but I'd appreciate any comments on what's here so far.

Addresses issues #43 and #45 .

I'm rejecting this because it's super old and I'll write a new and updated version.


Full screen mode not working when using embedded epub viewer

I have an iframe as follows inside my webpage

Once i click on my webpage on full screen mode it is not working.
But if i go directly to link http://www.mywebsite.com/cloud-reader-lite/index.html?epub=epub_content/2369.epub in browser instead of using iframe and click on full screen module it is working.
Any idea how can this be fixed ?

You need to set the HTML5 AllowFullScreen attribute on your iframe, otherwise the web browser's fullscreen API will not allow the switch to full screen mode (this is an HTML security measure).

Adding AllowFullScreen solved the issue. But it seems there is a wrong behavior on IE 11 it opens full mode but text or book content isnt correctly displayed. Is it  a bug ?

@mahag could you please file a separate issue about the IE11 fullscreen display / layout bug, if possible with a screenshot attachment? Does this happen only when Readium is embedded in an iframe?

Hi,
I have issue with fullscreen dunno where to dig.
https://www.sisdipe.com.br/i-educar/interno/ereader.php
(I will try to use the readium opds support and add swipe to navigate, but atm this fullscreen issue just traped me :/ )

Hi ,
In Readium cloud reader FullScreen is not working in chrome.

Hi ,
Please check the below URL.
https://readium.firebaseapp.com/?epub=epub_content%2Fmoby_dick&goto=epubcfi(/6/44!/4/2/2/2/1:0)


Guide for implementing FirebasePhoneAuth on iOS Objective-C

im still confuse how to implement it FirebasePhoneAuth, any suggestion or project example to implement in objective c ?? thanks in advance! and i already try on FirebaseUI sample project & quickstart sample from this documen also it is very different the component between inside the sample project and install the component using cocoaPods for example the component FUIPhoneEntryViewController and FUIPhoneVerificationViewController it didnt include when i use cocoaPods,and right now already follow step by step but still having problem and confuse how to implement it. any1 can help me ? i also new learning iOS - Objective C. thank you in advance
Step 1: Are you in the right place?
ofc, already follow till step 3 "send verification code to user's phone" (from : https://firebase.google.com/docs/auth/ios/phone-auth)
Step 2: Describe your environment

Objective C

iOS version: 10.3

Firebase SDK version and   * FirebaseUI version:  : im directly install via cocoaPods :
Installing Firebase (4.3.0)
Installing FirebaseAnalytics (4.0.4)
Installing FirebaseAuth (4.2.1)
Installing FirebaseCore (4.0.8)
Installing FirebaseInstanceID (2.0.4)
Installing FirebaseUI (4.2.0)

CocoaPods Version:  1.3.1

Step 3: Describe the problem:

i cant get the user's phone number input, for now to get user's phone number i implement like this in my viewController when "user tap signin by phone"  :

- (void)authUI:(FUIAuth *)authUI didSignInWithUser:(FIRUser *)user error:(NSError *)error{
    NSLog(@"masuk FUIAuthDelegate");

    NSLog(@"%@", user.phoneNumber);

    //3. Send a verification code to the user's
    NSString *inputPhoneNumber = @"+6281977733738";
    [[FIRPhoneAuthProvider provider] verifyPhoneNumber:inputPhoneNumber
                                            UIDelegate:nil
                                            completion:^(NSString * _Nullable verificationID, NSError * _Nullable error) {

        NSLog(@"VERIFICATION ID : %@", verificationID);

        if (error) {
            //[self :error.localizedDescription];
            NSLog(@"ERROR MESSAGE : %@", error);
            return;
        }
        // Sign in using the verificationID and the code sent to the user
        // ...

        NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
        [defaults setObject:verificationID forKey:@"authVerificationID"];
        NSLog(@"DEFAULTS NSUSERDEFAULTS:  %@", defaults);

        //4. Sign in the user with the verification code
        //a. Get the verification code from the user ???

        //b. Create a FIRPhoneAuthCredential object from the verification code and verification ID.
        FIRAuthCredential *credential = [[FIRPhoneAuthProvider provider]
                                         credentialWithVerificationID:verificationID
                                         verificationCode:@""];

        //c.Sign in the user with the FIRPhoneAuthCredential object:
        [[FIRAuth auth] signInWithCredential:credential
                                  completion:^(FIRUser *user, NSError *error) {
              if (error) {
                  // ...
                  NSLog(@"SignInWithCredential ERROR MESSAGE : %@", error);
                  return;
              }
              // User successfully signed in. Get user data from the FIRUser object
              // ...
              NSLog(@"SUCCESS");
          }];
    }];

}

Observed Results:

VERIFICATION ID : AM5PThCBFlGIT26x2h-A7NrB29E_Llli-srd-7F1bY_o8RDLZ8txSzVRfXG1moWwfY2NDC4nO7t5rEt8Ed3IzhAZCMStGr8ZdDrcxFo-1kHQi86qRbnqAgyhyKx_0_ot-W_BthhKjNGXknd-mqXIPpi1hds6kvZsOw
Defaults NSUSERDEFAULTS:  <NSUserDefaults: 0x60800004aaa0>
signInWithCredential error message : Error Domain=FIRAuthErrorDomain Code=17043 "The phone auth credential was created with an empty SMS verification Code." UserInfo={NSLocalizedDescription=The phone auth credential was created with an empty SMS verification Code., error_name=ERROR_MISSING_VERIFICATION_CODE}

Expected Results:
when installing the component using cocoaPods, i hope all component will be downloaded, so i think it only implement easily like document step by step, but it dont.

@axelsoedarsono In the following line:
FIRAuthCredential *credential = [[FIRPhoneAuthProvider provider]
    credentialWithVerificationID:verificationID
                verificationCode:@""];

You're supposed to replace the empty string @"" with the actual verification code entered by the user. It doesn't seem that you're using FirebasePhoneAuthUI for this purpose, so you'll need to display UI to collect the verification code from user yourself.
If you did intend to use FirebasePhoneAuthUI, then you don't need to call credentialWithVerificationID:verificationCode: at all. Please take a look at the sample app in this repository for how to use the FirebaseUI library.

@XiangtianDai hi sir, thanks for your reply, right, i use @"" because of i can't collect the user's input,
also i when in insert phone number UI, i cant get the input number :
NSLog(@"%@", user.phoneNumber);

    //3. Send a verification code to the user's
    NSString *inputPhoneNumber = @"+6281977733738";
[[FIRPhoneAuthProvider provider] verifyPhoneNumber:inputPhoneNumber
                                            UIDelegate:nil
                                            completion:^(NSString * _Nullable verificationID, NSError * _Nullable error) {
}

i always get null value while using  "user.phoneNumber" to get user's phonenumber input. what should i do sir ?

@axelsoedarsono I see you're indeed using FirebaseUI, in which case you don't need to implement step 3 and 4 in https://firebase.google.com/docs/auth/ios/phone-auth , because these steps have already been implemented for you by FirebasePhoneAuthUI. Just use FUIPhoneAuth, which should handle signing in for you. You don't need to call FIRPhoneAuthProvider's verifyPhoneNumber:UIDelegate:completion at all. Sorry for the confusing documentation.

@XiangtianDai Okay sir, i'll try again with only use FUIPhoneAuth, but first don't close this thread, in case if there's another problem again, so i can post here . thank you sir @XiangtianDai.

Closing due to inactivity. You can still post here if you have problems and I'll reopen the issue.

I am still having this "something went wrong" error while using the following code:
let phoneProvider = FUIPhoneAuth.init(authUI: FUIAuth.defaultAuthUI()!)             FUIAuth.defaultAuthUI()?.providers = [phoneProvider]             phoneProvider.signIn(withPresenting: self, phoneNumber: nil)

When I am login into iPhone 5 SE it's showing the same error. "Something went wrong" and same code works in iPhone 6s.
iOS Version is same.

@yramanchuk can you take a look at this?

This issue has staled. If you're running into the same configuration error, please file a new issue with your pod versions and the steps you took to integrate phone auth.

Hi AutoPrefill
i received sms verification code on my mobile but i cannot assign 6 digit verification code to UITextfield as (Auto prefill) .


Indexed Access Operator inconsistent handling between language service and compiler

TypeScript Version:  2.9.0-dev.20180516, also in Playground

Search Terms:
"indexed access"
Code
interface Handlers {
    a: (x: string) => void;
    b: (y: number) => void;
}

function explicit(h: "a", cb: (x: string) => void): void;
function explicit(h: "b", cb: (y: number) => void): void;
function explicit(h: string, cb: Function): void { }

function indexed<K extends keyof Handlers>(h: K, cb: Handlers[K]): void;
function indexed(h: string, cb: Function): void { }

explicit("a", (x) => { }); // x has type information
explicit("b", (y) => { });

indexed("a", (x) => { }); // x has no type information
indexed("b", (y) => { });

Expected behavior:
All 4 function carry correct type information for the callback arguments.
Actual behavior:
tsc fails when noImplicitAny is set for the two calls to indexed():

error TS7006: Parameter 'x' implicitly has an 'any' type.

Playground Link: Don't forget to set the NoImplicitAny option
Related Issues:
I don't think so?  Some of the indexed-access issues get a little outside my comfort zone.

The really interesting part of this is that the language service (and thus Intellisense) does get the type information, but the compiler / linter (?) do not.  Behavior on the Playground example is crazy.  Type this:
indexed(             // <-- Intellisense says "h: K, cb: Handlers[k]"
indexed("a",          // <-- same
indexed("a", x =      // <-- same
indexed("a", x =>    // <-- suddenly changes to "h: 'a', cb: (x: string) => void"

If you delete the final angle bracket (so you now have an equal-sign instead of an arrow), it snaps back to "Handlers[k]".  You can add/remove that single character
Even crazier, it's different in VS Code.  In Code, as soon as I type the comma after "a", it changes from the non-specific overload (including all available handler names) to the specific overload for "a", including the correct callback parameter types.
As an aside, I'm trying to use this pattern to simplify the definition of EventEmitters -- I thought I could get away with addListener<K extends keyof ServerEvents>(event: K, listener: ServerEvents[K]): this; but when I actually try to call it, the callback isn't strongly typed (as described above).  Because of this, I'm stuck with (addListener, on, once, prependListener, prependOnceListener) times however many events each class has, and it's hideous.  Other suggestions would be welcome.

We do not really have a partial overload resolution logic, so either the signature is resolved or it is not.. when it is, a generic signature get instantiated with the inferred type arguments.. when it is not, you get the generic signature in help.
in the first 3 examples of calls to indexed the overload was not resolved since either the number of arguments were wrong, or the type of these arguments were wrong. the last one (though is not a complete function, was parsed as such) and this allowed for this signature to be resolved, and thus the expected quick info shows.
What we need is given that overload resolution failed, and we are in the language service, and the list of arguments in not complete, try to find the "closest" overload and then try to "partially" infer from it, using the available arguments, and then "partially" instantiate it.
That all said, it is not a trivial amount of changes, and the current overload resolution is already a very complicated piece of machinery. So i would categorize this as a design limitation at the time being.

@mhegazy I think you've picked the wrong issue out of this report. the real problem:
interface Handlers {
    a: (x: string) => void;
    b: (y: number) => void;
}

function indexed<K extends keyof Handlers>(h: K, cb: Handlers[K]): void;
function indexed(h: string, cb: Function): void { }

indexed("a", (x) => { }); // x has no type information (implicitly any!)
indexed("b", (y) => { });

It doesn't seem like it should fail, but it does. Now, I can guess why it fails - contextual typing doesn't have an instantiated signature to work with (since it's used to figure out how to resolve it), so the parameter has no contextual signature, and thus no type applied, leading to the implicit any error.

Thanks wes, yes, that was the focus.  I figured the (apparently) strange Intellisense behavior, and especially the difference between the Playground and Code, might provide a clue towards tracking a root cause.
I used noImplicitAny as an example in the original issue, but what I probably should have put there instead was
explicit("a", (x) => { x.toFixed(); });    // Error, string doesn't have this method
explicit("b", (y) => { y.trim(); });    // Same

indexed("a", (x) => { x.toFixed(); });    // No error, x is any
indexed("b", (y) => { y.trim(); });    // Same

which seems like a much bigger deal.

May I suggest a work around. I ran into this very issue when answering this question
interface Handlers {
    a: (x: string) => void;
    b: (y: number) => void;
}
type GetSignatures<T> = { [P in keyof T] : (name: P, cb: T[P]) => void }
type UnionToIntersection<U> =
    (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;

let  indexed: UnionToIntersection<GetSignatures<Handlers>[keyof Handlers]>  = (h: string, cb: Function) => { }
indexed("a", (x) => { }); // x is string
indexed("b", (y) => { }); //y is number

The extracted repro now compiles without error with and without --strict


Describe the bug A clear and concise description of what the bug is and what you expected to happen.  To Reproduce Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error  Screenshots If applicable, add screenshots to help explain your problem.  Device (please complete the following information):  - iOS Version:   - iOS Device:   - unc0ver Version:   Place an "x" between the brackets if true:  - [ ] this is a bug others will be able to reproduce  - [ ] this issue is present with all tweaks uninstalled(except for default packages) or disabled  - [ ] this issue is present after a rootfs restore  - [ ] this issue is present on the latest version of unc0ver  Logs If applicable, add logs or error messages here.

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

Go to '...'
Click on '....'
Scroll down to '....'
See error

Screenshots
If applicable, add screenshots to help explain your problem.
Device (please complete the following information):

iOS Version:
iOS Device:
unc0ver Version:

Place an "x" between the brackets if true:

[x] this is a bug others will be able to reproduce
[x] this issue is present with all tweaks uninstalled(except for default packages) or disabled
[x] this issue is present after a rootfs restore
[x] this issue is present on the latest version of unc0ver

Logs
If applicable, add logs or error messages here.

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

Go to '...'
Click on '....'
Scroll down to '....'
See error

Screenshots
If applicable, add screenshots to help explain your problem.
Device (please complete the following information):

iOS Version:
iOS Device:
unc0ver Version:

Place an "x" between the brackets if true:

[ ] this is a bug others will be able to reproduce
[ ] this issue is present with all tweaks uninstalled(except for default packages) or disabled
[ ] this issue is present after a rootfs restore
[ ] this issue is present on the latest version of unc0ver

Logs
If applicable, add logs or error messages here.


On upgrading to SF CLI - 2.37.4 in Jenkins pipeline (used to deploy to different environments), When running the sf login command, getting the error "reason: write EPROTO 0018D41C417F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number"

Note
Before you submit your issue, make sure that:

You're using the latest version of Salesforce CLI.
You've searched both open and closed issues for related posts.
You've used the doctor command to diagnose common issues.
You understand that GitHub Issues don't adhere to any agreement or SLA.

If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary
We are updating to sf cli (2.37.4) from sfdx cli (7.158.1) in the jenkins pipeline which uses the LINUX cli.
On testing using the new sf cli, we are getting the below error when running sf login command.
Command used: sf org login jwt -i **** -o **** -f /tmp/workspace/CRM/Salesforce_CLI_Dev_Testing/sfdxHotfixRc/server.key -r https://test.salesforce.com --set-default
error: request to https://test.salesforce.com//services/oauth2/token failed, reason: write EPROTO 0018D41C417F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
All these variables are set:
export NODE_EXTRA_CA_CERTS=/usr/lib/jvm/jre-1.8.0/lib/security/cacerts
export NODE_TLS_REJECT_UNAUTHORIZED=0
export PATH="${sfdxPath}:$PATH"
# npm config set https-proxy https://${snow_usr}:${snow_pwd}@${proxyValue}.mycompany.com:8080
# npm config set proxy https://${snow_usr}:${snow_pwd}@${proxyValue}.mycompany.com:8080
export HTTP_PROXY="http://${proxyValue}..mycompany.com:8080"
export HTTPS_PROXY="https://${proxyValue}..mycompany.com:8080"
export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true
Expected result
Currently the pipeline uses sfdx cli v7.158.1, we are able to login successfully and execute all the command to deploy into sandbox.
 All plugins and libraries must use at least version 6.7.0 of `@salesforce/core` to support v2 crypto. You're generally still able to successfully authenticate with your current CLI installation, but not if you generate a v2 crypto key.
14:59:02    * Couldn't determine latest CLI version due to:
14:59:02  (node:614) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
14:59:02  npm ERR! cb() never called!
14:59:02
14:59:02  npm ERR! This is an error with npm itself. Please report this error at:
14:59:02  npm ERR!     <https://npm.community>
14:59:02
14:59:02  npm ERR! A complete log of this run can be found in:
14:59:02  npm ERR!     /home/moddel/.npm/_logs/2024-06-05T18_59_02_477Z-debug.log
14:59:02
14:59:03  + '[' v2 == v2 ']'
14:59:03  + echo 'SFDX Version used is -> v2.37.4'
14:59:03  SFDX Version used is -> v2.37.4
14:59:03  + echo 'SF_USER_NAME -> **** | SF_SECRET_TEXT -> ****'
14:59:03  SF_USER_NAME -> **** | SF_SECRET_TEXT -> ****
14:59:03  + export SF_USE_GENERIC_UNIX_KEYCHAIN=true
14:59:03  + SF_USE_GENERIC_UNIX_KEYCHAIN=true

Additional information
Full Error :
12:02:15  + '[' v2 == v2 ']'
12:02:15  + echo 'SFDX Version used is -> v2.37.4'
12:02:15  SFDX Version used is -> v2.37.4
12:02:15  + echo 'SF_USER_NAME -> **** | SF_SECRET_TEXT -> ****'
12:02:15  SF_USER_NAME -> **** | SF_SECRET_TEXT -> ****
12:02:15  + export SF_USE_GENERIC_UNIX_KEYCHAIN=true
12:02:15  + SF_USE_GENERIC_UNIX_KEYCHAIN=true
12:02:15  + sf org login jwt -i **** -o **** -f /tmp/workspace/CRM/Salesforce_CLI_Dev_Testing/sfdxValidationRC/server.key -r https://test.salesforce.com --set-default
12:02:16  (node:617) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
12:02:16  (Use node --trace-warnings ... to show where the warning was created)
12:02:17  Error (1): We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here���s the error: Error authenticating with JWT.
12:02:17  Errors encountered:
12:02:17  request to https://test.salesforce.com//services/oauth2/token failed, reason: write EPROTO 00485F395E7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
12:02:17
12:02:17  request to https://login.salesforce.com/services/oauth2/token failed, reason: write EPROTO 00485F395E7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
12:02:17
12:02:17  request to https://test.salesforce.com//services/oauth2/token failed, reason: write EPROTO 00485F395E7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
12:02:17

we can't upgrade cli to v2.44.8 at this time due to our company's new technology process

Below is the sf version --verbose --json and sf doctor:
+ echo 'Executing SF version for pipeline->PipelineSalesforceValidationRC .....'
Executing SF version for pipeline->PipelineSalesforceValidationRC .....
+ sf version --verbose --json
{
  "architecture": "linux-x64",
  "cliVersion"<EMAIL_ADDRESS>  "nodeVersion": "node-v20.11.1",
  "osVersion": "Linux 5.10.214-202.855.amzn2.x86_64",
  "rootPath": "/opt/sf",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.13 (core)",
    "@oclif/plugin-commands 3.2.2 (core)",
    "@oclif/plugin-help 6.0.20 (core)",
    "@oclif/plugin-not-found 3.1.2 (core)",
    "@oclif/plugin-plugins 5.0.7 (core)",
    "@oclif/plugin-search 1.0.20 (core)",
    "@oclif/plugin-update 4.2.4 (core)",
    "@oclif/plugin-version 2.0.16 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.15 (core)",
    "@oclif/plugin-which 3.1.7 (core)",
    "@salesforce/cli 2.37.4 (core)",
    "apex 3.1.4 (core)",
    "auth 3.5.5 (core)",
    "data 3.2.5 (core)",
    "deploy-retrieve 3.5.6 (core)",
    "info 3.1.3 (core)",
    "limits 3.2.1 (core)",
    "marketplace 1.1.1 (core)",
    "org 4.0.4 (core)",
    "packaging 2.3.0 (core)",
    "schema 3.2.1 (core)",
    "settings 2.1.2 (core)",
    "sobject 1.2.2 (core)",
    "source 3.2.3 (core)",
    "telemetry 3.1.18 (core)",
    "templates 56.1.1 (core)",
    "trust 3.5.4 (core)",
    "user 3.4.3 (core)"
  ]
}
+ sf doctor
=== Running all diagnostics

pass - salesforcedx plugin not installed
pass - no linked plugins
pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
warn - [@salesforce/plugin-auth] CLI supports v2 crypto
unknown - using latest or latest-rc CLI version
Wrote doctor diagnosis to: /tmp/workspace/CRM/Salesforce_CLI_Dev_Testing/sfdxValidationRC/1717613941336-diagnosis.json
Suggestions
* Check https://github.com/forcedotcom/cli/issues for CLI issues posted by the community.
  * Check http://status.salesforce.com for general Salesforce availability and performance.
  * Your current installation of Salesforce CLI, including all the plugins you've linked and installed, doesn't yet support v2 crypto. All plugins and libraries must use at least version 6.7.0 of @salesforce/core to support v2 crypto. You're generally still able to successfully authenticate with your current CLI installation, but not if you generate a v2 crypto key.
  * Couldn't determine latest CLI version due to:
(node:614) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     https://npm.community
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/moddel/.npm/_logs/2024-06-05T18_59_02_477Z-debug.log
+ '[' v2 == v2 ']'
+ echo 'SFDX Version used is -> v2.37.4'
SFDX Version used is -> v2.37.4
+ echo 'SF_USER_NAME -> **** | SF_SECRET_TEXT -> ****'
SF_USER_NAME -> **** | SF_SECRET_TEXT -> ****
+ export SF_USE_GENERIC_UNIX_KEYCHAIN=true
+ SF_USE_GENERIC_UNIX_KEYCHAIN=true

7.158.1 is ~2 years old, probably was using node 14 or 16.
node v17 bumped OpenSSSL to 3.0 which might be related:
https://nodejs.org/en/blog/release/v17.0.0
https://github.com/forcedotcom/cli/issues/1857#issuecomment-1367905338
suggestion:
update to latest sfdx (v7.209.6) which includes node v18, if you get the same failure then it's likely because of the openssl change. See if NODE_OPTIONS='--openssl-legacy-provider' works.

Thanks Chris. We are upgrading to sf v2.37.4 and are using the newer sf cli commands. This version is using the node- v20.11.1".
We tried with the change NODE_OPTIONS='--openssl-legacy-provider', We still see the same error for sf org login jwt
Error (1): We encountered a JSON web token error, which is likely not an issue with Salesforce CLI. Here���s the error: Error authenticating with JWT.
14:40:58  Errors encountered:
14:40:58  request to https://test.salesforce.com//services/oauth2/token failed, reason: write EPROTO 00B8D545FD7E0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
We are getting a different error in sf doctor though:
14:40:56  Wrote doctor diagnosis to: /tmp/workspace/CRM/Salesforce_CLI_Dev_Testing/sfdxValidationRC/1717699255820-diagnosis.json
14:40:56
14:40:56  === Suggestions
14:40:56
14:40:56    * Check https://github.com/forcedotcom/cli/issues for CLI issues posted by the community.
14:40:56    * Check http://status.salesforce.com for general Salesforce availability and performance.
14:40:56    * Couldn't determine latest CLI version due to:
14:40:56  node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
14:40:56
14:40:56  + openssl version
14:40:56  OpenSSL 1.1.1g  21 Apr 2020
14:40:56  + '[' v2 == v2 ']'
14:40:56  + echo 'SFDX Version used is -> v2.37.4'
14:40:56  SFDX Version used is -> v2.37.4
14:40:56  + echo 'SF_USER_NAME -> **** | SF_SECRET_TEXT -> ****'
14:40:56  SF_USER_NAME -> **** | SF_SECRET_TEXT -> ****
Before using the NODE_OPTIONS='--openssl-legacy-provider' sf doctor output looked like:

sf doctor
[2024-06-06T18:25:09.959Z] === Running all diagnostics
[2024-06-06T18:25:09.959Z]
[2024-06-06T18:25:09.959Z] pass - salesforcedx plugin not installed
[2024-06-06T18:25:09.959Z] pass - no linked plugins
[2024-06-06T18:25:09.959Z] pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
[2024-06-06T18:25:10.213Z] warn - [@salesforce/plugin-auth] CLI supports v2 crypto
[2024-06-06T18:25:10.467Z] unknown - using latest or latest-rc CLI version
[2024-06-06T18:25:10.467Z]
[2024-06-06T18:25:10.467Z] Wrote doctor diagnosis to: /tmp/workspace/CRM/Salesforce_CLI_Dev_Testing/sfdxValidationRC/1717698309842-diagnosis.json
[2024-06-06T18:25:10.467Z]
[2024-06-06T18:25:10.467Z] === Suggestions
[2024-06-06T18:25:10.467Z]
[2024-06-06T18:25:10.467Z]   * Check https://github.com/forcedotcom/cli/issues for CLI issues posted by the community.
[2024-06-06T18:25:10.467Z]   * Check http://status.salesforce.com for general Salesforce availability and performance.
[2024-06-06T18:25:10.467Z]   * Your current installation of Salesforce CLI, including all the plugins you've linked and installed, doesn't yet support v2 crypto. All plugins and libraries must use at least version 6.7.0 of @salesforce/core to support v2 crypto. You're generally still able to successfully authenticate with your current CLI installation, but not if you generate a v2 crypto key.
[2024-06-06T18:25:10.467Z]   * Couldn't determine latest CLI version due to:
[2024-06-06T18:25:10.467Z] npm ERR! cb() never called!
[2024-06-06T18:25:10.467Z]
[2024-06-06T18:25:10.467Z] npm ERR! This is an error with npm itself. Please report this error at:
[2024-06-06T18:25:10.467Z] npm ERR!     https://npm.community
[2024-06-06T18:25:10.467Z]
[2024-06-06T18:25:10.467Z] npm ERR! A complete log of this run can be found in:
[2024-06-06T18:25:10.467Z] npm ERR!     /home/moddel/.npm/_logs/2024-06-06T18_25_10_394Z-debug.log
[2024-06-06T18:25:10.467Z]
[2024-06-06T18:25:11.822Z] + ls -ltr /home/moddel/.npm/_logs/
[2024-06-06T18:25:11.822Z] total 8
[2024-06-06T18:25:11.822Z] -rw-r--r-- 1 moddel moddel 476 Jun  6 14:21 2024-06-06T18_21_51_297Z-debug.log
[2024-06-06T18:25:11.822Z] -rw-r--r-- 1 moddel moddel 476 Jun  6 14:25 2024-06-06T18_25_10_394Z-debug.log
[2024-06-06T18:25:11.822Z] + cat /home/moddel/.npm/_logs/2024-06-06T18_21_51_297Z-debug.log /home/moddel/.npm/_logs/2024-06-06T18_25_10_394Z-debug.log
[2024-06-06T18:25:11.822Z] 0 info it worked if it ends with ok
[2024-06-06T18:25:11.822Z] 1 verbose cli [ '/opt/node-v8.17.0-linux-x64/bin/node',
[2024-06-06T18:25:11.822Z] 1 verbose cli   '/opt/node/bin/npm',
[2024-06-06T18:25:11.822Z] 1 verbose cli   'view',
[2024-06-06T18:25:11.822Z] 1 verbose cli   '@salesforce/cli',
[2024-06-06T18:25:11.822Z] 1 verbose cli   'dist-tags.latest' ]
[2024-06-06T18:25:11.822Z] 2 info using<EMAIL_ADDRESS>[2024-06-06T18:25:11.822Z] 3 info using<EMAIL_ADDRESS>[2024-06-06T18:25:11.822Z] 4 verbose npm-session f506dba647a9af28
[2024-06-06T18:25:11.822Z] 5 timing npm Completed in 395ms
[2024-06-06T18:25:11.822Z] 6 error cb() never called!
[2024-06-06T18:25:11.822Z] 7 error This is an error with npm itself. Please report this error at:
[2024-06-06T18:25:11.822Z] 8 error https://npm.community
[2024-06-06T18:25:11.822Z] 0 info it worked if it ends with ok
[2024-06-06T18:25:11.822Z] 1 verbose cli [ '/opt/node-v8.17.0-linux-x64/bin/node',
[2024-06-06T18:25:11.822Z] 1 verbose cli   '/opt/node/bin/npm',
[2024-06-06T18:25:11.822Z] 1 verbose cli   'view',
[2024-06-06T18:25:11.822Z] 1 verbose cli   '@salesforce/cli',
[2024-06-06T18:25:11.822Z] 1 verbose cli   'dist-tags.latest' ]
[2024-06-06T18:25:11.822Z] 2 info using<EMAIL_ADDRESS>[2024-06-06T18:25:11.822Z] 3 info using<EMAIL_ADDRESS>[2024-06-06T18:25:11.822Z] 4 verbose npm-session 29ed78e6017f63f5
[2024-06-06T18:25:11.822Z] 5 timing npm Completed in 392ms
[2024-06-06T18:25:11.822Z] 6 error cb() never called!
[2024-06-06T18:25:11.822Z] 7 error This is an error with npm itself. Please report this error at:
[2024-06-06T18:25:11.822Z] 8 error https://npm.community


securityadmin.sh should set to executable

All shell scripts in the plugins/opendistro_security/tools directory should be set to executable.

@jeff-cook Thanks for reporting! We'll take a look.

Have the same issue, when running on Openshift.
Have the following hack in my Dockerfile.
diff --git a/opendistro/elasticsearch/Dockerfile b/opendistro/elasticsearch/Dockerfile
index cf6101c..7d0b407 100644
--- a/opendistro/elasticsearch/Dockerfile
+++ b/opendistro/elasticsearch/Dockerfile
@@ -79,6 +79,12 @@ RUN for plugin_path in opendistro-sql/opendistro_sql-<IP_ADDRESS>.zip opendistro-aler
 # Make the certificate installer script executable. This script has to be executed before ES is started.
 RUN chmod +x /usr/share/elasticsearch/plugins/opendistro_security/tools/install_demo_configuration.sh

+# Remove chmod line in install_demo_configuration.sh script and make this in Dockerfile
+# root is needed for this execute chmod
+# GitHub-Issue: https://github.com/opendistro-for-elasticsearch/opendistro-build/issues/3
+RUN sed -i '/$SUDO_CMD chmod +x "$ES_PLUGINS_DIR\/opendistro_security\/tools\/securityadmin.sh"/d' /usr/share/elasticsearch/plugins/opendistro_security/tools/install_demo_configuration.sh && \
+    chmod +x /usr/share/elasticsearch/plugins/opendistro_security/tools/securityadmin.sh
+
 COPY --chown=1000:0 elasticsearch.yml log4j2.properties config/

 USER 0


[CT-3300] [Bug] dbt core process would stuck if error happens at certain stage

Is this a new bug in dbt-core?

[ ] I believe this is a new bug in dbt-core (this bug has been here for a while)
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
If dbt-core run into an issue at certain part of the execution, the core running process would stuck without moving forward or raise any exception.
This is painful for both

the user: has to cancel a command when it happens without knowing what really happened
the core maintainers: when developing and running into this we lost the fast feedback loop of being able to understand what went wrong and fixing it.

Expected Behavior
dbt-core should raise the exception in those parts of the execution and continue execution as much as possible and not get stuck.
Steps To Reproduce

in any dbt project, with a mounted version of core installed(via running make dev), make sure you can run dbt run.
update either print_start_line or print_result_line in ModelRunner to raise an exception( I did raise NotImplementedError("not implemented"))
run dbt run again
watch the running process get stuck

Relevant log output
No response
Environment
- OS:Mac
- Python:3.11
- dbt: latest main(1.8.0-a1)

Which database adapter are you using with dbt?
No response
Additional Context
No response

I have problems with running models with multiple threads. In my case, I have no problems to run the models with 1 thread.
But once more than 2 threads are used, the model running process just get stuck forever without any error message and I even can't stop it by ctrl+c. It is so weird that 20% percent of the time, it works with multiple threads. I do not know if this is also related to the issue you mentioned here. But currently, it is really annoying

Same problem. Is there any solution now?


[1.10.2, bug, breaking] machine denies to let any item enter through a tube (only at a given coordinate, restart solves temporarily)

all other possibilities (other tubes, machines, configurations and rotations) didn't change it. Only moving the machine into an adjacent block and doing some rewiring worked. Moving the machine back to it's original place made it stop accepting items again.
Server restart solved the problem temporarily.
Guess: Chunkloading issues

Should be fixed.


/api page 500s

TypeError
       at /api/

from_buffer() cannot return the address of a unicode object

Request Method: | GET
-- | --
http://sandbox-ng.ietf.org/api/
2.2.27
TypeError
from_buffer() cannot return the address of a unicode object
/a/www/ietf-datatracker/bs5/env/lib64/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py  in _bytes_to_bio, line 555
/a/www/ietf-datatracker/bs5/env/bin/python3.6
3.6.15
['/a/www/ietf-datatracker/bs5',  '/a/www/ietf-datatracker/bs5/env/bin',  '/usr/lib/python36.zip',  '/usr/lib64/python3.6',  '/usr/lib64/python3.6/lib-dynload',  '/a/www/ietf-datatracker/bs5/env/lib64/python3.6/site-packages',  '/a/www/ietf-datatracker/bs5/env/lib/python3.6/site-packages',  '/a/www/ietf-datatracker/bs5']
Fri, 11 Mar 2022 09:09:40 -0800

This is probably because the sandbox doesn't set API_PUBLIC_KEY_PEM correctly, but the code should do something other than 500 when that happens.

This isn't a bs5 regression.
This is indeed misconfiguration at the sandbox, and of a type we don't test for in views. (The issue is that settings_local there provides a unicode string rather than a bytes object). This could be something that  a 'check' could be added to validate, but such a check should probably be part of a more comprehensive settings check, which should come after reviewing the content of settings as a whole.
Of particular note - the datatracker does not actually sign anything with these keys. There is a commented out "worked example" at https://github.com/ietf-tools/datatracker/blob/7.46.0/ietf/group/models.py#L430.
So, these keys and this bit of the api help page should probably be removed.


Supporting GIFs and videos would be cool

though it only shows the first frame and not have it animated, you can add do this: https://github.com/ichinaski/pxl/commit/ad2aef8186536e63677d67c316f86d8c3ab7fee2


Use activationCommands instead of activationEvents

Use activationCommands instead of activationEvents in your package.json Commands should be grouped by selector as follows:
"activationCommands": {
    "atom-workspace": ["foo:bar", "foo:baz"],
    "atom-text-editor": ["foo:quux"]
  }

Called 1 time
Package.getActivationCommands - /usr/local/share/atom/resources/app.asar/src/package.js:810:9
Package.hasActivationCommands - /usr/local/share/atom/resources/app.asar/src/package.js:735:20
 - /usr/local/share/atom/resources/app.asar/src/package.js:189:24
Package.measure - /usr/local/share/atom/resources/app.asar/src/package.js:167:15

I created a PR #28 to address this.

PR was merged.


Select preferred binding on the configuration

pysaml2 supports the configuration option preferred_binding which is a map of services to array of preferred bindings for that service. Use the configuration instead of the currently hardcoded choices.
An example configuration would be the following:
  module: satosa.backends.saml2.SAMLBackend
  name: Saml2
  config:
    sp_config:
      preferred_binding:
        single_sign_on_service:
        - urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
        - urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST

This defines the preferred bindings for the SSO service, and is equivalent the code that was hardcoded before that is also the default behaviour of pysaml2. Changing the order of the bindings would use HTTP-POST instead of the HTTP-Redirect.
You can see the preferred_binding service names map here:
https://github.com/rohe/pysaml2/blob/master/src/saml2/config.py#L139-L156

LGTM
On Jul 19, 2017 17:26, "Ivan Kanakarakis"<EMAIL_ADDRESS>wrote:

pysaml2 supported the configuration option preferred_binding which is a
map of services to array of preferred bindings for that service. Use the
configuration instead of the currently hardcoded choices.
An example configuration would be the following:
module: satosa.backends.saml2.SAMLBackend
name: Saml2
config:
sp_config:
preferred_binding:
single_sign_on_service:
- urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
- urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST
This defines the preferred bindings for the SSO service, and is equivalent
the code that was hardcoded before. Changing the order of the bindings
would use HTTP-POST instead of the HTTP-Redirect.
You can view, comment on, or merge this pull request online at:
https://github.com/SUNET/SATOSA/pull/120
Commit Summary

Select preferred binding on the configuration

File Changes

M src/satosa/backends/saml2.py
https://github.com/SUNET/SATOSA/pull/120/files#diff-0 (7)

Patch Links:

https://github.com/SUNET/SATOSA/pull/120.patch
https://github.com/SUNET/SATOSA/pull/120.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SUNET/SATOSA/pull/120, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJzhKDUjUjJv-0L4hNu3zTlDznn5qsvpks5sPhINgaJpZM4Ocz3n
.

Note that this configuration option is undocumented on the pysaml2 side.
That should probably happen too.

Note that this configuration option is undocumented on the pysaml2 side. That should probably happen too.

Care to open an issue/PR there too ?

Yes, I will


[Feature]: ElvUI Skin Tweak

Describe the feature
As the unofficial ElvUI skin for BetterBags has ceased due to one being included in the base addon, one thing that is missing is having black icon outlines for all the items. Square 1 pixel outlines for every item icon in the bag would be nice. Maybe put it on a toggle for people who don't prefer it I guess but it'd match up super nice with various clean icon packs players use.
Describe the implementation
Include it in the base ElvUI skin for BetterBags

Hey hey,
Cidan confirmed today in the Discord that he is looking into icon buttons (and their outlines) skinning in the near future:

If my understanding of what he meant is correct, this should bring back the theming functionality that you're asking for.

That's great to hear, thank you for the informative response!

This was fixed in v0.1.71.


ISO/OSI info on homepage

Description
Added basic info about 7-layer model to be further explained later on in the web-app (source)
Checklist:

[x] Code follows the style guidelines
[x] Code commented in relevant places
[x] Changes to necessary documentation made
[x] Has test cases for code.

Tests Performed:

[x] Upload data to Datastore
[x] Retreive data from Datastore
[x] Map Visualization
[x] Network Map Visualization
[x] List other manual test cases performed

Looks good, maybe we can something to the left (Network Layer Packets)... that shows what protocols work on that layer.

Looks good, maybe we can something to the left (Network Layer Packets)... that shows what protocols work on that layer.

Added on the right hand side, but we can move that info around if it seems too crowded


How we can train languages other than Korean?

If you have dataset (audio & transcript), You can train, but you have to modify a few things.

First, you should make a character label like this.
Second, you have to convert transcripts to ids on character labels.
The code should be modified considering the structure of the dataset. (You will need to modify the kospech/data directory.)

If you have any other questions, please leave an issue at any time.

@sooftware can you please tell whats freq in aihub_labels.csv?

Freq is not very important. Freq (frequency) is a count of how often it appeared in a dataset.
Freq is not used in training, so you don't have to worry.

thanks,you are very helpful
i am new to this feild and there is no speech recognition available for my language urdu thats why i am trying to build urdu speech recognition system using this repo

It's a great honor. I want to help you as much as I can, so please leave an issue or contact me at<EMAIL_ADDRESS>at any time.
During the week, I may be busy and answer late, but I will answer as soon as possible on the weekend.

thanks


feat: Add to TimeLine Components

Since there is no such component in the current anu-vue, I implemented it myself
This is the current effect

I want the points in the graph to be replaced with replaceable icons, so, I still need to continue developing

This is a responsive layout component,This is a responsive layout component, which looks like this in the case of a narrow screen


feat: Allow cmd-/ (Mac) or ctrl-/ (Windows) to toggle playground comments

Resolves #3475
Docs: https://microsoft.github.io/monaco-editor/typedoc/interfaces/languages.LanguageConfiguration.html

Awesome! Very high impact-to-loc ratio :)

Works fine, thanks!


Add 'More from SUSE' to header

Description
Standardizes the header (placement of elements, More from SUSE, etc) to match other project docs sites. Also fixes the mixed usage of single and double quotes.

Are we also adding the project icons like in Nuno's PR? https://github.com/rancher/elemental-docs/pull/235

Are we also adding the project icons like in Nuno's PR? rancher/elemental-docs#235

The last time I spoke about this topic with Guna the plan was to use the plain version. I will check with Guna if we're moving to the style Nuno used as well as discussing the branding guidelines concern I brought up during the call last week.


Night mode toggle on header

Night mode is mostly requested feature after release, let's prioritize this.

Added it to end of user dropdown navbar.

What do you think?
or i can move it to before activities icon with this icon: https://fontawesome.com/v4.7.0/icon/eye/

@talhasch let's use https://fontawesome.com/v4.7.0/icon/lightbulb-o/ or https://fontawesome.com/v4.7.0/icon/moon-o/ and move for quick access
and also please make those icons slightly smaller

Night mode button moved to top navbar https://github.com/eSteemApp/esteem-surfer/commit/9b741feef7944eb7c4e9eb06cd5f140dd118554f


input from stdin, batch of commands

could be useful to accept command  from standard input and run more commands in one az command
echo "vm list" | az
cat batch.txt | az
or even internal repl loop
$ az

vm list
...
vm start

You should be able to use the @file syntax to accomplish some of these. Use @~ to load from stdin.

thanks but both are not working - ubuntu 14.04, azure-cli (2.0.0)
~$ echo vm list --output table >azinput.txt
~$ az @azinput.txt
az: error: argument _command_package: invalid choice: u'vm list --output table' (choose from 'sql', 'redis', 'batch', 'network', 'iot', 'account', 'group', 'appservice', 'documentdb', 'resource', 'storage', 'vm', 'feature', 'snapshot', 'cloud', 'vmss', 'policy', 'keyvault', 'logout', 'container', 'role', 'acs', 'feedback', 'ad', 'provider', 'disk', 'component', 'lock', 'configure', 'tag', 'image', 'login')
usage: az [-h] [--output {json,tsv,table,jsonc}] [--verbose] [--debug]
[--query JMESPATH]
{sql,redis,batch,network,iot,account,group,appservice,documentdb,resource,storage,vm,feature,snapshot,cloud,vmss,policy,keyvault,logout,container,role,acs,feedback,ad,provider,disk,component,lock,configure,tag,image,login}
~$ echo vm list --output table | az @~
[Errno 21] Is a directory: '/home/user'
Traceback (most recent call last):
File "/home/user/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/main.py", line 37, in main
cmd_result = APPLICATION.execute(args)
File "/home/user/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/application.py", line 90, in execute
argv = Application._expand_file_prefixed_files(unexpanded_argv)
File "/home/user/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/application.py", line 242, in _expand_file_prefixed_files
return list([Application._expand_file_prefix(arg) for arg in argv])
File "/home/user/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/application.py", line 238, in _expand_file_prefix
return Application._maybe_load_file(arg_split[0])
File "/home/user/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/application.py", line 228, in _maybe_load_file
return Application._load_file(poss_file)
File "/home/user/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/application.py", line 250, in _load_file
allow_binary=True)
File "/home/user/lib/azure-cli/local/lib/python2.7/site-packages/azure/cli/core/_util.py", line 117, in read_file_content
with codecs_open(file_path, encoding=encoding) as f:
File "/home/user/lib/azure-cli/lib/python2.7/codecs.py", line 878, in open
file = builtin.open(filename, mode, buffering)
IOError: [Errno 21] Is a directory: '/home/user'

the interactivity part is now solved by az-shell which is now integrated into 'az interactive' command.  The input from standard input or file still does not work, just tried azure cloud shell in portal
f@Azure:~$ echo vm list >file
f@Azure:~$ echo vm list | az @file
az: error: argument _command_package: invalid choice: vm list
usage: az [-h] [--output {json,tsv,table,jsonc}] [--verbose] [--debug]
[--query JMESPATH]
{keyvault,image,account,postgres,feedback,functionapp,cloud,acr,network,configure,resource,cognitiveservices,monitor,cdn,group,component,storage,managedapp,find,iot,batch,mysql
,vm,interactive,login,disk,ad,webapp,cosmosdb,sf,redis,feature,policy,acs,snapshot,logout,provider,lab,sql,dls,appservice,lock,vmss,tag,role,dla}
...

Related to #1398.  Also, the syntax should be az --blah @- not ~, but I have confirmed that this isn't working currently.

While piping an id list specifically is not supported, the @- syntax to pipe from STDIN is working as intended.


Full featured Git client maybe as an optional feature

📝 Provide a description of the new feature
What is the expected behavior of the proposed feature?  What is the scenario this would be used?
A full-featured Git client integrated into PowerToys.
Not all PowerToys users are developers. So this PowerToy can be an optional one where you can choose to install it when you install PowerToys or decide to install it later. All other PowerToys would still be available
If you'd like to see this feature implemented, add a 👍 reaction to this post.

How do you see this for you? I see the following possibilities:

Made available through PT run as a separate plugin. I would not recommend this because the functionality of folder should be in the Folder plugin
make a extra entry in the Folder plugin. In case of a folder it can scan if it is a git repository.

The question remains for the following things:

What git client are we going to support? The following cases could be implemented.

Preinstalled and discovered entry in path (git.exe).
Wsl git client discovery
Embed a git client (not preferred)

How are we going to detect a git repository.

git.exe is has a command git rev-parse. Call this for every folder? Max folders scanned would be the display setting when there are a lot of folders returned?
scan for .git folder, than try git client information.

What do we want to display?

Current Branch (local and remote).
Incoming changes up/down
Git file stats (changed, renamed, added, removed)
Current hash
... More?

What actions do we want to support?

Git push
Git pull
Git fetch
jump into repository (git repo root folder? Current folder?)

How many times do we want to display. Only root folder of every folder?

I'm for this addon, but there is some implementation details that would be essential.

Well I am not an expert in the technical side of things, but I can give you some ideas:

Visualize Git History (like this VS Code extension)
A button to open your shell in the repo folder (Preferably in the Windows Terminal)
All those actions like git push, git clone, git fetch and ability to change branches (a drop-down list would be fine.)
See File changes, uncommitted files and other file stats
A button to open your Text Editor or IDE (like VS or VS Code) in that folder or solution.
Smoothest possible integration with WSL (I had trouble with line ending stuff)
Ability to run Git commands as you would type in a shell

How are we going to detect a git repository?
Well let the users add folders and then check whether it is a git repository. Kind of like GitHub Desktop.

I think the Git client should have a different window and "app" in the Programs list in the Start menu. But the settings might be in PT windows. I think users should have the option to install the git client when running the MSI or to download and install it later in PT windows itself. I don't install any other plugins for PT. That's why I am saying to implement it this way

Here an example (don't mind the ugly color problems) this is just a start mockup. Yes I'm not a graphic designer

That is cool but I also like to have a window. Ability to run git commands from PT run would be cool

Maybe add a button that brings you into an interface into the client. That way there is also an extra window (or when you execute it that it opens it)

Maybe add a button that brings you into an interface into the client. That way there is also an extra window (or when you execute it that it opens it)

Yes, That's cool

Maybe add a button that brings you into an interface into the client. That way there is also an extra window (or when you execute it that it opens it)

Are you going to implement it?

Maybe, but before it can be developed there should be a plan for it. Than someone of the PowerToys team can give green light to implement it.

Maybe, but before it can be developed there should be a plan for it. Than someone of the PowerToys team can give green light to implement it.

Ok

@P-Storm It would be awesome if you can add Open with Visual Studio Code or Open with Visual Studio (depending if the repo has solution file) buttons in PT Run

The problem with this is that everyone want a different open with command, and sometimes it is repository dependent.
To open it in visual studio code you have to scan if vscode is available on the machine. Than you don't know if vscode can do something with the source directory.
So the question is, how are we gonna support open with x for all possible repositories. And there is no default way to open a repository for any kind of language/repository).
Yes we can build detections like, if a git repository has a root file matching the pattern *.sln open a c# solution. But what if a repository has multiple solution files? Or what if your repository has its solution file not in root, and have other code in there aswell?
And how about other languages, like rust, c, java, go, etc. Or how is it with a markdown only repository, how should we open that?
I think it will be hard to implement the button action.

@P-Storm Ok
Then we can implement a run command in directory
where you can type in code and it will be executed as code . If you add arguments to the command, the "." argument will not be executed

Unfortunately I don't think that VS is in Path which will make it difficult to open a VS solution

@P-Storm No one from the PowerToys team has commented on this issue. Are we supposed to ping someone?

@enricogior please look at this issue

this issue was opened Friday night so just seeing it on Monday morning is acceptable.
We won't do a Git client.  You can quickly get one via WinGet.

winget install git


ObservableBatchCollection.Reset

Before
items.Clear();
items.AddRange(newItems);

After:
items.Reset(newItems);

Not sure what to name it.

Perhaps something like ReplaceContents or ReplaceContentsWith(newItems) ?


Please remap F4 to the same action as in the formula bar

Hello again! Muscle memory makes me press F4 with the caret over a range when I want to cycle between absolute and relative references. That's standard Excel behavior for formula editing since forever, but the AFE uses F4 for enabling the selection of a range. It would be better if that feature had a different unused hotkey, say F6.
Also, the current select cell feature is limited. If you enter the select range mode and click on a cell, the reference changes without any animation or anything, the active cell changes, but the AFE remains in the edit mode of the original cell. So it is very confusing, sometimes it seems as if the formula in the AFE changed because I moved from the original cell. Perhaps a visual cue would make it less jarring.

Hello! This is useful feedback. You're right, I chose F4 kind-of at random. Ideally the shortcut to enter cell-ref-edit mode would be F2, because that's what the formula bar uses, but unfortunately, that was taken by "rename" in the AFE editor.
I'm considering changing it so:

F2 is "enter cell-ref-edit mode" to match Excel
F4 is "change absolute/relative refs" to match Excel
F6 is rename-named-formula

We'll consider what makes most sense.

Internal ticket: CalcIntel #30674


Setting cookie to reply causes API Gateway v1 to return 500

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the bug has not already been reported

Fastify version
3.19.1
Plugin version
No response
Node.js version
14.19.2
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
10
Description
When setting a cookie in the reply by using reply.setCookie() from @fastify/cookie package, the proxy adds a cookie property to the lambda response.
The response payload with the cookie property does not respect API Gateway v1 format and therefore API Gateway always returns a 500 error.
Example response that causes the API Gateway V1 to error:
{
  "statusCode": 200,
  "body": "<!DOCTYPE html><title>Test</title>",
  "headers": {
    "content-type": "text/html; charset=utf-8",
    "content-length": "1024",
    "date": "Mon, 30 May 2022 16:40:00 GMT",
    "connection": "keep-alive"
  },
  "isBase64Encoded": false,
  "cookies": [
    "MY_COOKIE=value; Expires=Mon, 30 May 2022 17:00:00 GMT",
    "OTHER_COOKIE=other; Expires=Mon, 30 May 2022 17:00:00 GMT"
  ],
  "multiValueHeaders": {
    "set-cookie": [
      "MY_COOKIE=value; Expires=Mon, 30 May 2022 17:00:00 GMT",
      "OTHER_COOKIE=other; Expires=Mon, 30 May 2022 17:00:00 GMT"
    ]
  }
}

Example response that works well with the API Gateway V1 :
{
  "statusCode": 200,
  "body": "<!DOCTYPE html><title>Test</title>",
  "headers": {
    "content-type": "text/html; charset=utf-8",
    "content-length": "1024",
    "date": "Mon, 30 May 2022 16:40:00 GMT",
    "connection": "keep-alive"
  },
  "isBase64Encoded": false,
  "multiValueHeaders": {
    "set-cookie": [
      "MY_COOKIE=value; Expires=Mon, 30 May 2022 17:00:00 GMT",
      "OTHER_COOKIE=other; Expires=Mon, 30 May 2022 17:00:00 GMT"
    ]
  }
}

I tried to fiddle with the code and everything works well when I comment the following line in index.js: https://github.com/fastify/aws-lambda-fastify/blob/b9ec2486c192048c87857ef93650d31695f0cb8c/index.js#L121
Here are the response format for API Gateway: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
Steps to Reproduce
setup a lambda behind an API Gateway v1.
call reply.setCookie('cookieName', 'value') in the lambda code
api gateway returns error 500
Expected Behavior
cookies property should not be present in the lambda response payload when using API Gateway V1
Only the Set-Cookie headers must be present in the lambda payload response when using API Gateway V1

v2.1.3 should fix this

I can confirm 2.1.3 fixes the issue. Thanks

Actually @adrai, set-cookie headers are not sent anymore with 2.1.3
It seems the version property is not set in API GW v1 events. Only in v2.
So this condition is never true:
if (multiValueHeaders && event.version === '1.0') ret.multiValueHeaders = multiValueHeaders

API GW v2 event: https://github.com/awsdocs/aws-lambda-developer-guide/blob/main/sample-apps/nodejs-apig/event-v2.json
API GW v1 event: https://github.com/awsdocs/aws-lambda-developer-guide/blob/main/sample-apps/nodejs-apig/event.json

v2.1.4 should be better

I now have the set-cookie headers with 2.1.4 when I have multiple set-cookie headers.
When setting only one set-cookie header though, it does not appear in the response.
I believe it is because of this line:
https://github.com/fastify/aws-lambda-fastify/blob/5ce40d2a94a74d8d6c83f883b67c2d9e6c3f2ce5/index.js#L107
I checking if event.version === '2.0' before deleting the header would work.

v2.1.5 ?

It works with one set-cookie header but API GW returns error 502 when setting multiple set-cookie headers 🤔

v2.1.6


Investigate if we really need TypeResolver at all

While working on a side project I realized that resolveType() is not called anywhere, so it's pointless to provide a more complex implementation than return null;.

It's really weird to me, why we even refactory the TypeResolver class but we've never used it before? :-?

@hungneox it seems like it's being used in the 1.4.x version of the library, but not in 1.5 and newer which is what we have here.


Can only buy/sell whole coins

Can only buy/sell whole coins in strategy

Thank your for submitting this issue. We are aware of it, and we plan to address it in the next release.

Issue fixed in commits 48143d3 and e5a137f and released as part of 0.2.dev3.


Added Website Bandwidth Extension

Description
A simple extension that tells you your website bandwidth
Fixes:  #1174

Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] I have made this from my own
[x] I have taken help from some online resourses
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

Made the changes. Please review my pull request @Sulagna-Dutta-Roy


[agent-js-cucumber] Total TestCase count is reflecting incorrectly

Hello @AmsterGet and Team,
I ran the sample project you have provided with the command npm run example:simpleTestWithRetries
And I get the expected below results with Total of 10 Tests, 8 passed and 2 failed:

Now i made the below minor change in the stepDef file.
When("I ask whether it's Friday yet", function() {
this.actualAnswer = isItFriday(this.today);
throw new Error('Check Failed')
});
Now I run the same command again expecting the results as -> Total 10 Tests, 5 passed and 5 failed (3 extra failures compared to above as the particular scenario has 3 examples)
But instead i get -> Total 12 Tests, 5 passed and 7 failed.

Example 1 - retry 3 (considered as 1 test)
Example 2 - 1st attempt (Fail) (considered as 1 test)
Example 2 - 2 retries (Both Fail) (considered as 1 test)
Example 3 - 1st attempt (Fail) (considered as 1 test)
Example 3 - 2 retries (Both Fail) (considered as 1 test)
Hence instead of 3 tests - we get 5 here :(
Could you please guide me!!
Thanks,
Deepalee Khare

Closed because the reporter's account has been deleted.


Add UI to edit scenario user values

I think we should add a UI to the ETEngine admin section allowing an authenticated user to edit the values of a scenario.
With the current system it's too easy to make mistakes such as:

YAML syntax errors
Failing to balance groups
Specifying values already in the balanced_values column
Exceeding the min/max values, making it impossible to correctly update the scenario through the ETM
Possible accidental deletion of other data

Including @dennisschoenmakers and @ChaelKruip.

Very much in favor!

With the current system

The current system actually consists of two systems:

Editing a scenario through for example here (which is the 'somewhat' correct way 😅).
Editing through Sequelpro (which gives me nightmares). I can't stress this enough: editing scenarios (especially on beta or production environments) directly in Sequelpro is a really bad idea. The reason why I'm telling this - is that when things get destroyed by accident or somebody mistypes a comma, or a number - is that debugging becomes really really hard (timestamps don't update, there are no logs, etc.). Also I think the people who use this to edit their scenario aren't aware that there is option number 1.

Editing a scenario through for example here

I was not aware that we had this option! 😬


resolve nil pointer deference if kubectl context doesn't exist, fixes…

… #23000
Signed-off-by: zillani shaik<EMAIL_ADDRESS>

Hi @zillani. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/ok-to-test

@zillani: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
b0963ba88bf4d07491a28aa496dd20e2eec7f7cb
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@zillani: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
b0963ba88bf4d07491a28aa496dd20e2eec7f7cb
link
/test lint_istio

unit-tests_istio
b0963ba88bf4d07491a28aa496dd20e2eec7f7cb
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Ruby makers should attempt to use Bundler when available

This one is hard to reproduce if you’re not using projects with multiple incompatible versions of Rubocop (this isn’t hard because they’re always changing the keys for .rubocop.yml), but a good default InitForJob for Ruby would help substantially here.
Expected behavior
The neomake rubocop maker uses my project-local Rubocop configuration, which may be a different version and support different configuration keys than the latest version I have installed.
Steps to reproduce

gem install rubocop so that you have the latest version installed in your Gem path.

Create a new project that contains the following files:

Gemfile:

gem 'rubocop', '~> 0.49.0'

.rubocop.yml:

Style/FileName:
  Enabled: true

Edit Gemfile. You will probably get Rubocop errors (not errors about the code) about the namespacing of Style/FileName and how it should be Naming/FileName. This is true for recent versions of RuboCop, but not true of earlier versions.

Suggested Remediation
My best suggestion is pretty awful, because it may read and scan the Gemfile for every Ruby job (it does have an escape hatch for folks who generate Bundler binstubs). Ideally, this is part of autoload/neomake/makers/ft/ruby.vim, and is opt-out (because most folks who have a Gemfile will want it to be used).
I don’t use neovim, so I don’t know if the lambda format that I’ve used will work—so this would need some probably tweaking for inclusion.
function! s:maybeUseBundler(jobinfo) abort
  let l:gemfile = findfile('Gemfile', '.;~') " This could be project-root/Gemfile
  if len(l:gemfile) > 0
    if executable('bin/' . self.exe)
      let self.exe = 'bin/' . self.exe
    elseif executable('exe/' . self.exe)
      let self.exe = 'exe/' . self.exe
    elseif !empty(filter(readfile(l:gemfile), { line -> line =~# 'gem\s+[''"]' . self.exe }))
      let self.args = ['exec', self.exe] + self.args
      let self.exe = 'bundle'
    endif
  endif
endfunction

call neomake#config#set('ft.ruby.InitForJob', function('s:maybeUseBundler'))

It won’t work if someone uses an oddball specification for the gem (e.g., gem %(rubocop) or gem %q(rubocop)), but it will (and does) respect the bundle otherwise (this version is a translated version of the one that I wrote, where I use a couple of helper functions that I wrote).
This should probably be automatic.

I think the matching for the gem could be improved, e.g. line =~# '\V^\sgem\s\+\.\*'.escape(self.exe, '\') (or similar).
Are bin/ and exe/ prefixes used by bundle, or something curstom you're using (I use bin subfolders myself).
Would it work to only look for a Gemfile and then use bundle exec always?

From bundle help binstub:

Generate binstubs for executables in [GEM]. Binstubs are put into bin, or the --binstubs directory if one has been set.

We can certainly use bundle exec, but you must scan the Gemfile for the gem (and hope that the maker's exe matches the gem name, which for all of the existing Gem-based makers it does) because if you attempt to bundle exec reek, but don’t have reek in your Gemfile, you will get a failure (whereas reek will work on its own).
The goal of checking for bin/{exe} is that if you have created a binstub, you have the gem in your Gemfile and we don’t have to scan the Gemfile.
I have seen exe/ used by some projects instead of bin/, but I’m not particularly attached to that particular test.

The use of 'bin/' . self.exe here is not to override $PATH, it’s to skip scanning the Gemfile, because chances are bin/rubocop is a generated bundler binstub that does the exact same thing as running bundle exec rubocop. Doing a stat on a file is cheaper than doing a read + scan a file. I put the bin/maker test in so that the more expensive operation (read+scan) would not be performed if the cheaper test succeeds.
If we put it <project_root>/bin in $PATH and remove the bin/maker test, we will always read + scan the Gemfile, and then always execute with bundle exec maker if it is in the Gemfile. The scan is required because if rubocop isn’t in your Gemfile, then bundle exec rubocop will fail.

I've meant to just adjust your $PATH already, without anything that is done in this PR - this would already use rubocop etc via the generated stubs directly.
This is what is done usually when activating a Python virtualenv: you add it to the $PATH and therefore tools are used if installed in there, otherwise any globally installed is used.

Ah. I could certainly do that; it’s not how I normally like to run the binstubs, but I also don’t know how common the use of binstubs actually is amongst Ruby users (as I said on the other issue I raised, I think that many of the Rubocop defaults are wrong and that these young whippersnappers need to get off my lawn). So I think that the changes I’ve suggested here are generally applicable to most Ruby projects, and the bin/ escape hatch is exactly that.
I already have this working for myself so it’s not much bother either way for me.

Bump. If you’d like, I can make a PR for this either with or without the binstubs shortcut. This will make Rubocop and other makers work better for more Rubyists.

Were this certainly would help is when you are editing files from different projects in the same session, and updating $PATH per window etc is not really an option (nor feasible).
A bit related: https://github.com/neomake/neomake/pull/2062


Latest hadoop distros

HDP 2.6.3 and CDH 5.13.1
tested manually with create, insert and select

Travis job timed out :/

.. unless the new ones are tested before the old ones. Then we may simply run out of time on travis and need to turn the build into a matrix.

Please make sure that tests pass.

Travis fails. I'm going to re-review after you squash (i lost context already ;) )

once I get this in, I will release v3 of the images


Podman Atom support

Addresses: https://github.com/caesium-cloud/caesium/issues/42

Codecov Report

Merging #45 (35ee77f) into develop (c1ec3ae) will increase coverage by 3.26%.
The diff coverage is 54.79%.

:exclamation: Current head 35ee77f differs from pull request most recent head 0a6cbc2. Consider uploading reports for the commit 0a6cbc2 to get more accurate results

@@             Coverage Diff             @@
##           develop      #45      +/-   ##
===========================================
+ Coverage    39.59%   42.85%   +3.26%
===========================================
  Files           15       18       +3
  Lines          586      728     +142
===========================================
+ Hits           232      312      +80
- Misses         350      411      +61
- Partials         4        5       +1

Impacted Files
Coverage Δ

api/rest/service/atom/atom.go
0.00% <0.00%> (ø)

api/rest/service/job/job.go
0.00% <0.00%> (ø)

api/rest/service/task/task.go
0.00% <0.00%> (ø)

api/rest/service/trigger/trigger.go
0.00% <0.00%> (ø)

internal/atom/docker/atom.go
100.00% <ø> (ø)

internal/atom/podman/podman.go
0.00% <0.00%> (ø)

internal/job/job.go
0.00% <0.00%> (ø)

internal/models/atom.go
0.00% <ø> (ø)

pkg/env/env.go
100.00% <ø> (ø)

internal/atom/podman/engine.go
84.21% <84.21%> (ø)

... and 1 more

Continue to review full report at Codecov.

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


Feature/variant

I'd really like to merge this change in the variant implementation for json, but it will break on Ubuntu bionic when building with clang against libstdc++ (gnu) due to a clang bug.

These branches work fine for Android, so I think libc++ is OK.


shouldComponentHydrate

View formatted RFC
This RFC seeks to add the capability for a component subtree to opt out of rehydration diffing.

Further motivation for this is content that can't be hydrated at the client at all, e.g. when SSR involves significant work or additional data (such as data lookup, localization or large legacy libraries), or the content itselv is too large and sending a duplicate for hydration is prohibitively expensive.

Note that the current behavior of dangerouslySetInnerHTML is to keep the current content when the content being set is different. In combination with suppressHydrationWarning it produces the desired behavior already.
<div
    dangerouslySetInnerHTML={{
        __html: ''
    }}
    suppressHydrationWarning
/>

See a working example her: https://codesandbox.io/s/zx38ow3z8x
One obvious alternative is to document this behavior and commit to preserving it.

The next step in the RFC process is

Build consensus and integrate feedback. RFCs that have broad support are much more likely to make progress than those that don't receive any comments.

It appears that there is a consensus here (of all the people who paid attention so far) that this is a useful performance feature and its implementation is straightforward. What needs to happen for it to become a reality?

+1
Can help page load performances & eliminate potential FOUC.
Implementation is straightforward and inline with React lifecycle methods.
All for it

Some guidance from core at this point would be useful as to how such a feature should be implemented. Not sure if it’s standard to tag people though

Note that the current behavior of dangerouslySetInnerHTML is to keep the current content when the content being set is different. In combination with suppressHydrationWarning it produces the desired behavior already.

<div
    dangerouslySetInnerHTML={{
        __html: ''
    }}
    suppressHydrationWarning
/>

^ Very interesting, wasn't aware of suppressHydrationWarning and the non-replacement behavior. I think that method could work for some specific use cases.
What I'm really looking for here is a first-class way to opt out of rehydration, while still allowing the content to potentially change in the future in future render passes. That's the blend of behavior that works best for an SSR->client side async component workflow without unload/load flashing, etc.

@jciolek actually yes I think that might work.

suppressHydrationWarning seems to only work for text. Real Ad libraries would most probably modify some DOM nodes, insert images, etc. React would still go ahead and clear out those nodes.

I think the innerHTML thing is probably the way to go for now.
For anyone looking for the inverse problem where you only want to render something on the client, Partial Hydration will provide a mechanism for that. The server can render a Suspense boundary with a permanent fallback in the HTML. In fact, I think that's probably what the synchronous server renderer will do by default if the server suspends a component. That will cause the client to throw it out and render the content client side.
You can kind of do the thing where you leave the HTML in place with partial hydration since it doesn't actually have to hydrate everything to be interactive. You can simply suspend by throwing a Promise that never resolves. The issue is that if any Context above that component changes, we'll throw out the content and trigger the fallback. Because that Context might have changed the HTML.
Ultimately, I think we'll want a way to pass rendered content as some kind of JSON object from the server. In a way that can be passed around and just rendered in the tree. Ideally with some embedded child components.
<div>{serverStuff}</div>

If that was server rendered, maybe that data can simply refer to the HTML that was already sent instead of duplicating the HTML.

Thanks for the RFC, and sorry for a very late review (https://github.com/reactjs/rfcs/issues/182).
Quoting the motivation:

When working in a code splitting context, this becomes very important because what is immediately available on the server may not be on the client. A specific example of a typical SSR + code splitting flow:

ReactDOMServer renders a complete page to string and sends it to the browser via some means
React in the browser rehydrates, but one or more component children in the tree are meant to be asynchronously-loaded in the browser context.
When the code splitting component is mounted, this temporarily causes the pre-rendered subtree to be discarded since the asynchronously-loaded child has not yet been downloaded.
When the child JS downloads, the code splitting component then enqueues a re-render and the child appears again.

We have a first-class solution to this now, which you can read about here: https://github.com/reactwg/react-18/discussions/37. In particular, it allows code splitting to seamlessly work with SSR, and partially hydrate the page as the code loads. There is a demo there that you can play with.
There may be other related problems, so there may still be a space for additional related RFCs. But I'll close this one.