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
Symbol’s value as variable is void: org2blog-pkg #330
Comments
Hi @Schievel1 thank you for sharing this and going through the Q&A: it is greatly appreciated. Well that is frustrating that Can you please The next easy test is to try using Org2Blog via The most laborious and easily diagnosed way to load Org2Blog is by hand. If you are curious you might like that, and we are far from needing this. |
Hi, Here is what the debugger spits out.
I tried the use-package approach already, with the same resutlt. I will try loading it by hand an the next step. |
It works when loading it completely by hand. |
I have the same problem. |
When you can please the existing org2blog folder in your |
@noiseOnTheNet I think the the htmlize version should be OK. |
Thanks for those fast responses. I will test that tar out today. |
It says
This is the same htmlize that works when I manually installed org2blog. I commented all the other lines from manually installing and restarted emacs before trying to install the package. |
To your point Are you using a package manager anywhere else that loads For example if you are loading |
I Never pulled it in directly but it could be some other package pulls htmlize as a dependency. Doom is quite a framework, I don't know if I can figure out what pulls in what where |
Would you consider testing org2blog via [use-package](https://github.com/org2blog/org2blog#use-package? |
sure, I will give it a try tommorow. Although I am afraid this wont change much. As far as I understand it Dooms |
@Schievel1 Thank you. Could you try it out without using Doom? |
Yup, without Doom it works like a charm. Here is what I did for future reference:
Started emacs with
This basically tells emacs to look for config files in |
I wouldn't yet. The reason is that I still not sure why the package install is complaining. Here is why: org2blog wants htmlize v1.56 or greater. The package installation is installing htmize v1.57. That should work fine. And I just installed org2blog via use-package and found this to be the case. org2blog worked fine with htmlize 1.57. My confusion, the unknown, is there, where When does it happen? I don't know doom. Is there a way to force doom to load org2blog before other packages? Even if that does work, I want to be transparent here: I don't understand where the problem is happening, and I am figuring it out with you. |
I read the docs a bit but it seems there is not. |
I'm also experiencing this problem, and I don't use Doom. I understand that Doom uses straight, which I do use, so that may be the culprit. The only way I can get the package to load is to evaluate
Let me know if you need any additional information. |
I suffer the same problem. I'm using straight.el & use-package(and leaf.el), and my guess is the culprit is straight.el (& org2blog) since straight.el doesn't use package.el (which contains define-package, which tries to load org2blog-pkg.el if existed). I attach my barebone init.el(extention is changed to .txt). Remove ~/.emacs.d/straight if existed, put this init.el, then run Emacs. Hopefully error message
will show up. |
Thank you everyone I will keep looking at this with the goal of reproducing it. And figuring out what the issue is, and resolving it. I just am not seeing it yet :|. |
Sorry for being not helpful much, anyway as @Schievel1 mentioned earlier, I found the old org2blog (like Sacha's fork https://github.com/sachac/org2blog, ca. 2020) works. So I guess org2blog is enbugged somewhere between 2020-2022 (182 commits!). |
I also have the same issue. straight-use-package cannot load the package, but manual (require) works. |
@xiaoruoruo Thanks for letting us know. |
Thanks @mhatta. Your solution worked for me |
Seems this commit is the culprit: 8b56834 (before this, it works). It calls org2blog-pkg related functions several times, but can't assume org2blog-pkg is declared before when you use staright.el or such? I don't quite figure it out yet. |
This appears to be fixed. |
Thank you for filling out this bug report (BR). Please perform every step and answer every question to the best of your ability. That will make it easier for you and more accessible for us to address the issue with the highest level of quality in the shortest amount of time.
Description
After installing org2blog via doom emacs' package manager and running
M-x org2blog-user-interface
I only getSymbol’s value as variable is void: org2blog-pkg
in the minibuffer.I installed Sacha Chuas fork from here https://github.com/sachac/org2blog and it works.
Prerequisites
reported or resolved?
Environment
OS: Linux 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz GenuineIntel GNU/Linux
Emacs: GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.34) of 2022-11-07, installed from Gentoos repos ran as GUI.
org2blog/wp-version: 1.1.15
org2blog-version-info gives same error: Symbol’s value as variable is void: org2blog-pkg
The text was updated successfully, but these errors were encountered: