lune icon indicating copy to clipboard operation
lune copied to clipboard

unable to find `.luaurc` if `.luaurc` contains invalid JSON syntax

Open 4x8Matrix opened this issue 1 year ago • 1 comments

Context

Writing this after I raised an initial discussion in the OSS Discord here

Issue

The error failed to find alias '{alias}' (no .luaurc) presents itself and can confuse the consumer if the .luaurc file itself has invalid syntax, for instance - if someone tries to add comments into JSON.

Solution

Ideally, an alternative error is shown, something along the lines of .luaurc contains invalid JSON syntax, ln X

4x8Matrix avatar Jun 08 '24 20:06 4x8Matrix

Removing this from the milestone for now - the native Luau require library should fix this better than we can and it is not really worth messing with our own custom require implementation when it will be completely replaced soon.

filiptibell avatar Apr 24 '25 19:04 filiptibell

This has been fixed in Lune 0.10 - if you find the error messages confusing or similar issues, this should be reported to Luau repo itself

filiptibell avatar Jul 15 '25 12:07 filiptibell