문제

I put cowboy in my project under deps folder, how to make erlide find it? Or I have to put it under ebin?

도움이 되었습니까?

해결책

There are two use cases that I can see:

  1. you want to execute your code while loading even cowboy
  2. you want to be able to navigate and search the cowboy code as if it was part of your project

For #2, the only way currently is to make cowboy as part of the project, by adding the paths to the project properties (choose "properties" on the project's context menu and on the "Erlang" tab you can add the additional source and include directories). This will also take care of #1.

In the case where you only have the cowboy beams and want to run with them, you have to configure the launch configuration for the project, on the "Runtimes" tab add the required arguments in "extra args", as you would on the command line (in this case something like "-pa /path/to/deps/cowboy/ebin" without the quotes). Quoting things might be a bit tricky, it's not tested thoroughtly.

regards, Vlad

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top