Helix is no longer compatible with Sveltekit page and layout naming conventions #9331
Labels
C-bug
Category: This is a bug
E-has-instructions
Call for participation: Has instructions for fixing the issue and opening a PR
Summary
Attempting to create a new page or layout file for Sveltekit by passing the desired name of the file to Helix as an argument now results in an error:
This can be worked around, but is annoying. Could this be avoided by providing fallback behaviour or parsing arguments which have a file extension differently to other arguments? If so I'm happy to try implementing a fix.
Reproduction Steps
I tried this:
hx +layout.svelte
I expected this to happen:
A buffer to open that would later be saved as '+layout.svelte'
Instead, this happened:
Helix attempted to parse the file name as a line number
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
Alacritty
Installation Method
source
Helix Version
23.10-190-g17dd102e
The text was updated successfully, but these errors were encountered: