www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - modules and error messages

reply quetzal <quetzal_member pathlink.com> writes:
Say i have file main.d that imports module m1. Such module exists and in turn
imports some non existant module (say non.existant.module2).

Now lets try to compile main.d (ofcourse we will fail), but error message will
be: "Error: Error reading file 'non\existant\module2.d'". You open main.d and
see no references to such module, then you start browsing each imported
module... now imagine big project where main.d imports 20 modules and you have
no clue which one of them is the root of evil. Oh.. those modules may also
import something.. Well, you got the idea..

Walter, can you please fix this error message so it points me directly to .d
file that tries to import non-existant stuff?

Kris, can you please fix mango so that it does not give me such errors? <g>
Thanks in advance.
Jun 29 2004
parent Mike Parker <aldacron71 yahoo.com> writes:
quetzal wrote:
 Say i have file main.d that imports module m1. Such module exists and in turn
 imports some non existant module (say non.existant.module2).
 
 Now lets try to compile main.d (ofcourse we will fail), but error message will
 be: "Error: Error reading file 'non\existant\module2.d'". You open main.d and
 see no references to such module, then you start browsing each imported
 module... now imagine big project where main.d imports 20 modules and you have
 no clue which one of them is the root of evil. Oh.. those modules may also
 import something.. Well, you got the idea..
 
 Walter, can you please fix this error message so it points me directly to .d
 file that tries to import non-existant stuff?
 

You can compile with the verbose flag (-v) to see which file is being parsed when the error occurs.
Jun 30 2004