api.d.ts sorted differently on Windows?
One of our developers uses Windows, and we are having a lot of merge conflicts with api.d.ts
It seems like Windows sorts Capital LetTers differently than Mac or Linux. Is that something the generator could accomodate for?
5 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
@magicseth wow, thanks for the heads up! I'd think that this line
https://github.com/get-convex/convex-js/blob/45f7c4196003a4d827f925d3781ebe64278c5546/src/bundler/index.ts#L30
would mean we didn't have to worry about this, but there must be something else.
Can you give us an example of two that get sorted differently?

the AI suggests: For best results, always explicitly sort your directory listings with .localeCompare() and numeric: true.
also a different locale for this develoepr
and of course locale and OS might be red herrings...
ah thanks, yeah bet it's one of these
going to use
here, should be in the next release
Huh! Could you share the filenames so I can try to reproduce? NExt time you see changes, could you send them to me? Like a picture of the diff, or the before and after. You can email me support@convex.dev or open an issue at https://github.com/get-convex/convex-js
Yeah I see no changes, what are the changes you're discarding?
"modified" in git means there is some change, could you make a copy of the file before and after? It sounds like the diff doesn't show up, but we still need to know what the change you are discarding is. Try
git diff
in the terminal