Adrian Hesketh
Adrian Hesketh
Ah, that's interesting! I wonder if the PATH variable is not updated to include your `~/go/bin` directory (or wherever you installed Go) in your `.zshrc`, but is in the `.bashrc`.
I've relrased version v0.0.16 of the templ-vscode extension that does more probing for the templ executable, and displays an error message that displays the paths it probed. https://github.com/templ-go/templ-vscode/commit/47fb4efd355686a9de81cab0abab12fdf427e335 This should...
I updated the `templ lsp` command to give a better error message a few days ago: https://github.com/a-h/templ/blob/16dfaad6b1dbf61fbd786c5f098954f63174fcae/cmd/templ/lspcmd/pls/main.go#L45-L59 However, now I'm looking at it again, I realised that I forgot about...
I've updated the probing to include checks for `gopls.exe` as well as `gopls` in https://github.com/a-h/templ/commit/b6f0b3dad93a476f82657cf778ce7f7cef618752
I added some more probing locations in https://github.com/templ-go/templ-vscode/commit/34543ff8688cac6bcb9905a5645ee61fa9414e95 I'm going to close this one, and ask for people to open up a new issue, since I think these recent changes...
Hello there! Originally, templ wrote straight to the `io.Writer` that was passed in. However, during benchmarks, we found that it caused a number of allocations to be made. These allocations...
Thanks for looking into this. If you want to progress this line of thinking, you can directly modify the generated code to test out the concept. For example, you can...
So, I couldn't help but look into this and created a little benchmark of actual web performance at https://github.com/a-h/templ/tree/http_benchmark I updated the test benchmark template and added 1000 extra lines...
Based on the data, I think it makes sense to use a sync buffered write pool for this. Looks like the buffered writing might result in 146k rps vs 140k...
See comment on https://github.com/a-h/templ/discussions/781#discussioncomment-9680731 - I think this could be a way forward. @joerdav is working on something that affects the generator (automatic imports), so I don't want to implement...