sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
814 stars 40 forks source link

File name extension corruption when saving new files #6512

Closed maarten-t closed 1 month ago

maarten-t commented 1 month ago

Description of the bug

When saving a newly created file, depending on the file name extension, Sublime Text sometimes adds an additional incorrect extension to the file name.

Problematic examples:

The file name extension is what matters here, not the aaa part before it. Many extensions work properly. File names, such as aaa, aaa.c, aaa.css, and aaa.html are fine. There seems to be a clear pattern here relating to prefixes of the chosen extension that are known extensions by themselves.

Steps to reproduce

  1. Start ST in safe mode
  2. Open a new file
  3. Save it as aaa.md

Expected behavior

The file should have gotten the name aaa.md and ST should have treated the file as Markdown.

Actual behavior

The file name has gotten name aaa.md.m and ST treats the file as Objective C instead of Markdown.

Sublime Text build number

4180

Operating system & version

macOS Sequoia 15.0.1

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

BenjaminSchaaf commented 1 month ago

This is a bug in macOS Sequoia and affects all applications. See https://forum.sublimetext.com/t/sublime-text-started-adding-a-s-to-new-files-very-annoying/73628. There's nothing we can do on our end.