text:
Icon Revamp - Proposition

Description of the new feature / enhancement
Hello @Jay-o-Way  @BLM16
Do you gus need a new Icon by any chance?
Got this idea to combine a more refined Windows Settings Cogwheel Icon, with a Power Lightning Symbol on Illustrator.
Then played around with 4 different Flat Gradients just to see how it would blends with Windows 11's UI Guidelines.
Here's the Result:
https://zacchino.com/shared/PowerToys_Icon-01.png (Dawn)
https://zacchino.com/shared/PowerToys_Icon-02.png (Electric)
https://zacchino.com/shared/PowerToys_Icon-03.png (Blush)
https://zacchino.com/shared/PowerToys_Icon-04.png (Aqua)
If that's already been taken care of, that's all good then!
If you like this idea, let me know which gradient works best for you, and if it needs some touch ups (i.e. add stronger borders, or frame it in a circle or a rounded square) , and I'll send over the necessary Assets (.ico / .svg / .png, etc).
I can also go further and create a short "Loading Animation" with it (in Animated SVG, Canvas, or GIF format).
Scenario when this would be used?

As the main Logo inside the App & MS Store
For the Executables & Systray Icons
As a Loading Animation (if needed)

Supporting information
MS PowerToys Logo hasn't been refreshed in a while.

Neat but No plans on updating the icon.

Alright, could you maybe let me know when this change / take this proposition into account when it comes back to the table, if you don't mind?

We have no plans on updating the primary icon any time soon. This icon fits in the suite of other utilities my team builds out.

Sure, I was just asking in case you guys need the Assets / Source files.
Happy to know it works for you guys!

authors: Zacchino crutkas


text:
希望能增加自定义每个模块开关的快捷键

Description of the new feature / enhancement
希望能增加自定义每个模块开关的快捷键
Scenario when this would be used?
任何时候
Supporting information
No response
CRUTKAS: Translation to English
Would love to add a shortcut #32138 to customize the switch for each module
Description of the new feature / enhancement
I hope to add shortcut keys to customize the switch of each module
Scenario when this would be used?
At all hours
Supporting information
No response

can you explain this more?  Right now this is a bit vague and what you think by the term "module"
Maybe outline what you'd hope by a few steps?
/needinfo

I'm sorry, I was just trying to give you feedback, but I didn't expect anyone to actually respond. Next, I would like to tell you that powertoys has many functions, such as one of the keyboard manager, I hope to have such a function, I can customize the shortcut key, such as win+shift+k, you can quickly open or close this function, the same way other functions can also customize the shortcuts key. Because I need to turn one of these functions on and off frequently (in essence, the keyboard manager), it is inconvenient to click the switch every time by open the program, and it would be much easier to have a shortcut key to switch the switch of a certain function.

@mbybtjh is your request covered by this issue: #4879

source: gharchive/issue

authors: TheJoeFin crutkas mbybtjh

repo: microsoft/PowerToys

license: MIT

license_type: permissive

license_source: github-api


text:
Mouse without Borders - Not Working at all

Microsoft PowerToys version
0.80.1
Installation method
Other (please specify in "Steps to Reproduce")
Running as admin
No
Area(s) with issue?
Mouse Without Borders
Steps to reproduce
PowerToysReport_2024-05-06-13-09-03.zip Machine 1
PowerToysReport_2024-05-06-13-08-58.zip Machine 2
Machine 1 is Win10 and Machine 2 is Win11 - this worked fine yesterday. Since then all I changed is the boot drive to a SATA SSD on Machine 1.
Both machines have the name of the other machine show up in the list but there's no colored box beside the other machine in either of them. Also Machine 2 has Machine 1's name show up capitalized and I am not sure how to change that.
The new key generation is also stuck - both of them are showing the same key in that field, and clicking new key does nothing.
They are both on the same network, ping requests go through.
 Machine 1
 Machine 2
✔ Expected Behavior

Machines connect and Mouse and Keyboard are shared seamlessly
New Key is generated when clicking on 'New Key' button

❌ Actual Behavior

Machines show each other's names, machine shows it as capitalized but they are not connected
New key is not being generated when clicking on 'New Key' button

Other Software
No response

Oh I forgot to add this I downloaded it for both the machines from the github page

Also had/have similar issue after updating to 0.80.1 where machines would see eachother but never connect.  Always the "yellow" border on the communication state.  Once I turned off the "Use Service" option on both machines things started working again.  Something definitely is off with that feature or something in a windows update is causing an issue (yes I know, a very technical analysis this is /s).

Not ideal, but I noticed that changing the network connection type from Public to Private restores the connection between the two laptops I am using. I lose connection as soon as I change it back to Public
Under Settings>Network & Internet> Ethernet
This is v0.81.1 (and the previous version).
Not sure why this would be the case..

I would like to contribute additional details regarding my experience with MWB to assist in resolving similar issues MWB may be facing, if the OP is fine with it.
I've tried different software KVMs, among which the working ones (without any operating system tweaks) are:

synergy
barrier
input leap
lan-mouse
and the following ones are not working no matter how I configure my network (e.g., Private/Public, device discoverability):
mouse without borders (MWB)
cursr

Moreover, I've tried to add IP address mapping to MWB, but it did not work either.


text:
The color picker appears behind the start menu and taskbar when the start menu is open

ℹ Computer information

Windows build number: 19042.330
PowerToys version: 0.20.0
PowerToy module: Color Picker

📝 Provide detailed reproduction steps (if any)

Launch the Color Picker
Open the start menu with the windows key
Try to select a color from the taskbar or from the start menu

✔ Expected result
The color picker's tooltip appears above the taskbar and start menu
❌ Actual result
The color picker's tooltip appears behind them. Clicking on them still successfully copies the color of whatever is under the mouse pointer.
📷 Screenshots

Duplicate of #5387


text:
Reuse FZ bug with taskbar

I remember in the early versions of PT, when the taskbar can sit on zones.
This bug can be used to imitate 'RocketDock' appearance. Create a floating zone for taskbar (with a small distance below the screen and a percent of horizontal width - to be specific).
There will be no need for additional software to enhance the desktop. This can make a lot of different setups.

@gczark
tracked in https://github.com/microsoft/PowerToys/issues/503

authors: enricogior gczark


text:
Conference mic and video overlay controls issue

ℹ Computer information

PowerToys version: v0.22.0
PowerToy Utility: Video Converence
Running PowerToys as Admin: Yes
Windows build number: 19041.508

📝 Provide detailed reproduction steps (if any)

Disable video conferencing utility in Power Toys.
Restart computer

When Windows starts up, the Mic and Camera button toggles in the top right corner are enabled even when Video Conferencing is disabled. Only when you toggle Video Conferencing on/off, it disappears.
✔ Expected result
The mic/camera buttons do not exist in the top right corner.
❌ Actual result
The mic/camera buttons are enabled in the top right corner.
📷 Screenshots

Is this also in the new experimental version?

Is this also in the new experimental version?

@Aaron-Junker As you can read in the environment section the issue is for 0.22.0. I know that this problem is definitely fixed in 0.24.0.

@Bamrman
Please update to the new experimental version: 0.24.0 The bug is fixed in the new version.

@htcfreek
Thanks. I installed the new version and it seems to work now.

authors: Aaron-Junker Bamrman htcfreek


text:
Upgrade any .NET Framework area to .NET Core 3

.NET Core 3 upgrade
Update all sections that use .NET to .NET Core 3
.NET Framework 4.7.2

[x] ColorPicker <- done by @snickler
[x] MarkdownPreviewHandler <- #8405
[x] PreviewHandlerCommon <- #8405
[x] SvgPreviewHandler <- #8405
[x] SVGThumbnailProvider <- #8405

Tests

[x] Microsoft.Interop.Tests <- done by @eriawan
[x] PreviewPaneUnitTests <- #8405
[x] UnitTests-PreviewHandlerCommon <- #8405
[x] UnitTests-SvgPreviewHandler <- #8405
[x] UnitTests-SvgThumbnailProvider <- #8405
[x] PowerToysTests <- done by @riverar WinAppDriver tests

.NET Standard 2.0

[x] Managed Common
[x] Telemetry
[x] Settings.UI.Library
[x] PowerLauncher.Telemetry

.NET Core 3.1

[x] FancyZonesEditor
[x] Settings.UI.Runner
[x] Settings.UI.UnitTests
[x] UnitTest-ColorPicker
[x] ImageResizerUI
[x] ImageResizerUITests
[x] PowerLauncher
[x] Wox.Infrastructure
[x] Wox.Plugin
[x] Wox.Test

UWP

[x] Settings.UI

Things to include

ReadyToRun should be timed to verify boost.  see blog post
PublishTrimmed to reduce file size.  see blog post

This issue has a pre-requisite https://github.com/microsoft/PowerToys/issues/866

Added the resolved label since on our side this is done.
Added the external label to indicate we are waiting of an external dependency to be available.

We might need to revert this guy after the migration.

Moving to backlong since we don't know when .Net Core will be available in the store compared to our roadmap.

We will adopt .Net Core 3.1

If #866 is solved, what's holding this back?

@haakoo, doing it this iteration :)  only so many hours in the day for the team and they were focusing on helping add in 4 new utilities and the 2 more new ones we will be shipping soon.

For FancyZone editor is better to do it in 0.19

. NET 5?

This is needed for #490

@davidegiacometti  what item(s) are you working on?  want to be sure we are not having anyone duplicating work

@crutkas

MarkdownPreviewHandler
PreviewHandlerCommon
SvgPreviewHandler
SVGThumbnailProvider
PreviewPaneUnitTests
UnitTests-PreviewHandlerCommon
UnitTests-SvgPreviewHandler
UnitTests-SvgThumbnailProvider

@davidegiacometti
please, open one PR per project, so it will be easier and faster to review and merge each one.
Thanks.

I'll take on porting the Color Picker

Will take a look at PowerToysTests <- WinAppDriver tests

I'm taking Microsoft.Interop.Tests migrate to .NET Core 3.1

.NET Core 3 upgrade
Update all sections that use .NET to .NET Core 3
.NET Framework 4.7.2

[x] ColorPicker <- done by @snickler

[x] MarkdownPreviewHandler <- #8405

[x] PreviewHandlerCommon <- #8405

[x] SvgPreviewHandler <- #8405

[x] SVGThumbnailProvider <- #8405

Tests

[x] Microsoft.Interop.Tests <- done by @eriawan

[x] PreviewPaneUnitTests <- #8405

[x] UnitTests-PreviewHandlerCommon <- #8405

[x] UnitTests-SvgPreviewHandler <- #8405

[x] UnitTests-SvgThumbnailProvider <- #8405

[x] PowerToysTests <- done by @riverar WinAppDriver tests

.NET Standard 2.0

[x] Managed Common

[x] Telemetry

[x] Settings.UI.Library

[x] PowerLauncher.Telemetry

.NET Core 3.1

[x] FancyZonesEditor

[x] Settings.UI.Runner

[x] Settings.UI.UnitTests

[x] UnitTest-ColorPicker

[x] ImageResizerUI

[x] ImageResizerUITests

[x] PowerLauncher

[x] Wox.Infrastructure

[x] Wox.Plugin

[x] Wox.Test

UWP

[x] Settings.UI

Things to include

ReadyToRun should be timed to verify boost.  see blog post

PublishTrimmed to reduce file size.  see blog post

authors: 17122019qer alannt777 crutkas davidegiacometti enricogior eriawan haakoo riverar snickler yuyoyuppe


text:
app.dark.png missing error at login

2020-11-07.txt

ℹ Computer information

PowerToys version: 0.23.2
PowerToy Utility: occurred at login
Running PowerToys as Admin: yes
Windows build number: 19041.572

📝 Provide detailed reproduction steps (if any)

…
…
…

✔ Expected result
It should run in the background.
❌ Actual result
The following error:
Version: 0.23.2.0
OS Version: Microsoft Windows NT 10.0.19041.0
IntPtr Length: 8
x64: TrueA
Date: 11/07/2020 10:17:04
Exception:
System.IO.FileNotFoundException: Could not find file 'C:\Program Files\PowerToys\modules\launcher\Images\app.dark.png'.
File name: 'C:\Program Files\PowerToys\modules\launcher\Images\app.dark.png'
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
at System.Windows.Media.Imaging.BitmapImage.EndInit()
at System.Windows.Media.Imaging.BitmapImage..ctor(Uri uriSource, RequestCachePolicy uriCachePolicy)
at Wox.Infrastructure.Image.ImageLoader.Initialize(Theme theme)
at PowerLauncher.App.<>c__DisplayClass15_0.b__0()
at Wox.Infrastructure.Stopwatch.Normal(String message, Action action)
at PowerLauncher.App.OnStartup(Object sender, StartupEventArgs e)
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
📷 Screenshots
Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

dup #7488


text:
A quick way to change layouts in FancyZone

Currently, if you want to change FancyZone Layouts, you will need to Launch the FancyZone Editor, click on the layout you want, then close the dialog box.
At the very least, it would be cool if one could simply double click on a layout to pick that layout and close the dialog box.
It would be even cooler if one could use a hot key to cycle through layouts.  (Similar to cycling though open apps with Alt+Tab, only you would cycle through layouts instead of apps.)
If you'd like to see this feature implemented, add a 👍 reaction to this post.

Duplicate of https://github.com/microsoft/PowerToys/issues/1411

authors: JRKuyper enricogior


text:
User/eho makai/reunion framework package

The current Project Reunion build pipeline looks like:
Azure Pipeline => build\ProjectReunion-CI.yml

job build
Steps:

ProjectReunion-BuildDev-Project-Steps.yml

ProjectReunion-Build-Project-Steps.yml
Steps:

BuildDateAndRevision.yml
Install Windows SDK
Install Nuget
VCTools
Nuget Restore
VS Build
Publish Build Artifacts

ProjectReunion-MakeFrameworkPackage-Steps.yml
foreach $platform and $config, call MakeAppxHelper.cmd, which calls MakeFrameworkPackage.cmd

CreateNugetPackage-Job.yml

The ProjectReunion-MakeFrameworkPackage-Steps.yml step wasn't running due to several errors which are corrected in this PR.  We now create framework packages containing the project reunion dll and winmd for each config and platform .
This will have to be resolved with Howard's PR for dynamic dependencies which also touches the Project Reunion solution and makes dissimilar changes to make a MSIX framework package.

This is a MUX vestige, delete this. :)

Refers to: build/FrameworkPackage/MakeFrameworkPackage.ps1:132 in 5b2f12c. [](commit_id = 5b2f12c0854a479dacf448c70fa1a2a136aeba9a, deletion_comment = False)

I also see you added the PNG file into the repo, you can delete that too.

In reply to: 684275288 [](ancestors = 684275288)

Refers to: build/FrameworkPackage/MakeFrameworkPackage.ps1:132 in 5b2f12c. [](commit_id = 5b2f12c0854a479dacf448c70fa1a2a136aeba9a, deletion_comment = False)

I probably should have asked this on the previous PR in this serios, but are there plans to include documentaiton on how to create the nuget file manually on a local machine?

This is a MUX vestige, delete this. :)
Refers to: build/FrameworkPackage/MakeFrameworkPackage.ps1:132 in 5b2f12c. [](commit_id = 5b2f12c, deletion_comment = False)

Done.

I probably should have asked this on the previous PR in this serios, but are there plans to include documentaiton on how to create the nuget file manually on a local machine?

Hi - the normal practice is to point the azure build pipeline at your topic branch and then go to the artifacts\drop output and pull the file from there.  I think there is a dev inner loop step we are porting from microsoft.ui.xaml repo in a later PR that might also accomplish this.  In fact, that's how I have been validating these changes all along (running azure pipeline builds against topic branch).

Right I see, thanks.

🕐

Do I "dismiss" here or do you verify and then sign off?

🕐

Jevan, re: "requested changes" do I "dismiss" here or do you verify and then sign off? Hopefully the latter.

That's the "waiting for changes" shorthand. I'll take a look at the delta and then sign off.

This will have to be resolved with Howard's PR for dynamic dependencies which also touches the Project Reunion solution and makes dissimilar changes to make a MSIX framework package.

I think our changes are orthogonal. I've added projects to the solution with custom build steps to make framework packages for testing purposes, but i think we cleanly merge today. Longer-term it should be possible to evolve our functional overlaps more closely but I don't see a problem here short term.

I didn’t touch the VS solution in a non-mergeable way so I agree this is likely to be mergeable/orthogonal.  I was going to review Howard’s PR today but it took all day to get the framework package work actually working correctly (thanks Jevan again).
-==-
From: Howard Kapustein notifications@github.com
Sent: Tuesday, September 1, 2020 5:41 PM
To: microsoft/ProjectReunion ProjectReunion@noreply.github.com
Cc: Elliot H Omiya (EHO) eho@microsoft.com; State change state_change@noreply.github.com
Subject: Re: [microsoft/ProjectReunion] User/eho makai/reunion framework package (#163)
This will have to be resolved with Howard's PR for dynamic dependencies which also touches the Project Reunion solution and makes dissimilar changes to make a MSIX framework package.
I think our changes are orthogonal. I've added projects to the solution with custom build steps to make framework packages for testing purposes, but i think we cleanly merge today. Longer-term it should be possible to evolve our functional overlaps more closely but I don't see a problem here short term.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FProjectReunion%2Fpull%2F163%23issuecomment-685209399&data=02|01|eho%40microsoft.com|6586324efab348f0440308d84ed8e206|72f988bf86f141af91ab2d7cd011db47|1|0|637346040697546477&sdata=CL3Btztuw19qArzffOSN7vXl4QilsQyN049sj1uQyS4%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPP376YAYXUDEZCIMYWNQHTSDWICJANCNFSM4QREHGLA&data=02|01|eho%40microsoft.com|6586324efab348f0440308d84ed8e206|72f988bf86f141af91ab2d7cd011db47|1|0|637346040697556475&sdata=Wdx%2B%2F0ZKQiwQNmUiJL3zOVh522N99sRsATGZ1ivFEG0%3D&reserved=0.

Thanks Jevan for the review and all the help. :-)

source: gharchive/pull-request

authors: DrusTheAxe EHO-makai chingucoding jevansaks

repo: microsoft/ProjectReunion


text:
Issues with documents filtering using tags

Hi,
We uploaded some files with multiple tags as seen below (e.g., project name: Wegstunnels AWA, project code: MN004259,  tender outcome: Gewonnen)

When using these tags on the app frontend before querying the model, we got diverse errors:

When selecting only one of the three tags, the completion always states that no data source is found (see below the completion, in Dutch sorry)

When selecting two or all three tags, we get instead an error:

We have looked into the code and are struggling to pinpoint the reason why it fails. Could we get some support on this?
The Git commit of the source code from this repo is: https://github.com/microsoft/PubSec-Info-Assistant/commit/27df39089a0a203c41ae153dc2539315559d0eeb
Thank you!

Hello - Found the issue here.
I have a solution in Pull Request https://github.com/microsoft/PubSec-Info-Assistant/pull/484
The issue being each tag was being quoted separately which was overloading the AZ Search function.
I made a change to normalize the parameter.

That's great thank you, we'll try it out!

Hi, we've just deployed the latest version of vNext-Dev (commit 0909c4b). The "Invalid Expression" error when using multiple tag is indeed gone, thank you! However, with one or multiple tag(s), the issue that no document source is found remains. If we query the database without any tag selected, we get an answer with citations. However, when we ask the same question but this time with one/multiple tag(s) selected, we get the message that no data source could be found (see screenshot in Dutch in previous message).
Is it this working well for you or other users?

I think I have a better understanding of that search API and have an idea that should make searching with multiple tags way more accurate. Will update here when I have more.

@PaulineJaquot The fix for this was not in the query this time but in the index itself.
The change exists in this PR https://github.com/microsoft/PubSec-Info-Assistant/pull/491
However, will require re-indexing of the source documents to correct the tags field.

Resolved with latest release v1.1

authors: PaulineJaquot dayland ryonsteele

repo: microsoft/PubSec-Info-Assistant


text:
Build and Release should include a utility for updating the OlToPurviewMappings in the ARM template

This is just a convenience as we are updating the OlToPurviewMappings more frequently now.

Closed with #185


text:
CLIP判别裁剪区域效果差

作者您好，我对您的这项工作非常感兴趣，但是我遇到一些问题想请教下您。我尝试将原图crop下来的区域图像（使用GT box进行crop）送入CLIP与COCO的80个类别计算相似度，但是反馈的结果令人不满意。比如对于一个在吃热狗的人，CLIP会将他判断为热狗（且概率非常高），但实际标签是人，而且这种误判情况非常多。您有遇到这种问题吗？请问遇到这种问题您有什么好的解决办法吗？

@nhw649 Thanks for your interest. Your finding is exactly what we demonstrated in Figure 1 of paper. Cropping image regions and feeding them to CLIP yields unsatisfactory performance (RCNN style). That's one of the major motivations of RegionCLIP.

@nhw649 Thanks for your interest. Your finding is exactly what we demonstrated in Figure 1 of paper. Cropping image regions and feeding them to CLIP yields unsatisfactory performance (RCNN style). That's one of the major motivations of RegionCLIP.

我直接使用你们提供的权重初始化CLIP编码器，这样就可以吗？

@nhw649 You can refer to region feature extraction. This script can extract features for image regions. Note that it's performed on the feature level (the context information is already encoded into region features), instead of the raw image level (not including the context information).

好的，我试试

So for image region classification of CLIP, which one is better? Crop and encode or encode and RoIAlign? Is there any direct evidence?  We can see from Fig.1 that RCNN style classification would lead to unsatisfactory results (19.1% Accuracy on LVIS), and from Tab.4 we can see the mAP of CLIP on LVIS (using RoIAlign and gt boxes) is 42.2. But I don't think these two metrics(accuracy v.s. mAP) are the same thing, is there any further ablation on this? Thank you in advance for your time!

So for image region classification of CLIP given gt boxes, which one is better? Crop and encode or encode and RoIAlign? Is there any direct evidence? We can see from Fig.1 that RCNN style classification would lead to unsatisfactory results (19.1% Accuracy on LVIS), and from Tab.4 we can see the mAP of CLIP on LVIS (using RoIAlign and gt boxes) is 42.2. But I don't think these two metrics(accuracy v.s. mAP) are the same thing, is there any further ablation on this? Thank you in advance for your time!

I think the effect is almost the same. You can try.

@lcxrocks @nhw649 The performance of "cropping and encode" highly depends on the way you crop the image regions. For example, cropping a larger box than the object region and ensembling multiple larger boxes can help to improve performance significantly (ViLD also reveals this observation). RoIAlign, in comparison, is designed for learning region representations and encourages the network to learn local features and context information in the cropped feature area. In my experiments, they had close performance.

@nhw649 You can refer to region feature extraction. This script can extract features for image regions. Note that it's performed on the feature level (the context information is already encoded into region features), instead of the raw image level (not including the context information).

Hi, I use the extract-region-features script to extract the region features and want to use it in the following task. However, I got the region features which shape is (100, 1024) almost be the same at each dimension from the example image. What make this happen? Are the 100 features come from the highest scores from the region recognition results? Why the 100 features are the same? Thanks for your time.

@nhw649 You can refer to region feature extraction. This script can extract features for image regions. Note that it's performed on the feature level (the context information is already encoded into region features), instead of the raw image level (not including the context information).

Hi, I use the extract-region-features script to extract the region features and want to use it in the following task. However, I got the region features which shape is (100, 1024) almost be the same at each dimension from the example image. What make this happen? Are the 100 features come from the highest scores from the region recognition results? Why the 100 features are the same? Thanks for your time.

You might want to print the bounding box coordinates. In this case, all 100 regions might be the same. This is because the localizer is not well set up. Please double-check your parameters for RPN.

@nhw649 You can refer to region feature extraction. This script can extract features for image regions. Note that it's performed on the feature level (the context information is already encoded into region features), instead of the raw image level (not including the context information).

Hi, I use the extract-region-features script to extract the region features and want to use it in the following task. However, I got the region features which shape is (100, 1024) almost be the same at each dimension from the example image. What make this happen? Are the 100 features come from the highest scores from the region recognition results? Why the 100 features are the same? Thanks for your time.

You might want to print the bounding box coordinates. In this case, all 100 regions might be the same. This is because the localizer is not well set up. Please double-check your parameters for RPN and NMS.

I got the 100 different box coordinates, but the feats are the same. I use the default config in the extract_feature_extraction.sh and I got this result:

authors: YiwuZhong jackiecy lcxrocks nhw649

repo: microsoft/RegionCLIP


text:
The app build failed to produce artifact folder: 'build'. Could help me as I am not aware about how this things work in webdev

@yuvraaj2002 did you trigger npm run build in your CodesSpace terminal ?

repo: microsoft/SATechnicalOnboarding


text:
connecting Microsoft SEAL with socket programming

Hello I am writing a code for my client-server model. I created a server and I used the header WS2tcpip.h in my code and it runs normally. Then I connected SEAL to a project that runs normally. Also I added the file server.cpp to the project that is connected to SEAL. However once I write this =>using namespace seal;
my code stops running and keeps giving 100 errors.
Any suggestions please?  does SEAl even work with winsock libraries like ws2_32 with header WS2tcpip2.h  or   winsock2 with header winsock2.h?

It should work fine, so I suspect something else is wrong. Maybe the header files are not correctly included? Did you add native/src to your project in the include directories?

I included SEAL paths in C/C++ -> Additonal include directories , and in Linker ->General->Additional library directories, also added seal.lib and ws2_32.lib in Linker -> Input - >Additional dependencies.
I get errors like this

It sounds like you did everything correctly. Would it be possible to share the project?

It sounds like you did everything correctly. Would it be possible to share the project?
sorry I recently saw this reply. I shared the .cpp and .h  files for my project.

Server(1).zip
please can you check it out.

Is there a reason why you commented out the SEAL header file from your includes? Maybe that's the only reason it doesn't work?

Actually my problem is when I uncomment them I get errors. For example this sample code gives errors when I run on a project connected to SEAL:
#include
#include <WS2tcpip.h>
#include "seal/seal.h"
#pragma comment (lib, "ws2_32.lib")
using namespace std;
using namespace seal;
void server() {
string s;

}
int main()
{
server();
}

Actually my problem is when I uncomment them I get errors. For example this sample code below gives errors when I run it on a project connected to SEAL:
#include
#include <WS2tcpip.h>
#include "seal/seal.h"
#pragma comment (lib, "ws2_32.lib")
using namespace std;
using namespace seal;
void server() {
string s;

}
int main()
{
server();
}

the first line is #include  but it is not appearing in the comment but i did add it in the code.

the first line is adding "iostream" library of c++ but when i post my comment it goes away.

authors: RachaElmo kimlaine

repo: microsoft/SEAL


text:
Colour scheme

Hi, the new colour scheme is unreadable. White on grey just blurs into a big blob for me, can you at least bring in a toggle to the old style so I could continue my studies?

I'm reasonably sure all pages pass all the a11y standards for colour definitions at 4:3 - could have missed something though, can you provide some screenshots?

Tried to take a picture of how bad it is, as you can see the camera compensated and completely washed out the code block instead. From my perspective trying to read it as a human it's all washed out - though not quite as bad as that code block.

Interesting, so this page the code is completely white for you? https://typescript-v2-405.now.sh/docs/handbook/functions.html

Please don't force dark theme in the documentation site and add a switcher light/dark theme. I'm also having problems with reading docs. I have a dark theme in OS, but it's not mean I need forcing dark theme in all websites without the possibility to switch it.
Thank you

I'm open to a light/dark switch in the footer 👍

@joshwcomeau has a good overview of what it takes to move to a non-flashing switcher for light/dark mode. https://joshwcomeau.com/gatsby/dark-mode/
I'm also open to that same switcher being two binary toggles which let you select light/dark for the code theme too like the new handbook draft pages: https://microsoft.github.io/TypeScript-New-Handbook/everything/

Please, can you tell me where is written this logic of theme in your code? I've failed in trying to find it.

@dandelionadia  - it's all done in CSS today (look for prefers-color-scheme in the code base)
You'd need to follow through with https://joshwcomeau.com/gatsby/dark-mode/  which occasionally is pretty deep gatsby stuff, so if you get stuck make a a WIP branch and ask

This means switching some of those CSS colour scheme detectors to use CSS variables
For the switch itself, just throw together a blank button or something, I can do some design work on it over the weekend
Ignore coloring code samples for now, that's a separate but linked issue, that will build on this work anyway

OK, this is done now (thanks @dandelionadia for the base to work from) - there's a theme switcher, I'm going to use #342 to be about switching the code samples

authors: PaulBags dandelionadia orta rmbaad

repo: microsoft/TypeScript-Website


text:
In JSDoc, ? of conditional is frequently parsed as postfix-?

TypeScript Version:  3.2.0-dev.20180927
Search Terms: JSDoc conditional types
Using Conditional Types in JSDoc comments confuses the TypeScript parser since the T extends Y ? A : B syntax looks similar to the Y? (meaning Y|null) syntax from JSDoc.
Code
/**
 * @template {{}} T
 * @param {T} o
 * @returns {T extends Readonly<infer U> ? (keyof U)[] : string[]}
 */
function Object_keys(o) {
	let keys = Object.keys(o);
	// @ts-ignore: Type assertion for stripping `Readonly<…>`
	return keys;
}

Expected behavior:
No error should be reported.
The type of Object_keys should be: <T extends {}>(o: T): T extends Readonly<infer U> ? (keyof U)[] : string[].
Actual behavior:
TypeScript compiler shows an error ("?" expected) and mistakes the existing ? operator for JSDoc <type>|null syntax.
The actual type therefor ends up being: <T extends {}>(o: T): T extends Readonly<infer U> | null ? (keyof U)[] : string[].
Possible fixes:

When encountering a top-level (not within parenthesis) ? token in an extends clause, scan ahead and check whether it is followed by an | or & token (type intersection or union operators). If yes, treat it as |null and keep processing; otherwise, assume it's the start of a conditional type declaration. (Requires at least an LF(2) parser.)
Prohibit the JSDoc ? operator in the top-level of an extends clause, always causing it to be treated as the start of the conditional type declaration.

Playground Link: None, Playground does not seem to support JavaScript with JSDoc instead of TypeScript as input.

Forbid conditional types in JSDoc. Postfix-? support is more important.

(2) is probably the best option if the implementation isn't too messy.

I also just ran into this bug (v3.4.3), was very confused about how the null got in there until I found this issue.

After discussion with the JSDoc people, who talked to Closure people, here's option (4):

Forbid postfix-? support. It is rarely used and was only included in Closure as legacy syntax.

👍 for (4) Forbid postfix-? support. It's confusing having both pre and post ? variants anyway, especially because in the postfix position it starts looking a lot like a ts optional property.

Found same problem when reprinting AST from jsdoc

I’ve found that moving the ? on a new line makes TypeScript parse it correctly as a conditional type:
/**
 * @template {{}} T
 * @param {T} o
 * @returns {T extends Readonly<infer U>
	? (keyof U)[] : string[]} */
function Object_keys(o) {
	return /** @type {any} */ (Object.keys(o));
}

https://github.com/microsoft/TypeScript/pull/39123 does not remove postfix-?, but at least it parses ? as a conditional type if possible. @ExE-Boss how does your example behave on a recent build of typescript (4.0 beta or nightly)?

It works correctly both with and without the new line.

That may be as close as we get to closing this bug then, because tuples now use postfix-? to indicate optional elements: [number,string?]. That means we can't get rid of postfix-? parsing entirely.

Well, [number, string?] is valid in TypeScript as well.
And the string? bit becomes (string | undefined)? instead of string | null, so it’s not the null union postfix‑?, but is instead the optional element postfix‑?.
I would however expect that [?string?] would become [(string | null | undefined)?] instead of [string | null] as it currently does in TypeScript 4.0‑beta.

Note that [number, string?] in JSDoc incorrectly produces [number, string | null] in TypeScript <= 3.9.

I would like to get rid of jsdoc-style postfix-? semantics entirely, including the parsing. It's an old syntax copied from Closure that Closure included for backward compatibility. Its remnants are going to cause minor errors like [?string?] as long as they're around.
I guess we could still get rid of the jsdoc interpretation of string? as string | null, if we made sure it wasn't too big of a breaking change.

authors: ExE-Boss brendankenny goodmind noinkling ntninja sandersn

repo: microsoft/TypeScript


text:
When monorepo like packages are linked through symlink and are not built editor cant resolve modules

@sheetalkamat - I am trying this out and noticed that it doesn't work in the case of things that are imported from the outDir rather than the src (in the case of a monorepo):

For a quick way to verify this, I prepared a monorepo for you to check it out:
https://github.com/kenotron/TypeScriptMonoRepo/tree/ts3.7
Things work okay if you do "yarn && yarn build", but if I understand this feature, it is meant to address the case where you can start editing in VS Code with Intellisense even before having to build something because we're traversing source rather than output.
Originally posted by @kenotron in https://github.com/microsoft/TypeScript/pull/32028#issuecomment-545637314

Have investigated this and currently we are not handling symlinks.. If the resolution happens to be looking at the output path for the referenced project, we make sure that the answer to fileExists and directory Exits is true so that the resolution uses the output file even when its not present.
In case of symlinks those paths are different eg. its looking for outDir in  "c:/temp/TypeScriptMonoRepo/node_modules/b/lib" instead of "c:/temp/TypeScriptMonoRepo/packages/b/lib". If resolution had asked for the later we would answer yes and resolution will succeed and we will use source file instead.

How hard is it to provide a flag here to traverse symlinks? I think this would enable a lot of monorepos to use this feature directly without resorting to the hack of the main field being src/index.ts

This applies to yarn workspaces (since symlinks are used under the cover) and it would be extremely useful to have them supported. Currently we still have to build manually..

@sarpik - the only workaround I see currently is to use the main field to point to a single entry point index. I currently have to create a script to change this at pre-publish time

authors: kenotron sarpik sheetalkamat


text:
Inference of “this” with higher order functions

TypeScript Version:  Version 3.8.0-dev.20191120
Search Terms:

higher order function "this" type inference
object literal "this" type inference

SO Link: https://stackoverflow.com/questions/58817677/typescript-inference-of-this-with-higher-order-functions
Code
When I define a method in an object literal, Typescript will correctly identify the type of this, e.g.:
const test = {
  foo: function() {
    return { type: 'foo' }
  },
  bar: function() {
    // Usage of "this" is fine for Typescript.
    return { type: 'bar', foo: this.foo() }
  }
}

This breaks when I use a higher order function to wrap the method:
function hof<THIS, RESULT>(wrapped: (this: THIS) => RESULT): (this: THIS) => RESULT {
  return function() {
    return wrapped.call(this)
  }
}

const test = {
  foo: function() {
    return { type: 'foo' }
  },
  bar: hof(function() {
    // TS2339: Property 'foo' does not exist on type 'unknown'.
    return { type: 'bar', foo: this.foo() }
  })
}

Expected behavior:
No compilation error.
Actual behavior:
failing.ts:12:37 - error TS2339: Property 'foo' does not exist on type 'unknown'.

12     return { type: 'bar', foo: this.foo() }

The "right" way to do this would be to specify that the function expression needs to be invoke with the context of test:
   bar: hof(function(this: typeof test)

But in this case that generates a circularity

authors: RyanCavanaugh bspot


text:
writable should not accept readonly

TypeScript Version:  3.9.3

Search Terms:
Code
const obj :{ prop: number } = { prop: 0 } as { readonly prop: number };
obj.prop = 1;

Expected behavior:
error
Actual behavior:
no error
Playground Link:
Related Issues:

Duplicate of #13347.

Playground link: link
Code
const readonlyObj: { readonly prop: number } = { prop: 0 }
// readonlyObj.prop = 1 // error: Cannot assign to 'prop' because it is a read-only property.(2540)
const obj: { prop: number } = readonlyObj;
obj.prop = 1;

authors: LongTengDao MartinJohns mathieucaroff


text:
Using imported modules in the VSCode debug console

Bug Report
When using the VSCode Debug Console when the execution is paused, I get this for everything that is imported:
Uncaught ReferenceError: Foo is not defined
This is on a simple piece of code like this:
import Foo from 'foo'

Foo.bar()

When I run this in the debug console: Foo.bar()
I can work around it in the debug console like this:
_Foo.Foo.bar()
In the closure scope, all the imported modules are shown and that's where I got the _Foo from.
Seems like when running Typescript, this should just work in the debug console?
🔎 Search Terms
"debug console"
🕗 Version & Regression Information
Node 12.20.1
VSCode 1.54.1
Typescript 4.1.2
💻 Code
Tsconfig:
{
  "compilerOptions": {
    "target": "ES2019",
    "module": "commonjs",
    "strict": true,
    "outDir": "dist",
    "importHelpers": true,
    "moduleResolution": "node",
    "experimentalDecorators": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strictPropertyInitialization": false,
    "strictNullChecks": false,
    "noImplicitAny": false,
    "sourceMap": true,
    "baseUrl": ".",
    "paths": {
      "*": [
        "node_modules/*"
      ]
    },
    "lib": [
      "dom"
    ]
  },
  "include": [
    "src/**/*",
    "tests/**/*.test.ts"
  ],
  "exclude": [
    "snippets/**/*"
  ]
}

🙁 Actual behavior
Getting an error in the debug console when copy pasting a piece of source code with imported module that should be able to run as is.
🙂 Expected behavior
Every piece of source code where the debugger is currently paused, should be runnable in the debug console.

This issue is reported here as well, but it might be more Typescript related.

See existing https://github.com/microsoft/vscode/issues/12066 and https://github.com/microsoft/TypeScript/issues/9627

authors: Christilut IllusionMH


text:
TS Server fatal error:  Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isUnaryExpression'.

Type: Bug
❗❗❗ Please fill in the sections below to help us diagnose the issue ❗❗❗
TypeScript Version: 5.0.2
Steps to reproduce crash

TS Server Log
❗ Server logging disabled. To help us fix crashes like this, please enable logging by setting:
"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.
TS Server Error Stack
Server: semantic
Error: Debug Failure. Invalid cast. The supplied value [object Object] did not pass the test 'isUnaryExpression'.
    at cast (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:3443:16)
    at Object.parenthesizeOperandOfPrefixUnary (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:21786:50)
    at Object.createPrefixUnaryExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:23915:41)
    at parsePrefixUnaryExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33520:32)
    at parseSimpleUnaryExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33572:16)
    at parseUnaryExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33554:35)
    at parseBinaryExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33472:25)
    at parseAssignmentExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33145:18)
    at parseArgumentOrArrayLiteralElement (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:34228:170)
    at parseListElement (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:31579:12)
    at parseDelimitedList (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:31818:24)
    at parseArrayLiteralExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:34241:22)
    at parsePrimaryExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:34178:16)
    at parseMemberExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33655:24)
    at parseLeftHandSideExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33649:82)
    at parseUpdateExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33624:24)
    at parseUnaryExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33550:32)
    at parseBinaryExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33472:25)
    at parseAssignmentExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33145:18)
    at parseArgumentOrArrayLiteralElement (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:34228:170)
    at parseListElement (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:31579:12)
    at parseDelimitedList (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:31818:24)
    at parseArrayLiteralExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:34241:22)
    at parsePrimaryExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:34178:16)
    at parseMemberExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33655:24)
    at parseLeftHandSideExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33649:82)
    at parseUpdateExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33624:24)
    at parseUnaryExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33550:32)
    at parseBinaryExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33472:25)
    at parseAssignmentExpressionOrHigher (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33145:18)
    at parseExpression (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:33111:16)
    at doOutsideOfContext (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:30808:12)
    at allowInAnd (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:30829:12)
    at parseExpressionOrLabeledStatement (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:34623:24)
    at parseStatement (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:34855:12)
    at parseListElement (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:31579:12)
    at parseList (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:31564:19)
    at parseSourceFileWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:30624:24)
    at Object.parseSourceFile (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:30457:20)
    at createSourceFile (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:30290:21)
    at createLanguageServiceSourceFile (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135139:22)
    at acquireOrUpdateDocument (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:132053:26)
    at Object.acquireDocumentWithKey (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:131978:12)
    at getOrCreateSourceFileByPath (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135464:31)
    at Object.getOrCreateSourceFile (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135444:14)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135376:42
    at Object.getSourceFileWithCache [as getSourceFile] (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:117127:24)
    at findSourceFileWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:119460:23)
    at findSourceFile (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:119380:20)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:119329:22
    at getSourceFileFromReferenceWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:119298:26)
    at processSourceFile (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:119327:5)
    at processRootFile (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:119123:5)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:117908:41
    at forEach (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:2307:22)
    at createProgram (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:117908:5)
    at synchronizeHostData (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135400:15)
    at Object.getProgram (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:135472:5)
    at ConfiguredProject2.updateGraphWorker (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:172153:41)
    at ConfiguredProject2.updateGraph (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:172090:32)
    at ConfiguredProject2.updateGraph (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173272:24)
    at _ProjectService.createLoadAndUpdateConfiguredProject (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:174879:13)
    at _ProjectService.assignProjectToOpenedScriptInfo (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:175970:26)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176250:64
    at flatMap (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:2555:17)
    at _ProjectService.applyChangesInOpenFiles (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176250:24)
    at updateOpen (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177395:29)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179962:69
    at IpcIOSession.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179954:14)
    at IpcIOSession.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179962:29)
    at IpcIOSession.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180004:51)
    at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:181571:14)
    at process.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

VS Code version: Code 1.77.0 (Universal) (7f329fe6c66b0f86ae1574c2911b681ad5a45d63, 2023-03-29T09:57:11.797Z)
OS version: Darwin arm64 22.4.0
Modes:
Sandboxed: Yes

System Info

Item
Value

CPUs
Apple M1 Max (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
27, 19, 14

Memory (System)
32.00GB (3.18GB free)

Process Argv
--crash-reporter-id 2e515fa3-9ac9-427f-b4e8-572c4c6c77ee

Screen Reader
no

VM
0%

Extensions (23)

Extension
Author (truncated)
Version

vscode-expo
byC
0.9.2

path-intellisense
chr
2.8.4

gitignore
cod
0.9.0

vscode-eslint
dba
2.4.0

xml
Dot
2.5.1

gitlens
eam
13.4.0

auto-close-tag
for
0.5.14

auto-rename-tag
for
0.1.10

codespaces
Git
1.14.2

remotehub
Git
0.54.0

vscode-pull-request-github
Git
0.62.0

dotenv
mik
1.0.1

vscode-docker
ms-
1.24.0

remote-repositories
ms-
0.32.0

vscode-react-native
msj
1.10.2

color-highlight
nau
2.5.0

indent-rainbow
ode
8.3.1

material-icon-theme
PKi
4.25.0

vscode-xml
red
0.24.0

vscode-yaml
red
1.12.2

code-spell-checker
str
2.20.3

code-spell-checker-portuguese-brazilian
str
2.0.12

markdown-all-in-one
yzh
3.5.1

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30610678
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
a9j8j154:30646983
showlangstatbar:30672706
vsctsb:30677850
vscodeenable:30660116
pythonb192:30669360
defaultazurewalk:30687958
pythonms35:30701012

For me this was because of the React Native's new Hermes Engine. It produces binary .js files which tsc tries and fails to compile (because they aren't actually js). The solution is to exclude the dist folder by adding the following to your tsconfig.json: "exclude": [..., "dist"]
For example if using "extends": "expo/tsconfig.base" you can copy the original array and add the dist folder: "exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js", "dist"]

Worked for me too! thanks

Metapoint: it's really not great that Hermes is writing .js files that don't contain JS code. All that's likely to do is cause tools to crash or waste time, though in this particular case, these files should really be excluded because they're output files and so peoples' tsconfigs are definitely misconfigured.

We could really use a Hermes binary JS file for each Hermes bytecode version so we can detect and avoid them. Anyone able to upload those artifacts?

Metapoint: it's really not great that Hermes is writing .js files that don't contain JS code. All that's likely to do is cause tools to crash or waste time, though in this particular case, these files should really be excluded because they're output files and so peoples' tsconfigs are definitely misconfigured.

That's a good point, according to this draft RFC the files are supposed to have the .hbc file extension. No idea why React Native emits them as .js.

We could really use a Hermes binary JS file for each Hermes bytecode version so we can detect and avoid them. Anyone able to upload those artifacts?

Unfortunately I cannot provide the binary because it's part of an internal project, however any project compiled with the latest React Native/Expo version should produce the bytecode you're looking for. Also from the above draft RFC it seems like Hermes bytecode should always start with the magic number 0xC61FBC03C103191F. I have been able to confirm that using my own bytecode. That could be used for detection as an alternative to the extension.

Or as an alternative idea tsc could ignore any file with unrecognized characters and issue a warning instead of erroring out, but that might be a bit too drastic of a change.

That's a good point, according to this draft RFC the files are supposed to have the .hbc file extension. No idea why React Native emits them as .js.

Hi all,
Nicola here from the React Native team.
Providing context from the React Native Android + Hermes build pipeline. To the best of my knowledge, we don't emit .js files from Hermes.
Hermes produces .hbc files, which gets renamed to the bundle filename that the user specifies, that usually ends with .bundle.
For example for our RN Tester project (the sample app of React Native), the hermes output will be placed inside a file located in:
packages/rn-tester/android/app/build/generated/assets/createBundleHermesReleaseJsAndAssets/RNTesterApp.android.bundle

Users can override the final bundle location, so if they specify a filename that ends with .js, we will honor it.
So I believe here the root cause could be some sort of misconfiguration on the user side.
Codepointers to the Android logic for futher context: https://github.com/facebook/react-native/blob/bece6500f7d6374eab09917c9afd3bf6142f0b61/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/tasks/BundleHermesCTask.kt#L92-L113

Please, someone, please
please post a concrete repro (zip file, repo, etc)
We really do need one! Please!

Related is #50675; is everyone here using expo? Is that who's writing to the wrong file?
But again, please... a repro...

Related is #50675; is everyone here using expo? Is that who's writing to the wrong file extension?
But again, please... a repro...

eas is what's writing the files which are causing the issue, see below.
https://github.com/microsoft/TypeScript/issues/53114#issuecomment-1496730654
npx create-react-app test-app --template expo-template-tabs
cd test-app
eas update --auto
ls -al ./dist

authors: RyanCavanaugh cortinico jakebailey lovveapp nathanlepori vecsq


text:
Unresolved "any" is not "any"

Bug Report

🔎 Search Terms

any, unresolved
🕗 Version & Regression Information

This changed between versions 5.0.4 and 5.1.3

⏯ Playground Link

Playground link with relevant code
💻 Code

type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false;
type PickNotAny<A, B> = IsAny<A> extends true ? B : A;

// @ts-ignore
type a = import('vue').GlobalComponents
//   ^?

type GlobalComponents =
//   ^?
	// @ts-ignore
	PickNotAny<import('vue').GlobalComponents, {}>

type GlobalComponents2 =
//   ^?
	// @ts-ignore
	PickNotAny<any, {}>

🙁 Actual behavior

¯_(ツ)_/¯
🙂 Expected behavior

They should not behave differently

Update: not right actually. Types include unresolved imports will be turned into any, no matter what they do. So a shorter demo: Link

Just for to make it clearer:
type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false;

type A = IsAny<any>; // ✅ type A = true
type B = IsAny<import('vue').GlobalComponents>; // ❌ type B = any
type C = IsAny<import('vue').GlobalComponents & {}>; // ✅ type C = true

There are no specific guarantees on what happens when there is an error type in your program.

That's true. However, the type of it is literally any, but it doesn't behave like any.

Maybe you are right!
However I still prefer the former behavior. Typing it as any but it does not behave like any ismisleading. What's more, because volar imports the GlobalComponent interface from three different packages and the users maybe install one of them only (detecting whether they were installed without type system will increase workload), we rely on the former behavior to detect whether they were installed. If not, the interfaces are simply any and we can fallback to an empty interface. But in 5.1.3 we'll need a hack to fix that. In short, the old behavior is useful in some cases, but that in 5.1.3 is not intuitive.

My suspicion is that any check that requires a @ts-ignore in the source to work at all will never be a supported use case.  You are more or less in “undefined behavior” territory; here be dragons.

authors: RyanCavanaugh fatcerberus johnsoncodehk so1ve


text:
Automatically inserting JSX closing element in TypeScript JSX file

Currently, when users type non self-closing JSX tag, they will have to type corresponding closing JSX tag. In this situation, our language service can help the users by automatically insert the corresponding JSX tag. The newly inserted tag should respect existing format and If the matching closing tag exists, the closing tag should not be insert.
var x =
 [insert by language-service]

var y =

[insert by language-service]

var z =

     [insert by language-service]

@mhegazy I was thinking we would do this as a "formatting" edit, rather than in the VS layer. Thoughts?

Well, i think this more akin of doc comment scaffolding, and brace completion, the host needs to ask about it. formatting could be disabled, and or not invoked if you just moved the cursor..

As part of that it would nice to have two additional improvements to JSX/TSX experience that already is supported by HTML editor.

Automatically change closing tag while opening tag is changing.
Wrap with
 (Shift + Alt + W)

Does it mean that you have no plans to implement this feature?https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/12584319-provide-automatic-tag-closing-in-jsx-tsx

Any updates on this issue?

This is quite an annoying bug and makes Visual Studio 2019 pretty much useless. Only way I have found to get around this was to find a copy of VS2017 where it still worked. When is MS going to figure out that its the users that keep these products going, stop telling us what to use and not to use, please fix this feature.

Not sure if this is a separate feature or related, but I also wish that the closing tag would rename along with the opening tag like they do in html and cshtml files in VS.

Its been nearly 4 years since this issue was opened. Any updates on whether it will be taken up at all?

I was able to get this somewhat working, I found that if you escape out of the initial context menu (press esc) after entering
</ then hit CTRL + Space then it will insert the closing tag

. For some reason they added an extra key stroke to finish the autocomplete.

This is quite an annoying bug and makes Visual Studio 2019 pretty much useless. Only way I have found to get around this was to find a copy of VS2017 where it still worked. When is MS going to figure out that its the users that keep these products going, stop telling us what to use and not to use, please fix this feature.

I'm on VS 2017 but this doesn't work for me in tsx files.

Does this affect VSCode on js files too?

bump. ^^^ still a problem with VS2019.
shouldn't the premium IDE have an auto close on HTML tags in JSX/TSX files???

Does tsserver support auto-closing JSX tags?

I believe this worked before: https://github.com/Microsoft/TypeScript/issues/15897 🙂
Does anyone know how it got broken?

Bumping again 🙂  Autocomplete of JSX closing tags in Visual Studio 2019 is broken, which, IMHO, seems like it should be a pretty high priority item 😉
@RyanCavanaugh Sorry to tag you personally, but would you be the person to look into this?

Sorry, but just following up on this. @mhegazy, do you perhaps know who we should contact about this? It's an important issue for Visual Studio, I think 🙂

I'd like to bump this as well. If there's anyone who is able to find a fix--I've tried multiple typescript extension versions.
I've also noted that Visual Studio 2019 Pro is unable to import React from 'react' for newly created files. I have to restart the IDE for the reference to be resolved.

cc @uniqueiniquity

Hi @Reckoning47 - I'm sorry you're experiencing this issue with Visual Studio 2019.
Could you please use the Report A Problem functionality in Visual Studio to provide a recording of the issue?
Thank you!

The screen recording does not pick up the autocomplete window, but I was able to capture the essence of what I need. I have autoclosing tags enabled, yet they do not autoclose or even suggest to close the element correctly. The Report A Problem page redirects to this issue.

The issue that I'm seeing is slightly different, but I think it might still be related to this 🙂

Create a new .jsx file
Add a return() statement, so that you can return some HTML.
Add an opening tag, such as

Type </di and autocomplete: The closing tag that you began typing (</di) is transformed into an opening tag (
), and the / is lost. That is, when the closing tag is autocompleted, it gets converted into an opening tag.

I've reported a problem at https://developercommunity.visualstudio.com/t/autocomplete-in-jsx-files-changes-closing-tags-int/1478145?from=email . It includes a recording of the problem.
I'm seeing this issue in the latest version of Visual Studio 2019.
The issue appears to also have been reported here: https://developercommunity.visualstudio.com/t/When-I-wrote-tsx-tags-are-not-closing-au/1106328

This is broken for TSServer too. I don't get completion for JSX elements inside Atom, which uses TSServer.

Hi @Reckoning47 - I'm sorry you're experiencing this issue with Visual Studio 2019. Could you please use the Report A Problem functionality in Visual Studio to provide a recording of the issue? Thank you!

Visual Studio feedback team has kicked this back over to the TypeScript team. This issue has been on-going for several years now! I pay thousands a year to get a premium IDE with these features, and yet time and again, I have to resort to using a free product - from the same company - in order to be productive with my development. I am not alone in this issue. Please, someone take responsibility for this and resolve it, as soon as possible! This has been going on for too long.

Solved it !!!
I don't know how can I record it, but simply said
in Visual Studio (Community at least)
Tools => Options => Text Editor => JavaScript/TypeScript => Intellisense
uncheck the box "Only use Tab or Enter to Commit"
hope this works and makes your day

True! It works for me using VS 2022.
To clarify, unchecking "Only use Tab or Enter to Commit" will help here:

</

But not here

Wow, thanks for that fix, @mk-16!! ^_^
To anyone who's experiencing this issue, please upvote the two Visual Studio bug reports about this 🙂

https://developercommunity.visualstudio.com/t/When-I-wrote-tsx-tags-are-not-closing-au/1106328
https://developercommunity.visualstudio.com/t/autocomplete-in-jsx-files-changes-closing-tags-int/1478145?from=email

@uniqueiniquity, You assigned this to @rakatyal. Is that still correct? 🙂
There are two items in this Github issue:

Feature request: Make it so that VS automatically inserts closing tags.
Bug report: The autocomplete for the closing tag is wrong (e.g. It autocompletes with
 when it should autocomplete with
)

Would it be helpful for us to split the bug off into a separate issue?
Thanks 🙂

authors: AndyBraham Bosch-Eli-Black ChristopherHaws InariTheFox Reckoning47 RyanCavanaugh aminya boboPD danielo515 erikmartinessanches feafarot mhegazy michaelrinderle mk-16 olmobrutall rosieks uniqueiniquity yuit


text:
Re-order reduce overloads

Fixes https://github.com/microsoft/TypeScript/issues/7014

Has the version 4.x been fixed?

Unfortunately, too much time has passed since we accepted #7014, and any single change to Array methods is likely to be a breaking change whose cost outweighs its benefits. We should only consider fixing it with all the other Array methods in https://github.com/microsoft/TypeScript/issues/36554.
This PR should be closed since it's likely that the full Array method overhaul will look somewhat different. @okmttdhr does that sound OK to you?

No problem, and I agree with that we should consider fixing it with all the other Array methods. I’m closing this PR

authors: SCWR okmttdhr sandersn


text:
Expand exception to contravariant constraint elision to all type variables

Fixes #43578

@typescript-bot test this
@typescript-bot user test this
@typescript-bot run dt
@typescript-bot perf test this faster
@typescript-bot pack this


text:
[WIP] feat(53461): Implement decorator metadata proposal

Fixes #53461

Should the emitDecoratorMetadata option be used to emit metadata for ES decorators?
The test samples were taken from the specification proposal-decorator-metadata
Playground

FYI @rbuckton

Ideally, we can take this for the 5.2 beta which has a deadline of this Friday. Let me know if you need me to help with any part of this PR to get it in this week.

@rbuckton Thank you so much for taking the time to review this PR 👍🏻. I have added the esnext.decorators library and made changes related to types and factory helpers. I have noticed that the super call is transformed into Reflect.get in classFields. I'm not entirely sure if this is okay, I will check it tomorrow…

@rbuckton I've merged changes from the main

It looks like one of your evaluation tests is failing.

@typescript-bot pack this

It looks like one of your evaluation tests is failing.

Yes. It due to https://github.com/microsoft/TypeScript/pull/54657#discussion_r1239009504

We should also add this to esnext.decorators.d.ts:
interface Function {
  [Symbol.metadata]?: object | null;
}

This is looking fairly close to ready, once the baselines are reviewed and accepted I'll hopefully be able to take a final pass and approve.

@rbuckton What are your thoughts on moving the following types from decorators.d to esnext.decorators.d?
interface Function {
  [Symbol.metadata]?: object | null;
}

It shouldn't be optional since it will already get the | undefined from the DecoratorMetadata type with the definition I suggested. Placing it in esnext.decorators makes sense given the dependence on Symbol.

oke, I've moved it to esnext.decorators.d.

It shouldn't be optional since it will already get the | undefined from the DecoratorMetadata type with the definition I suggested. Placing it in esnext.decorators makes sense given the dependence on Symbol.

I should have added more detail to this, but it was late. The main reason to not make it an optional property of Function is that we wouldn't be able to make it not optional in esnext (or es2024, etc.). There is a way to do that, but it would have been more complex and employ the same mechanism as DecoratorMetadata already does, i.e.:
type FunctionMetadata =
    typeof globalThis extends { Symbol: { readonly metadata: symbol } } ? {
        [Symbol.metadata]: DecoratorMetadataObject | null;
    } : {
        [Symbol.metadata]?: DecoratorMetadataObject | null;
    };

interface Function extends FunctionMetadata {
}

But I think the approach of just using DecoratorMetadata—which already includes this conditional—and leaving the property as non-optional is fine.

authors: a-tarasyuk jakebailey rbuckton


text:
Error starting VoTT after installing (Linux 18.04)

Describe the bug
After running sudo snap install vott-2.1.0-linux.snap, I get a successful installation message.
When running vott, I encounter the following:
ln: failed to create symbolic link '/home/user/snap/vott/x1/snap/vott/x1/Documents': No such file or directory
ln: failed to create symbolic link '/home/user/snap/vott/x1/snap/vott/x1/Desktop': No such file or directory
ln: failed to create symbolic link '/home/user/snap/vott/x1/snap/vott/x1/Downloads': No such file or directory
ln: failed to create symbolic link '/home/user/snap/vott/x1/snap/vott/x1/Music': No such file or directory
ln: failed to create symbolic link '/home/user/snap/vott/x1/snap/vott/x1/Pictures': No such file or directory
ln: failed to create symbolic link '/home/user/snap/vott/x1/snap/vott/x1/Videos': No such file or directory
ln: failed to create symbolic link '/home/user/snap/vott/x1/snap/vott/x1/Public': No such file or directory
ln: failed to create symbolic link '/home/user/snap/vott/x1/snap/vott/x1/Templates': No such file or directory

To Reproduce
Steps to reproduce the behavior:

wget https://github.com/microsoft/VoTT/releases/download/v2.1.0/vott-2.1.0-linux.snap
sudo snap install vott-2.1.0-linux.snap
vott

Expected behavior
VoTT application to start.
Desktop (please complete the following information):

OS: Linux Ubuntu 18.04.4 LTS

If your system does not have snap installed rung the following:
sudo apt update && sudo apt install snapd
We do not currently sign our releases and you may receive error messages when attempting to install.  It is required to use the --dangerous flag.
Please try installing with the following:
snap install --dangerous vott-2.2.0-linux.snap

authors: tauhlim wbreza

repo: microsoft/VoTT


text:
SSH Connection Issues when on VPN

Your Windows build number:  Version 10.0.19041.153
What you're doing and what's happening:
While connected to the company VPN some SSH connections fail / get stuck. This is most notably happening with GIT (push) & SSH Tunnels to Kubernetes clusters. After disconnecting, the commands work as expected.
Executing the same command on the Windows Command Line works when connected to the VPN. I could observe this with different servers (e.g. GitHub + self-hosted Git Server). Also this does not affect all repositories on that server at once - for some repositories this still does work while for others it won't. If it doesn't work it will continue to not work for a week or so, at some point it will work again and others will fail. Other git commands, like git fetch , git pull still do work, only pushes do not work.
What's wrong / what should be happening instead: SSH Should not hang.
Strace of the failing command, if applicable:
Last few hundred lines of the strace, and git SSH command output in verbose mode: Gist
VPN Connection Type: L2TP/IPSec

Upon further investigation this was due to the VPN connection using a MTU of 1400.
tracepath suggests to use an MTU of 1400:
 1?: [LOCALHOST]                      pmtu 1500                                                                                1:  lp-gerneth-fritz                                      0.249ms                                                                                1:  lp-gerneth-fritz                                      0.281ms                                                                                2:  lp-gerneth-fritz                                      0.306ms pmtu 1400                                                                                2:  no reply                                                                                3:  no reply                                                                                4:  no reply

However the detected MTU seems to get ignored. Manually setting the MTU to 1400 fixes this issue.
Wondering why this seems to get ignored though. Might be related to this, did not test this further though.

Merging this into /dupe #4698 which arrived to the same MTU conclusion.

Merging this into /dupe #4698 which arrived to the same MTU conclusion.

authors: fritz-gerneth therealkenc

repo: microsoft/WSL


text:
Using VS code to creat tests

Please share steps how to use VS code for implementing/creating tests

Have you tried anything yet.

I didn't tried anything. Wanted to know if there are any steps to achieve same.

Which language binding are you planning to use?

Which language binding are you planning to use?

Want to use Java.

Want to use Java.

Check the link
https://code.visualstudio.com/docs/java/java-tutorial

Check the link
https://code.visualstudio.com/docs/java/java-tutorial

This will help you to get started

This will help you to get started

Thanks, I will try it.

Thanks, I will try it.

repo: microsoft/WinAppDriver


text:
Session can´t find childWindow(s)

Hi,
i can´t find the child window of my windows application. I am using WPF. The windows are under the same processes and there is no splashing screen.
I´ve tried to transfer the solution of #99, but the WindowPopUpFinder throws an timeout error.
I also gave back the window handles, but i just got 1 item, the application itself.

Here you can see the hierarchy. I am opening the mediaCollectionWindow with a MenuItem.
When I´m trying this:
            // Open menu
            WindowsElement menu = _mainWindow.FindElementByAccessibilityId(MAIN_WINDOW.MENU_VIDEO);
            menu.Click();

            // Open modal window via finder
            WindowsElement openVideoWindow =
(WindowsElement)menu.FindElementByAccessibilityId(MAIN_WINDOW.MENU_ITEM_OPEN_VIDEO);
            PopupWindowFinder finder = new PopupWindowFinder(_mainWindow);
            Thread.Sleep(2000);
            string videoWindowHandler = finder.Click(openVideoWindow);

            // switch to window
            WindowsDriver<WindowsElement> videoWindow =
(WindowsDriver<WindowsElement>)_mainWindow.SwitchTo().Window(videoWindowHandler);

i get the timeout answer as "User-Unhandled"-Exception.
Here i also got an timeout-exception:
            // Open menu
            WindowsElement menu =
_mainWindow.FindElementByAccessibilityId(MAIN_WINDOW.MENU_VIDEO);
            menu.Click();

            // Open modal window
            menu.FindElementByAccessibilityId(MAIN_WINDOW.MENU_ITEM_OPEN_VIDEO).Click();
            Thread.Sleep(2000);

            // switch to window
            WindowsDriver<WindowsElement> videoWindow =
(WindowsDriver<WindowsElement>)_mainWindow.SwitchTo().Window(MEDIA_COLLECTION.MEDIA_COLLECTION_WINDOW_TITLE);

And here i got just one item
            ReadOnlyCollection<string> windowHandlesBefore = _mainWindow.WindowHandles;

            // Open menu
            WindowsElement menu = _mainWindow.FindElementByAccessibilityId(MAIN_WINDOW.MENU_VIDEO);
            menu.Click();

            // Open modal window
            menu.FindElementByAccessibilityId(MAIN_WINDOW.MENU_ITEM_OPEN_VIDEO).Click();
            Thread.Sleep(2000);

            // Look for windows
            ReadOnlyCollection<string> windowHandlesAfter = _mainWindow.WindowHandles;

And here is the result

Try using the WinAppDriver UI Recorder instead of inspect.exe.
Try accessing the child window through a desktop session, maybe it is fired from the WPF application window but it is not a child of the window.

@naeemakram thank you for your fast answer. The second answer didn´t work, i have the same problem (empty window collection and timeout).
But i guess there is another problem. I am using Windows Server 2016. Does the desktop session work here too?
I tried this:
            // TODO: from desktop Session
            WindowsDriver<WindowsElement> desktopSession = WindowSession.StartDesktopSession();
            desktopSession.Keyboard.PressKey(OpenQA.Selenium.Keys.Command + "a" + OpenQA.Selenium.Keys.Command);
            var collection = desktopSession.WindowHandles;
            desktopSession.SwitchTo().Window(MEDIA_COLLECTION.MEDIA_COLLECTION_WINDOW);

And got empty collection of window

I outsourced the connection code:
        public static WindowsDriver<WindowsElement> StartDesktopSession()
        {
            return new WindowsDriver<WindowsElement>(new Uri("http://10.128.190.109:4723/wd/hub"),
            SetDesktopCapabilities());
        }

        private static DesiredCapabilities SetDesktopCapabilities()
        {
            DesiredCapabilities capabilities = new DesiredCapabilities();
            capabilities.SetCapability("app", "Root");

            return capabilities;
        }

I'm sorry, I can't say for sure since I haven't tried on Windows Server 2016.
Which version of WinAppDriver are you using? I remember someone had a problem finding windows using desktop session in recent stable release(1.1). If you're using the stable release, try using the pre-release version i.e. 1.1.1.

I ran into similar problem in a .NET Core 3 WPF project. No splash screen. WindowHandles would only return the main window handle even after child windows were opened. The parent/owner was set correctly and I verified with inspect.exe that the new window was in fact a child.
You can, however, interact with the child window elements through the WindowsElement API of the window itself. I was able to use this approach to open an 'About' window through a menu and then close it.
[Test]
public void TestAboutWindow()
{
    // Open About window through menu
    _session.FindElementByName("Help").Click();
    _session.FindElementByName("About").Click();

    // Close child window through WindowElement API
    var aboutWindow = _session.FindElementByName("AboutWindow");
    aboutWindow.FindElementByName("Close").Click();
 }

Yeah, this way is still working. Sadly, I didn't tried the Version 1.1.1. I will do it on December, when I not need to use my working laptop :smile:

authors: BambusBaer dquist naeemakram


text:
SplitView Sample -> fix the mismatch between rendered content and source code

Description
A simple update to resolve discrepancies between the rendered content and the displayed source code, the only change is:

Remove the code that does not match from the displayed source code (SplitViewPage.xaml).

Motivation and Context

The similarity between SplitView and NavigationView might be confusing for learners, so it would be best to remove it.
fixes this issue: https://github.com/microsoft/WinUI-Gallery/issues/1587

How Has This Been Tested?
Manually Tested
Screenshots:

Types of changes

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

/azp run

/azp run

@zakariathr22 Thanks so much again for opening the series of PR's. Glad to have these merged in finally after an internal pipeline fiasco!

@karkarl Thanks so much for the time and effort on the review and for approving my ideas! 🙏 Excited to keep contributing! 🚀

repo: microsoft/WinUI-Gallery


text:
How do I allow my app to be detected by game bar as a game?

I wasn't able to find a good place to post this but here seemed the most appropriate. I have developed a UWP game using Xamarin.Forms. It doesn't use DirectX/OpenGL etc. It is a game though. How can I ensure game bar automatically detects this app as a game without the user needing to manually flag it for gamebar?

If you're publishing your game through the Microsoft store, and it's categorized as a game, then it will automatically be detected by Game Bar. If you're publishing through a 3rd party store, we regularly update an internal list with known games, we would need to know where it's published so that we could review it before adding it.

If you're publishing your game through the Microsoft store, and it's categorized as a game, then it will automatically be detected by Game Bar. If you're publishing through a 3rd party store, we regularly update an internal list with known games, we would need to know where it's published so that we could review it before adding it.

Perfect, thank you! :) Its not currently available on stores but it is good to know that is the identification mechanism (I thought there may be a method for my app itself to identify itself as a game to game bar).

Perfect, thank you! :) Its not currently available on stores but it is good to know that is the identification mechanism (I thought there may be a method for my app itself to identify itself as a game to game bar).

authors: BurkusCat hamiltonia

repo: microsoft/XboxGameBarSamples


text:
Test scripts

I've created examples of how to add App Center Test to Xamarin Android || iOS projects. I'm rusty in bash so I might have missed something.

I compared your approach to my working sample here: https://github.com/King-of-Spades/AppCenter-Samples/blob/master/Xamarin.UITest/FormsGallery/FormsGallery/FormsGallery.Android/appcenter-post-build.sh
I'm not too familiar with regex stuff, so I can't evaluate that at a glance, but if the script works, then it should be fine as far as I know.
This really needs a readme though, because some of your environment variables are custom and not defined within the script itself, so users who don't already understand how scripts work would have no way to interpret them.

@King-of-Spades  @DennisPan @maxxkrakoa
Thanks for the reviews, I've updated the scripts to my best understanding

Did a slight tweak of the 'readme' section at the top to make it more accurate & complete. Everything I can evaluate here looks good to me now (I still don't have much regex knowledge, so I haven't QA'd that section.)

repo: microsoft/appcenter


text:
[Roadmap] Agents Self-Improvement/Learning/Optimization

Describe the issue

[!TIP]
Want to get involved?
We'd love it if you did! Please get in contact with the people assigned to this issue, or leave a comment. See general contributing advice here too.

Description
What is the feature?
This feature allows agents created with AutoGen to learn from past experiences and achieve self-improvement without needing direct access to the LLM models. These improvements can be seen in different areas of the agents, such as function calls, memory usage, and prompts.
### Tasks
- [x] Introducing AgentOptimizer:  https://github.com/microsoft/autogen/pull/1053
- [ ] AgentOptimizer Integration: https://github.com/microsoft/autogen/pull/1767
- [ ] Blogpost: https://github.com/microsoft/autogen/pull/1767
- [ ] Make AgentOptimizer API more general (allow more agent formats)

Suggestions/ideas generally related to this topic is welcomed.

I suggest to integrate into autogen studio to make generalized agents and optimize the functions. In my fork I created multi shot examples using the skills and it works. From there directed graphs for workflows can be setup to create the type of environment for learning like reflecting and always directing to some specific agents without worrying about it not ever doing the necessary checks. So to recap, autogen studio can make agents and have generic python modules (not gpt function calls), and you can create DAGs for agents as needed for strongly opinionated workflows, and try to protoype learning within that to craft new workflows or optimize others. That should be pretty interesting.

hi there @skzhang1 , it's great to see the energy behind this cool PR :-)
i really like the idea of @BeibinLi about the capability, this would be great and might only require a "seed prompt" as input , which is kind of the point.
another point would be to also optimize the prompts in context / chain . so that's based on group chat , for example optimizing the group chat parameters.
just some ideas :-)

@skzhang1 , please replace optimizer_model gpt-4-1106 with gpt-4-1106-preview.

@skzhang1 , please replace optimizer_model gpt-4-1106 with gpt-4-1106-preview.

Thanks for the suggestions. Done

Closing this for now as the team is focusing on v0.4 release.
@skzhang1 you are welcome to take a look at the core API and port agent optimizer toward the new API. We can discuss this in Discussion.

authors: Josephrp ekzhu jamesliu qingyun-wu sidhujag skzhang1

repo: microsoft/autogen


text:
chore(rotation): Change "Usage" heading in README to all caps

Details
This is updating the text in the README for the Usage section to now show "USAGE".

Motivation
Triggering a build to confirm that the new GH token is being consumed properly

Context
Quarterly DRI rotation

Pull request checklist

[ ] PR title respects Conventional Commits (starts with fix:, feat:, etc, and is suitable for user-facing release notes)
[ ] PR contains no breaking changes, OR description of both PR and final merge commit starts with BREAKING CHANGE:
[ ] (if applicable) Addresses issue: #0000
[ ] Added relevant unit tests for your changes
[ ] Ran yarn precheckin
[ ] Verified code coverage for the changes made

:tada: This PR is included in version 2.11.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: microsoft/axe-sarif-converter


text:
Split not working on PBIs

After clicking on the split on the PBI, the split PBI window does not open and the below tasks are not moved to the next sprint.
I have to create a copy of the PBI and manually move the tasks.

Hi, I just tested it, and it worked as expected.

I just tried and it didn't work.
Is there a way to "activate/deactivate" the function on a single devops project?

authors: AminTi martamela

repo: microsoft/azure-boards-split


text:
Sample for create test run and update test run result for particular test-points

Firstly Thanks for you support and effort .
I am started understanding version 5.1. It bit difficult to understand method as there no sample for the most of method.
Request here is, Do we have any documentation on how to use method in packages. like (pandas or flask). ? If Yes Could you please share us that documentation link.
if no, Could you please help us on this to method and usages especially on "Test"

The Python API has a pretty easy-to-follow "getting started" sample right in the README. I haven't tried integrating with Flask or Pandas, but between the samples here and that getting started guide, it should be straightforward.

Hi Team,
we have followed that document. We haven't found related to TEST related document.
It would be very helpful if could share that document.
Thanks,
Vinaykumar

From: Matt Cooper notifications@github.com
Sent: Thursday, June 13, 2019 6:31 PM
To: microsoft/azure-devops-python-samples
Cc: Vinaykumar Puppala; Author
Subject: Re: [microsoft/azure-devops-python-samples] Sample for create test run and update test run result for particular test-points (#24)
The Python APIhttps://github.com/microsoft/azure-devops-python-api/ has a pretty easy-to-follow "getting started" sample right in the README. I haven't tried integrating with Flask or Pandas, but between the samples here and that getting started guide, it should be straightforward.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/azure-devops-python-samples/issues/24?email_source=notifications&email_token=AI4DMYMID6ILUDFOZJGHYMDP2JAKHA5CNFSM4HXJU7Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXTTSIY#issuecomment-501692707, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AI4DMYJMW73VJCDD3UZJJ5DP2JAKHANCNFSM4HXJU7ZQ.

I see, sorry. You can take a look at the REST API docs here, and then it's relatively straightforward to translate that to the Python API.

authors: WIINAI-KKUMAR vtbassmatt

repo: microsoft/azure-devops-python-samples


text:
When I was using the Agent, I found that the Windows-64-bit compressed package for version 3.238.0 does not contain the externals/node10 folder.

What happened?
When I was using the Agent, I found that the Windows-64-bit compressed package for version 3.238.0 does not contain the externals/node10 folder. The download link is: https://vstsagentpackage.azureedge.net/agent/3.238.0/vsts-agent-win-x64-3.238.0.zip.
Versions
3.238.0
Environment type (Please select at least one enviroment where you face this issue)

[ ] Self-Hosted
[ ] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows server 2022
Version controll system
No response
Relevant log output
No response

@zhenyu-lan, the agent from attached link contains the node10 folder:
vsts-agent-win-x64-3.238.0.zip\externals\node10\bin

Could you double check it please?

I well renew download again ,

@zhenyu-lan, there are two versions of agent packages.
The vsts-agent-* includes Node 6 and Node 10, whereas the pipelines-agent-* does not.
The PR that removes Node 10 has been merged.
Additionally, a PR for updating the documentation is underway.
If you need to use Node 10 in your pipelines, you can add the UseNodeV1 step.

Hi @zhenyu-lan, I'm closing this one as external - feel free to ask any other questions or let us know if it's still relevant for you.

authors: ivanduplenskikh zhenyu-lan

repo: microsoft/azure-pipelines-agent


text:
Initial stab at generating some integration files we need to further …

…automate the release process

I am going to go ahead and push in these changes, but will follow up with updates from the review comments.


text:
Add support for helm3 bake engine in KubernetesManifest

Note
Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Feature
Enter Task Name: KubernetesManifest
list here (V# not needed):
https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/KubernetesManifestV0
Environment
Azure Pipelines

Agent - Hosted or Private:
Hosted

Issue Description
Add support for Helm3 as bake engine.
Task logs
Currently, the task only allows for Helm2 as bake engine
export async function bake(ignoreSslErrors?: boolean) {
    const renderType = tl.getInput('renderType', true);
    let renderEngine: RenderEngine;
    switch (renderType) {
        case 'helm2':
            renderEngine = new HelmRenderEngine();
            break;
        case 'kompose':
            renderEngine = new KomposeRenderEngine();
            break;
        case 'kustomize':
            renderEngine = new KustomizeRenderEngine();
            break;
        default:
            throw Error(tl.loc('UnknownRenderType'));
    }
    await renderEngine.bake();
}

Ideally, we can specify as we do in the HelmInstallerV1 the version of Helm and an option to check for the latest version. This an issue with charts with apiVersion v2 as helm breaks between version. Other tasks support helm3 but this one needs to be updated.

+1 to Helm 3 support. We really don't want to use Tiller which Helm 2 forces us to.

There's a PR out for this. https://github.com/microsoft/azure-pipelines-tasks/pull/12560
Closing this as it's a duplicate issue. Tracking it here: https://github.com/microsoft/azure-pipelines-tasks/issues/12511

authors: celambert ds-ms syedhassaanahmed

repo: microsoft/azure-pipelines-tasks