Issue with Create VM

Running through doc step by step. Issue is "New-AzVm : Windows admin user name cannot be more than 20 characters long, end with a period(.)"
PS C:\Users\shpopov\OneDrive - Microsoft\Projects\TechDocs\DevOps\Packer> .\createvm-02.ps1
cmdlet New-AzVM at command pipeline position 1                                                                                Supply values for the following parameters:                                                                                Credential                                                                                New-AzVm : Windows admin user name cannot be more than 20 characters long, end with a period(.), or contain the following characters: \ / " [ ] : | < > + = ; , ? * @.                                                                     At C:\Users\shpopov\OneDrive - Microsoft\Projects\TechDocs\DevOps\Packer\createvm-02.ps1:4 char:1                                                                                + New-AzVm `                                                                                + ~~~~~~~~~~                                                                                + CategoryInfo          : CloseError: (:) [New-AzVM], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.NewAzureVMCommand
PS C:\Users\shpopov\OneDrive - Microsoft\Projects\TechDocs\DevOps\Packer>

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

ID: 1bb18731-b0b4-f92b-7ece-031a84c76d7b
Version Independent ID: 27047a2a-a07b-cadb-fab5-ecc928b46717
Content: How to create Windows VM Images with Packer in Azure
Content Source: articles/virtual-machines/windows/build-image-with-packer.md
Service: virtual-machines-windows
GitHub Login: @cynthn
Microsoft Alias: cynthn

createvm-02.ps1 :
$rgName = "az900-devops"
$location = "eastus"
New-AzVm     -ResourceGroupName $rgName
-Name "packeri01vm02"     -Location $location
-VirtualNetworkName "az900-devops-vnet02"     -SubnetName "az900-devops-vnet01-snet02"
-SecurityGroupName "az900-devops-nsg02"     -PublicIpAddressName "az900-devops-pip02"
-OpenPorts 80 `
-Image "/subscriptions/xxx/resourceGroups/az900-devops/providers/Microsoft.Compute/images/az900-devops-packeri01"

FYI, same issue when running ps commands interactively.
And her is the windows.json
{
"builders": [{
"type": "azure-arm",
"client_id": "xxxxxxxxx",
"client_secret": "xxxxxxxx",
"tenant_id": "xxxxxxxxx",
"subscription_id": "xxxxxxx",

"managed_image_resource_group_name": "az900-devops",
"managed_image_name": "az900-devops-packeri01",

"os_type": "Windows",
"image_publisher": "MicrosoftWindowsServer",
"image_offer": "WindowsServer",
"image_sku": "2016-Datacenter",

"communicator": "winrm",
"winrm_use_ssl": true,
"winrm_insecure": true,
"winrm_timeout": "5m",
"winrm_username": "packer",

"azure_tags": {
    "dept": "Engineering",
    "task": "Image deployment"
},

"location": "East US",
"vm_size": "Standard_DS2_v2"

}],
"provisioners": [{
"type": "powershell",
"inline": [
"Add-WindowsFeature Web-Server",
"& $env:SystemRoot\System32\Sysprep\Sysprep.exe /oobe /generalize /quiet /quit",
"while($true) { $imageState = Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\State | Select ImageState; if($imageState.ImageState -ne 'IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE') { Write-Output $imageState.ImageState; Start-Sleep -s 10  } else { break } }"
]
}]
}

Also can build the image ok from portal, but do need to specify a uname and pw for the vm

@SharmainePopov After running New-AzVm command, you should be prompted to enter an administrative username and password to be created on the VM.
From the error message it looks like the admin user name requirements are not met:

Windows admin user name cannot be more than 20 characters long, end with a period(.)

Can you please confirm that you are meeting username requirements as specified above?
We can look into it deeper, if that's not the case.

Nevermind solved. Please close.

Hi yes I know. I was entering the wrong creds. You can close this. Thanks for taking time to respond.
Sharmaine Popov
Cloud Solution Architect |Microsoft Canada Inc. | sharmaine.popov<EMAIL_ADDRESS>|<PHONE_NUMBER>
From: Karishma Tiwari - MSFT<EMAIL_ADDRESS>Sent: Thursday, June 13, 2019 2:25 PM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Sharmaine Popov<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Issue with Create VM (#33267)
@SharmainePopovhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSharmainePopov&data=02|01|Sharmaine.Popov%40microsoft.com|d53340fcd88e49b0f4f808d6f02c6add|72f988bf86f141af91ab2d7cd011db47|1|0|636960470894547249&sdata=dhZuzJw53%2B8w3P%2FS3BUOPOSkP56pWzTfn9o7bsCKlDE%3D&reserved=0 After running New-AzVm command, you should be prompted to enter an administrative username and password to be created on the VM.
From the error message it looks like the admin user name requirements are not met:
Windows admin user name cannot be more than 20 characters long, end with a period(.)
Can you please confirm that you are meeting username requirements as specified above?
We can look into it deeper, if that's not the case.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F33267%3Femail_source%3Dnotifications%26email_token%3DAIIVNWVXH6DKQOO4PZJNHSLP2KGG7A5CNFSM4HX3TZ6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXUT2ZA%23issuecomment-501824868&data=02|01|Sharmaine.Popov%40microsoft.com|d53340fcd88e49b0f4f808d6f02c6add|72f988bf86f141af91ab2d7cd011db47|1|0|636960470894547249&sdata=Jvy%2Fo3xD0BfrgHPeMeiyIQxYljql2LZ8oCavfaypxJA%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAIIVNWTDC3DEEVC5U5CS34LP2KGG7ANCNFSM4HX3TZ6A&data=02|01|Sharmaine.Popov%40microsoft.com|d53340fcd88e49b0f4f808d6f02c6add|72f988bf86f141af91ab2d7cd011db47|1|0|636960470894557249&sdata=SV7iJlimalLYt6U57QqPkfFi8Z2ud1EQPKwHRyI0V3w%3D&reserved=0.

#please-close


Don't try to merge undefined Broccoli tree

treeForVendor(vendorTree)  {
// fix for vendorTree maybe undefined
}

Looks fine to me!


Expose the method of boolean query

Added the Occur enum, Query.boolean_query method and corresponding tests.
Expected usage:
@staticmethod
def boolean_query(subqueries: Sequence[tuple[Occur, Query]]) -> Query:
    ...

Query.boolean_query([(Occur.Must, query1), (Occur.MustNot, query2), (Occur.Should, query3)])

Important Changes

Added a wrapper struct struct OccurQueryPair(Occur, Query) which lives in the lifetime of the python object subqueries for parsing list of tuple of Occur and Query
Added the Clone implementation of Query class for the extract() method to extract Query class from the PyTuple

Thanks!


Update cross-tenant-mailbox-migration.md

Updated the service plans that were missing
Per issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/9243

@JohanFreelancer9 Please copy review

Docs Build status updates of commit 2ea8c8b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/enterprise/cross-tenant-mailbox-migration.md
:white_check_mark:Succeeded

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

@kelleyvice-msft Please merge this PR. Thanks

Docs Build status updates of commit e8a485f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/enterprise/cross-tenant-mailbox-migration.md
:white_check_mark:Succeeded

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


Authentication and security - Java code example in this page fails

There are 3 problems in the Java code in this page, specifically this code:
import java.io.Console;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Base64;
import java.nio.charset.StandardCharsets;

public static Boolean headerMatchesEnvVar(String headerValue) throws NoSuchAlgorithmException {
    MessageDigest digest = MessageDigest.getInstance("SHA-256");
    String envVar = System.getenv("WEBSITE_AUTH_ENCRYPTION_KEY");
    String hash = new String(Base64.getDecoder().decode(digest.digest(envVar.getBytes(StandardCharsets.UTF_8))));
    return hash == headerValue;
}

It fails when trying to perform Base64.getDecoder().decode with the following Exception:
java.lang.IllegalArgumentException: Illegal base64 character -5f
It should instead activate Base64.getEncoder().encode as follows:
String hash = new String(Base64.getEncoder().encode(digest.digest(envVar.getBytes(StandardCharsets.UTF_8))));
The expression hash == headerValue returns false even if the Strings have the same value.
It should be changed to hash.equals(headerValue)
There is an unnecessary import java.io.Console

Thanks in advance,
aitzhak
[Enter feedback here]

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

ID: 20c42a13-f6cb-1e60-0438-f7f32b86a336
Version Independent ID: 79e7dd15-24aa-2e6d-cee7-7714e1940c11
Content: Monitor the health of App Service instances - Azure App Service
Content Source: articles/app-service/monitor-instances-health-check.md
Service: app-service
GitHub Login: @msangapu-msft
Microsoft Alias: msangapu

@aitzhak
Thanks for your feedback! We will investigate and update as appropriate.

#needs-sme-input

@msangapu-msft can we assign this to @denverbrittain

#re-assign: denverbrittain

@msangapu-msft  The PR was merged to update the code with the corrections

#please-close based on @jeffwmartinez comment this is now fixed


A diagnosis from the argument clinic

Previously, if an argument to an @available attribute was duplicated, the first value would be silently dropped. With this change, the compiler produces a warning instead. (We emit a warning instead of an error to preserve source compatibility.)
Resolves rdar://problem/46348825.

@swift-ci please smoke test


[FR] Adding option for mouse Modifier

Hello, could you consider adding an option in Plugin's Setting, to change the "Open Pop-up" method?
For example, now it uses "Mouse Left Button", I hope to use "Ctrl + Mouse Left Button".

Kind of like the settings of "Image Toolkit" Plugin:

Just a suggestion, and absolutely no pressure for it, you could decide if it's necessary !

Added.


🐞[bug]: Improve text boxes gap & Header position

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
When the cursor is moved to the "Retro Vibe is Good Vibe" text box, the text box merges with the "SIGN UP" text box. which doesn't look very good।
https://github.com/user-attachments/assets/ee6745fb-15d5-4d2e-a4b9-0d501a3929d9
& the position of the Header is fixed across the page, causing it to blend in with other text, It preventing the website from looking better.

I want to Fixed these two issue properly. @Anjaliavv51  please assign me this task.
Expected behavior
I will fixed the text box gap & header position properly.
Add ScreenShots
No response
What browsers are you seeing the problem on?
No response
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24EXTD contributor
[X] I have starred the repository

@Subhajit-2023-44  go ahead.


repository: refactor

refactor the schema repository code to be more inline with the blox processing code in cuedb.

closed by #46


Allow protecting branches via git config buildkite.protectedBranches

This PR introduces a way to protect certain branches from running builds.
This can be useful in a continuous delivery setup where master is automatically deployed. Currently, running git buildkite master (or git buildkite with master checked out) will trigger a deploy that may not be desirable.
The idea here is that one can set git config --local buildkite.protectedBranches master,another-branch,blah to store a list of branch names that git buildkite should normally not build. A new --force flag is introduced to allow one to force a build on a protected branch when necessary.

Sorry folks, I didn't see this one.
I'm not sure I see the value of a client-side configuration for this. Wouldn't you want to assert this on the server-side? i.e. an agent hook which rejects builds on your default branch unless BUILDKITE_SOURCE=webhook or something similar?

Oh wow. A welcome blast from the past! I hope you're both well.
I've not kicked off a build from the CLI for years now as most of the builds I have been involved in are much, much quicker than those for the much-loved Rails monolith behind this change and can be triggered by a push or a merge.

How would you make sure everyone has this configured desirably?

In 2018? Maybe https://github.com/boxen/boxen ;-)
Today… yeah, server-side.

To be honest, I don't fully remember the rationale or context behind this. Since it hasn't come up from anyone else in 5ish years, I think it's safe to close this one.
(@johnsyweb doing well here, hope you are too!)


Add links to cargo metadata.

This is needed for creating registry index entries.

r? @alexcrichton
(rust_highfive has picked a reviewer for you, use r? to override)

@bors: r+

:pushpin: Commit 53de08a57d4b3f5b6b2c90cee619ab659fcec234 has been approved by alexcrichton

:hourglass: Testing commit 53de08a57d4b3f5b6b2c90cee619ab659fcec234 with merge 758cd5ca78b7cec3ee167bded6cf0114a5b7625a...

:sunny: Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 758cd5ca78b7cec3ee167bded6cf0114a5b7625a to master...


Traffic transmit state shows always 'started' for fixed flow even though the flow stops after transmitting all packets if there is other flow(continuous) in started state

Scenario - 1
Consider two flows f1 & f2

f1 with fixed packet count
f2 with fixed packet count
Transmit state once all packets are transmitted
stopped
stopped

Scenario - 2
Consider two flows f1 & f2

f1 with fixed packet count
f2 with continuous packet count
Transmit state once packets are transmitted for f1
started
started

Note: The traffic is not stopped intentionally in any Scenario
I assume, in scenario 2 the f1 state should be in stopped instead of started state as all packets are transmitted. When I dig deeper the states are coming from REST API, raising an issue as a counter issue for any customer use case

This is a bug in ixnetwork middleware and can be reproduced by using the full UI and creating two traffic items, one continuous, the other stopping after a predefined number of packets.  This package will have to workaround that issue when returning flow stats. There is currently code in there to check the Tx Frame Rate and return started if it is greater than 0.  That section should be expanded to check the configelement rate and adjust the state based on frames tx etc.
At the same time a bug should be opened with ixnetwork traffic but the customer cannot wait for an update/hotfix/patch etc.
This issue is being seen by the current sonic use cases.

test script
test_traffic_transmit_state.zip

Verfied using test_traffic_transmit_state.py


Uncaught exception when logging object with circular structure

If the option "json" is set to "true" given arguments are converted to JSON.
If the argument has circular structures (as it can happen easily in express environments) the formatting command fails with an exception.
This happens for the console transport beginning with line 37
  if (this.json) {
    this.stringify = options.stringify || function (obj) {
      return JSON.stringify(obj, null, 2);
    };
  }

This also happens for the winston-daily-rotate-file transport
IMHO a logger should never fail while formatting the given object. Instead I would prefer if the argument in question would be omitted from logging.
What do you think?
I can provide patches if you agree.

Any update on this issue?

For anyone else that comes here: this references 2.x branch not 3.x

Development<EMAIL_ADDRESS>has ceased. Please consider upgrading to<EMAIL_ADDRESS>If you feel strongly about this bug please open a PR against the 2.x branch. Thank you for using winston!
In regards to 3.x please see the response in which you can use a custom format if you wish: https://github.com/winstonjs/winston/issues/1248#issuecomment-379310813


Keep font family styling consistent in markdown styles

AC:

Call getNormalFontStylesForOS() (or the "bold" alternative if need be) in the styles for markdown in places where we need to set font family
Remove any hardcoded font family style calls in the codebase that exist outside our src/application/styles.ts file and contain setting font family to the styles file.

@cherrielam I think this was meant for you to QA? Thx

Refer to #703 for QA - 3. has passed


Create metadat record for the stomach database and for each historical dataset

Adriana will teach us how to

done by Eva


⚠ Bofrost.de has degraded performance

In 438b09b, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1587 ms

Resolved: Bofrost.de performance has improved in 1e2f1bc.


[Prisma] Unaligned type definition of Prisma object

LangchainJS's type definitions may need to be updated to match new Prisma's specifications in the following commit: https://github.com/prisma/prisma/commit/44bc6576b8c5b5dbfe5533e1b0ef2e34f8025d48.
This commit was pushed 3 weeks ago but the Prisma namespace definitions in the langchainJS repo were last pushed over a month ago:
https://github.com/hwchase17/langchainjs/blob/main/langchain/src/vectorstores/prisma.ts
https://github.com/hwchase17/langchainjs/commit/460e110885fb349bc5d946fbd678879a8d8eedf0
Right now, LangchainJS's PrismaNamespace type definitions prevents building when attempting to use the PrismaVectorStore's fromDocument method.
Showing errors like:
type 'typeof prisma' is not assignable to type 'prismanamespace'.ts(2322)

@dosu-bot This is a good starting point but the issue is not limited to just the Document subtype, It might be helpful to review.
https://github.com/hwchase17/langchainjs/blob/main/langchain/src/vectorstores/prisma.ts
and the output type definition generated by https://github.com/prisma/prisma/blob/main/packages/client/src/generation/dmmf.ts need to be considered.


Get rid of unwrap() for array parsing in generated code

The generated code for parsing an array first got a slice of the expected length and then used the TryFrom trait to get an array. For example:
  let (data1, remaining) = crate::x11_utils::parse_u8_list(remaining, 24)?;
  let data1 = <[u8; 24]>::try_from(data1).unwrap();

This commit introduces a helper function that produces an array directly. The above becomes:
  let (data1, remaining) = crate::x11_utils::parse_u8_array::<24>(remaining)?;

The goal here is to remove some unwrap()s in the generated code, but this also helps shortening the code.
There are two new helper function: parse_u8_array parses an array while parse_u8_array_ref returns a reference to an array. Both cases are needed in the generated code.
Signed-off-by: Uli Schlachter<EMAIL_ADDRESS>

For future reference, <T>::split_array_ref (currently unstable) would allow to implement parse_u8_array_ref without any unwrapping.

Ah, nice. Thanks. I added that to #538.


Creating new partition for iOBC U-Boot envars

PR Overview:
Adding a new partition to the iOBC's SD card image to house the U-Boot envars
Corresponding U-Boot changes have been made in kubos/uboot#26

 Move U-Boot envar file for iOBC


build: use cephcsi bot token to push helm charts

GITHUB_TOKEN is auto-generated for the cephcsi repo and it cannot be used to push helm charts to a different repo. added new secret CEPH_CSI_BOT_TOKEN to push helm charts.
Signed-off-by: Madhu Rajanna<EMAIL_ADDRESS>

Manually merging as GitHub action is modified


Reputation 2.2

Add rep gain for special missions

Ready for review / dev deployment for testing. I expect some things to possibly break...


depends: change fallback to depends.dogecoincore.org

This changes the fallback dependency source repository from Bitcoin's bitcoincore.org to depends.dogecoincore.org. Both are centrally hosted, as a fallback to the original sources that are used by default. Ideally this would be utilizing a decentralized protocol like IPFS, but this is harder to integrate with the CI tooling.
Note: because some dependencies have identical filenames in their source URLs (currently ds_store and mac_alias) we host the target filename on the mirror, to prevent conflicts.

Thank you!


Add icu ventilator usage + fix cumulative tests

Adds ICU/Vent capacity/utilization numbers to state and county timeseries.
Also fixes a bug i introduced where it was pulling incorrect values for cumulative testing data + add a validation to make sure it never happens again.
Please Check

[x] Are the JSON schemas updated?
[x] Are the api docs updated?
[ ] Are tests passing?

Follow-up for API doc changes here: #312


How to reload sidebar?!

I use the sidebar and dynamically add points, how to reload it without a reload of the page?

use  don't use  in view (views/navigation.blade.php)
I have same problem
it from vue.js router api then it work for me

Please provide code sample if possible.


nutrient distillation

rotten flesh and nether wart not working anymore in the vat on 424 ver ?

Same for me. Looks like that part of recipes does not work any more in latest version. Even if I re-add it manually using user config file.

@HenryLoenwind

On Your Game the Vat when u put her on floor he turn invisible ??


Part 1: Update overview + quickstart screenshots

Partial of https://github.com/mui/mui-toolpad/issues/1132

Are these taken with a differently sized browser window? Perhaps it makes sense to track somewhere the browser window size? e.g. 1440px for Macbook 13" or so

I guess that as long as it's 16:9 resolution and it doesn't look blurry at the sizes we're showing the screenshots at we should make them as small as possible?
Also not sure if we're doing that but if not we could run these PNGs through some optimizer to see if we can reduce their size.

If you are asking because of the width dimension that is used for images - the answer is they are all taken on the same sized browser. The problem is that when I grab the screenshot I don't know it's dimensions, so I have to manually inspect and set width for each screenshot. Unless the screenshot is full screen, you have to do it for all to maintain that 2 pixels ratio


Reconsider Classification Approach

Feature
Coming out of https://github.com/CesiumGS/cesium/issues/11341, we noted that there are several limitations of the current classification implementation, including the need for watertight classification volumes, performance issues, transparency issues, and invert classification artifacts.
I've attempted to capture a running list of these with the Classification label.
@lilleyse Has a few longer-term ideas for an improved approach, including taking advantage of WebGPU features like image load/store to do per-pixel linked lists.

so do cesium team have any progress on this?

@jiangheng90 There hasn't been any activity on this yet.
If you'd like to add more information about your use case, that may help us prioritize. If you are interesting in contributing, please let us know and we'd be happy to discuss implementation or review a PR. Thanks!

@jiangheng90 There hasn't been any activity on this yet.
If you'd like to add more information about your use case, that may help us prioritize. If you are interesting in contributing, please let us know and we'd be happy to discuss implementation or review a PR. Thanks!

I'm interesting in contributing. recently I will review this issue list first. and see what I can do..

@ggetz I have seen the issue of #9419 today, I found the problem is comes from the oit.
so I think what if I add a pass to split the translucent 3dtiles and translucent normal primitive. and draw translucent tile classification between translucent 3dtiles and translucent primitive? then composite in oit?

Thanks @jiangheng90! @lilleyse would you be able to comment on the suggested approach here?

Thanks @jiangheng90! @lilleyse would you be able to comment on the suggested approach here?

Yes,I will try to make a pull request link this issue.


[INLONG-1980][Bug][InLong-Dataproxy] the content of topics.properties generated incorrectly，and too much backup files generate automatically

Title Name: [INLONG-1980][Bug][InLong-Dataproxy] the content of topics.properties generated incorrectly，and too much backup files generate automatically
Fixes #1980
Motivation
inlong groupId instead of null will be in the left side of "="(as p1)，and dataproxy generates too much junk files in a short period of time(as p2), it's not easy to clear after a long time.
Modifications
fix bug
and remove backup files
Documentation

Does this pull request introduce a new feature? (no)

Codecov Report

Merging #1986 (3493c1e) into master (d96da15) will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1986      +/-   ##
============================================
+ Coverage     12.26%   12.27%   +0.01%
  Complexity     1159     1159
============================================
  Files           413      413
  Lines         35225    35225
  Branches       5542     5542
============================================
+ Hits           4321     4325       +4
+ Misses        30136    30130       -6
- Partials        768      770       +2

Impacted Files
Coverage Δ

...long/tubemq/server/common/utils/SerialIdUtils.java
40.00% <0.00%> (-40.00%)
:arrow_down:

.../producer/qltystats/DefaultBrokerRcvQltyStats.java
45.70% <0.00%> (+0.39%)
:arrow_up:

.../java/org/apache/flume/sink/tubemq/TubemqSink.java
55.42% <0.00%> (+4.00%)
:arrow_up:

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 d96da15...3493c1e. Read the comment docs.


[WIP][Others] Support rollback from version 2.4 to version 2.3 for PrimaryKey table with persistent index

What type of PR is this：

[ ] bug
[ ] feature
[ ] enhancement
[ ] refactor
[x] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

We will support varlen key for PrimaryKey table with persistent index from version 2.4. However, if we create a PrimaryKey table with persistent index which key length is less than 64 Bytes in version 2.4, we can't rollback to version 2.3 directly. Because the meta structure is changed in version 2.4.
This pr support rollback from version 2.4 to version 2.3 for PrimaryKey table with persistent index.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

run  all

run SonarCloud Code Analysis

run all

run SonarCloud Code Analysis

run starrocks_be_unittest

this pr will be submit later


Configuration.ts leaking listeners

We create a lot of these the code path is pretty long Configuration -> Oni -> Plugin -> ...
Basically, would it be more beneficial to switch this to a singleton?
I'm doing this with the Config ( currently working on keybindings and abstracting it )
So I wonder if we could do the same for this?

Oh ya, thanks for logging this issue!
I think one quick way to fix this would be, in the browser/src/Plugins/Api/Configuration.ts:
    public get onConfigurationChangedEvent(): IEvent<void> {
        return this._onConfigurationChangedEvent
    }

    private _onConfigurationChangedEvent: Event<void> = new Event<void>("oni_configuration_changed")

    constructor() {
        Config.instance().registerListener(() => {
            this._onConfigurationChangedEvent.dispatch(null)
        })
    }

    public getValue<T>(configValue: string, defaultValue?: T): T {
        return Config.instance().getValue(<any>configValue) || defaultValue
    }

This object gets created for every plugin, and it always starts listening to configuration changes... even if there is no listener registered.
I think it might be good instead to only start listening the first time we get the _onConfigurationChangedEvent (lazy init).
I don't think this particular object makes sense to be a singleton, because we basically pass it to the plugin via the Oni instance in the activate method.
One thing I'd like to move away from though, is using the Node EventEmitter class - and use the typed Event/IEvent objects in the code. You get better completion with those, and it's easier to document as opposed to a bunch of strings.

One thing I'd like to move away from though, is using the Node EventEmitter class - and use the typed Event/IEvent objects in the code. You get better completion with those, and it's easier to document as opposed to a bunch of strings.
:+1:

I don't think this particular object makes sense to be a singleton, because we basically pass it to the plugin via the Oni instance in the activate method.

So each plugin has their own configuration?

At least right now, there is an Oni object created for each plugin (and then each of those Oni objects creates that Configuration object, which listens to Config.ts).
Some of it is over-complicated, because previously, all the plugins were hosted in completely isolated contexts. I moved away from that now and I'd like to move towards  having a common Oni object that is shared between the plugins - this would allow a model where plugins could define shared or common functionality (kind of like the Emacs plugin model). Just haven't had a chance to clean it up completely!
The side effect though is today, a new Oni object is created for each plugin, and passed to the plugin on activation. You can sort of see the lifecycle if you open the dev tools, put a breakpoint in the constructor in browser/src/Plugin/Api/Configuration.ts, and reload Oni - if you look up the callstack you'll see the flow of how it is created.
But I think the short term fix is to do the lazy initialization - and longer term, we wouldn't create new instances of this object for each plugin, we' d just have a common one (which would also help solve this problem, since we'd only register the listener once).

Some of it is over-complicated, because previously, all the plugins were hosted in completely isolated contexts. I moved away from that now and I'd like to move towards having a common Oni object that is shared between the plugins - this would allow a model where plugins could define shared or common functionality (kind of like the Emacs plugin model). Just haven't had a chance to clean it up completely!

I think this is the best and yeah I understand, only so much you can do.

Looks like this was addressed as part of #692


Update roles: add permissions for modifying poddisruptionbudgets in the policy API Group

Update application-context.yaml to add  permissions for modifying poddisruptionbudgets in the policy API Group, so it will apply to all new accounts.
Explanation
Default permissions for service account roles currently do not include sufficient access to poddisruptionbudgets in the policy API Group
This access is required in order to install, upgrade and delete some 3rd party helm charts; for example, the latest bitnami Postgresql chart installation currently fails, with:
Error: INSTALLATION FAILED: Unable to continue with install: could not get information
about the resource PodDisruptionBudget "vegbank2-postgresql" in namespace "vegbank":
poddisruptionbudgets.policy "vegbank2-postgresql" is forbidden: User
"system:serviceaccount:vegbank:vegbank" cannot get resource "poddisruptionbudgets" in
API group "policy" in the namespace "vegbank"

Workarounds include manually editing the role for the service account in question, or using the admin service account to install/upgrade/delete (bad practice).
GitHub DataONE K8s repo for reference

poddisruptionbudgets explanation:
https://kubernetes.io/docs/tasks/run-application/configure-pdb/


Dark Mode Please?

Is your feature request related to a problem? Please describe.
My eyes are burning xD
Describe the solution you'd like
A well developed dark mode with #000 and not #999

Haha is it really needed though? The tool will be used for a limited time right? it makes sense to have a dark mode for something like Twitter or Instagram which you use constantly and can spend hours scrolling through the feed.
Would like to know thoughts on this

You know dark mode is really soothing to the eyes
And going by what you said it's needed for apps like Twitter or Instagram where user retention is high, for this tool you made, a user will spend roughly between 10 min to 30 min typing
(You know if you see engineering assignments are atleast 10 pages long) so I think that should be a good enough reason to think upon adding dark mode

Besides I know you're really pro and I shouldn't be telling you how to do what
All I can think of darkmode isDarkMode.js with a small input element anywhere of type checkbox and some css

Yes makes sense, I'll keep this open if anyone wants to work on this.

Besides I know you're really pro and I shouldn't be telling you how to do what
All I can think of darkmode isDarkMode.js with a small input element anywhere of type checkbox and some css

You can definitely suggest ways to do it, this is the whole point of open-source :D
Maybe we can have CSS variables and define colors
This is what I do in one of my projects,
body {
  --background-primary: #fff;
  --font-color-primary: #333;
  --elevation-background: #fff;
  --code-background: #f3f3f3;
  --link-color: #006EB8;
  --font-family-primary: 'Noto Sans KR', sans-serif;
}
body.dark {
  --background-primary: #121212;
  --font-color-primary: #ccc;
  --elevation-background: #1D1D1D;
  --code-background: #222;
  --link-color: #09f;
}

an on toggle, I change the class of body

@saurabhdaware Can I try this!!!

Sure! go ahead and let me know if you need any help :D


Having external_links does not result in container links being created for the service

Server version - v0.25.0-rc2
Rancher compose version - rancher-compose-v0.1.3
Create a service with container link using rancher server UI.
Used the config generated for this service as input to  rancher compose.
Service that was created does not have container links .There are no environment variables relating to links present in the containers.
Following is the docker-compose.xml that was used:
test321896:
  ports:
  - 9999:22/tcp
  external_links:
  - WEB1:53f45376-7625-48b9-b31f-41a9543ad73a
  image: sangeetha/testclient:latest

This is currently not a supported feature.


Azure RedHat OpenShift 2022-09-04 - Internal Server Error

When looking into RedHat OpenShift Cluster, we see Internal Server Error often with no additional details for what is happening. Right now I am sending the following to the API:
{
	"location": "westeurope",
	"name": "acctestaro230206170850589086",
	"properties": {
		"apiserverProfile": {
			"visibility": "Public"
		},
		"clusterProfile": {
			"domain": "fv3wp.com",
			"fipsValidatedModules": "Disabled",
			"pullSecret": "",
			"resourceGroupId": "/subscriptions/000-0000-0000/resourceGroups/aro-fv3wp.com"
		},
		"ingressProfiles": [{
			"name": "default",
			"visibility": "Public"
		}],
		"masterProfile": {
			"diskEncryptionSetId": "",
			"encryptionAtHost": "Disabled",
			"subnetId": "/subscriptions/000-000-000/resourceGroups/acctestRG-aro-230206170850589086/providers/Microsoft.Network/virtualNetworks/acctestvirtnet230206170850589086/subnets/main-subnet-230206170850589086",
			"vmSize": "Standard_D8s_v3"
		},
		"networkProfile": {
			"podCidr": "<IP_ADDRESS>/14",
			"serviceCidr": "<IP_ADDRESS>/16"
		},
		"servicePrincipalProfile": {
			"clientId": "XXXX",
			"clientSecret": "XXX"
		},
		"workerProfiles": [{
			"count": 3,
			"diskEncryptionSetId": "",
			"diskSizeGB": 128,
			"encryptionAtHost": "Disabled",
			"name": "worker",
			"subnetId": "/subscriptions/000-000-000resourceGroups/acctestRG-aro-230206170850589086/providers/Microsoft.Network/virtualNetworks/acctestvirtnet230206170850589086/subnets/worker-subnet-230206170850589086",
			"vmSize": "Standard_D4s_v3"
		}]
	},
	"tags": {}
}

This inevitably fails and returns
{
	"id": "/subscriptions/000-000-000/providers/microsoft.redhatopenshift/locations/westus/operationsstatus/0cb6d5f7-e249-4797-837c-50ddc338b6ad",
	"name": "0cb6d5f7-e249-4797-837c-50ddc338b6ad",
	"status": "Failed",
	"startTime": "2023-02-07T16:52:14.139187157Z",
	"endTime": "2023-02-07T17:02:17.699845524Z",
	"error": {
		"code": "InternalServerError",
		"message": "Internal server error."
	}
}

with no additional details on why it failed. Is there any way we can get more details added on why clusters are failing to create?

@mbfrahry Thanks for reaching out to us and reporting this issue.
Questions:

Could you please elaborate your use case ?
Please let me know which Azure Red Hat OpenShift Cluster API are you trying to invoke ? https://learn.microsoft.com/en-us/rest/api/openshift/open-shift-clusters?view=tfs-2017
Please share the correlationID, Time of the issue in UTC, Subscription ID and location details over email navba [ @ ] microsoft (dot) . com. So that I can look at the backend logs for the cause of the failure.

Awaiting your reply.

@mbfrahry I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please let us know if you had any updates on this. Awaiting your reply.

Hey @navba-MSFT, apologies for the delay. I have emailed you

@mbfrahry I have emailed you my action plan to isolate this issue. Awaiting your reply.

@mbfrahry Thanks for your reply over email. Since you confirmed that The RedHat OpenShift team found the bug and should have a fix deployed by March 6th. I am proceeding with closure of this issue.

Hello
I am currently trying to provision a cluster with terraform azapi and keep receiving "Internal Server Error" after just 10 minutes. I am curious what the issue was that Red Hat found. Could you please share the details?

Hello I am currently trying to provision a cluster with terraform azapi and keep receiving "Internal Server Error" after just 10 minutes. I am curious what the issue was that Red Hat found. Could you please share the details?

My issue was a screw-up on my end.

@navba-MSFT - the real issue here is not the one bug we encountered, but that the API is returning generic "Internal server error" messages rather then a more detailed/actionable error, as can be seen by @Honken77 encountering something similar. A proper error message likely would have helped them identify the problem quicker.
could we please reopen this issue as the real ask was for better error messages?
thanks

Hey @navba-MSFT, I'm still seeing Internal Server Error when submitting requests. Is there a way we can reopen this issue or should I make a new one?


(BKR-147) add Gemfile setting for BEAKER_VERSION for puppet...

puppetdb, etc

support for BEAKER_VERSION and BEAKER_RSPEC_VERSION in gemfile

@anodelman Thanks for updating this PR.
We've since changed the pinned version of beaker so this needs a rebase.
In the process, could we just kill BEAKER_LOCATION entirely and simply this down to:
beaker_version = ENV['BEAKER_VERSION'] || 'git@github.com:puppetlabs/beaker.git#8909e35a97b8c30b11b77b784a47c8d175cd4ec8'
gem 'beaker', *location_for(beaker_version)

Updated patch to support the standardized BEAKER_VERSION, instead of BEAKER_LOCATION.

Apologize I haven't kept up with the discussion on this one, but, @anodelman, do you believe this is still needed?
As github doesn't think we can automatically merge this, I'd also guess that there's a merge conflict between this PR and what's on our master branch right now...

Rebased.  Still desired to bring naming in line with the rest of beaker dependent projects.

Thanks, @anodelman.
I'm ignorantly :+1: on this.  @jeffmccune - any concerns?

:+1:


Observers as part of bundle

What problem does this solve or what need does it fill?
Ability to add observers as part of a bundle would help a lot in composing entities.
What solution would you like?
The simplest way I can think of is to allow EntityCommand trait as part of bundles.
What alternative(s) have you considered?
Nothing else came to mind.
Additional context
Idea from https://discord.com/channels/691052431525675048/691052431974465548/1259529220892131348

Aren't these just components? What else needs to be done?

Observers are components on a separate entity
So if I want to make a generic NPC bundle that has a "start conversation observer", I'd need to make an EntityCommands extension rather than a Bundle

I think you can also stick an observer on the entity it's watching, which is fitting for this use case.

I see, I'd still like to hear James' opinion
@james-j-obrien what do you think?

While you can technically make the entity itself an observer you can't do that multiple times as the ObserverState component would get overridden leading to serious issues. If that was exposed in bundles users could easily accidentally break things by inserting different bundles that each have observers.
Alternatively we could introduce some other component that has an on_add hook to spawn an observer.

Installer (as I like to call it) pattern would work for simpler cases, good idea 🙂
Going one step further, how would observers work with serde/scenes?
Was it discussed somewhere?


Does not play well with touch and mouse events.

If you are using your mouse on a touch screen laptop the mouse events will not work.  I've fixed this locally but want to wait until my other PR is pulled in before I put in another pull request.

+1

Can you check that this is fixed in 0.4.2? I committed a fix back in January but it wasn't pulled into a release until recently.

Fixed in 932efd6abb545023447ac5fcb7bd1f281f44f495

thx!


Downgraded deployment version to 10.10

I changed the deployment target to 10.10 and tested it on my 10.11 laptop. I had to change a block into a function because the NSTimer API for blocks was not available on 10.10.
I also had to change the change the development team in order to build it, make sure you change it back to yours.

I have included your changes into the current master branch by hand. Thank you for your support!


android app crashes immediately after showing the first screen

Describe the bug
the android app crashes immediately after showing the full-screen sky background (doesn't have any other controls on it like logos or buttons)
To Reproduce
Steps to reproduce the behavior:

install the app from play store
run it
it crashes

Expected behavior
it shouldn't've crashed
Screenshots
n/a
Details

Platform: Android
Platform version: 12
App version: 1.43.0

Additional context
n/a

This is happening on my phone, and has been happening for a couple weeks now. I have to use the browser to access Bluesky from my phone for the time being.
Google Pixel 5
Android 13
App version 1.43.0

@ansh Going to hand this one to you, maybe sentry has some info for us

@TheAwesome98-Real Does this happen every single time?

@TheAwesome98-Real Does this happen every single time?

yes, every single time without fail

Really sorry about that @TheAwesome98-Real
I am looking into this issue now

Happens to me too on Pixel 6
App version 1.43.0
Android version 13 (build TQ3A.230705.001.A1

@SaxxonPike Can you give more details about which phone you have? Pixel? Which model?

There seems to be a bug plaguing Pixel devices mainly.
Exception in HostFunction: Incompatible object passed to scheduleOnJS. It is only allowed to schedule functions defined on the React Native JS runtime this way.  due to the Reanimated library.

No stack traces?

@pfrazee Unfortunately not since the error is happening purely on the native side of things


Luabind::open fails

Hello everyone.
I have build luabind on Window 10 with bjam, toolset msvc, 32bit latest VC++, boost 1.59.0 and Lua 5.2. When running the following code:
#include <lua.hpp>
#include <luabind/luabind.hpp>

int main()
{
	lua_State* L = luaL_newstate();

	try
	{
		luabind::open(L);
	}
	catch(std::runtime_error& e)
	{
		printf("%s\n", e.what());
	}

 	return 0;
}

I get the following error:
luabind::open() must be called with the main thread lua_State*

luabind::open() calls the following function in open.cpp, line 115:
  LUABIND_API void open(lua_State* L)
    {
        bool is_main_thread = lua_pushthread(L) == 1;
        lua_pop(L, 1);

        if (!is_main_thread)
        {
            throw std::runtime_error(
                "luabind::open() must be called with the main thread "
                "lua_State*"
            );
        }

        createGarbageCollectedRegistryUserdata<detail::class_registry>(L, "__luabind_classes", L);
        createGarbageCollectedRegistryUserdata<detail::class_id_map>(L, "__luabind_class_id_map");
        createGarbageCollectedRegistryUserdata<detail::cast_graph>(L, "__luabind_cast_graph");
        createGarbageCollectedRegistryUserdata<detail::class_map>(L, "__luabind_class_map");

        // add functions (class, cast etc...)
        lua_pushcclosure(L, detail::create_class::stage1, 0);
        lua_setglobal(L, "class");

        lua_pushcclosure(L, &make_property, 0);
        lua_setglobal(L, "property");

        lua_pushlightuserdata(L, &main_thread_tag);
        lua_pushlightuserdata(L, L);
        lua_rawset(L, LUA_REGISTRYINDEX);

        lua_pushcclosure(L, &deprecated_super, 0);
        lua_setglobal(L, "super");

        //set_package_preload(L, "luabind.function_introspection", &bind_function_introspection);
    }

Might there be an issue with the following line?
bool is_main_thread = lua_pushthread(L) == 1;

I can't find anything on Google at all, that is why I am asking it here.

Issue has been resolved by reverting back to Boost 1.57.
Can we put the highest supported Boost version in the readme or something?


maps: quarantine: scripts For testing

These files are used for twister testing and upstream to downstream merges.
Signed-off-by: Dennis Ruffer<EMAIL_ADDRESS>

Replaced by: https://github.com/TmoBrandedHw/upstream-zephyrsdk/pull/10


RPC - sort_keys documentation inconsistencies und clarifications

Several Endpoints such as get_all_offers have a property sort_key
What is the default sort_key and how do I know which sort keys are available/refer to which properties?
At the time I'm particularly interested for the endpoints get_all_offers and  get_transactions

Notably the documentation on get_all_offers shows its of type string. The documentation on get_transactions shows its of type number

I tried to test a little and it seems either the sort key is not implemented or it is not trivial. Or the type is not long/int:
{{
  "offers": null,
  "trade_records": null,
  "success": false,
  "error": "No known sort 0"
}}

string is not trivial either:
GetAllOffers_RPC getAllOffers_RPC = new GetAllOffers_RPC(
    start: heightInfo.ImportedOfferHeight.SequenceHeight,
    end: long.MaxValue,
    exclude_my_offers: false,
    exclude_taken_offers: false,
    include_completed: true,
    sort_key: null,//"created_at_time",
    reverse: true,
    file_contents: true) ;

{{
  "offers": null,
  "trade_records": null,
  "success": false,
  "error": "No known sort created_at_time"
}}

Hey @KryptomineCH , I am sorry for the delayed response.
Upon review it looks like the get_all_offers endpoint accepts either confirmed_at_height or relevance with confirmed_at_height being the default:
https://github.com/Chia-Network/chia-blockchain/blob/5f6c336e757534d3a36b1a03612e05b412a18c61/chia/wallet/trading/trade_store.py#L413
In addition it looks like the get_transactions endpoint also accepts confirmed_at_height or relevance with confirmed_at_height being the default:
https://github.com/Chia-Network/chia-blockchain/blob/5f6c336e757534d3a36b1a03612e05b412a18c61/chia/wallet/wallet_transaction_store.py#L311
sort key members: https://github.com/Chia-Network/chia-blockchain/blob/5f6c336e757534d3a36b1a03612e05b412a18c61/chia/wallet/transaction_sorting.py#L6


use NCDatasets nomissing

Purpose
closes #679

I've tested this fix locally (as discussed offline yesterday). Thanks for adding the fix!


Long axis labels getting truncated

Hi,
Is there a way to disable the truncation of long axis labels (see below example plot)?
I've looked through the API docs but couldn't find how to do this.
Luan

Hi, currently there is no way to disable labels truncation unfortunately.
For now I can only suggest to try to shorten the labels by yourself and pass them to the x-axis via
scale_x_discrete(breaks=..., labels=...)

Hi, in v4.2.0 we've removed limits on labels length and added an option to set such limit explicitly if necessary: example notebook.

Perfect thanks a lot!


Windows: Code opening cli.js when run as Administrator

VSCode Version: 1.42.1
OS Version: Windows_NT x64 10.0.18363

Steps to Reproduce:

Open pwsh in windows terminal
Go to any folder
Run code . in the folder

Does this issue occur when all extensions are disabled?: Yes
Troubleshooting steps:
Uninstalled and Reinstalled VSCode. <= This actually fixed the issue on another computer, but not my main work computer.
Followed any other steps in #69373, #88432, #89088
The reason you don't see the wait in the terminal for the first 3 code . commands is because there was already a vscode window open, however, the cli.js was still opening in these instances. The terminal wait logging came back after closing all vscode instances.

Nobody else got you the command line for the process, so here it is with some privacy censors. Some of the processes had really, really log command line args so I couldn't get them all to fit in my Task Manager window....

The cli.js keeps opening up over and over. Even with VSCode closed.
It's also happening when writing code, which is making not viable to use VSCode.
I've seen 3 threads opened with the same description lately and all of those are being closed with the justification that not enough info given.
Somebody even posted a video of the occurence... Come on guys...

This is the printscreen from ProcessHacker

Can you show me your %PATH% variable?

user.name is my Windows user name
C:\Windows\System32
C:\Windows
C:\Windows\System32\wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Windows\System32\OpenSSH\
C:\ProgramData\chocolatey\bin
C:\Program Files (x86)\GnuPG\bin
C:\Program Files\dotnet\
C:\Program Files\Microsoft SQL Server\130\Tools\Binn\
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\
C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\
C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE
C:\Program Files (x86)\GnuWin32\bin
C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
C:\Go\bin
C:\Program Files\Intel\WiFi\bin\
C:\Program Files\Common Files\Intel\WirelessCommon\
C:\Program Files\Amazon\AWSCLI\bin\
C:\Program Files\nodejs\
C:\Program Files\PowerShell\6\
C:\Program Files\Docker\Docker\resources\bin
C:\ProgramData\DockerDesktop\version-bin
C:\Program Files\Git\cmd
C:\Users\user.name\AppData\Local\Microsoft\WindowsApps
C:\Users\user.name\.dotnet\tools
C:\Users\user.name\AppData\Local\Microsoft\WindowsApps
C:\Users\user.name\go\bin
C:\Program Files (x86)\Nmap
C:\Users\user.name\AppData\Roaming\npm
C:\Users\user.name\Documents\PowerShell\Scripts
C:\Users\user.name\AppData\Local\Programs\Microsoft VS Code\bin

More useful information:

Im really thinking on removing the cli.js file and cannot use code . anymore just to stop this from happening...

I managed to capture the command lines for the process also.
If that's of any help.
The cli.js file itself is opening with the following:
"C:\Users\Arthur\AppData\Local\Programs\Microsoft VS Code\Code.exe" "C:\Users\Arthur\AppData\Local\Programs\Microsoft VS Code\bin\..\resources\app\out\cli.js" --list-extensions

@zikhan Can you reproduce in a regular Command Prompt?

yep

im experiencing the same issue. it just randomly opens when im using the ide. thats it. doesnt matter what im doing. the tab just opens. any followup? I will note that i noticed the issue appear after i installed the Darkula Pycharm Theme although i can not for certain confirm it is the cause of the issue.

@Directory
I tried all possible fixes without success, and as nobody from the vscode team provide a proper workaround i just installed the insider version, changed the .cmd to code and i'm using it as it was the stable release of VSCODE.
Funny as it is, the trigger doesn't happen on the "unstable" version of the software.
I hope it keeps that way.
I imported all the extensions using the Settings Sync and am having zero issues right now.

i think i solved it. it happens when you set the code.exe as administrator in the comaptibility options. disabled it, reboot, no more cli.js.
at least for me.

@Directory you might be on to something here!
I was experiencing the same issue, and has VS code set to always run as administrator for all users.

I changed Code.exe to not run as administrator and the issue stopped. With that same setting, I opened Code as administrator and the issue still did not occur.
I changed Code.exe back to run as administrator for all users again, and the issue began occurring again!
I changed Code.exe to run as administrator just for me (not all users), and the issue did not occur.
Just in case it's useful, I'll also note that I observed this behavior (VS code trying to open cli.js) repeatedly when trying to open Anaconda navigator.

I can set VS code to run as administrator only for me, but it seems like this should be fixed.

yea vscode is important to run as admin for me too. for example i do everything in admin cmd like install pip packages. tried to install some libs via vscode terminal and it wouldnt work since its not an admin terminal. this is only a minor inconvenience. some other file write permissions too. it wont hinder me too much since my development purposes are just updating some code, pushing it, and then winscp'ing it to my server and restarting the scripts. rarely do i actually need to run my code on in the ide

This problem is somehow related to kite, i closed Kited.exe process and the cli.js stopped running.
At least for me.

wait, are you saying that the issue does not occur when manualy opening vscode as admin? only when set in the compatibility property's?

Sorry for the delay, but yes, when I just open it as adminstrator manually (rather than setting it to always open as administrator), the issue does not occur for me.

This problem is somehow related to kite, i closed Kited.exe process and the cli.js stopped running.
At least for me.

Same for me

I do remember using kite so yes, this must be a bug in kite not a bug in vscode.

I don't have the Kite extension installed fyi

I also began experiencing this issue when I installed Kite. VSCode would open up cli.js while I was in the middle of editing other files. I uninstalled Kite and restarted my machine and the issue stopped happening.

Exactly the same for me: It stopped when I unistalled Kite from the program files as well as from vsc-extensions.

I've encountered the same issue when changing the Code.exe to run as administrator.
However, if I change the setting in the file shortcut Visual Studio Code alternatively, this issue never happens again!

I have the same problem as OP, and I don't have kite

I ran into a similar problem. I open sudo code in Windows WSL, it keeps open cli.js.
After check the related script located in C:\Users\Username\AppData\Local\Programs\Microsoft VS Code\bin\code, I found it will use a env named WSL_DISTRO_NAME to determine if in wsl. If open code in sudo, WSL_DISTRO_NAME will not be available.
So use sudo -E code to keep environment variable rather than sudo code, or modify file /etc/sudoers and just append one line:
Defaults        env_keep += "WSL_DISTRO_NAME"

I ran into a similar problem. I open sudo code in Windows WSL, it keeps open cli.js.
After check the related script located in C:\Users\Username\AppData\Local\Programs\Microsoft VS Code\bin\code, I found it will use a env named WSL_DISTRO_NAME to determine if in wsl. If open code in sudo, WSL_DISTRO_NAME will not be available.
So use sudo -E code to keep environment variable rather than sudo code, or modify file /etc/sudoers and just append one line:
Defaults        env_keep += "WSL_DISTRO_NAME"

@karlind Thank you! Your solution helped me when I was trying to start code as a root user in WSL through ZSH.

Steps to reproduce the issue:

Set code.exe compatibility options to always Run as Administrator.

Run below command:

C:\Windows\system32\cmd.exe /c code --list-extensions

This started to happen to me recently, I don't have Kite installed I can reproduce what @vvkjndl posted and I have Docker Desktop

Steps to reproduce the issue:

Set code.exe compatibility options to always Run as Administrator.
Run below command:

C:\Windows\system32\cmd.exe /c code --list-extensions

Many other applications run this command in the background at launch, reproducing this issue every time. Docker Desktop is one of those.

Same problem for me.
I don't have Kite but Docker Desktop installed.
Every time I open Docker Desktop, the file "cli.js" opens in VS Code (super annoying).
I now have Docker Desktop 3.5.2 (66501) and experiencing this issue since january 2021.
I also have the VS Code Docker extension v1.14.0 installed (ms-azuretools.vscode-docker).

Same problem for me.
I don't have Kite but Docker Desktop installed.
Every time I open Docker Desktop, the file "cli.js" opens in VS Code (super annoying).
I now have Docker Desktop 3.5.2 (66501) and experiencing this issue since january 2021.
I also have the VS Code Docker extension v1.14.0 installed (ms-azuretools.vscode-docker).

This started happening after installing Docker Desktop for me as well.

This happens to me everytime Docker Desktop requests an update

Same here, cli.js opens on every startup of Docker Desktop (also when the Docker Desktop is running and I click the small Docker icon in notification area of Win10 taskbar) and also when I try to edit C# scripts from Unity Editor on the first launch of VSC.

Has anyone found a fix for this? This also happens to me on Docker Desktop launch. This is extremelly annoying. Welp!

The same thing happens when I launch Docker Desktop. Please fix.

I can confirm: When the vscode executable has been set to always open as administrator, it brings up the cli.js file.
However, it has to keep being open as administrator for several reasons. Did anybody find why it happens? If so, we can simply disable it somehow. Thanks.

Same problem reproduce by starting Docker Desktop, and<EMAIL_ADDRESS>extension enabled
Disabled docker extension helps, but needed to work

Same here with docker.

I found by accident that Kite was the reason why this was happening. Didn't dove further into that but uninstalling it fixed it for me.

Bumping. I have the same issue with docker.

What did not work for me:

Disable Docker extension

Name: Docker
Id: ms-azuretools.vscode-docker
Description: Makes it easy to create, manage, and debug containerized applications.
Version: 1.16.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker

Disable Remote Container extension

Name: Remote - Containers
Id: ms-vscode-remote.remote-containers
Description: Open any folder or repository inside a Docker container and take advantage of Visual Studio Code's full feature set.
Version: 0.191.1
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers

Quit Docker Desktop - v3.5.2 (66501)

What did work for me: https://github.com/microsoft/vscode/issues/72521#issuecomment-507343840

I think I figured out a fix for anyone else facing this problem. If you run the command prompt as administrator, this problem goes away. It's only an issue if you have VSCode set to run as admin, but the command prompt terminal is not running with admin permission.

If I have VSCode open and I open Docker Desktop, it will still open the cli.js file though. This seems to only happen when opening a Docker Desktop window.

Can confirm.
Same problem here, this was a headache because I had no idea why I was losing my environment variables that I had in my terminal. Hope there will be a fix;
Problem:  VSCode will open cli.js on startup and also lose/delete its environment variables. Not sure if its related to cli.js but its contents start like: ""use strict";delete process.env.VSCODE_CWD;"..
How: If you have your vscode shortcut set as 'always run as admin' (from compatibility tab) and run the "code" from your terminal (in my case my terminal had admin. rights)

Same problem here. I do not have Docker Desktop or Kite installed. This is occurring when I attempt to open a cs file from Unity Editor. I can reproduce the issue by launching vscode from a terminal independent from Unity. Only extension currently installed is the official C# extension from Microsoft (v1.23.17). Disabling this extension does not correct the issue.
I can confirm that the issue goes away when not running vscode as admin, however . A complete removal of vscode from my system and a reinstall did not resolve. I'm willing to provide additional information upon request.
Wanted to throw my hat in the ring, hoping for a fix eventually.

Any updates on this? I see the issue has been open since Feb 26 2020, it's been 2 years!

Bump, I'm tired closing cli.js every time. I can't disable running VSCode as Admin because of my build scripts, so this single workaround is useless for me.

For me, a workaround for this issue is to call code from an admin/elevated console. The way you can continue to launch code.exe as an admin, but without being interrupted by cli,js.

Using unity for development here and this issue also occurs, hope this gets solved :/

@khasmir04 VisualStudio 2022 is better for Unity, it has AI code autocompletion

@Whitebrim thanks, but I mainly work on web development so kinda used to vsc, I'm working on a small project for now so vsc is suffice for now and tbh my system gets laggy using vs but thanks, will switch to vs once system gets upgraded and decided to pursue more in unity 👍🏼

I have a similar problem when developing with nRF Connect for Desktop.
I have to run the VS Code as Administrator, so I turned the "Run this program as an administrator" on.
If I open the Toolchain Manager from nRF Connect for Desktop as normal user it opens the VSCode with cli.js right away and also opens cli.js when I click "Open VS Code".
If I run nRF Connect for Desktop as Administrator then I have no problems with cli.js.

@Directory you might be on to something here!
I was experiencing the same issue, and has VS code set to always run as administrator for all users.

I changed Code.exe to not run as administrator and the issue stopped. With that same setting, I opened Code as administrator and the issue still did not occur.
I changed Code.exe back to run as administrator for all users again, and the issue began occurring again!
I changed Code.exe to run as administrator just for me (not all users), and the issue occured.
Just in case it's useful, I'll also note that I observed this behavior (VS code trying to open cli.js) repeatedly when trying to open Anaconda navigator.

Its important for me to run VS Code as administrator for various reasons, so the workaround of always opening VS code as administrator manually doesn't feel like a tenable solution.

I'm sure it is the problem created by Anaconda navigator. I never countered this problem until I opened Anaconda navigator today and something popped up and I closed it.

bruh still no fix for this 😭

I've had this cli tab vscode problem since well before covid. And it's still happening to this day.
So it's been what, 30 years and no fix? Bruh

Currently encountering this issue as well. I've been using VS Code for 4+ years and this bug is about to make me ditch it. And no, if I stop using VS code I will not switch to visual studios.  You can really only rely on VIM...

@Directory you might be on to something here!
I was experiencing the same issue, and has VS code set to always run as administrator for all users.

I changed Code.exe to not run as administrator and the issue stopped. With that same setting, I opened Code as administrator and the issue still did not occur.
I changed Code.exe back to run as administrator for all users again, and the issue began occurring again!
I changed Code.exe to run as administrator just for me (not all users), and the issue occured.
Just in case it's useful, I'll also note that I observed this behavior (VS code trying to open cli.js) repeatedly when trying to open Anaconda navigator.

Its important for me to run VS Code as administrator for various reasons, so the workaround of always opening VS code as administrator manually doesn't feel like a tenable solution.

I'm sure it is the problem created by Anaconda navigator. I never countered this problem until I opened Anaconda navigator today and something popped up and I closed it.

yes, opening cli.js when anaconda navigator chinge environment select

may be this can help you guys https://github.com/microsoft/vscode/issues/72521#issuecomment-507343840

@kevin-dev71 this solution has been posted multiple times but it's not deemed as a viable one. we should have a fix regardless of admin option turned on or off.

Having this issue when setting up vs code to open Godot scripts.. Any progress/fixes?

If any of you guys are having this problem in WSL, which was my case, it seems like the code script states that WSL since a particular build and WSL2 should already have a WSL_DISTRO_NAME environment variable (which was not my case, for some reason).
I've created this line in my .bashrc/.zshrc file:
export WSL_DISTRO_NAME="Ubuntu"
so it automatically populates that variable for me when I open my shell.
And now VSCode is not opening that annoying cli.js anymore.
Still, it seems to have some issues automatically connecting to the WSL Remote Window, so there might be a better option.
I've installed WSL recently in my new PC and stared having this issue. I might try uninstalling the Ubuntu distro that comes by default with WSL2 and installing it manually via the Microsoft Store like back in the days.
Anyways, I decided to post it here in case it helps somebody else =P

USE AT YOUR OWN RISK and This is not A good solution
when the VSCode upgraded, I have to modify this file everytime:
C:\Program Files\Microsoft VS Code\bin\code.cmd
@echo off
setlocal
set VSCODE_DEV=
set ELECTRON_RUN_AS_NODE=1

:: default start command line
::"%~dp0..\Code.exe" "%~dp0..\resources\app\out\cli.js" --ms-enable-electron-run-as-node %*

:: hide start cmd window
::start "" "%~dp0..\Code.exe" "%~dp0..\resources\app\out\cli.js" --ms-enable-electron-run-as-node %*

:: stop open cli.js from command line when set code.exe run as admin on compatibiliy tab
start "" "%~dp0..\Code.exe" --ms-enable-electron-run-as-node %*
endlocal

I donot know what is this cli.js used for, and if remove it will cause unexpected situation

This is happening to me each time I open VSCode using code . as administrator. If I open VSCode in a regular way through the shortcut, this doesn't happen

Hi guys,
for Windows User:
Go to:
"C:\Users\your_name_user\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd"
Edit "code.cmd"
Insert:
@echo off
:: BatchGotAdmin
::-------------------------------------
REM  --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges...
    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    set params = %*:"="
    echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"

    "%temp%\getadmin.vbs"
    del "%temp%\getadmin.vbs"
    exit /B

:gotAdmin
    pushd "%CD%"
    CD /D "%~dp0"
::--------------------------------------

setlocal
set VSCODE_DEV=
set ELECTRON_RUN_AS_NODE=1
"%~dp0..\Code.exe" "%~dp0..\resources\app\out\cli.js" %*
endlocal

Give be a feedback
Of course, every time VS Code is updated you have to do it again.

may be this can help you guys #72521 (comment)

This seems right, I was able to reproduce.
It seems that cli.js opens when you run VSCode as administrator with CMD when the CMD is not being run as administrator.

If any of you guys are having this problem in WSL, which was my case, it seems like the code script states that WSL since a particular build and WSL2 should already have a WSL_DISTRO_NAME environment variable (which was not my case, for some reason).
snip ...
Anyways, I decided to post it here in case it helps somebody else =P

@Giatroo Thank you so much for posting it here 🙏🏾, it was helpful for my utility whistle. In the script, I switch from the root user to a standard user and then install VS Code extensions using CLI. But it wasn't working at all due to this weird cli.js behaviour getting in the way, and I couldn't figure out why after trying several things. By "remembering" the WSL_DISTRO_NAME when switching to the standard user as you have mentioned, I could get my automation script to work properly.