<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hey, that is from my config in adoptingerlang but I don't have it currently separated out and published. Though I did do that at one point to test this and hopefully can find that and I will upload that file and link to it from adoptingerlang.<br></div><div><br></div><div>I don't have a good answer for you right now, sadly when I see errors like that I tend to just keep refershing the Emacs and package registry and updating the packages... sometimes having to uninstall and reinstall packages and eventually it works.<br></div><div><br></div><div>Emacs package management is not the best.. hehe, as far as I know you can't specify a version of a package and can't lock dependencies.<br></div><div><br></div><div>Tristan<br></div><div><br></div><div>On Mon, Nov 4, 2019, at 06:30, by wrote:<br></div><blockquote type="cite" id="qt"><div>Hi,<br></div><div class="qt-"><br></div><div class="qt-">I followed the guide with link (From <span class="qt-">Adopting Erlang</span><span class="qt-">): </span><a class="qt-" href="https://adoptingerlang.org/docs/development/setup/">https://adoptingerlang.org/docs/development/setup/</a><br></div><div class="qt-">Seems "<span style="background-color:rgb(255, 255, 255)" class="highlight"><span style="font-family:Menlo" class="font"><span style="font-size:11px" class="size">ivy-erlang-complete" is not properly configured.</span></span></span><br></div><div class="qt-"><br></div><div class="qt-">Here is some environment information:<br></div><div class="qt-">Erlang version: Erlang/OTP 22.1.4<br></div><div class="qt-">Emacs version: <span class="qt-">GNU Emacs 25.3.1</span><br></div><div class="qt-"><br></div><div class="qt-">And here is my related ~/.emacs configuration for Erlang:<br></div><div class="qt-">====<br></div><div class="qt-"><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(215, 57, 30);background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">;; for ivy-erlang-complete </span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52, 161, 161);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour">(</span><span style="color:rgb(208, 59, 255)" class="colour">use-package</span><span style="color:rgb(0, 0, 0)" class="colour"> </span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">ivy-erlang-complete</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(125, 124, 166);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour"> </span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">:ensure</span><span style="color:rgb(0, 0, 0)" class="colour"> t)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);min-height:13px;"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"></span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(215, 57, 30);background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">;; for delight </span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(208, 59, 255);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour">(</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">use-package</span><span style="color:rgb(0, 0, 0)" class="colour"> </span><span style="color:rgb(52, 161, 161)" class="colour">delight</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(125, 124, 166);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour"> </span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">:ensure</span><span style="color:rgb(0, 0, 0)" class="colour"> t)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);min-height:13px;"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"></span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(215, 57, 30);background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">;; for flycheck </span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(208, 59, 255);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour">(</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">use-package</span><span style="color:rgb(0, 0, 0)" class="colour"> </span><span style="color:rgb(52, 161, 161)" class="colour">flycheck</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(125, 124, 166);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour"> </span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">:ensure</span><span style="color:rgb(0, 0, 0)" class="colour"> t</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(125, 124, 166);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour"> </span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">:delight</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> </span><span style="color:rgb(125, 124, 166)" class="colour">:config</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (global-flycheck-mode))</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);min-height:13px;"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"></span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(215, 57, 30);background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">;; for erlang </span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(208, 59, 255);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour">(</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">use-package</span><span style="color:rgb(0, 0, 0)" class="colour"> </span><span style="color:rgb(52, 161, 161)" class="colour">erlang</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175, 55, 130);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour"> </span><span style="color:rgb(125, 124, 166)" class="colour">:load-path</span><span style="color:rgb(0, 0, 0)" class="colour"> (</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">“/<PATH>/lib/erlang/lib/tools-3.2.1/emacs"</span><span style="color:rgb(0, 0, 0)" class="colour">)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> </span><span style="color:rgb(125, 124, 166)" class="colour">:hook</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (after-save . ivy-erlang-complete-reparse)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175, 55, 130);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour"> </span><span style="color:rgb(125, 124, 166)" class="colour">:custom</span><span style="color:rgb(0, 0, 0)" class="colour"> (ivy-erlang-complete-erlang-root </span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">"/<PATH>/lib/erlang"</span><span style="color:rgb(0, 0, 0)" class="colour">)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> </span><span style="color:rgb(125, 124, 166)" class="colour">:config</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (ivy-erlang-complete-init)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> </span><span style="color:rgb(125, 124, 166)" class="colour">:mode</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> ((</span><span style="color:rgb(175, 55, 130)" class="colour">"\\.erl?$"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (</span><span style="color:rgb(175, 55, 130)" class="colour">"rebar\\.config$"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (</span><span style="color:rgb(175, 55, 130)" class="colour">"relx\\.config$"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (</span><span style="color:rgb(175, 55, 130)" class="colour">"sys\\.config\\.src$"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (</span><span style="color:rgb(175, 55, 130)" class="colour">"sys\\.config$"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (</span><span style="color:rgb(175, 55, 130)" class="colour">"\\.config\\.src?$"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175, 55, 130);background-color:rgb(255, 255, 255);"><span style="color:rgb(0, 0, 0)" class="colour"> (</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">"\\.config\\.script?$"</span><span style="color:rgb(0, 0, 0)" class="colour"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (</span><span style="color:rgb(175, 55, 130)" class="colour">"\\.hrl?$"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (</span><span style="color:rgb(175, 55, 130)" class="colour">"\\.app?$"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (</span><span style="color:rgb(175, 55, 130)" class="colour">"\\.app.src?$"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)</span><br></div><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> (</span><span style="color:rgb(175, 55, 130)" class="colour">"\\Emakefile"</span><span class="qt-" style="font-variant-ligatures:no-common-ligatures;"> . erlang-mode)))</span><br></div></div><div class="qt-">====<br></div><div class="qt-"><br></div><div class="qt-">When I restart my emacs with above configuration, I got error message as below:<br></div><div class="qt-">====<br></div><div class="qt-"><div class="qt-" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255, 255, 255);"><span class="qt-" style="font-variant-ligatures:no-common-ligatures;">Error (use-package): erlang/:config: Symbol’s function definition is void: ivy-erlang-complete-setup-flycheck</span><br></div></div><div class="qt-">====<br></div><div class="qt-">I have no clue about what happened.<br></div><div class="qt-"><br></div><div class="qt-">An example ~/.emacs file related to Erlang would be very helpful.<br></div><div class="qt-"><br></div><div class="qt-">I searched it with Google, but seems no typical configuration demo/example exist for configuring Emacs with Erlang.<br></div><div class="qt-"><br></div><div class="qt-">By the way, I want to ask: what kind of editor configuration do you use to develop Erlang every day?<br></div><div class="qt-"><br></div><div class="qt-">Yao<br></div></blockquote><div><br></div></body></html>