Re: FileException when calling getTimes on a DirEntry

2023-12-24 Thread kdevel via Digitalmars-d-learn
On Sunday, 24 December 2023 at 20:00:15 UTC, Renato wrote: I asked what could be causing an Exception in my code to happen as that was quite unexpected. As I already wrote: Your code tries to fetch the meta-data for an object that does not exist. [..] Have you ever seen a symlink like the

Re: FileException when calling getTimes on a DirEntry

2023-12-24 Thread Renato via Digitalmars-d-learn
On Sunday, 24 December 2023 at 15:51:02 UTC, kdevel wrote: On Sunday, 24 December 2023 at 14:19:18 UTC, Renato wrote: I was trying to use a library (fswatch) for watching the file system Watching for what? Your feedback is really abrasive. What a shame, first time I get this kind of

Re: [vibe] what's wrong with linking time of vibe applications?

2023-12-24 Thread evilrat via Digitalmars-d-learn
On Friday, 22 December 2023 at 19:12:14 UTC, Dmitry Ponyatov wrote: D lang noted as having a very fast compilation time. Playing with tiny web-interface apps I found that modern versions of dmd & vibe has such a fast compiling but a very long executable linking time. Something like 2-3

Re: [vibe] statically precompile some JS libs into an app binary

2023-12-24 Thread evilrat via Digitalmars-d-learn
On Friday, 22 December 2023 at 19:55:07 UTC, Dmitry Ponyatov wrote: It is possible to statically precompile some JS libs and media fragments into an app binary? My colleagues asks me to distribute app as a single standalone executable if it is possible, and maybe few millisecond of page load

Re: Building a wasm library, need to override .object._d_newitemT!T

2023-12-24 Thread Etienne via Digitalmars-d-learn
On Sunday, 24 December 2023 at 10:50:41 UTC, Johan wrote: _d_newitemT!T is fairly new, what compiler version are you using? -Johan Nevermind, I managed to get it working but I had to compile without including druntime and phobos and move everything into the library. I'm using ldc

Re: FileException when calling getTimes on a DirEntry

2023-12-24 Thread kdevel via Digitalmars-d-learn
On Sunday, 24 December 2023 at 14:19:18 UTC, Renato wrote: I was trying to use a library (fswatch) for watching the file system Watching for what? [...] My code is really basic, when the directory modified timestamp changes, I list the directory entries with `dirEntries` and then call

FileException when calling getTimes on a DirEntry

2023-12-24 Thread Renato via Digitalmars-d-learn
I was trying to use a library (fswatch) for watching the file system but I immediately ran into an error using it so I decided to write my own. Funny thing: I ran into the same error. It seems that there's some problem with files with a name like `#tests.txt#` (which emacs likes to create).

Re: How to get serve-d to find dub dependencies

2023-12-24 Thread Steven Schveighoffer via Digitalmars-d-learn
On Saturday, 23 December 2023 at 16:28:28 UTC, Renato wrote: On Saturday, 23 December 2023 at 16:13:01 UTC, Renato wrote: I am trying to use dependencies, so I need dub. On emacs, the imports from dub libraries cannot be found, even though dub can build it fine. How can I get emacs/serve-d

Re: Building a wasm library, need to override .object._d_newitemT!T

2023-12-24 Thread Johan via Digitalmars-d-learn
On Saturday, 23 December 2023 at 20:42:37 UTC, Etienne Cimon wrote: I'm having a problem implementing the `new` keyword, so that I can start importing more libraries with minimal change. However, LDC calls .object._d_newitemT!T from the original druntime - which I need for compile-time