Thread overview
[Issue 11799] New: Incompatible argument types in create_dmd_release
Dec 22, 2013
Andrew Edwards
Dec 27, 2013
Jacob Carlborg
Dec 29, 2013
Martin Nowak
Feb 04, 2014
Martin Nowak
December 22, 2013
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


--- Comment #0 from Andrew Edwards <edwards.ac@gmail.com> 2013-12-22 04:51:47 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: -------
December 27, 2013
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


--- Comment #1 from Jacob Carlborg <doob@me.com> 2013-12-27 07:41:51 PST ---
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: -------
December 29, 2013
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


--- Comment #2 from Martin Nowak <code@dawg.eu> 2013-12-29 11:31:29 PST ---
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: -------
January 13, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11799



--- Comment #3 from github-bugzilla@puremagic.com 2014-01-13 14:53:10 PST ---
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 Merge pull request #33 from MartinNowak/fix11799

[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: -------
February 04, 2014
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: -------