Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zed adds .s to my SQL files #16969

Open
1 task done
axoking opened this issue Aug 27, 2024 · 15 comments
Open
1 task done

Zed adds .s to my SQL files #16969

axoking opened this issue Aug 27, 2024 · 15 comments
Labels
defect [core label] language An umbrella label for all programming languages syntax behaviors tooling An umbrella label for language tools, linters, formatters, etc

Comments

@axoking
Copy link

axoking commented Aug 27, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Whenever I save a file a name it e.g. test.sql, zed saves it as test.sql.s without notifying me. I have no option to disable that behaviour. It doesn't matter wether I selected SQL syntax or not.

I thought that this is maybe an intended feature for auto-completing the filenames, but I found no setting for that kind of behaviour so maybe it's also a bug.

Environment

Zed: v0.149.5 (Zed)
OS: macOS 15.1.0
Memory: 8 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log
@axoking axoking added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Aug 27, 2024
@JosephTLyons JosephTLyons added can't reproduce Issue that can't be reproduced (transient, invalid, etc) language An umbrella label for all programming languages syntax behaviors tooling An umbrella label for language tools, linters, formatters, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review can't reproduce Issue that can't be reproduced (transient, invalid, etc) labels Aug 27, 2024
@versecafe
Copy link
Contributor

@axoking I can't seem to replicate this, was this happening on every sql file?

@axoking
Copy link
Author

axoking commented Aug 28, 2024

@versecafe yes it seems to happen with every sql file

@axoking
Copy link
Author

axoking commented Aug 29, 2024

OK edit

It seems like Zed always autocorrects my file endings. Like when I name a file .txtx, it becomes .txtx.txt. So it looks like Zed doesn't know the .sql ending and thinks I'm writing assembly because of the s so it corrects it to .sql.s. But I couldn't find neither a description of that feature nor how to disable it.

Is there a way to disable this or should I create a feature request issue for this?

@CharlesChen0823
Copy link
Contributor

this is might not feature...., but I cannot reproduce.

@axoking
Copy link
Author

axoking commented Aug 30, 2024

Bildschirmaufnahme.2024-08-30.um.15.56.04.mov

This is what happens. I'm sorry you can't reproduce it. Are you using mac for this?

@axoking
Copy link
Author

axoking commented Aug 30, 2024

Screen.Recording.2024-08-30.at.16.00.51.mov

okkk edit here:
Zed is not the one to blame, that's a fucking Apple feature...
It does this in Apple's TextEdit, as well as in Sublime Text... Looks like whenever some app uses the Finder file dialog to save a file, macOS autocorrects it.

Could be a beta feature because I'm on Sequoia beta right now. I will look for an option to change this. Maybe you can also disable it when calling the file dialog in the application, idk if Apple thought about making that possible.

I'll try to check if it's beta only and if there's a way for me to disable it. Gonna write some feedback using that nice feedback assistant...

I guess that issue can be closed now.

@CharlesChen0823
Copy link
Contributor

because I had seen another same issue.

@versecafe
Copy link
Contributor

I would recommend creating files in zed through the CLI with touch, or zed ./file/path, or creating them through the editor to avoid macOSs file generation extension autocorrect in finder, windows has similar behaviour too with some files

@axoking
Copy link
Author

axoking commented Aug 31, 2024

Yes, I don't think Zed developers can do much here. Creating a file from the command line or by clicking New file in the sidebar works without problems, it's only when you use the Finder dialog to save something.

@breck7
Copy link

breck7 commented Sep 22, 2024

My goodness. Thanks everyone for posting about this issue. I thought I was going insane or something fucked with my machine.

It started happening right after I upgraded to Sequoia. Let's try and raise with Apple to get this fixed. 20 times a day I have to fix this. So annoying.

https://forum.sublimetext.com/t/sublime-text-started-adding-a-s-to-new-files-very-annoying/73628/4

@breck7
Copy link

breck7 commented Sep 22, 2024

Shout out to @axoking for figuring out this was an Apple Sequoia bug!

@firecall
Copy link

Another test case:

Create a file called 'foo.html.haml' and macOS Sequoia will append .h to the file, resulting in 'foo.html.haml.h'.

@axoking
Copy link
Author

axoking commented Sep 23, 2024

Looking at https://news.ycombinator.com/item?id=41618926, it might also be a bug and not a feature. For me it looked like something that wouldn't happen from a bug, but I have no idea how all the stuff works internally so it could also be unintended.

@breck7
Copy link

breck7 commented Sep 27, 2024

I'm sure Apple is aware of this, but I have filed my own report (https://feedbackassistant.apple.com/feedback/15301291), it doesnt seem like they have public bug reporting, but putting that link for my own future reference to keep an eye on this. If they update my issue, I'll report back here.

@daviehh
Copy link

daviehh commented Oct 7, 2024

also reported via feedback, looks like fix may be coming soon

Screenshot 2024-10-07 at 16 17 46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] language An umbrella label for all programming languages syntax behaviors tooling An umbrella label for language tools, linters, formatters, etc
Projects
None yet
Development

No branches or pull requests

7 participants