www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - vibe.d compilation error

reply seany <seany uni-bonn.de> writes:
Compiling a simple vibe.d project throws tis error :

`/root/.dub/packages/vibe-d-0.8.6/vibe-d/utils/vibe/internal/m
mory_legacy.d(9,8): Error: module `std.exception` import `enforceEx` not found,
did you mean template `std.exception.enforce(E : Throwable = Exception) if
(is(typeof(new E("", string.init, size_t.init)) : Throwable) || is(typeof(new
E(string.init, size_t.init)) : Throwable))`


There is a github issue raised 
[here](https://github.com/vibe-d/vibe.d/issues/2578) .

However, I am not compiling with botan. My dub.json is :

     dub.json
     {
         "authors": [
                 "Seany"
         ],
         "copyright": "Copyright © 2021, Seany",
         "dependencies": {
                 "vibe-d": "~>0.8.0",
         },
         "description": "Econsor data receive",
         "license": "proprietary",
         "name": "rawdatareceiver"
     }

Is there any way, I can avoid this error?
Jul 04 2021
parent reply Mathias LANG <geod24 gmail.com> writes:
On Sunday, 4 July 2021 at 12:36:24 UTC, seany wrote:
 Is there any way, I can avoid this error?
You are using an old version of Vibe.d, change your dependency to "~>0.9.0".
Jul 04 2021
parent seany <seany uni-bonn.de> writes:
On Monday, 5 July 2021 at 01:11:22 UTC, Mathias LANG wrote:
 On Sunday, 4 July 2021 at 12:36:24 UTC, seany wrote:
 Is there any way, I can avoid this error?
You are using an old version of Vibe.d, change your dependency to "~>0.9.0".
Okey, thank you. That resolved it.
Jul 04 2021