GithubHelp home page GithubHelp logo

Comments (4)

linonetwo avatar linonetwo commented on May 15, 2024

Wow, this still happen on latest pre-release 4.0.1-axxx?

from tidgi-desktop.

linonetwo avatar linonetwo commented on May 15, 2024

Fixed in https://github.com/tiddly-gittly/TiddlyGit-Desktop/releases/tag/v0.4.1-a15

from tidgi-desktop.

linonetwo avatar linonetwo commented on May 15, 2024

Oh, this is caused by:

{ "label": null, "role": "quit" }

in a submenu:

截屏2021-08-07 下午9 21 48

which is generated by:

{ label: () => i18next.t('ContextMenu.Quit') + i18next.t('Menu.TiddlyGit'), role: 'quit' },

And this happened when there is a logical bug 43d8e49
cause the app to throw too early, so i18n is not initialized yet, returning null for the label.

I reproduce this when accidently there is such a logic bug, very lucky. I couldn't reproduce this before. And i18n.t 's type is saying it will always return string which turn out to be a lie.

from tidgi-desktop.

linonetwo avatar linonetwo commented on May 15, 2024

P.S. this is not resolved. I've just try catch the error, and only log it to the disk.

from tidgi-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.