sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: crypto/x509: incorrect user trust store directory is used for Android
Labels: OS-Android,NeedsInvestigation,mobile,BugReport

In #58922, the following user trust store directory was added to crypto/x509 for Android:

https://github.com/golang/go/blob/6da16013ba4444e0d71540f68279f0283a92d05d/src/crypto/x509/root_linux.go#L29

However, Android hasn't used this path since 2014 and instead uses `/data/misc/user/<user ID>/cacerts-added`, where `<user ID>` is the Android user ID (not Linux/POSIX UID).

I'm not sure if there's a good public API to get the user ID. `UserHandle.myUserId()` (on the Java side) is not public. However, the Android user ID is [implemented as `getuid() / 100000`](https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-15.0.0_r12/core/java/android/os/UserHandle.java#288). As far as I can tell, this has never changed since Android got multi-user support ~14 years ago. Maybe it's good enough to rely on this implementation detail?

Some links:
* https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-15.0.0_r12/core/java/android/security/net/config/UserCertificateSource.java#34
  * This is where Android loads `/data/misc/user/<user ID>/cacerts-added` for the Java TLS stack
* https://android.googlesource.com/platform/frameworks/native/+/07053fcb61436221fac2281394e98ec9d0feab3d%5E%21/
  * This is the commit when Android migrated away from the old `/data/misc/keychain/certs-added` directory

---

Side note: For system CA certs, golang currently only loads `/system/etc/security/cacerts`, but ever since Android 14, the system CA certs became updatable and `/apex/com.android.conscrypt/cacerts` should have priority: https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-15.0.0_r12/core/java/android/security/net/config/SystemCertificateSource.java#48
Repository: vscode
Issue: Migrate built-in php extension off of `CompletionItem.textEdit`
Labels: debt

For #237857

The `CompletionItem.textEdit` property has been deprecated. Can you please look into migrating to use `CompletionItem.insertText` and `CompletionItem.range` instead
Repository: vscode
Issue: Fix `CompletionItem.command` deprecation for built-in js/ts
Labels: debt

For #237857 

Looks like we think we can changing the completion item command during resolve, which has been marked deprecated
Repository: transformers
Issue: Support LLMs With No Image Placeholder Embedding in LLava-based Models
Labels: Feature request,Multimodal,VLM

### Feature request

Currently, llava-based models, e.g., llava-next, will throw `IndexError: index out of range in self` from the LLM embedding if the LLM does not contain the image embedding. However, at inference time, the embedding value isn't actually used, because the indices corresponding to the image token will be overwritten by the image features.

Other inference engines, e.g., vLLM, separately mask out the text and multimodal embeddings and merge them together (e.g., [here](https://github.com/vllm-project/vllm/blob/main/vllm/model_executor/models/utils.py#L377)). This prevents such indexing errors if the image token is only part of the tokenizer vocabulary, and not part of the encapsulated language model's embedding vocab.

This can be fixed on the model side by resizing the token embeddings to add the image token to the LLM, but it would be nice to take a similar approach in transformers to allow use of models that don't have the image token in the LLM embedding vocabulary.

### Motivation

Fixing this will allow the use of llava-based models that don't have an embedding for the placeholder image token 😄 

### Your contribution

I am happy to submit a PR for this if the team is open to it!
Repository: flutter
Issue: [video_player][Android] only 1 video can play at a time 
Labels: c: new feature,platform-android,p: video_player,package,has reproducible steps,P3,team-android,triaged-android,found in release: 3.27,found in release: 3.28

### Steps to reproduce

Checkout and run on android (physical or simulator): https://github.com/willsmanley/video-issue

### Expected results

Should play both vids

### Actual results

Only plays 1 vid. Playing one stops the other.

### Code sample

https://github.com/willsmanley/video-issue

### Screenshots or Video

_No response_

### Logs

_No response_

### Flutter Doctor output

n/a
Repository: material-ui
Issue: MUI not working with React Router 7 and Vite
Labels: bug 🐛

### Steps to reproduce

Steps:
1. Open this link to live example: Because this is a build issue, it's harder for me to provide a live example.
2. Follow the basic build steps for React Router 7: https://reactrouter.com/start/library/installation
3. Add a basic import of an @mui/icons-material icon to root.tsx.
4. Run npm run build && npm start


### Current behavior

The React Router 7 server running node will fail to start, referring to inability to import directories and requiring specification of index.js files. If I hand patch or script patch the files, the issues seems to be endless and out of my depth as a non-library maintainer.

### Expected behavior

I realize that you're planning for full ES module compatibility in an upcoming version. The problem is that I haven't been able to find any viable workaround after hours research, trial and error. I've tried the "esm" and "modern" folders. I've tried vite plugins, scripting to modify node_modules, esbuild, everything. I'd appreciate any help with a workaround or proper solution. React Router just released 7, and a lot of people are going to be excited to try using it.

### Context

I'm trying to move from create-react-app to React Router 7, which comes with Vite, and use MUI.

### Your environment

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  System:
    OS: macOS 15.1.1
  Binaries:
    Node: 23.6.0 - ~/.nvm/versions/node/v23.6.0/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v23.6.0/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 131.0.6778.265
    Edge: Not Found
    Safari: 18.1.1
  npmPackages:
    @emotion/react: ^11.14.0 => 11.14.0 
    @emotion/styled: ^11.14.0 => 11.14.0 
    @mui/core-downloads-tracker:  6.3.1 
    @mui/icons-material: ^6.3.1 => 6.3.1 
    @mui/material: ^6.3.1 => 6.3.1 
    @mui/private-theming:  6.3.1 
    @mui/styled-engine:  6.3.1 
    @mui/system:  6.3.1 
    @mui/types:  7.2.21 
    @mui/utils:  6.3.1 
    @types/react: ^19.0.1 => 19.0.5 
    react: ^19.0.0 => 19.0.0 
    react-dom: ^19.0.0 => 19.0.0 
    typescript: ^5.7.2 => 5.7.3 
```
</details>


**Search keywords**: react-router vite
Repository: godot
Issue: Camera wireframe widget gizmo doesn't match FOV.
Labels: bug,topic:editor,topic:3d

### Tested versions

4.2-4.4 dev 7

### System information

Godot v4.4.dev7 - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 32.0.15.6603) - AMD Ryzen 7 3700X 8-Core Processor (16 threads)

### Issue description

If you try to place items in the world so that they line up a certain way with the camera using the wireframe shape of the gizmo for a guide, they don't show up where expected.  For example, if I want something in the lower left corner of the view and line it up like this:

![Image](https://github.com/user-attachments/assets/9b98d761-386a-4e96-99f5-4c1b375267a3)

I would expect this to be in the lower left corner, but when viewed from the camera, it looks like this:

![Image](https://github.com/user-attachments/assets/5e1752a1-97fb-4417-a5e9-96641cb71e6e)

Quite far away from the corner.  I have to position the mesh outside of what it looks like the camera to see in order to get it in the corner.


### Steps to reproduce

Make a simple 3D scene with a camera.  Place an object where it looks like it will be in the corner of the camera.  Run the scene or preview the camera and note that the object is inset quite a bit from the corner.

### Minimal reproduction project (MRP)

[test_camera_fov.zip](https://github.com/user-attachments/files/18403949/test_camera_fov.zip)
Repository: angular
Issue: No error on easy to miss quote syntax error
Labels: area: compiler,P3,compiler: parser

### Which @angular/* package(s) are the source of the bug?

Don't known / other

### Is this a regression?

No

### Description

The following code has a mistake in the template of the `App` component.
There should be two quotes `'` at the end of the template.

```ts
import { Component, Pipe } from '@angular/core';
import { bootstrapApplication } from '@angular/platform-browser';

@Pipe({
  name: 'translate',
  standalone: true,
})
export class TranslatePipe {
  transform(val: string): string {
    return val;
  }
}

@Component({
  selector: 'app-root',
  template: `
    {{ name ? (name | translate) : ' }} 
  `, //     Missing quote here    ^^^^
  standalone: true,
  imports: [TranslatePipe],
})
export class App {
  name = 'Angular';
}

bootstrapApplication(App);
```

**Expected result:** compilation error.
**Actual result:** No error. Instead template is rendered as string. This error is easy to miss.

### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-qbomf7kh?file=src%2Fmain.ts

### Please provide the exception or error you saw

```true

```

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 19.0.0
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64

Angular: 19.0.0
... animations, build, cli, common, compiler, compiler-cli, core
... forms, platform-browser, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1900.0
@angular-devkit/core         19.0.0
@angular-devkit/schematics   19.0.0
@schematics/angular          19.0.0
rxjs                         7.8.1
typescript                   5.6.3
zone.js                      0.15.0
```

### Anything else?

_No response_
Repository: godot
Issue: Grid disappears/fades out in ortho view.
Labels: bug,topic:editor,topic:3d

### Tested versions

4.2-4.4dev7.  Behavior is different in 4.4.  In 4.2, there's a circle around the center that's faded out.  In 4.4, the whole smaller grid fades out.

### System information

Godot v4.4.dev7 - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 32.0.15.6603) - AMD Ryzen 7 3700X 8-Core Processor (16 threads)

### Issue description

Sometimes the grid disappears or becomes very difficult to see in ortho view when panning around.

![Image](https://github.com/user-attachments/assets/a3c13c39-fdd0-44a9-aee6-1515124c4f74)

If I pan to the side, note the grid disappears.  It stays gone even after panning back:

![Image](https://github.com/user-attachments/assets/c99a3a26-6711-40d9-aa91-1548ea57a53c)

### Steps to reproduce

Open a 3D scene.  Press 7 on the numpad to go to ortho view.  Pan around and note that grid disappears.

### Minimal reproduction project (MRP)

N/A.
Repository: rust
Issue: Tracking Issue for the `gpu-kernel` ABI
Labels: A-LLVM,T-lang,T-compiler,O-NVPTX,C-tracking-issue,A-ABI,O-amdgpu

The feature gate for the issue is `#![feature(abi_gpu_kernel)]`.

The `extern "gpu-kernel"` calling convention represents the entry points exposed to the host, which are then called to actually execute the GPU kernel. Functions built for a GPU target are instead "device functions". Device functions must not call these host functions (and LLVM will emit a compilation error if it is attempted for some targets).

It is implemented for the following targets
- nvptx64 (translating to the `ptx_kernel` calling convention in LLVM)
- amdgpu (translating to the `amdgpu_kernel` calling convention in LLVM)

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

### Steps

- [ ] RFC
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Formatting for new syntax has been added to the [Style Guide] ([nightly-style-procedure])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/main/nightly-style-procedure.md 
[Style Guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide

### Unresolved Questions

- [ ] May need a story for how to handle breaking changes in ABIs (esp. re: `ptx_kernel`)
- [ ] This may want to be `extern "device-kernel"` instead?
- [ ] May want to address or dismiss the question of SPIRV's [OpEntryPoint](https://registry.khronos.org/SPIR-V/specs/unified1/SPIRV.html#OpEntryPoint)
- [ ] What function signatures are actually valid? LLVM generally doesn't try to validate these, so we must determine that ourselves.
- [ ] Devices shouldn't be able to call these functions, but who can?
- [ ] Should these functions always be `unsafe` to call? If so, making them uncallable from device code may be redundant (but "my `unsafe` generated an LLVM error" would be kinda unsettling, even if we define it as UB)

### Implementation history

- [x] Implement the ABI https://github.com/rust-lang/rust/pull/135047
- [ ] Prevent safely calling `extern "gpu-kernel"` functions when compiling for GPU targets
- [ ] Document valid function signatures
    - Must have no return value `()` or `!`
- [ ] Bar invalid function signatures
Repository: PowerToys
Issue: Switching to another computer while a fullscreen app is active brings the taskbar over the fullscreen app.
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.87.1

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

Mouse Without Borders

### Steps to reproduce

1. Link two computers using Mouse Without Borders.
2. Move mouse from this computer to the other one.
3. Open a fullscreen app (e.g. a YouTube video) on the other computer.
4. Bring the mouse back to this computer.

### ✔️ Expected Behavior

I can keep watching my fullscreen videos no problem.

### ❌ Actual Behavior

The taskbar appears over the fullscreen video, obstructing it.

### Other Software

_No response_
Repository: godot
Issue: When moving a file in File System a random script is selected in the Script window
Labels: bug,topic:editor,regression

### Tested versions

4.3 stable, 4.4 dev7.
This does not happen in 4.2.2

### System information

Godot v4.4 dev7 - Windows 10.0.19045 - GLES3 (Compatibility) - Radeon RX 560 Series (Advanced Micro Devices, Inc.; 31.0.14001.45012) - Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 Threads)

### Issue description

If we move a texture file from a folder to another folder, a random script is selected in the Script window.
I still don't understand the order of selecting a script, in one project the last script is selected, in another the script from the middle.
This doesn't happen if we move the .tscn file, at least for me.

https://github.com/user-attachments/assets/154b840c-8cb3-4bba-ad25-5938710ca1d0


### Steps to reproduce

1. Open MRP
2. Open the Script window and select any script from the list on the left
3. Move 7.png from the Textures folder to the icon folder
4. Another script is selected in the Script window

### Minimal reproduction project (MRP)

[bg.zip](https://github.com/user-attachments/files/18404252/bg.zip)
Repository: react
Issue: Bug: react-hooks/exhaustive-deps false postive when use `isPending` in `useActionState`
Labels: Status: Unconfirmed

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

React version: 19.0.0, eslint-plugin-react-hooks: 5.1.0

## Steps To Reproduce

1. Create a `useActionState` value and use the third value in the return value
2. Use dispatch function in `useEffect`

<!--
  Your bug will get fixed much faster if we can run your code and it doesn't
  have dependencies other than React. Issues without reproduction steps or
  code examples may be immediately closed as not actionable.
-->

Link to code example:
```tsx
import type React from 'react';
import { useActionState, useEffect } from 'react';

export const Example: React.FC = () => {
  const [_, dispatch, _isPending] = useActionState(() => 0, 0);
  useEffect(() => {
    dispatch();
  }, []); // React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array.

  const [_2, dispatch2] = useActionState(() => 0, 0);
  useEffect(() => {
    dispatch2();
  }, []); // ok
  return null;
};

```
<!--
  Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
  repository on GitHub, or provide a minimal code example that reproduces the
  problem. You may provide a screenshot of the application if you think it is
  relevant to your bug report. Here are some tips for providing a minimal
  example: https://stackoverflow.com/help/mcve.
-->

## The current behavior
```
React Hook useEffect has a missing dependency: 'query'. Either include it or remove the dependency array.
```
## The expected behavior
No lint errors.

------
Only handled 2 elements.
https://github.com/facebook/react/blob/056073de4c50b65807cd77ae6715c9ea8ee64277/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js#L273
Repository: rust
Issue: Async function calls not optimized out
Labels: T-compiler,A-async-await,E-needs-mcve,C-optimization

Async function calls that are behind simple `if false` (or `if cfg!()` that aren't active) can still affect the binary, even though non-async function calls are optimized out.

I tried this code:

```rust
#[tokio::main]
async fn main() {
    if false {
        async fn never_panic() {
            panic!("disco");
        }
        never_panic().await;
    }
    if false {
        panic!("antidisestablishmentarianism");
    }
    println!("All done!");
}
```

And ran `cargo rustc --release -- -C opt-level=s` (this behavior also appears on opt-level 3), and checked for the resulting strings in the binary, e.g., `strings target/release/minimal | grep -e disco` or `strings target/release/minimal | grep -e antidis`.

As expected, the string "antidisestablishmentarianism" never appears in the binary, but "disco" always does, even though functionally, they should be equivalent.

If I had to guess why this could happen, it's because `if false { ... }` still internally generates some type for the `impl Future`, which isn't getting optimized out for some reason.

In a more complex app, we were finding that this was also affecting runtime behavior of the code (maybe due to there being a lot of code and crates not optimized out, and that chaining into additional effects, but it was hard to isolate this behavior).

### Meta

This bug exists in nightly going back to 2024-09-30 at least, but also on the latest.

It happens on both x86-64 and riscv32, at least.

`rustc --version --verbose`:
```
rustc 1.84.0 (9fc6b4312 2025-01-07)
binary: rustc
commit-hash: 9fc6b43126469e3858e2fe86cafb4f0fd5068869
commit-date: 2025-01-07
host: x86_64-unknown-linux-gnu
release: 1.84.0
LLVM version: 19.1.5
```
Repository: deno
Issue: Deno LSP suggests incorrect imports
Labels: bug,lsp

Version: Deno 2.1.5+5a39f2f

Hey,

I'm not 100% sure if this is due to Deno's LSP or jetbrains. I am aware that the Jetbrains deno plugin is pretty bad, so sorry if this is unrelated to Deno.

When I am trying to import QueryClientProvider from react-query, I get some odd suggestions for where to import it from, as show in the screenshot:

![image](https://github.com/user-attachments/assets/38faa31d-9ab8-474a-b279-ecb0f7b36110)

Here is my deno.json:

```{
    "tasks": {
        "client:start": "deno run -A --node-modules-dir=auto npm:vite",
        "server:start": "deno run -A --node-modules-dir --watch server/main.ts",
        "dev": "deno task client:start & deno task server:start"
    },
    "imports": {
        "@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.2",
        "@std/assert": "jsr:@std/assert@1",
        "@tanstack/react-query": "npm:@tanstack/react-query@^5.64.1",
        "hono": "npm:hono@^4.6.16",
        "@types/react": "npm:@types/react@^19.0.6",
        "@vitejs/plugin-react": "npm:@vitejs/plugin-react@^4.3.4",
        "autoprefixer": "npm:autoprefixer@^10.4.20",
        "postcss": "npm:postcss@^8.4.49",
        "react": "npm:react@^19.0.0",
        "react-dom": "npm:react-dom@^19.0.0",
        "tailwindcss": "npm:tailwindcss@^3.4.17",
        "vite": "npm:vite@^6.0.7"
    },
    "types": ["types.d.ts", "vite/client"],
    "compilerOptions": {
        "types": ["react", "react-dom", "@types/react"],
        "lib": ["dom", "dom.iterable", "deno.ns"],
        "jsx": "react-jsx",
        "jsxImportSource": "react",
        "jsxImportSourceTypes": "@types/react"
    },
    "fmt":{
        "useTabs": true,
        "lineWidth": 120,
        "indentWidth": 4,
        "semiColons": true,
        "singleQuote": true,
        "include": ["client", "server"],
        "exclude": ["client/.vite"]
    }
}
```

Again, sorry if this is not due to the Deno project itself, or if I have a misconfiguration.
Repository: transformers
Issue: past_key_values cat out of model generate, output appear disorder
Labels: bug,Generation

### System Info

- `transformers` version: 4.47.1
- Platform: Linux-5.15.0-60-generic-x86_64-with-glibc2.35
- Python version: 3.11.11
- Huggingface_hub version: 0.27.0
- Safetensors version: 0.4.5
- Accelerate version: 1.2.1
- Accelerate config:    not found
- PyTorch version (GPU?): 2.4.0+cu121 (True)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using distributed or parallel set-up in script?: <fill in>
- Using GPU in script?: <fill in>
- GPU type: NVIDIA 4090-24G

### Who can help?

_No response_

### Information

- [x] The official example scripts
- [ ] My own modified scripts

### Tasks

- [x] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction


When I use past_key_values for generate, I have a problem. I want to cat prompt kv cache with current chat kv cache for limit gpu mem, but its fasle, this can be output, but not a right order sentence. 
 
code be like:

#prompt_kv_cache can be used
past_key_values = None
output = model.generate(input_ids,  past_key_values=past_key_values)
past_key_values = output.past_key_values

...some chat count 

last_past = []
for layer_past in past_key_values:
        past_keys, past_values = layer_past
        trimmed_past_keys =  past_keys[:, :, -len_kv:, :]
        trimmed_past_values =  past_values[:, :, -len_kv:, :]
        last_past.append((trimmed_past_keys, trimmed_past_values))
_past_all = []
    for p1_layer, p2_layer in zip(prompt_kv_cache, tuple(last_past)):     #prompt_kv_cache can be used for init, this true
        _past_all.append(tuple(torch.cat((p1, p2), dim=-2) for p1, p2 in zip(p1_layer, p2_layer)))
output = model.generate(input_ids,  past_key_values=tuple(_past_all))

Now, output.text is no-order.
For example, last input is "i want to eat"
output text maybe generate like "you \n\n need need some some some \n\n food food\n" or "you \n\n food \n need need some some some \n\n food food\n"

what wrong with past_key_values cat?


### Expected behavior

I want to know, how to cat a early kv cache with current kv cache