D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20255 - undefined identifier ascii in package std
Summary: undefined identifier ascii in package std
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: installer (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-30 00:57 UTC by Mike Pryadko
Modified: 2020-04-08 05:27 UTC (History)
3 users (show)

See Also:


Attachments
build log with errors in phobos (6.53 KB, text/plain)
2019-09-30 00:57 UTC, Mike Pryadko
Details

Note You need to log in before you can comment on or make changes to this issue.
Description Mike Pryadko 2019-09-30 00:57:23 UTC
Created attachment 1762 [details]
build log with errors in phobos

I'v just install dmd & dub and try to run dlangGUI, but it fails with few errors about /usr/include/dmd/phobos/std/functional.d-mixin-215 and /usr/include/dmd/phobos/std/algorithm/iteration.d
Full log is attached
Comment 1 Mike Pryadko 2019-09-30 01:02:29 UTC
P.S. my software versions:
~$ dmd --version
DMD64 D Compiler v2.088.0
Copyright (C) 1999-2019 by The D Language Foundation, All Rights Reserved written by Walter Bright
~$ dub --version
DUB version 1.17.0, built on Sep  1 2019
Comment 2 berni44 2019-12-29 10:35:45 UTC
It seems to me, that the Phobos part (*) works and the problem is some configuration problem outside Phobos. I therefore change the component to installer.

(*) Small example with the offending code, that works for me:

import std.algorithm.iteration : reduce;
import std.ascii : isAlphaNum;

void main()
{
    string s = "test";
    assert(reduce!((a, b) => a && (b == '_' || b == '-' || isAlphaNum(b)))(true, s) == true);
}
Comment 3 berni44 2019-12-29 10:40:40 UTC
Maybe this is a Dlangide bug which is allready fixed? [1]

The strange thing is, that the fix happend before the issue was reported and according to the attached log the version of Dlangide is one, where the issue was allready fixed.

[1] https://github.com/buggins/dlangide/issues/398
Comment 4 Mathias LANG 2020-04-08 05:27:33 UTC
As berni mentioned, this is an issue with dlangide and its dependency not compiling with an up-to-date DMD/Phobos.
I do think there's a point where compatibility was broken in Phobos, which is unfortunate, but not related to installer.

I took at look at https://github.com/buggins/dlangide/issues/398 and saw what I could do, unfortunately the maintainer didn't seem to be very active recently. I have pinged him on a relevant PR, let's see if it gets things moving again. Closing as invalid because there's nothing for us to do.