-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
org-refile does not work. org-copy-subtree: Invalid function: org-preserve-local-variables #11801
Comments
This is probably the same as here: #11788 Could you try removing all org*/*.elc files from your elpa directory and recompile? I did the following: cd ~/.emacs.d/elpa/develop
find org*/*.elc -print0 | xargs -0 rm and then inside spacemacs I ran |
Thank you very much, I used the master branch.
and the problem is solved. |
Just a Note: even after installing ~/.emacs.d fresh, one needs to still follow the above after installed. |
I believe this is a bug in org or org-refile somewhere. Why does removing the byte compiled files resolve the issue? It's ridiculous. Shouldn't everything work fine with byte compiled one as well? |
Your right. I believe that it May have something to do with load order or the recompile after update reads in previously uncompiled code. Not sure. |
Had the same error, but with |
@samspills I did what you mentioned in your comment, and I even did what @skrobul suggested, I still have issue, any suggestions? |
I moved up one directory level ( |
I'm running develop on Ubuntu 18.06 and this was the only thing that worked for me. |
This worked for me, thanks!! |
This needs to be reopened, there is a workaround, but the core issue has not been resolved in Spacemacs yet, and even when fixed it recurs when packages are updated. Looks like it was fixed in |
Hi! Another hint for the people that still face problems: I am using the I didn't find The reason was that I needed to delete the cd ~/.emacs.d/elpa/26.2/develop
find org*/*.elc -print0 | xargs -0 rm Then run |
As already told in #11801 (comment) cloud you please re-open this issue? |
Hi all, I removed all the |
It would be great to have this resolved. Currently I'm simply updating spacemacs after every package update like this:
cd ~/.emacs.d && git pull --rebase; find ~/.emacs.d/elpa/2*/develop/org-plus-contrib* -name '*.elc' -delete # update spacemacs Edit: There is no need to recompile anything for me as it gets compiled automatically. |
Happens with Nuking all |
Worked |
I'm using the latest develop and wasn't able to do I recompiled the files and this fixed it. |
+1, @Technologicat incantation worked to fix the org-refile issue. |
Just to echo @breadncup's comment. I'm not using spacemacs, but use emacs26 and org-mode and this happens to me every once in a while. After googling, I always end up hitting this thread and just deleting all *.elc files in my elpa directory fixes it. So my guess is this isn't a spacemacs issue, something in org-mode itself. |
It appears that there is a potential problem when updating any elisp package. What emacs developers seem to need is specific examples of the problems.
|
For those who are on dev branch and encounter this bug can you try this work around: Open any org file in Spacemacs (to make sure
Restart Spacemace. Hope the problem is gone then. This is a convenient way to recompile a package instead of doing it manually on both command line and emacs. |
@thanhvg I tried it and here is the output:
I was able to find recompile under
|
Using the current version (20191230), I get this problem both in osx and linux (arch linux). When I checkout the org-mode and use the 9.3.1 tag and compile, this error goes away (both in osx and linux). |
Hi all, I encountered the same problem (Spacemacs Release 0.200.13.x).
It said that it didn't find any |
Unbelievable! This ticket has been a year, but it is still opened. :) |
@duianto mentioned #12829 which has more details on the problem which is that updating packages in emacs is not a reliable process especially for older emacs versions and especially for org mode. I think this is a hard problem to solve. That I think is why emacs developers have not yet solved it. I would not expect spacemacs folks to solve this difficult problem which even emacs developers are having difficulty solving. The best bet is to use one of the many work arounds suggested by others. My own work around is to delete org-plus-contrib package (and others), then make sure that it is installed on startup before there is any possibility of loading any org mode related files. |
I am having the exact same problem. Did you find a way out of this error? |
@LambdaP do you use |
Got the problem again with emacs 26.3 creating a footnote in an orgmode file.
Then recompilation of the directory via Emacs fixed the error :) |
on 0.200.13@26.3 (spacemacs), |
I hit the issue again today and solution from @LorenRiccie helped. |
I too faced the same issue. Deleting the .elc files in only the org directory |
Issue is still present. I hit it by updating packages from the main screen. I had to remove all |
I'm on mac, so what I did was |
A bit too late response, but still leave it in case anyone needs it: I did not press |
Deleting all the elc files in |
I was able to solve in Windows with the org-plus-contrib + F3 to recompile solution; however, a workaround is only a workaround. If we have definitely traced the issue to an org-mode bug, is there an open issue on org-mode's github? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
For future reference, please use the solution here. |
Description
org-refile does not work.
Reproduction guide 🐞
Start Emacs
Open an .org file
Go to a headline and try to refile by , R
select a target
Observed behaviour: 👀 💔
I get the following message:
Getting targets...done
Copied: Subtree(s) with 22 characters
org-copy-subtree: Invalid function: org-preserve-local-variables
Expected behaviour: ❤️ 😄
refile could be used
System Info 💻
‘‘‘elisp
(markdown
(ibuffer :variables ibuffer-group-buffers-by ’projects)
(chinese :variables chinese-enable-youdao-dict t)
auto-completion emacs-lisp
(python :variables python-sort-imports-on-save t python-enable-yapf-format-on-save t)
django org syntax-checking)
‘‘‘
my org config:
(with-eval-after-load 'org
The text was updated successfully, but these errors were encountered: