tonini / alchemist.el

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

GoToDefinition doesn't work with Rumbl's router.ex #290

Closed jojojames closed 7 years ago

jojojames commented 7 years ago

Working through Programming Phoenix,

Go To Definition does not seem to work on the controller names in router.ex.

defmodule Rumbl.Router do
  use Rumbl.Web, :router

  pipeline :browser do
    plug :accepts, ["html"]
    plug :fetch_session
    plug :fetch_flash
    plug :protect_from_forgery
    plug :put_secure_browser_headers
    plug Rumbl.Auth, repo: Rumbl.Repo
  end

  pipeline :api do
    plug :accepts, ["json"]
  end

  scope "/", Rumbl do
    pipe_through :browser # Use the default browser stack

    get "/", PageController, :index
    resources "/users", UserController, only: [:index, :show, :new, :create]
    resources "/sessions", SessionController, only: [:new, :create, :delete]
    get "/watch/:id", WatchController, :show
  end

  scope "/manage", Rumbl do
    pipe_through [:browser, :authenticate_user]

    resources "/videos", VideoController
  end
end

Put cursor on 'VideoController', use go to definition, will see a message indicating the GTD failed.

tonini commented 7 years ago

https://github.com/tonini/alchemist.el/issues/296

jojojames commented 7 years ago

Thanks, I'll be tracking the other issue then.