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

Fail to export when page name contains emoji #36

Open
Sansui233 opened this issue Jul 23, 2024 · 2 comments
Open

Fail to export when page name contains emoji #36

Sansui233 opened this issue Jul 23, 2024 · 2 comments

Comments

@Sansui233
Copy link

What Happened?

Fail to export graph when page name contains emoji

Reproduce the Bug

  1. create a new graph
  2. run logseq-publish-spa out, success
  3. add a page titled 🔨test
  4. run logseq-publish-spa out , error
 Error: ENOENT: no such file or directory, open 'C:\Users\sansui\test\mygraph\pages\🔨test.md'
C:\Users\sansui\Developer\publish-spa\node_modules\mldoc\index.js:1031
throw b}function
^
el [Error]: ENOENT: no such file or directory, open 'C:\Users\sansui\test\mygraph\pages\🔨test.md'
    at new el (file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:179:94)
    at $APP.Sm.j (file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:1267:319)
    at file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:332:310
    at Jq (file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:332:319)
    at file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:562:45
    at Q (file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:308:469)
    at file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:421:113
    at file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:561:498
    at Q (file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:308:469)
    at file:///C:/Users/sansui/Developer/publish-spa/node_modules/@logseq/nbb-logseq/lib/nbb_core.js:563:263 {
  data: {
    K: null,
    O: 6,
    H: [
...

Expected Behavior

No response

Desktop or Mobile Platform Information

Windows
Logseq v0.10.9

@avelino
Copy link
Contributor

avelino commented Jan 24, 2025

I have a page with emoji working ::icon, where is it placing emoji?

http://notes.avelino.run/#/page/book%2Fthe%20amazon%20way

@Sansui233
Copy link
Author

I have a page with emoji working ::icon, where is it placing emoji?

http://notes.avelino.run/#/page/book%2Fthe%20amazon%20way

Hi! Yes, this is a temporary workaround. The issue is still a bug, as the current name parsing does not support emojis. I encountered this because my earliest journal entry is from about 3–4 years ago, back when the icon property wasn’t supported so I place emoji in the title.

Additionally, even with the icon property, emojis don’t always appear in link references. Sometimes, I use an icon to directly indicate the category in references, such as:
[[📃Hybrid of Spans and Table-Filling for Aspect-Level Sentiment Triplet Extraction]].

Overall, the main reason I reported this is that file names should be parsed correctly, rather than relying on a user-side fallback that leaves the behavior as it is.

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

2 participants