www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11799] New: Incompatible argument types in create_dmd_release

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

           Summary: Incompatible argument types in create_dmd_release
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: installer
        AssignedTo: nobody puremagic.com
        ReportedBy: edwards.ac gmail.com



PST ---
Created an attachment (id=1303)
modified to address type incompatability on line 1503

create_dmd_release.d(1503): Error: function core.sys.posix.sys.stat.chmod
(const(char*), ushort) is not callable using argument types (immutable(char)*,
uint)

Line 1503: setFileAttributes(toStringz(path), am.fileAttributes);

The following works:
     setFileAttributes(toStringz(path), to!ushort(am.fileAttributes));

Whether that's the correct fix or not I'm not sure.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 22 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11799


Jacob Carlborg <doob me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doob me.com
           Severity|regression                  |normal



If you change the signature to "const(char)*", does that work? This is not a
regression create_dmd_release is a new tool.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 27 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11799


Martin Nowak <code dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |code dawg.eu



https://github.com/D-Programming-Language/installer/pull/33

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 29 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11799




Commits pushed to master at https://github.com/D-Programming-Language/installer

https://github.com/D-Programming-Language/installer/commit/113df7987e2d1b1cb252cd38be677a9b8148c63f
fix Issue 11799 - Incompatible argument types in create_dmd_release

- use std.file.setAttributes

https://github.com/D-Programming-Language/installer/commit/848b0b65e20e1c5e32fb8ba6caeac332084fb981


[2.065] fix Issue 11799 - Incompatible argument types in create_dmd_release

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 13 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11799


Martin Nowak <code dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 04 2014