sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Add more `ErrorKind`s
Labels: T-libs-api,A-docs,C-tracking-issue,A-io

- A somewhat related tracking issue #86442

## Misc UNIX

Originally posted by zackw in https://github.com/rust-lang/rust/issues/79965#issuecomment-810468334

I am surprised to see `EMFILE`, `ENFILE`, `ENOMEM`, `ENOEXEC`, `EIO`, `ENOTTY`, `ENXIO`, `ENODEV`, `EOPNOTSUPP`, `ESRCH`, `ECHILD`, and `EINPROGRESS` dismissed as unlikely to occur, or only relevant to people doing highly Unix-specific tasks.  They can all happen at least as easily as some of the other situations for which codes are being added.  I'd recommend all of these be added, with the following friendly names and descriptions. Some of them should be lumped together, however.

  * `EIO`: `PhysicalIOError`, "Data could not be input or output due to a hardware failure, such as a bad disk sector."
  * `ESRCH` and `ECHILD`: `ProcessNotFound` (or lump with the existing `NotFound`).  "A process was not found" seems too vague and short, but the existing description for `NotFound` is also vague and short, so :man_shrugging:
  * `EINPROGRESS`: `InProgress`.  "An operation has begun, and will complete later.  It is not yet known whether it will succeed."
  * `EMFILE` and `ENFILE`: `TooManyOpenFiles`.  "The process cannot open any more files without closing some first, or the system as a whole cannot handle any more simultaneously open files." 
  * `ENOMEM`: `NotEnoughMemory`.  "The system does not have enough free memory to satisfy an allocation request.  This can happen either because all of RAM is already allocated, or because the request was for more memory than the computer has."
  * `ENOEXEC`: `InvalidExecutable`.  "A machine-language program is either corrupt or cannot be executed on this CPU (e.g. it is machine code for some other type of CPU)."
  * `ENOTTY`, `ENXIO`, `ENODEV`, `EOPNOTSUPP`: `NotOperable`, "This operation cannot be applied to this type of file or device.  For example, changing terminal settings on something other than a terminal device."

## `EMFILE` specifically

Was requested at least a couple of times
- https://github.com/rust-lang/rust/issues/86442#issuecomment-1584846511
- https://github.com/rust-lang/rust/issues/86442#issuecomment-2163167135

(I was not even looking for those, just noticed the reoccurring request while gathering info for the few previous issues I've opened.)
Repository: You-Dont-Know-JS
Issue: objects & classes: cover `Proxy`
Labels: for second edition

Possibly in an appendix instead of its own chapter, as it's a rather niche metaprogramming technique (rarely used outside libraries/frameworks).
Repository: go
Issue: x/image/font: negative XHeight and CapHeight with M+ 1p Font
Labels: NeedsInvestigation

### Go version

go version go1.22.6 darwin/arm64

### Output of `go env` in your module/workspace:

```shell
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/hajimehoshi/Library/Caches/go-build'
GOENV='/Users/hajimehoshi/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/hajimehoshi/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/hajimehoshi/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.22.6'
GCCGO='gccgo'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/hajimehoshi/ebiten/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/cj/73zbb35j0qx5t4b6rnqq0__h0000gn/T/go-build3402016389=/tmp/go-build -gno-record-gcc-switches -fno-common'
```


### What did you do?

1. Download `MPLUS1p-Regular.ttf` at https://fonts.google.com/specimen/M+PLUS+1p
2. Run this program

```go
package main

import (
	"fmt"
	"os"

	"golang.org/x/image/font/opentype"
)

func showMetrics() error {
	file, err := os.ReadFile("MPLUS1p-Regular.ttf")
	if err != nil {
		return err
	}

	f, err := opentype.Parse(file)
	if err != nil {
		return err
	}
	face, err := opentype.NewFace(f, &opentype.FaceOptions{
		Size: 12,
		DPI:  72,
	})
	if err != nil {
		return err
	}
	m := face.Metrics()
	fmt.Printf("x-height: %s\n", m.XHeight.String())
	fmt.Printf("cap-height: %s\n", m.CapHeight.String())
	return nil
}

func main() {
	if err := showMetrics(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}
```

### What did you see happen?

Negative values are shown

```
x-height: -6:15
cap-height: -8:49
```

### What did you expect to see?

Positive values are shown
Repository: godot
Issue: Spotlight3D projection is not respected in VoxelGI
Labels: topic:rendering,confirmed,topic:3d

### Tested versions

Reproduced in 4.3.stable

### System information

Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 31.0.15.3623) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)

### Issue description

I use a texture to define the spotlight shape. However that shape is not respected by Voxel GI.
![grafik](https://github.com/user-attachments/assets/2ca60be1-727d-4073-9081-a126e1199bfd)

It shoud look more like this:
![grafik](https://github.com/user-attachments/assets/03befa22-5a04-4e34-9c29-198ab4c842de)


### Steps to reproduce

1. Open the scene
2. if the spotlight doesn't show up like in the screenshot, click the SpotLight3D once (or make it invisible/visible)

Enabling or disabling the VoxelGI node triggers this also for me.

### Minimal reproduction project (MRP)

[project.zip](https://github.com/user-attachments/files/16945778/project.zip)
Repository: ui
Issue: [bug]: Background accent on sidebar-01 block
Labels: bug

### Describe the bug

It look like an intentional background `bg-accent/50` is added on SidebarLayout when adding sidebar-01 block

Here are previews of the bug:

- [Theo - t3․gg | Last video on the CLI](https://youtu.be/c5OPn_dyNcc?t=541)
- #4791

https://github.com/user-attachments/assets/616c0403-e68b-4629-93af-b43b7bf77954

[View in source code here](https://github.com/shadcn-ui/ui/blob/f4ca57a79cf2d56f9c55021242a55cf0e1018b72/apps/www/registry/default/block/sidebar-01/ui/sidebar.tsx#L57)

### Affected component/components

Sidebar-01 block

### How to reproduce

Just create a project with the sidebar-01 block : `npx shadcn@latest init sidebar-01 login-01 -d -f -y`

### Codesandbox/StackBlitz link

https://github.com/QuentinFrc/shadcn-sidebar01-issue-repoduction

### Logs

_No response_

### System Info

```bash
Nothing relevant.
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: ollama
Issue: Add alias of /quit and /exit for /bye.
Labels: feature request

For now it might be easier to add an alias in the program itself for /bye and allow the use of /quit and /exit as well.

Or design a way for the user to have an .alias file to define their own aliases. 

Thanks! This is a great tool!
Repository: PowerToys
Issue: Always on top persistent frame bug
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

0.84.1

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

None

### Area(s) with issue?

Always on Top

### Steps to reproduce

While at least 2 different apps open and active, use always on top shortcut. At first it'll work properly but after the second or third time it'll became persistent and wont dissappear until a reboot. It usually happened to me while using brave at background. 

### ✔️ Expected Behavior

Using the shortcut for the second time, frame will be dissappear and pc can work properly

### ❌ Actual Behavior

Using the shortcut for the second time, frame wont dissappear and became persistent both visually and functionally which cant interact with pc where was the frame appeared first.

### Other Software

_No response_
Repository: ui
Issue: [bug]: Components refer to wrong "utils.ts" file after "utils.ts" file renamed and moved to different folder [Remix]
Labels: bug

### Describe the bug

when adding a new components for example `npx shadcn@latest add button`. usually the components importing the generated "utils" file, however, i rename the file to "cn.ts" and move it from `~/lib/utils` to `~/lib/utils/cn`. I also change the generated `components.json` file and refer the moved utils file to correct path.

here's my `components.json` file:
```json
{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "default",
  "rsc": false,
  "tsx": true,
  "tailwind": {
    "config": "tailwind.config.ts",
    "css": "app/tailwind.css",
    "baseColor": "neutral",
    "cssVariables": false,
    "prefix": ""
  },
  "aliases": {
    "components": "~/components",
    "utils": "~/lib/utils/cn", // before was ~/lib/utils
    "ui": "~/components/ui",
    "lib": "~/lib",
    "hooks": "~/hooks"
  }
}
```

also my `tsconfig.json` file (i'm not changing anything):
```json
{
  "include": [
    "**/*.ts",
    "**/*.tsx",
    "**/.server/**/*.ts",
    "**/.server/**/*.tsx",
    "**/.client/**/*.ts",
    "**/.client/**/*.tsx"
  ],
  "compilerOptions": {
    "lib": ["DOM", "DOM.Iterable", "ES2022"],
    "types": ["@remix-run/node", "vite/client"],
    "isolatedModules": true,
    "esModuleInterop": true,
    "jsx": "react-jsx",
    "module": "ESNext",
    "moduleResolution": "Bundler",
    "resolveJsonModule": true,
    "target": "ES2022",
    "strict": true,
    "allowJs": true,
    "skipLibCheck": true,
    "forceConsistentCasingInFileNames": true,
    "baseUrl": ".",
    "paths": {
      "~/*": ["./app/*"]
    },

    // Vite takes care of building everything, not tsc.
    "noEmit": true
  }
}
```

I do the same thing when working with Nextjs project, and everything works fine, but in Remix, this happened.

### Affected component/components

Probably all components, but i only try it on Button, Label, and Form

### How to reproduce

1. install shadcn ui in Remix project and follow all instruction.
2. create new folder inside `lib` folder named `utils`
3. move `utils.ts` to inside `utils` folder
4. rename `utils.ts` into `cn.ts`
5. in `components.json`, replace `"utils": "~/lib/utils",` to `"utils": "~/lib/utils/cn",`
6. add components like usual, for example `npx shadcn@latest add button`
7. after component installed, open `button.ts`
8. see that the components have an error `cannot find module ~/lib/utils`

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Nothing relevant
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: neovim
Issue: Extmarks are not restored on redo
Labels: bug,has:repro,marks,editor-state

### Problem

Extmarks are not restored properly on redo.

### Steps to reproduce

Run this lua script to set up the buffer.
```lua
vim.cmd "enew"
vim.api.nvim_buf_set_lines(0, 0, -1, 1, {"foobar"})
local ns = vim.api.nvim_create_namespace("")
vim.api.nvim_buf_set_extmark(0, ns, 0, 3, { end_col = 6, hl_group = "Error" })
```
1. Observe restoration works properly on undo
    1. Source the provided lua script
    2. Press `D` (delete "foobar")
    3. Press `u`(undo deletion)
    4. Observe that the highlighting is still present
2. Observe restoration does not work on redo
    1. Source the provided lua script
    2. Press `u` (undo "foobar")
    3. Press `<C-r>` (redo "foobar")
    4. Observe that the highlighting is absent

### Neovim version (nvim -v)

0.10.1
Repository: godot
Issue: Help codeblocks have wrong horizontal size
Labels: bug,topic:editor,usability,topic:gui

### Tested versions

4.3 and newer

### System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

### Issue description

In the inspector, scrollbars will overlap their content:
![image](https://github.com/user-attachments/assets/3d6bf2f0-ef2a-4f56-907c-0f14fcc4ffa0)

In help the can be cut at the edges:

https://github.com/user-attachments/assets/cedb2d89-ae23-4389-ae4a-6aa0089867c4

Horizontal scrolling is disabled.

### Steps to reproduce

Hover property with codeblock in description (e.g `tooltip_text`).

### Minimal reproduction project (MRP)

N/A
Repository: vscode
Issue: SCM Graph - Hover does not escape markdown in commit message
Labels: scm,under-discussion

When a commit message includes markdown syntax such as `# First Commit`, the hover does not escape the `#` from the commit message and renders the commit message as a markdown header.
Repository: go
Issue: x/tools/gopls: resolve comment links to unimported package-qualified symbols such as [net/http.Request]
Labels: FeatureRequest,gopls,Tools

Reported by @mvdan in slack: while the doc comment [spec](https://golang.org/doc/comment#doclinks) allows for qualified doc links such as `[net/http.Request]`, it looks like the support for these links added in golang/go#64648 does not implement this support.

I've run into this as well; we should add this support.
Repository: vscode
Issue: the placeholder container is too narrow, it looks like it allocates space for the vertical scrollbar
Labels: polish,editor-core

> Next problem: the placeholder container is too narrow, it looks like it allocates space for the vertical scrollbar, but there is no vertical scrollbar
> 
> 
> 
> ![Image](https://github.com/user-attachments/assets/21bcf7d2-0c34-4fe7-ba07-59d2048af6c8)
> 
>  

 _Originally posted by @roblourens in [#214472](https://github.com/microsoft/vscode/issues/214472#issuecomment-2327485616)_
Repository: vscode
Issue: Editor GPU: Use a Map over object for TwoKeyMap and FourKeyMap
Labels: bug,perf,editor-gpu
Repository: PowerToys
Issue: Workspaces does not detect Quicken Medical Expense Manager
Labels: Issue-Bug,Needs-Triage,Product-Workspaces

### Microsoft PowerToys version

0.84.1

### Installation method

WinGet

### Running as admin

None

### Area(s) with issue?

Workspaces

### Steps to reproduce

[Filing this issue from Learn docs feedback - likely related to .NET Winforms problems reported in #34681]

Try to capture workspace that includes Quicken Medical Expense Manager. It will not be detected.

### ✔️ Expected Behavior

Quicken Medical Expense Manager is captured and properly launches as expected on workspace launch.

### ❌ Actual Behavior

Quicken Medical Expense Manager is not detected and cannot be saved as part of a workspace. 

### Other Software

_No response_
Repository: angular
Issue: docs(docs-infra): Text legibility and accessibility
Labels: P3,area: docs

### Describe the problem that you experienced
The new Angular Docs site could do with some improvements in accessibility related to text rendering.  I could not find a single instance of text using subpixel rendering properly (which makes small text look really bad, _especially_ if it isn't max contrast), and there are way too many instances of gradient filled text at small sizes.

Don't get me wrong, the new site _does_ look really cool, but in its current state it looks more like an ad for Angular than actual documentation.

### Describe what you want to experience that would fix the problem
- No gradient fills on \<code\>, period.
- No gradient fills on text smaller than 16px
- Reduce over-reliance on CSS transforms across the site so that the browser can do subpixel rendering

### Add a screenshot if that helps illustrate the problem

Some examples of "bad" text rendering here:

![image](https://github.com/user-attachments/assets/178fbf90-256f-4d3d-8285-1696b18943b3)
(some of the letters here look really blocky.  also, unnecessary gradient.)

![image](https://github.com/user-attachments/assets/9f87f48e-9e9e-49b7-95fe-26f1c92ad770)
(completely unnecessary gradient that looks bad on small text)

![image](https://github.com/user-attachments/assets/b088ddf6-c72b-4986-b274-e0601b39815e)
(contrast could be better here.  also, gradient on critical information.)

### Provide any additional information here in as much as detail as you can
- The entire site seems to have some global CSS transform applied to it at the moment, which means **nothing** can subpixel render.  Deleting the second \<style\> element in the site's \<head\> via DevTools seems to get rid of this and actually allows a decent amount of text to subpixel render all by itself, but there's still a lot it doesn't fix—gradient fill text in particular.
- The lack of subpixel rendering is a lot worse for small text in dark theme specifically. 

### Am I nitpicking?
Probably, but the v17 site doesn't have these issues.  It actually feels like documentation, and _not_ an ad for Angular.
Repository: neovim
Issue: g:rust_recommended_style default (sometimes) overrides expandtab against explicit .editorconfig setting
Labels: bug,bug-vim,needs:repro,complexity:low,needs:vim-patch,filetype,options,editorconfig

### Problem

I use .editorconfig to set the tab behavior of my projects. Neovim's built-in Rust runtime overwrites this in the Rust plugin.

Here is the relevant code: (`runtime/ftplugin/rust.vim` line 43)
```vim
if !exists("g:rust_recommended_style") || g:rust_recommended_style != 0
	setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab
	setlocal textwidth=99
endif
```

Earlier reported on the editorconfig plugin [here](https://github.com/editorconfig/editorconfig-vim/issues/157) and for LazyVim [here](https://github.com/LazyVim/LazyVim/issues/4388).

### Steps to reproduce

It's weird because it's not consistent. When I start developing, the .editorconfig is adhered to. But after a while, idk what triggers it --it might be me navigating into a dependency source file using LSP hotkey or something-- and from that point on, the Rust runtime has overwritten the `expandtab` flag for all buffers.

### Expected behavior

When an .editorconfig is present in the project root of a file, the formatting of .editorconfig is followed.

### Neovim version (nvim -v)

0.9.5

### Vim (not Nvim) behaves the same?

not sure

### Operating system/version

NixOS latest

### Terminal name/version

alacritty 0.12.3

### $TERM environment variable

alacritty

### Installation

nixos nixpkgs
Repository: PowerToys
Issue: discord canary, ptb and developer not detected from workspaces
Labels: Issue-Bug,Needs-Triage,Product-Workspaces

### Microsoft PowerToys version

0.84.1

### Installation method

PowerToys auto-update

### Running as admin

None

### Area(s) with issue?

Workspaces

### Steps to reproduce

activate workspaces with one of the 3 active discords or all

### ✔️ Expected Behavior

all are detected (i use discord canary mainly)

### ❌ Actual Behavior

with a test I did none of the 3 are detected

### Other Software

_No response_
Repository: vscode
Issue: Perf telemetry for Code Actions from providers
Labels: feature-request,telemetry,editor-code-actions

<!-- ⚠️⚠️ 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. -->

We currently have telemetry on latency for Code Actions on save - it might be helpful to also add this telemetry for code actions from providers. 

Example use case - An extension provides a Code Action using Copilot for users, but only displays if the user has Copilot installed. Understanding the perf for this check could be helpful.
Repository: next.js
Issue: Nextjs 15: Importing git modules issue - 'Module not found: Can't resolve 'package-name'
Labels: bug,Module Resolution

### Link to the code that reproduces this issue

https://github.com/moltco/simple-consumer-2

### To Reproduce

1. Clone sample TypeScript module package: `git clone https://github.com/moltco/simple-package`
2. Clone NextJs@canary app boilerplate that imports the above package: `git clone https://github.com/moltco/simple-consumer-2`
3. `pnpm install && pnpm build` (or `pnpm dev` then visit http://localhost:3000/ to get it to compile)
4. Error raised by Nextjs: `'Module not found: Can't resolve 'simple-package'`

### Current vs. Expected behavior

Expected: import to work
Current: typescript intellisense etc works but cannot compile. 

### Provide environment information

```bash
OS: Win 10
Nodejs: v20.17.0
pnpm: 9.10.0
"next": "15.0.0-canary.148",
"react": "19.0.0-rc-7771d3a7-20240827",
"react-dom": "19.0.0-rc-7771d3a7-20240827",
```


### Which area(s) are affected? (Select all that apply)

Module Resolution

### Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local)

### Additional context

I tested agains canary 15.0.0-canary.56 and 15.0.0-canary.148 -> both seem to suffer from the same issue
Repository: angular
Issue: Angular effect throws "Unsubscription error" when signal is set in finalize operator
Labels: area: core,P3,bug,core: reactivity,cross-cutting: signals

### Which @angular/* package(s) are the source of the bug?

core

### Is this a regression?

Yes

### Description

I am getting an error when I use effect to call an http request whenever my input signal changes, the occurs when the input `search` changes before the current request is completed. After investigating, it appears to be happening because of setting `loading` signal to false inside the `finalize` operator.

It is probably happening because the effect is triggered when the input is changing and then sets the loading to true, but at the same time the finalize from the previous request which got unsubscribed, sets the loading to false.


```ts
constructor() {
  let sub$: Subscription;

  effect((onCleanup: EffectCleanupRegisterFn) => {
    const searchKey: string = this.search();

    untracked(() => {
      sub$?.unsubscribe();

      if (searchKey) {
        this.data.set(null);
        this.loading.set(true);

        sub$ = this.service.getData(searchKey).pipe(
          tap((data) => this.data.set(data)),
          finalize(() => this.loading.set(false))
        ).subscribe();
      }
    });

    onCleanup(() => sub$?.unsubscribe());
  });
}
```

**Runtime error is thrown:**

![image](https://github.com/user-attachments/assets/dfa0e58c-8a41-42f8-936a-06c448ddf456)


### Please provide a link to a minimal reproduction of the bug

[Stackblitz reproduction](https://stackblitz.com/edit/stackblitz-starters-dexwge).

Click the button to trigger a request, then click again after a second and you will get the error in the console

### Please provide the exception or error you saw

```true
message: "1 errors occurred during unsubscription:\n1) Error: NG0600"
name: "UnsubscriptionError"
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 17.3.8
Node: 20.2.0
Package Manager: npm 9.6.6
OS: win32 x64

Angular: 17.3.11
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.8
@angular-devkit/build-angular   17.3.8
@angular-devkit/core            17.3.8
@angular-devkit/schematics      17.3.8
@angular/cdk                    17.3.10
@angular/cli                    17.3.8
@angular/material               17.3.10
@schematics/angular             17.3.8
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.7
```


### Anything else?

When this error occurs, the effects in other components stop working.