digitalmars.D.learn - Error on dub build - Trying Vibe-d for the first time
- Bruno Rodrigues (7/12) Oct 13 2020 I have absolutely no ideia what these libraries are.
- Steven Schveighoffer (4/19) Oct 13 2020 sudo apt-get install libssl-dev
- Bruno Rodrigues (9/45) Oct 14 2020 Thank you, Steve!
- Andre Pany (8/20) Oct 14 2020 Please add this to your dub.json file:
- Imperatorn (2/30) Oct 14 2020 Where is this documented?
- Andre Pany (7/40) Oct 14 2020 I dont know whether it is documented somewhere. It was asked
- H. S. Teoh (12/26) Oct 14 2020 [...]
- Andre Pany (6/30) Oct 14 2020 https://github.com/search?q=VibeHighEventPriority&type=issues
- Steven Schveighoffer (8/39) Oct 15 2020 Is this the commit you are talking about?
- Andre Pany (10/45) Oct 15 2020 I meant this one:
- Steven Schveighoffer (5/12) Oct 15 2020 Soo.... if you try to print a warning it keeps the process alive? I
- Steven Schveighoffer (4/19) Oct 15 2020 Not fixed. I just did the same test (dub init -t vibe.d) and it fails to...
- Andre Pany (6/25) Oct 15 2020 You are right, I only tested it on Windows. Here it is working
- Bruno Rodrigues (2/30) Oct 14 2020 Thanks, Andre! I'll try this solution later.
- Bruno Rodrigues (8/10) Oct 14 2020 So, it did work...
So, I tried building a simple hello world with Vibe-d and got this error/usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status Error: linker exited with status 1 /usr/bin/dmd failed with exit code 1.I have absolutely no ideia what these libraries are. I'm using linux 20.04 The project was created with dub the same way the dependency was added. Thanks, this language seems to be really interesting.
Oct 13 2020
On 10/13/20 8:40 PM, Bruno Rodrigues wrote:So, I tried building a simple hello world with Vibe-d and got this errorsudo apt-get install libssl-dev That should get you running. -Steve/usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status Error: linker exited with status 1 /usr/bin/dmd failed with exit code 1.I have absolutely no ideia what these libraries are. I'm using linux 20.04 The project was created with dub the same way the dependency was added. Thanks, this language seems to be really interesting.
Oct 13 2020
On Wednesday, 14 October 2020 at 01:32:34 UTC, Steven Schveighoffer wrote:On 10/13/20 8:40 PM, Bruno Rodrigues wrote:Thank you, Steve! It did work but none of the examples on the Vibe.d page are working with current D version... Some errors I got When executing with dubSo, I tried building a simple hello world with Vibe-d and got this errorsudo apt-get install libssl-dev That should get you running. -Steve/usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status Error: linker exited with status 1 /usr/bin/dmd failed with exit code 1.I have absolutely no ideia what these libraries are. I'm using linux 20.04 The project was created with dub the same way the dependency was added. Thanks, this language seems to be really interesting.[main(----) INF] Listening for requests on http://[::]:8080/ Failed to listen on 0.0.0.0:8080 Hello, World: / Warning (thread: main): leaking eventcore driver because there are still active handles FD 6 (streamListen) FD 9 (streamSocket) Warning (thread: main): leaking eventcore driver because there are still active handles FD 6 (streamListen) FD 9 (streamSocket)When compiling (dub, dub build or dub build --force), I got a lot of deprecation errors/usr/include/dmd/phobos/std/format.d(3648,26): Deprecation: function std.typecons.Nullable!(Alternate).Nullable.get_ is deprecated - Implicit conversion with alias Nullable.get this will be removed after 2.096. Please use .get explicitly.
Oct 14 2020
On Wednesday, 14 October 2020 at 13:20:53 UTC, Bruno Rodrigues wrote:On Wednesday, 14 October 2020 at 01:32:34 UTC, Steven Schveighoffer wrote:Please add this to your dub.json file: "versions": [ "VibeHighEventPriority" ] You may have to restart your pc 1 time. After that the issue should not occur anymore. (It is a known bug). Kind regards Andre[...]Thank you, Steve! It did work but none of the examples on the Vibe.d page are working with current D version... Some errors I got When executing with dub[...]When compiling (dub, dub build or dub build --force), I got a lot of deprecation errors[...]
Oct 14 2020
On Wednesday, 14 October 2020 at 15:27:46 UTC, Andre Pany wrote:On Wednesday, 14 October 2020 at 13:20:53 UTC, Bruno Rodrigues wrote:Where is this documented?On Wednesday, 14 October 2020 at 01:32:34 UTC, Steven Schveighoffer wrote:Please add this to your dub.json file: "versions": [ "VibeHighEventPriority" ] You may have to restart your pc 1 time. After that the issue should not occur anymore. (It is a known bug). Kind regards Andre[...]Thank you, Steve! It did work but none of the examples on the Vibe.d page are working with current D version... Some errors I got When executing with dub[...]When compiling (dub, dub build or dub build --force), I got a lot of deprecation errors[...]
Oct 14 2020
On Wednesday, 14 October 2020 at 16:39:39 UTC, Imperatorn wrote:On Wednesday, 14 October 2020 at 15:27:46 UTC, Andre Pany wrote:I dont know whether it is documented somewhere. It was asked multiple times in the forum therefore I remembered. Maybe it could be documented in the vibe.d github wiki or on the vibe.d website. But hopefully the bug is solved soon. Kind regards AndreOn Wednesday, 14 October 2020 at 13:20:53 UTC, Bruno Rodrigues wrote:Where is this documented?On Wednesday, 14 October 2020 at 01:32:34 UTC, Steven Schveighoffer wrote:Please add this to your dub.json file: "versions": [ "VibeHighEventPriority" ] You may have to restart your pc 1 time. After that the issue should not occur anymore. (It is a known bug). Kind regards Andre[...]Thank you, Steve! It did work but none of the examples on the Vibe.d page are working with current D version... Some errors I got When executing with dub[...]When compiling (dub, dub build or dub build --force), I got a lot of deprecation errors[...]
Oct 14 2020
On Wed, Oct 14, 2020 at 05:30:37PM +0000, Andre Pany via Digitalmars-d-learn wrote:On Wednesday, 14 October 2020 at 16:39:39 UTC, Imperatorn wrote:[...]On Wednesday, 14 October 2020 at 15:27:46 UTC, Andre Pany wrote:[...]Please add this to your dub.json file: "versions": [ "VibeHighEventPriority" ] You may have to restart your pc 1 time. After that the issue should not occur anymore. (It is a known bug).[...] Yeah, this is a problem. Things like these need to be put in the docs in an easy-to-find way. Like collected in a Troubleshooting page or something. If a bug isn't filed yet, I'd file a bug on vibe.d so that this will get resolved instead of forgotten, and then it will bite the next newcomer all over again. T -- Many open minds should be closed for repairs. -- K5 userWhere is this documented?I dont know whether it is documented somewhere. It was asked multiple times in the forum therefore I remembered. Maybe it could be documented in the vibe.d github wiki or on the vibe.d website. But hopefully the bug is solved soon.
Oct 14 2020
On Wednesday, 14 October 2020 at 18:08:40 UTC, H. S. Teoh wrote:On Wed, Oct 14, 2020 at 05:30:37PM +0000, Andre Pany via Digitalmars-d-learn wrote:https://github.com/search?q=VibeHighEventPriority&type=issues It seems with eventcore 0.9.9 there was some fix, but I do not know whether this solves the bug or s.th. related to the bug. Kind regards AndreOn Wednesday, 14 October 2020 at 16:39:39 UTC, Imperatorn wrote:[...]On Wednesday, 14 October 2020 at 15:27:46 UTC, Andre Pany wrote:[...][...][...] Yeah, this is a problem. Things like these need to be put in the docs in an easy-to-find way. Like collected in a Troubleshooting page or something. If a bug isn't filed yet, I'd file a bug on vibe.d so that this will get resolved instead of forgotten, and then it will bite the next newcomer all over again. TWhere is this documented?I dont know whether it is documented somewhere. It was asked multiple times in the forum therefore I remembered. Maybe it could be documented in the vibe.d github wiki or on the vibe.d website. But hopefully the bug is solved soon.
Oct 14 2020
On 10/14/20 2:25 PM, Andre Pany wrote:On Wednesday, 14 October 2020 at 18:08:40 UTC, H. S. Teoh wrote:Is this the commit you are talking about? https://github.com/vibe-d/eventcore/pull/122 I haven't tested turning the version definition off. But it probably should be easy enough to do a vanilla vibe-d install and see if it works. I hope this is the fix, because this bug has been a huge problem, especially for people trying vibe for the first time. -SteveOn Wed, Oct 14, 2020 at 05:30:37PM +0000, Andre Pany via Digitalmars-d-learn wrote:https://github.com/search?q=VibeHighEventPriority&type=issues It seems with eventcore 0.9.9 there was some fix, but I do not know whether this solves the bug or s.th. related to the bug.On Wednesday, 14 October 2020 at 16:39:39 UTC, Imperatorn wrote:[...]On Wednesday, 14 October 2020 at 15:27:46 UTC, Andre Pany > wrote:[...][...][...] Yeah, this is a problem. Things like these need to be put in the docs in an easy-to-find way. Like collected in a Troubleshooting page or something. If a bug isn't filed yet, I'd file a bug on vibe.d so that this will get resolved instead of forgotten, and then it will bite the next newcomer all over again. TWhere is this documented?I dont know whether it is documented somewhere. It was asked multiple times in the forum therefore I remembered. Maybe it could be documented in the vibe.d github wiki or on the vibe.d website. But hopefully the bug is solved soon.
Oct 15 2020
On Thursday, 15 October 2020 at 13:17:57 UTC, Steven Schveighoffer wrote:On 10/14/20 2:25 PM, Andre Pany wrote:I meant this one: https://github.com/vibe-d/eventcore/pull/154 I testing it at the moment, while there still "leaking" warnings, the ports are released after terminating the application with Ctrl+c. So far I was not able to reproduce the issue with vibe.d 0.9.2 (eventcore 0.9.9). Kind regards AndreOn Wednesday, 14 October 2020 at 18:08:40 UTC, H. S. Teoh wrote:Is this the commit you are talking about? https://github.com/vibe-d/eventcore/pull/122 I haven't tested turning the version definition off. But it probably should be easy enough to do a vanilla vibe-d install and see if it works. I hope this is the fix, because this bug has been a huge problem, especially for people trying vibe for the first time. -SteveOn Wed, Oct 14, 2020 at 05:30:37PM +0000, Andre Pany via Digitalmars-d-learn wrote:https://github.com/search?q=VibeHighEventPriority&type=issues It seems with eventcore 0.9.9 there was some fix, but I do not know whether this solves the bug or s.th. related to the bug.[...][...][...][...][...][...] Yeah, this is a problem. Things like these need to be put in the docs in an easy-to-find way. Like collected in a Troubleshooting page or something. If a bug isn't filed yet, I'd file a bug on vibe.d so that this will get resolved instead of forgotten, and then it will bite the next newcomer all over again. T
Oct 15 2020
On 10/15/20 9:55 AM, Andre Pany wrote:I meant this one: https://github.com/vibe-d/eventcore/pull/154 I testing it at the moment, while there still "leaking" warnings, the ports are released after terminating the application with Ctrl+c. So far I was not able to reproduce the issue with vibe.d 0.9.2 (eventcore 0.9.9).Soo.... if you try to print a warning it keeps the process alive? I can't understand how this would fix it. It is still printing too, so how could that have fixed the problem? -Steve
Oct 15 2020
On 10/15/20 10:22 AM, Steven Schveighoffer wrote:On 10/15/20 9:55 AM, Andre Pany wrote:Not fixed. I just did the same test (dub init -t vibe.d) and it fails to kill the process. Still have to kill with -9. -SteveI meant this one: https://github.com/vibe-d/eventcore/pull/154 I testing it at the moment, while there still "leaking" warnings, the ports are released after terminating the application with Ctrl+c. So far I was not able to reproduce the issue with vibe.d 0.9.2 (eventcore 0.9.9).Soo.... if you try to print a warning it keeps the process alive? I can't understand how this would fix it. It is still printing too, so how could that have fixed the problem?
Oct 15 2020
On Thursday, 15 October 2020 at 14:26:37 UTC, Steven Schveighoffer wrote:On 10/15/20 10:22 AM, Steven Schveighoffer wrote:You are right, I only tested it on Windows. Here it is working (stopping with ctrl+c and starting again) except the warnings. Kind regards AndreOn 10/15/20 9:55 AM, Andre Pany wrote:Not fixed. I just did the same test (dub init -t vibe.d) and it fails to kill the process. Still have to kill with -9. -SteveI meant this one: https://github.com/vibe-d/eventcore/pull/154 I testing it at the moment, while there still "leaking" warnings, the ports are released after terminating the application with Ctrl+c. So far I was not able to reproduce the issue with vibe.d 0.9.2 (eventcore 0.9.9).Soo.... if you try to print a warning it keeps the process alive? I can't understand how this would fix it. It is still printing too, so how could that have fixed the problem?
Oct 15 2020
On Wednesday, 14 October 2020 at 15:27:46 UTC, Andre Pany wrote:On Wednesday, 14 October 2020 at 13:20:53 UTC, Bruno Rodrigues wrote:Thanks, Andre! I'll try this solution later.On Wednesday, 14 October 2020 at 01:32:34 UTC, Steven Schveighoffer wrote:Please add this to your dub.json file: "versions": [ "VibeHighEventPriority" ] You may have to restart your pc 1 time. After that the issue should not occur anymore. (It is a known bug). Kind regards Andre[...]Thank you, Steve! It did work but none of the examples on the Vibe.d page are working with current D version... Some errors I got When executing with dub[...]When compiling (dub, dub build or dub build --force), I got a lot of deprecation errors[...]
Oct 14 2020
So, it did work... The problem was on me, I guess. I was using this example:https://tour.dlang.org/tour/en/dub/vibe-dIt wasn't working at all... So I've changed to this one, and it did work.https://code.dlang.org/packages/vibe-d/0.9.2I've used the first example, there are some differences to the one on tour.dlang. Thanks all for the support.
Oct 14 2020