tonini / alchemist.el

Elixir Tooling Integration Into Emacs
http://www.alchemist-elixir.org
906 stars 103 forks source link

Unable to jump to definitions in stdlib #241

Closed shosti closed 8 years ago

shosti commented 8 years ago

This might be setup-specific (I'm using asdf for elixir version-management), but jumping to definitions in Elixir/the stdlib doesn't work out of the box on my system. A little poking makes it easy to see why:

~/src/elixir/meta $ elixir ~/src/elixir/alchemist-server/run.exs --env=dev --listen
ok|localhost:44205
~ $ nc localhost 44205
DEFL  { "List,flatten", [ context: Elixir, imports: [], aliases: [] ] }
/Users/jose/OSS/elixir/lib/elixir/lib/list.ex
END-OF-DEFL

Obviously not much good :wink:

As a horrifically hacky workaround, I've symlinked /Users/jose/OSS/elixir to a local checkout of the elixir source code, which seems to work pretty well.

I'm wondering if you have thoughts on a better solution? (Ideally this would be fixed upstream, but I'm not sure how feasible that is.) One idea: have an alchemist-elixir-src-dir variable that's user-settable and gets passed into alchemist-server as a default (kind of analogous to find-function-C-source-directory).

tonini commented 8 years ago

Hi @shosti

I guess you just need to setup the right erlang & elixir source variables. Have a look here how to do this: http://alchemist.readthedocs.io/en/latest/basic_usage/#definition-lookup

Please give me feedback or ping me #irc or #slack if you still have issues.

tonini commented 8 years ago

ping @shosti

tonini commented 8 years ago

@shosti ping :)

shosti commented 8 years ago

@tonini sorry got sidetracked! Those both look perfect; couldn't find them earlier. I'll give them a try!