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

Bug when pasting emojis into IntelliJ #76

Open
JamyGolden opened this issue Aug 14, 2024 · 4 comments
Open

Bug when pasting emojis into IntelliJ #76

JamyGolden opened this issue Aug 14, 2024 · 4 comments

Comments

@JamyGolden
Copy link

Problem

There is an issue where IntelliJ Biome formats emojis when they are pasted into the document.

  1. Have Biome installed and Run format on save enabled.
  2. Paste in ✈️ (unicode value: U+2708 U+FE0F) into the document

It formats that emoji to ✈ (unicode value: U+2708) when pasting in it - not even on save. Biome cli itself doesn't do this formatting, so it's definitely an IntelliJ Biome issue. When Run format on save is not enabled, I don't get the error.

Expectation

When pasting the emoji into the document, it doesn't format away the U+FE0F emoji bit of the unicode character, like IntelliJ behaves without Biome IntelliJ Run format on save option enabled.

System information

Operating System: PopOs 22.04 and MacOS Sonoma
App: IntellJ IDEA Ultimate 2024.2.0.1
Biome IntelliJ version: 1.2.1 and also tried 1.0.0

@nhedger
Copy link
Member

nhedger commented Aug 14, 2024

Can you confirm this happens even if the biome extension is disabled?

@JamyGolden
Copy link
Author

If the Biome extension is disabled, the expected functionality happens: Pasting the emoji (unicode value: U+2708 U+FE0F) is correctly pasted as is into the file and the U+FE0F part is not stripped away.

A colleague of mine actually ran into this issue and I was able to recreate it so I know this at least happens on different operating systems and different machines.

@henrik242
Copy link

Just popping by to say I can still reproduce this on Biome 1.4.0 in Intellij IDEA 2024.2.1

@cstuncsik
Copy link

It happens to me as well, Biome 1.4.0 in Intellij IDEA 2024.2.1 on MacOS Sonoma 14.7

Pasting this emoji (⚠️) into my translation json file works but when I save the file it gets replaced to ! but the others are untouched

{
  "warning": "⚠️ Warning",
  "welcome": "👋 Welcome {name}!",
  "askAi": "✨ Ask AI",
  "seeThis": "👈 This is {node}’s AI Logs"
}

It works at the playground though

Maybe it's an IntelliJ problem not Biome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants