Error when renaming a file (changing only case)

Đang mở
#403 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
haskell, typescript, vscode

Hướng nghiên cứu

Không có tệp nguồn hoặc bài kiểm thử nào được nêu tên. Trước tiên, hãy tái hiện thao tác đổi tên chỉ thay đổi chữ hoa/chữ thường từ test/foo.hs thành test/Foo.hs trong thiết lập Remote - Containers được cung cấp, sau đó truy vết xem lỗi thuộc về extension của VS Code, language server hay thao tác tệp của VS Code; được xem là hoàn thành khi việc đổi tên thành công mà không xuất hiện lỗi giả rằng đích đã tồn tại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

type: bug

When renaming a file test/foo.hs to test/Foo.ts I get an error and the rename fails:

Unable to move/copy 'vscode-remote://dev-container+2f55736572732f64616e6e792f4465762f44616e6e792f4861736b656c6c54657374696e67/workspaces/HaskellTesting/tests/foo.hs' because target 'vscode-remote://dev-container+2f55736572732f64616e6e792f4465762f44616e6e792f4861736b656c6c54657374696e67/workspaces/HaskellTesting/tests/Foo.hs' already exists at destination.

I'm running in a container using VS Code's Remote - Containers functionality, using the following devontainer JSON:

{
	"name": "Haskell",
	"image": "haskell:8",
	"settings": {
		"[haskell]": {
			"editor.insertSpaces": true,
		}
	},
	"extensions": [
		"haskell.haskell"
	],
}

I had to use haskell:8 as using haskell:latest complained that some components were not available on Linux using the latest version.

I'm not sure if this is an issue with the VS Code extension or something else (like the LSP server) so if this is not the right place to raise this, please point in the right direction (this is the first time I've tried to use Haskell so I'm not very familiar with the tools yet) - thanks!

Ngôn ngữ chính
TypeScript
Star
594
Fork
99
Merge trung bình
18 giờ 19 phút
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của haskell/vscode-haskell

Tất cả issue của haskell/vscode-haskell

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.