Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should enable fixing
https://github.com/DanielXMoore/Civet/blob/6197b5a53e510a9519df437c8e86c2c8198118c7/types/types.d.ts#L58
by adding this to
parser.hera
:Also,
yarn test
isn't working on Windows, with errorError [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
. I added some code that should fix this, but still doesn't seem to. Progress though I think.I also updated the
ParseError
interface and constructor to provide more convenience:header
field for the main message (first line afterfilename:line:column
)body
field for the multiple lines of expected rulesmessage
isn't an argument, but is automatically constructed asfilename:line:column header\nbody
name
argument; it should be"ParseError"
in all cases