sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Miscompilation of a program projecting field of an extern type
Labels: T-compiler,I-unsound,C-bug,requires-nightly,A-mir-opt,F-extern_types,T-opsem,I-miscompile

Since #118534 projecting a field of an extern type at non-zero offset panics. MIR transformations do not understand this:

```console
$ cat a.rs
#![feature(extern_types)]
extern "C" {
    type Opaque;
}
fn main() {
    let a = [0u8; 1];
    let b: &(u8, Opaque) = unsafe { &*(&a as *const _ as *const (u8, Opaque)) };
    let _ = &b.1;
}
$ rustc a.rs -Zmir-opt-level=1 && ./a
$ rustc a.rs -Zmir-opt-level=0 && ./a
thread 'main' panicked at library/core/src/panicking.rs:221:5:
attempted to compute the size or alignment of extern type `Opaque`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
Aborted
```
Repository: terminal
Issue: Enhanced Font Preview in Settings > Appearance
Labels: Issue-Feature,Help Wanted,Product-Terminal,Area-SettingsUI

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

The current font preview in Settings > Appearance is helpful. However, it would be even better if it included additional lines of text with characters that some fonts render differently, such as ==, ===, !=, !==. This would make it easier to choose a font that supports specific ligatures without having to apply the font and manually check these characters in the profile.

![image](https://github.com/microsoft/terminal/assets/28659609/83da4d36-bc13-4414-9e93-653ef55877e4)
Repository: pytorch
Issue: Installation fails with conflicting dependencies (MarkupSafe>=2.0)
Labels: module: binaries,triaged

# Attempt to install

* PyTorch Build: Stable (2.3.1)
* Your OS: Linux (Alpine Linux 3.20)
* Package: Pip (24.1.1)
* Language: Python (3.12.3)
* Compute Platform: CPU

```
$ pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
```

## Error

    ERROR: Cannot install torch because these package versions have conflicting dependencies.
    
    The conflict is caused by:
        jinja2 3.1.3 depends on MarkupSafe>=2.0
        jinja2 3.1.2 depends on MarkupSafe>=2.0

[Complete output is here](https://paste.rs/bmzYE), but what a confusing error message.

## Environment

I'm working in a virtual environment. [View my collect_env.py output here.](https://paste.rs/iHAse)

cc @seemethere @malfet @osalpekar @atalman
Repository: rust
Issue: Detect when `?` is being called on a type *after* `.unwrap` or `.expect` was called on a `Result` or `Option`
Labels: A-diagnostics,P-low,T-compiler,A-suggestion-diagnostics,D-newcomer-roadblock,D-terse

The following code

```rust
fn foo() -> Option<usize> {
    let x = Some(42).unwrap()?;
    x
}
```
currently emits

```
error[E0277]: the `?` operator can only be applied to values that implement `Try`
 --> src/lib.rs:2:13
  |
2 |     let x = Some(42).unwrap()?;
  |             ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `{integer}`
  |
  = help: the trait `Try` is not implemented for `{integer}`
```

but it should suggest removing the `.unwrap()`.

_Inspired by https://x.com/jonasfovea/status/1808961128812183774_
Repository: flutter
Issue: Cannot capture PanEvents for widget in NestedScrollView title
Labels: framework,f: scrolling,f: gestures,has reproducible steps,P2,team-framework,triaged-framework,found in release: 3.22,found in release: 3.23

On touch devices onPanStart does not trigger for Gesture Detector that is in a NesterScrollView's title. Attached video and minimal example code. 

Video of issue: https://github.com/flutter/flutter/assets/298850/bd5cda1c-d9d1-496e-bc1e-9989da8c3383
At first you can see that vertical scroll on the circular widget is passed to the NestedScrollView - This is not desired behaviour. I then disable the browser's  touch emulation and you can see the desired behaviour: Vertical drag is handled by my widget (Gesture detector and onPanStart/Update/End). 

If I add onVerticalDragStart/Update/End callbacks to the GestureDetector then my widget captures the interaction -however I don't want vertical drag gesture, I want them all to be passed to pan gestures.

### Minimal example:
```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(
            body: NestedScrollView(
          headerSliverBuilder: (context, innerBoxIsScrolled) => [
            SliverAppBar(
              collapsedHeight: 100,
              expandedHeight: 400,
              pinned: true,
              automaticallyImplyLeading: false,
              flexibleSpace: FlexibleSpaceBar(
                  title: GestureDetector(

                      // This does not trigger on touch devices if gesture is
                      // vertical drag.
                      onPanStart: (details) {
                        print('Got $details');
                      },
                      child: Container(
                          height: 400,
                          color: Colors.red,
                          child: const Center(
                              child: Text(
                                  'Widget that wants to capture pan events'))))),
            )
          ],
          body: ListView.builder(
            itemBuilder: (context, index) =>
                ListTile(title: Text(index.toString())),
          ),
        )));
  }
}

```

Thanks
Repository: material-ui
Issue: [docs-infra] Use Next.js font loader
Labels: performance,scope: docs-infra

### Summary

Using Google Font to load fonts has a couple of issues:

- Layout shift on first load
- Missing https://github.com/google/fonts/issues/473 subresource integrity support

Instead, we could use https://nextjs.org/docs/pages/building-your-application/optimizing/fonts. However, this depends on using SWC.

### Examples

_No response_

### Motivation

Context: https://groups.google.com/a/mui.com/g/team-store/c/6tkWMOQ2ho0

**Search keywords**: -
Repository: flutter
Issue: [Web] Impossible to write to TextField on iOS Safari browser due to no `input` tag
Labels: a: text input,a: accessibility,platform-web,has reproducible steps,P2,browser: safari-ios,team-web,triaged-web,fyi-text-input,found in release: 3.22,found in release: 3.23

### Steps to reproduce

1. enable semantics
`SemanticsBinding.instance.ensureSemantics();`
2.try to automate using appium selenium XCUI driver because your driver for ios safari doesn't even work
3. try to write to element 
```
email_input = WebDriverWait(driver, 10).until(
        EC.presence_of_element_located((AppiumBy.XPATH, "//*[@aria-label='Email']"))
    )
email_input.click()
email_input.send_keys("test@example.com")
```

its impossible I don't know what the deal is with this flt semantics, but we need solutions to automate, is crazy how hard it is to automate something with flutter :(



### Expected results

works like anyother web framework 

### Actual results

nothing happens, that is the funny part, nothing happens not text is written in the input :

### Code sample

<details open><summary>Code sample</summary>

```dart
child: FormBuilderTextField(
                        key: const ValueKey("email_input"),
                        
                        name: "email",
                        decoration: const InputDecoration(
                            label: Text("Email"),
                            contentPadding: EdgeInsets.fromLTRB(15, 15, 15, 15),
                            border: OutlineInputBorder(
                                borderRadius:
                                    BorderRadius.all(Radius.circular(5)))),
                      ),
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
Input element: []
Click script result: True
Element tag name: flt-semantics
Element text: 
Element location: {'x': 10, 'y': 116}
byId
flt-semantics
True
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.19.0, on macOS 14.3 23D56 darwin-arm64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.89.1)
```

</details>
Repository: PowerToys
Issue: Name Mask $ counter for Multi Rename of Files & Folders in Power Rename of Power Toys
Labels: Needs-Triage

### Description of the new feature / enhancement

Name Mask is a function which can mask files & folder with name,date,time, it can crop or trim filename from start or end of filenames for a lengh or number of characters, such features are avaliable in total commander app.. Name Mask & counter 
is feature where search or replace cannot work.

![Total Commander Name Mask   Counter](https://github.com/microsoft/PowerToys/assets/174755958/71471ae4-7e80-4fa0-ae4e-6ac3f1fe8ced)


### Scenario when this would be used?

Name Mask & counter is feature where search or replace cannot work. in Search & Replace, user had to search a keyword then replace it but in Name Mask user can crop or trim , add prefix or suffix various pre define values. 

### Supporting information

For Details kindly check total commander app https://www.ghisler.com/download.htm & Various Plugins. https://totalcmd.net/

![Total Commander Name Mask   Counter](https://github.com/microsoft/PowerToys/assets/174755958/f09f4b0b-8165-47a5-9207-234d1ce6b2d3)
Repository: PowerToys
Issue: Powershell v7.4.3, which installed `Microsoft.Winget.CommandNotFound` by Powertoys, might failed to start without Internet connection. The module in Powertoys need to update.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.82.0

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Command not found

### Steps to reproduce

If not connected Internet and Installed `Microsoft.Winget.CommandNotFound` by Powertoys in following steps:

1. Open Microsoft Powertoys Setting Page,
2. Turn to Command Not Found Page.
3. Click 'Install'

The Powershell might failed to start.

In https://github.com/microsoft/winget-command-not-found/issues/10 I have see that this issue has fixed in its latest version, when will the PowerToys use the latest version of the module to install?

### ✔️ Expected Behavior

The Powershell successed to start

### ❌ Actual Behavior

The Powershell might failed to start. returned the error
```
An error has occurred that was not properly handled. Additional information is shown below. The PowerShell process will exit.
Unhandled exception. System.Management.Automation.CmdletInvocationException: An error occurred while connecting to the catalog.
 ---> Microsoft.WinGet.Client.Engine.Exceptions.CatalogConnectException: An error occurred while connecting to the catalog.
   at Microsoft.WinGet.Client.Engine.Commands.Common.FinderCommand.GetPackageCatalog(CompositeSearchBehavior behavior)
   at Microsoft.WinGet.Client.Engine.Commands.Common.FinderCommand.FindPackages(CompositeSearchBehavior behavior, UInt32 limit, PackageFieldMatchOption match)
   at Microsoft.WinGet.Client.Engine.Commands.Common.FinderExtendedCommand.FindPackages(CompositeSearchBehavior behavior, PackageFieldMatchOption match)
   at Microsoft.WinGet.Client.Engine.Commands.FinderPackageCommand.<>c__DisplayClass1_0.<Find>b__0()
   at Microsoft.WinGet.Client.Engine.Commands.Common.ManagementDeploymentCommand.Execute[TResult](Func`1 func)
   at Microsoft.WinGet.Client.Engine.Commands.FinderPackageCommand.Find(String psPackageFieldMatchOption)
   at Microsoft.WinGet.Client.Commands.FindPackageCmdlet.ProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()
   --- End of inner exception stack trace ---
   at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
   at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location ---
   at Microsoft.WinGet.CommandNotFound.WinGetCommandNotFoundFeedbackPredictor.WarmUp()
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.QueueUserWorkItemCallback.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
```

### Other Software

Powershell, v7.4.3
Repository: pytorch
Issue: How to get stream operators in custom backend compiler ?
Labels: oncall: distributed,triaged,oncall: pt2

### 🐛 Describe the bug

Hi, when I use a custom backend, I find that the fx graph that custom compiler gets does not have the stream related operations.

Then I found that the fx graph dropped those stream operations after aot_module_simplified.
So, I want to know how can we get a fx graph that contains stream-related operations, when using  custom compiler and aot_module_simplified? 


cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @chauhang @penguinwu @ezyang @anijain2305 @zou3519 @ptrblck @msaroufim @yf225


Here is my test script. 
When I use aot_toy_backend backend, no stream related ops in gx graph.
What can we do to fix this？ Can you give me some guidance or advice on this issue.


```
import torch
import torch.nn as nn
class Layer(nn.Module):
    def __init__(self):
        super().__init__()
    def forward(self, x):
        stream2 = torch.cuda.Stream()
        with torch.cuda.stream(stream2):
            z = x + 1
        y = x - 1
        return y + z

mm = Layer()
x=torch.randn([4]).cuda()

from torch._functorch.aot_autograd import aot_module_simplified
def toy_backend(gm, sample_inputs):
    return gm
def aot_toy_backend(gm, sample_inputs):
    return aot_module_simplified(gm, sample_inputs, fw_compiler=toy_backend)

mmc = torch.compile(mm, backend=aot_toy_backend)
yc= mmc(x)
```


### Versions

pytorch 2.3.0
Repository: ollama
Issue: The quality of the results returned by the embedding model  become worse
Labels: bug,needs more info

### What is the issue?

The quality of the results returned by the embedding model now is much worse than the previous version.

### OS

Linux

### GPU

Nvidia

### CPU

Intel

### Ollama version

0.1.48
Repository: transformers
Issue: TinyModel addition
Labels: New model

### Model description

https://github.com/noanabeshima/tiny_model

It's a small language model trained on TinyStories for interpretability with sparse autoencoders and transcoders added. It has no layernorms (this helps with interpretability) which makes it not fit with any existing model architecture in the transformers library. Its architecture is essentially GPT-2's except that it doesn't have layernorms and it has untied embed/deembed.

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

The implementation is here:
https://github.com/noanabeshima/tiny_model/blob/main/tiny_model/lm.py

The weights are here:
https://huggingface.co/noanabeshima/tiny_model/blob/main/tiny_model.pt

The default config corresponding to the weights is:

        d_model=768,
        n_layers=4,
        n_heads=16,
        max_seq_len=256,
        vocab_size=10_000

I am the author.
Repository: next.js
Issue: When using a placeholder in the Image component, there is an issue where the objectFit property may conflict with the backgroundSize property.
Labels: bug,Image (next/image),linear: next

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/next-image-placeholder-kd57qw?file=%2Fapp%2FImageTest.tsx%3A12%2C16
### To Reproduce

The issue can be reproduced by using the fill attribute in the Image component, setting style={{objectFit: 'fill'}}, and adding a data image URL to the placeholder props. This occurs when the placeholder's backgroundSize CSS property cannot use the objectFit property.

### Current vs. Expected behavior

It might be perceived as not a bug, but since there can be situations where an invalid value is used for backgroundSize, I think we could perform a stricter type check.

```packages/next/src/shared/lib/get-img-props.ts```
<img width="499" alt="스크린샷 2024-07-04 오후 12 36 00" src="https://github.com/vercel/next.js/assets/60869174/63bfd766-47a2-45d1-9905-d46e90f2c10c">

When an objectFit property that cannot be used for backgroundSize is applied, I experienced an issue where the placeholder's size behaved unexpectedly. Please refer to the codesandbox link.

<img width="732" alt="스크린샷 2024-07-05 오전 11 57 12" src="https://github.com/vercel/next.js/assets/60869174/e25c2014-cc78-40ce-9ea4-410c97125951">
<img width="761" alt="스크린샷 2024-07-05 오전 11 57 02" src="https://github.com/vercel/next.js/assets/60869174/559e5338-c64e-47f5-862a-0c2c0d0b8f6b">

https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
https://developer.mozilla.org/en-US/docs/Web/CSS/background-size


### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:51:50 PDT 2023; root:xnu-8796.121.2~5/RELEASE_X86_64
Binaries:
  Node: 18.17.0
  npm: 9.6.7
  Yarn: 1.22.10
  pnpm: 8.9.2
Relevant Packages:
  next: 14.1.0
  eslint-config-next: 12.3.1
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: standalone
```


### Which area(s) are affected? (Select all that apply)

Image (next/image)

### Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local), Vercel (Deployed), Other (Deployed)

### Additional context

_No response_
Repository: rust
Issue: Tracking Issue for `bf16` type in stdarch avx512
Labels: O-x86_64,T-libs-api,C-tracking-issue,O-x86_32

Feature gate: `#![feature(stdarch_x86_avx512_bf16)]`

This is a tracking issue for the `bf16` type in stdarch. This is just a wrapper around `u16`, but it makes the intrinsic signatures more readable.

### Public API

The `bf16` type in `core::arch::x86` and `core::arch::x86_64`, and its associated functions in `avx512bf16` and `avxneconvert`

### Steps / History

- [ ] Final comment period (FCP)[^1]
- [ ] Stabilization PR

### Unresolved Questions

- None yet.

[^1]: https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html
Repository: go
Issue: proposal: cmd/go: list deprecations to include abandoned packages, as well
Labels: Proposal,GoCommand

### Proposal Details

This is a proposal lifted from our discussions over at [Cup o' Go](https://cupogo.dev/episodes/as-simple-as-do-re-mi-go-1-23-rc1-baby-you-and-me), and is a direct follow-up of [cmd/go: list deprecations and newer available major, minor versions](https://github.com/golang/go/issues/67420) by [mitar](https://github.com/mitar).

## Proposal: Highlight Deprecated & Abandoned Packages

This proposal aims to implement a system to highlight packages that have been marked as abandoned by their maintainers, and/or marked as such by a trusted third party. The goal is to improve package discovery and maintenance by clearly indicating modules that you can't really rely on anymore and suggesting potential alternatives.

### Key Features

1. **Marking "repo archived" on GitHub, GitLab, etc.**:
    - Automatically detect if a GitHub/GitLab repository is [archived](https://docs.github.com/en/repositories/archiving-a-github-repository/archiving-repositories).
    - Mark the package as abandoned in the Go documentation and package registry.

2. **Third-party registry for deprecated packages** (Allow for the third party - not necessarily maintain it within the Go team):
    - Allow passing a config/flag for `--package-fork-follow-server=https://somewhere/on/the/web`
    - Establish a third-party registry API, so maintainers can list deprecated packages and their suggested alternatives.
        - This will open up opportunities for SSDLC companies to set up their own registries to follow "the good forks" in their opinion
    - The registry must provide an API for querying deprecated packages and their alternatives.

### Benefits

- Improves developer awareness of abandoned packages.
- Encourages maintainers to clearly indicate abandonment status and suggest alternatives themselves, allowing for more responsible project sunsetting and better open-source well-being.
- Facilitates smoother transitions to maintained forks or just plain better alternatives.

### Example Workflow

1. A maintainer decides to abandon their module, because they're moving to Mars.
2. They archive the repository on GitHub.
3. The Go package index and documentation are updated to reflect the abandonment.
4. Developers using the package receive warnings and suggestions for alternatives during their workflow when running `go mod outdated` (or whatever subcommand we end up choosing in the original proposal), perhaps with a flag e.g. `go mod outdated -include-abandoned`.
5. The third-party registry provides additional context and options for finding maintained packages, e.g.: 
 
```sh
> export GO_THIRD_PARTY_FORK_FOLLOWER=https://some.company.com/go-forks
> go mod outdated -include-abandoned -suggest-forks
github.com/thecoreman/some-package has been abandoned => replace with github.com/flimzy/some-package
```