Giter VIP home page Giter VIP logo

Comments (12)

abrochard avatar abrochard commented on July 19, 2024 1

Hmm, I don't use spacemacs at all, but I can try taking a look.
Just to make sure I understand:

  • if you don't set uid and token, and just call habitica-tasks, it prompts for username and password and works normally?
  • if you do set your uid and token and call habitica-tasks, it still prompts for username and password, but fails with a "wrong type argument" error?

The second case is weird because I specifically wrote

(if (or (not habitica-uid) (not habitica-token))
  (call-interactively 'habitica-login))

in the habitica-tasks function, so if they are both set properly you should never be prompted.

from emacs-habitica.

itslijohnny avatar itslijohnny commented on July 19, 2024

sorry about my language, but yes you were right. BTW, did you do any modification today? the login problem solved. but the interface shows:

* Habits :habit:
** TODO xxxx(my fist babit):
:PROPERTIES:
:ID: 26f74ee4-1483-.....(i delete the rest number, in case it is sensitive)
:END:

from emacs-habitica.

abrochard avatar abrochard commented on July 19, 2024

The login worked? That's weird. I didn't change anything. I also can't reproduce the problem.

And yes it's normal to see that id. I use org-mode properties to store the task id for when I'm calling the API. It's not sensitive. Normally, org-content gets called and hides it away.

from emacs-habitica.

itslijohnny avatar itslijohnny commented on July 19, 2024

i mean it only showed my first TODO and kind of showing the id. Before the login didn't work. it was show the full list. I will try delete .spacemacs and restore it to see the problem.

from emacs-habitica.

itslijohnny avatar itslijohnny commented on July 19, 2024

I delete the .spacesmacs and setup spacesmacs again and it worked. I think there must be some conflict with other packages.

from emacs-habitica.

abrochard avatar abrochard commented on July 19, 2024

oh wow. I know really nothing about spacemacs. Where do you think it could be coming from?

from emacs-habitica.

itslijohnny avatar itslijohnny commented on July 19, 2024

i think there must be some conflicts with org-mode configuration.As long as I uncommon org in "dotspacemacs-configuration-layers" it has the problem. it shows "Symbol's function definition is void: org-link-types." But once I put (setq org-directory "~/xxxxxx/l") in .spacemacs file the habitica interface shows, but only showed my first TODO .

from emacs-habitica.

itslijohnny avatar itslijohnny commented on July 19, 2024

I wish I know more about programming. I find out that in terminal everything works just fine. I really have no idea. Hope the information can help you find out the problem. Thanks for the response and patience.

from emacs-habitica.

abrochard avatar abrochard commented on July 19, 2024

No worries. Give me a bit of time and I'll install spacemacs and try it out myself.

from emacs-habitica.

itslijohnny avatar itslijohnny commented on July 19, 2024

Thanks a lot. Here's some update. I tried delete everything and install back several times in the weekend. Some how it worked. I suspect emoji layer is the reason. because this is the one layer I didn't install. And since I don't know how I make everything works, I will not try to install emoji layer again, in case something wrong.

from emacs-habitica.

abrochard avatar abrochard commented on July 19, 2024

Still trying to work my way through spacemacs.
Have you seen those two issues in spacemacs?

syl20bnr/spacemacs#8334
syl20bnr/spacemacs#8074

Can you try to call package-initialize in init.el before the org-mode code gets evaluated? It seems to be a fix for a few users.

from emacs-habitica.

itslijohnny avatar itslijohnny commented on July 19, 2024

I'm now sure emoji layer cause the problem. I installed emoji and it has the problem. I delete the emoji and everything works just fine.

from emacs-habitica.

Related Issues (10)

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.