sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: TypeScript
Issue: Clarity about the what path references are relative to
Labels: Help Wanted,Docs

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

references path relative 

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [ x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x ] This wouldn't change the runtime behavior of existing JavaScript code
* [ x] This could be implemented without emitting different JS based on the types of the expressions
* [x ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

<!-- A summary of what you'd like to see added or changed -->

Both https://www.typescriptlang.org/tsconfig#references and https://www.typescriptlang.org/docs/handbook/project-references.html aren't specific about what the string in path is relative to (the current tsconfig, the current working directory, rootDir, etc)


## 💻 Use Cases

<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->

I'm writing some build scripts around invocations of tsc with a lot of linking, aliasing, etc and I don't want to put absolute paths in the generated tsconfig files
Repository: pytorch
Issue: Randomness should be consistent across devices with use_deterministic_algorithms
Labels: triaged,module: random,module: determinism

### 🚀 The feature, motivation and pitch

Being able to generate reproducible results is a key part of the research process, as as a research platform, pytorch should support this goal. It currently does this by providing a "deterministic " option as described in https://pytorch.org/docs/stable/notes/randomness.html. However, even with that option enabled, random number generation is inconsistent across GPUs.

I think it would be reasonable to expect to get consistent random numbers when using the same seed, PyTorch version, and CUDA version even when running on a different device (whether CPU or physical GPU). From what I understand of random number generation, hardware differences such as processor counts or FPU precision don't need to play a role in RNG. And if they do, I'm guessing a slower, deterministic pathway could be chosen when `torch.use_deterministic_algorithms()` is used.

### Alternatives

The current alternatives I know of are:

1. Always use CPU (which seems to be consistent, although I am not sure that is guaranteed) as the target for random number generation 
2. Use a different, deterministic generator (e.g., numpy)
3. Use the same hardware devices everywhere

Options 1 and 2 require all researchers to know about this issue and write their code accordingly. Unfortunately, people are not aware of it. When they write code with determinism in mind, they typically allow for a torch generator to be provided as an API argument, assuming this will guarantee determinism. This is unfortunately not the case (and is further compounded by #62451). 

Option 3 is unfortunately unrealistic and can't be sustained over time as hardware becomes obsolete.

### Additional context

Related issues: #62467 #79496 #62451

cc @pbelevich @mruberry @kurtamohler
Repository: kubernetes
Issue: kubelet reports wrong memory usage on Windows
Labels: kind/bug,sig/windows,needs-triage

### What happened?

kubelet calculates memory usage in a different way:
    `memUsage = "WorkingSet - Private" / TotalPhysicalMemory`
'WorkingSet - Private" is physical memory used by all the processes, it does not include "cached" memory used by FileSystem.

### What did you expect to happen?

kubelet takes account of cached memory.

### How can we reproduce it (as minimally and precisely as possible)?

create a windows node with 8G memory, write an application to consume 8G memory, then you will find(almost all the memory are used, but kubelet reports 532MB only, that is not expected.):
![image](https://user-images.githubusercontent.com/81352440/187316235-48ee7b3e-acf3-4b95-b137-f2b64941ef0e.png)


### Anything else we need to know?

_No response_

### Kubernetes version

<details>

```console
$ kubectl version
# paste output here
```

</details>


### Cloud provider

<details>

</details>


### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>

</details>


### Container runtime (CRI) and version (if applicable)

<details>

</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>

</details>
Repository: rust
Issue: rustc suggests invalid suggestion when attempting to implement invalid transitive trait impl 
Labels: A-diagnostics,T-compiler

Someone asked a question to me whether or not if there was a way to implement a blanket implementation for "transitive" traits, such that if `T => U`, and `U => V`, then `T => V`. I attempted the following (incorrect) implementation:

Given the following code: [(playground)](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=fb389382dd933b87f0e037f21f5af513)

```rust
trait MyBorrow<Other> {}

impl<U, V> MyBorrow<V> for MyBorrow<U>
where
    U: MyBorrow<V>,
{
}
```

The current output is:

```
error[[E0782]](https://doc.rust-lang.org/nightly/error-index.html#E0782): trait objects must include the `dyn` keyword
 --> src/lib.rs:3:28
  |
3 | impl<U, V> MyBorrow<V> for MyBorrow<U>
  |                            ^^^^^^^^^^^
  |
help: add `dyn` keyword before this trait
  |
3 - impl<U, V> MyBorrow<V> for MyBorrow<U>
3 + impl<U, V> MyBorrow<V> for dyn MyBorrow<U>
  |
help: alternatively use a blanket implementation to implement `MyBorrow<V>` for all types that also implement `MyBorrow<U>`
  |
3 | impl<U, V, T: MyBorrow<U>> MyBorrow<V> for T
  |          ++++++++++++++++                  ~

For more information about this error, try `rustc --explain E0782`.
error: could not compile `playground` due to previous error
```

The `dyn` suggestion correctly leads to a different message that suggest the true issue, but the suggestion to use a blanket implementation is problematic. Implementing the following: [(playground)](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=1ff34961e352007557acf20e0205ab8a)
```rust
trait MyBorrow<Other> {}

impl<T, U, V> MyBorrow<V> for T
where
    T: MyBorrow<U>,
    U: MyBorrow<V>,
{
}
```

Leads to a different error message:
```
error[[E0207]](https://doc.rust-lang.org/nightly/error-index.html#E0207): the type parameter `U` is not constrained by the impl trait, self type, or predicates
 --> src/lib.rs:3:9
  |
3 | impl<T, U, V> MyBorrow<V> for T
  |         ^ unconstrained type parameter

For more information about this error, try `rustc --explain E0207`.
error: could not compile `playground` due to previous error
```

I'm not sure if it's possible, but the fix here would be to not provide the help if the additional type parameter would be unbounded.

This repros on 1.65.0-nightly (2022-08-28 ce36e88256f09078519f).
Repository: rust
Issue: rustdoc: back navigation in jump to definition is sometimes broken
Labels: T-rustdoc,A-rustdoc-ui,A-link-to-definition

Steps to reproduce (Chrome / Linux):

1. Visit https://doc.rust-lang.org/nightly/nightly-rustc/rustdoc/clean/index.html
2. Click source link (https://doc.rust-lang.org/nightly/nightly-rustc/src/rustdoc/clean/mod.rs.html#1-2243)
3. Scroll down in page until you see a link that goes elsewhere within the same file (e.g. `doc` on line 104)
4. Click the link.
5. Navigate back in the browser.

Expected result:

The browser now shows the scroll position from before clicking the link.

Actual result:

The scroll position is the top of the page.

This seems to only happen when the first navigation included a fragment (e.g. `#1-2243` in this example)

/cc @GuillaumeGomez
Repository: flutter
Issue: integration_test screenshots do not work on firebase android test lab
Labels: platform-android,framework,c: proposal,f: integration_test,P3,team-android,triaged-android

## Use case

I would like to use firebase test lab to test my flutter app on Android devices, and I'd like to be able to collect screenshots as the tests run.

The integration_test package has detailed [instructions on how to get a flutter app working with firebase android test lab](https://github.com/flutter/flutter/tree/main/packages/integration_test#firebase-test-lab), and that works well.

However, any screenshots taken are discarded.

Note that this already works properly on iOS: the screenshots are recorded in the XCode xctestresult files that are produced by firebase test lab.

It looks like this was partially implemented for integration_test on Android, but was not finished. The comment in [FlutterDeviceScreenshot.java](https://github.com/flutter/flutter/blob/master/packages/integration_test/android/src/main/java/dev/flutter/plugins/integration_test/FlutterDeviceScreenshot.java) says the following:

>    // TODO(egarciad): InstrumentationRegistry requires the uiautomator dependency.
>    // However, Flutter adds test dependencies to release builds.
>    // As a result, disable screenshots with instrumentation until the issue is fixed.
>    // https://github.com/flutter/flutter/issues/56591

Issue 56591 looks hard to fix and has been deprioritized, but this means that firebase test lab + android + flutter work poorly together.

## Proposal

I can see a few possible solutions.

* Get someone to fix https://github.com/flutter/flutter/issues/56591. This bug has been neglected, but maybe it just needs to be prioritized?

* Find a workaround that uses the Android Instrumentation Test APIs (the flutter iOS team [has solved this](https://github.com/flutter/flutter/pull/84611), perhaps something similar could work for Android as well.)

* Find a workaround that does not use Android instrumentation tests, but still writes files in some location that firebase test lab for android will save.
Repository: PowerToys
Issue: powertoys.powerlauncher.exe loaded all shell extensions for no reason
Labels: Issue-Bug,Product-PowerToys Run,Area-Quality,Needs-Triage

### Microsoft PowerToys version

0.61.1

### Running as admin

- [ ] Yes

### Area(s) with issue?

General

### Steps to reproduce

open powertoy
open process explorer
select explorer.exe 
see all handled libraries 
select powertoys.powerlauncher.exe
see all handled libraries

### ✔️ Expected Behavior

explained it 

### ❌ Actual Behavior

powertoys.powerlauncher.exe loaded all shell extensions for no reason 

### Other Software

none
Repository: vscode
Issue: [unicode highlight] Should highlight em dash `—` as it is easily confusable with minus `-`.
Labels: feature-request,unicode-highlight

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

I have searched for it but no one is requesting to highlight `—` yet. However it can be a huge pain if it is mistakenly used in place of `-`.
Repository: material-ui
Issue: Tooltip with styled theme can not set sx props for the children element
Labels: docs,component: tooltip,package: system

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

the codeSandbox link is https://codesandbox.io/s/strange-hamilton-2sjtkj?file=/demo.tsx
setting `sx` props for Tooltip does not take effect for the Button element
<img width="1317" alt="image" src="https://user-images.githubusercontent.com/11244400/187334840-9d8f30ec-0165-466c-87ac-f28eae1e6e54.png">


### Expected behavior 🤔

the Tooltip without styled :https://codesandbox.io/s/infallible-williamson-jdue8k?file=/demo.tsx
setting `sx` props for Tooltip takes effect for the Button element
<img width="1040" alt="image" src="https://user-images.githubusercontent.com/11244400/187335601-1904b29d-17e3-4b84-8421-1913b8abc1dd.png">



### Steps to reproduce 🕹

Steps:

1.
2.
3.
4.


### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: flutter
Issue: Android Gradle Sync is time-consuming
Labels: c: regression,platform-android,tool,c: performance,t: gradle,customer: bytedance,P2,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->
In our multiple projects upgrading from 2.0 to 2.10, we found that Android Gradle increased significantly.  Some projects went from 10s to 5 minutes. 

The discovery was introduced by this change: https://github.com/flutter/flutter/pull/83067. The [generateLockfiles](https://github.com/flutter/flutter/pull/83067/commits/3d47ad9fe75b8b14fa02f35bf74bf252c921f17c#diff-a6d94b09367a36221805cf68bf74922d8d74d89487a79a794e9b7813118aaf5aR106) task is introduced, and after we delete the task, the time is back to normal.

So I want to know: 
1. What's the worst thing that could happen if I cancel this task? 
2. Why is this task so time-consuming
Repository: vscode
Issue: Editor action items are not correctly centered
Labels: ux,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.70.2
- OS Version: macOS Monterey 12.5.1

![editor-actions](https://user-images.githubusercontent.com/19797697/187339418-c4d1e261-024e-44ec-b63f-42d598ee1e8a.png)

<img width="633" alt="image" src="https://user-images.githubusercontent.com/19797697/187339548-1d15bb82-49d7-4f2a-a1c8-89528f971963.png">

### Asymmetry padding

<img width="205" alt="Screen Shot 2022-08-30 at 11 48 45 AM" src="https://user-images.githubusercontent.com/19797697/187339579-d5e1b7a7-4976-46d3-95e1-1c72ba8318b9.png">

### Unnecessary last child margin

<img width="202" alt="Screen Shot 2022-08-30 at 11 49 00 AM" src="https://user-images.githubusercontent.com/19797697/187339591-7756857b-0f57-4011-bb48-e243f74122c1.png">
Repository: pytorch
Issue: Ensure ops account for offsets and strides
Labels: triaged,module: nestedtensor,release notes: nested tensor

# Summary

Many ops were were written for nested tensors in the context that they every nested tensor is contiguous. The only metadata needed to define the shape of nested tensor was a nested tensor size.  

This is no longer the case. nested_strides and nested_offsets were added. There may be ops that are still assuming sizes is all that is needed. One that comes to mind is: https://github.com/pytorch/pytorch/blob/372a19d2c673a20fe50955b20ea4e3685266d630/aten/src/ATen/native/nested/NestedTensorMath.cpp#L18
This should be updated to also pass in nested_strides and nested_offsets. There may be other functions that need to be update.

cc @cpuhrsch @jbschlosser @bhosmer @mikaylagawarecki
Repository: tensorflow
Issue: Convert FloorModOp to tosa
Labels: stat:awaiting tensorflower,type:bug,comp:ops,awaiting PR merge,TF 2.9,comp:lite-tosa

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Source

source

### Tensorflow Version

2.9.1

### Custom Code

No

### OS Platform and Distribution

Linux Ubuntu 20.04

### Mobile device

_No response_

### Python version

3.9

### Bazel version

5.1

### GCC/Compiler version

9

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

```shell
from source code: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/compiler/mlir/tosa/transforms/legalize_common.cc#L2457
floormod(x, y) = x / y - floor(x / y)

from doc:https://tensorflow.google.cn/api_docs/python/tf/raw_ops/FloorMod?version=nightly
floormod(x, y) = x - floor(x / y) * y

I wonder if I misunderstood
```


### Standalone code to reproduce the issue

```shell
tosa ir I get:
'
module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 561 : i32}, tf_saved_model.semantics} {
  func.func @serving_default(%arg0: tensor<11x10xf32> {tf_saved_model.index_path = ["model_input1"]}, %arg1: tensor<f32> {tf_saved_model.index_path = ["model_input2"]}) -> (tensor<11x10xf32> {tf_saved_model.index_path = ["model_output"]}) attributes {tf.entry_function = {control_outputs = "", inputs = "model_input1:0,model_input2:0", outputs = "FloorMod:0"}, tf_saved_model.exported_names = ["serving_default"]} {
    %0 = "tosa.reciprocal"(%arg1) : (tensor<f32>) -> tensor<f32>
    %1 = "tosa.reshape"(%0) {new_shape = [1, 1]} : (tensor<f32>) -> tensor<1x1xf32>
    %2 = "tosa.mul"(%arg0, %1) {shift = 0 : i32} : (tensor<11x10xf32>, tensor<1x1xf32>) -> tensor<11x10xf32>
    %3 = "tosa.floor"(%2) : (tensor<11x10xf32>) -> tensor<11x10xf32>
    %4 = "tosa.sub"(%2, %3) : (tensor<11x10xf32>, tensor<11x10xf32>) -> tensor<11x10xf32>
    return %4 : tensor<11x10xf32>
  }
}
'
```


### Relevant log output

_No response_</details>
Repository: flutter
Issue: OverlayColor not working when Color is set in TableRow.decoration
Labels: framework,f: material design,a: desktop,a: mouse,has reproducible steps,P2,found in release: 3.7,found in release: 3.11,team-framework,triaged-framework

## Steps to Reproduce

1. Add BoxDecoration with colour to a TableRow widget
2. Add TableRowInkWell inside it with OverlayColour property
3. Hover above the widget and observe it's behaviour 

**Expected results:** The Colour of the widget should be changed to overlayColour while hovering

**Actual results:** The colour stays the same as BoxDecoration colour. The same happens in case of container as well.
<details>
<summary>
Code Sample
</summary>

```dart
Table(
              children: [
                TableRow(
                    decoration: const BoxDecoration(color: Colors.cyan),
                    children: [
                      TableRowInkWell(
                        onTap: () => print('Testing'),
                        overlayColor: MaterialStateProperty.all(Colors.red),
                        child: const Text('Sample Text Row Widget'),
                      )
                    ])
              ],
            ),
```

</details>

<details>
  <summary>Logs</summary>

flutter doctor -v

```
[✓] Flutter (Channel stable, 3.0.4, on macOS 12.5.1 21G83 darwin-arm, locale
    en-GB)
    • Flutter version 3.0.4 at /Users/shaurya/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 85684f9300 (9 weeks ago), 2022-06-30 13:22:47 -0700
    • Engine revision 6ba2af10bb
    • Dart version 2.17.5
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/shaurya/Library/Android/sdk
    • Platform android-31, build-tools 33.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      11.0.12+0-b1504.28-7817840)

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 12.5.1 21G83 darwin-arm
    • Chrome (web)    • chrome • web-javascript • Google Chrome 104.0.5112.101

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>

https://user-images.githubusercontent.com/41169759/187350650-e6bd23e6-d9b6-4a97-a784-aa3d9e8eebd0.mov
Repository: flutter
Issue: Option for adjusting angle of horizontal scroll in `TabBarView`
Labels: c: new feature,framework,f: scrolling,f: gestures,c: proposal,P3,team-framework,triaged-framework

Current TabBarView's sensitivity for detecting horizontal scroll is quite massive.
It would be great if I can give an option for it  (something like value between 0.0~1.0).

This feature is needed because when users scroll vertically, finger gestures are not completely vertical. It is somewhere between vertical and horizontal. Now, lot of times I encounter situation that TabBar is scrolling horizontally even if I intended to scroll vertically.

PS) If there is any workaround for this, please let me know. Thanks.