www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2249] New: object.d: module object cannot read file 'object.d'

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2249

           Summary: object.d: module object cannot read file 'object.d'
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: dufresnep gmail.com


Symptom: When 'dmd somefile.d' get:
object.d: module object cannot read file 'object.d'

Probable reason: probably does not handle spaces in path in -I for DFLAGS in
sc.ini coming from % P% which I believe to be the path of DMD.
I tried to write full path to -IC:\... in sc.ini, but that did not helped.

I use an openshell.bat file:
==========
 echo off
PATH=%CD%\bin;%PATH%
PROMPT=%USERNAME% %COMPUTERNAME%:$P$G$S
COLOR 0F
ECHO Shell setup for Digital Mars D Compiling and Debugging
ECHO change which drive you're on: [Drive Letter]:\
ECHO eg. C:\ to change to C drive
%HOMEDRIVE%
CD %HOMEPATH%
CMD
============

Does not work on my Desktop (probably because of "Documents and Settings").
So I tried do decompress to "C:\OKTANGO" the whole thing. Was working fine
there.
Then renamed to "C:\BAD TANGO" and rerun openshell.bat and recompile hello.d,
with the "object.d: module object cannot read file 'object.d'" message.

I am using tangobos-0.99.7-bin-win32-dmd.1.033.


-- 
Jul 26 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2249


torhu yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|object.d: module object     |DMD can't handle include
                   |cannot read file 'object.d' |paths with spaces in them




------- Comment #1 from torhu yahoo.com  2008-08-06 16:55 -------
Yup, dmd can't handle include paths with spaces in them, at least not when
settings them in sc.ini.  It's annoying, but more or less documented here:
http://www.digitalmars.com/d/1.0/dmd-windows.html#problems

It's likely that the linker (optlink) can't handle paths with spaces either,
and that's not likely to be fixed anytime soon.  So avoiding spaces is the way
to go.


-- 
Aug 06 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2249





------- Comment #2 from free_on mail.ru  2009-04-23 09:39 -------
This problem will be fixed in future releases?


-- 
Apr 23 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2249





------- Comment #3 from clugdbug yahoo.com.au  2009-04-23 10:17 -------
(In reply to comment #2)
 This problem will be fixed in future releases?

No. Optlink hasn't been changed in a decade, AFAIK; its bugs will probably never get fixed. --
Apr 23 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2249


cristian zerobugs.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cristian zerobugs.org




------- Comment #4 from cristian zerobugs.org  2009-05-08 00:52 -------
I think that the linker is a separate issue -- importing modules is strictly a
front-end issue, and an annoying one, if one is foolish enough to install D in,
say, c:\Program Files\Digital Mars\


-- 
May 07 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2249


Valery <free_on mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |free_on mail.ru
            Version|1.033                       |2.031




--- Comment #5 from Valery <free_on mail.ru>  2009-08-20 04:03:24 PDT ---
Is this problem will be forever? This will impose restrictions on the IDE for D
and installers. If the linker can be used other (not Optlink) that the compiler
- no. Walter, please, fix it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2009