I am running into an error when I try to run a search and replace in Emacs using Evil-mode. The search I'm using is :s/14/12/g. I've tried without the g and get the same error. This is exactly the same search I'd do in Vim. The error returned indicates I have the wrong number of arguments.
byte-code: Wrong number of arguments: #[(string) "Æ{{A WHOLE BUNCH OF \211's and
such HERE}}" [flags replacement pattern string evil-ex-substitute-replacement args
nil string-match "^[a-zA-Z]" "[^[:space:]]+" ...] 6
("c:/Users/Ryan/Documents/GitHub/Vim/.emacs.d/elpa/evil-1.0.7/evil-search.elc" .
33836)], 2
Am I just searching wrong with Evil?
I had this exact error after running a package upgrade, which included evil.
I believe the root cause however was that I had an old reference to a manually installed evil folder in my init.el loadpath.
I removed that, quit & restarted emacs, and the problem had resolved itself. If you don't have the same init.el problem, perhaps just try removing and reinstalling evil.
I have come across this error today as well. It seems like there is something wrong with the compiled lisp files (.elc). Try to recompile your evil directory with (byte-recompile-directory "c:/Users/Ryan/Documents/GitHub/Vim/.emacs.d/elpa/evil-1.0.7" 0 t). Or, if you like, simply delete all *.elc files.
Related
I am using Doom emacs on a Mac with a nearly vanilla configuration. I want to use biblio to manage my references and from what I understand I only have to (a) comment out biblio in the doom/init.el configuration file, (b) configure citar with my paths in doom/config.el and (c) reload doom with SPC h r r. As I have nothing changed, my search engine should be vertico.
My configuration (all files and folders exist):
;; biblio
(after! citar
(setq! citar-bibliography '("~/references/references.bib"))
(setq! citar-library-paths '("~/references/library/files"))
(setq! citar-notes-paths '("~/references/notes")))
When I try to open citar-open-library-file or any other related function, I get:
Make sure to set citar-bibliography and related paths.
SPC h v of citar-bibliography returns the expected value:
Value ("/Users/felix/references/references.bib")
Does anyone have an idea how to fix my configuration?
Someone in the meantime fixed that bug: https://discourse.doomemacs.org/t/getting-started-with-biblio/2997
It's possible to run doom upgrade now and biblio will work as expected.
I am a bit fresh to Julia (and stack overflow), so it might be a dummy question. I am using VS code in ubuntu 18.04.
Every time I start Julia REPL from VS code (Ctrl+shift+P, then "Julia: Start REPL"), the Julia REPL starts with a strange command "source /home/$user_name/bin/activate" and then an error (of course source is not defined in Julia) :
ERROR: UndefVarError: source not defined
Stacktrace:
[1] top-level scope
# REPL[1]:1
This problem was shown a couple of weeks ago but it does not affect my code at least for now. I have tried to search the problem but haven't found any similar questions. Any hints on what's going on? Many thanks!
Edit:
I think I might have used Conda somewhere.
Do "which Julia", I got:
/home/$user_name/julia-1.7.2/bin//julia
There is no "/home/$user_name/.julia/config/startup.jl" file, all the directories under "/home/$user_name/.julia/" are as follow:
artifacts compiled dev logs prefs scratchspaces
clones conda environments packages registries
Then I found a "startup.jl" file under "$JULIA_INSTALL_FOLDER\etc\julia\startup.jl", with following content (seems like not helping on my problem).
# This file should contain site-specific commands to be executed on Julia startup;
# Users may store their own personal commands in `~/.julia/config/startup.jl`.
Solved by following #SundarR's suggestion.
The problem was caused by the VSCode-Python extension installed.
Please see the comment above for the details and thanks again!
cider seems to be throwing a weird exception when trying to eval anything (for example "(+ 1 2)" ). see below:
The project is nothing special, just 'lein new test-cider' that i made just to try this out.
my profiles.cljs only contains "lein-ancient" so nothing special there either.
the project.clj only contains clojure 1.8.0.
I'm using emacs(25.3.1) spacemacs(latest), on macOS(10.12.6).
emacs has no configs other then what spacemacs sets up.
spacemacs has ui related configs + parinfer
I'm new to emacs and cider, so i'm not sure what other info to give.
Can somebody help me out?
Cheers,
Boogie
There is a github issue for cider describing the problem and providing a workaround for this issue. but for some reason google did not get me there. google is off today
this is the issue:
https://github.com/clojure-emacs/cider/issues/2092
I made the mistake of putting an ampersand (&) in a directory name. I renamed the directory, but now every time I change directory it prints an error message:
complete: Completion '[A list of directories' path]' contained a syntax error. Expected an argument, but found a '&'
I don't know where those path completions are stored. I looked into the folders listed in the $fish_complete_path list without luck...
This problem should be easy to fix, only I don't know where to look...
The behavior you're seeing is because there is an eval somewhere that is evaluating a string that wasn't properly escaped. In this case it would be the __fish_complete_cd function. Which, in fish 2.2.0, did in fact use eval in an unsafe fashion. As of fish 2.3.0 it no longer does so which means you can safely use an ampersand in a directory name.
Normally I would recommend opening a bug report at https://github.com/fish-shell/fish-shell/issues with as much detail as possible including the version of fish you're running (echo $FISH_VERSION) and steps to reproduce the issue. However, in this case we've already fixed the bug so all you need to do is upgrade your fish installation. Until you can do so you should be able to "fix" the immediate problem by simply starting a new shell: exec fish.
I also had fisherman installed. I uninstalled OMF, deleted fisherman files and plugins(I had z and get installed). Now it works. Not sure exactly which of those was the culprit.
I am trying to use CEDET (checkout from bzr) with emacs 24.2, but every time I try to open a buffer, including my .emacs file, I get the error:
Idle Parse Error: "#<buffer .emacs> - Wrong number of arguments: #[(old new when) \"\\303 \\304#\\210\\303\\305#\\210\\303\\306\\307#\\210\\303\\310#\\207\"
[old new when put overload-obsoleted-by overload-obsoleted-since mode-local-overload t overload-obsolete] 4 (\"/home/sebas/.emacs.d/cedet/lisp/cedet/mode-local.elc\" . 14156)], 2"
And if I run semantic-debug-idle-function it returns nothing (or I don't know how to use it). How else could I debug this? The configuration file is practically the same as from Alex Ott, the only "idle" mode in semantic-default-submodes is 'global-semantic-idle-scheduler-mode.
I would really like to use CEDET, as I remember it was quite awesome. Thanks for any help.
You have some old macros from mode-local lying around. Please make sure that
you have CEDET properly compiled, that means you did run 'make' and it finished succesfully
you don't also have CEDET installed through your system's package manager
you are loading CEDET right at the beginning of your init file
If all of this does not help, please post your problem to the CEDET-devel mailing list, together with the init file you are using.