[erlang-questions] distel-mode with *.beam files separate from source
mats cronqvist
mats.cronqvist@REDACTED
Fri May 30 13:21:49 CEST 2008
Paul Fisher wrote:
> On Fri, 2008-05-30 at 13:06 +0200, mats cronqvist wrote:
>
>> Paul Fisher wrote:
>>
>>> I'm certain that it does have debugging information, so the error
>>> message is really not accurately reflecting the problem, which
>>> ultimately the fact that int:i/1 cannot find any beam file to associate
>>> with the absolute source path name.
>>>
>>> The problem is that distel:find_source/1 in the face of this arrangement
>>> locates the source file as:
>>>
>>> top/project/application/source.erl
>>>
>>> rather than
>>>
>>> top/bld/erlang/application/src/source.erl
>>>
>>> Then when it hands the former to the int:i/1 the interpreter does not
>>> know how to find the source.beam file based on that location.
>>>
>>> ...
>>>
>> i don't remember if i already answered this; apologies if i'm rehashing.
>>
>> seems there's a couple of issues.
>> * i think distel:guess_source_file/2 is correct; if the erl file
>> pointed to by the beam file exists, it's likely the correct one.
>> * when erlc sticks the compilation info in the beam file, it follows links.
>> * int:i/1 insists that the erl and the beam file must be either in the
>> same dir, or in adjacent src/ebin dirs.
>>
>
> All of this work correctly (as i noted in a follow-up message).
oops. soory for adding to the noise.
mats
More information about the erlang-questions
mailing list