Idea detail
import_error_recovery
reqlan rq/language/imports.rq:38
block
Summary
A malformed import must not invalidate the rest of the file.
Recoverable invalid `from` shapes parse as local import nodes with a line-level diagnostic:
- `from "path" as alias` ( mistaken namespace form ) — suggest `import "path" as alias` or `from "path" import <idea>`
- bare `from "path"` — require the `import <idea>` clause
- `from` without a quoted path — consume the remainder of the line as an invalid import
Later imports and top-level ideas continue to parse and link normally.
Same recovery posture for nameless top-level braces: no_name_idea_safe_warning.
If lex / parse never completes, see parse_budget_timeout.
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | reqlan.langium, reqlan-validator.ts |
| tests | parsing.test.ts:malformed from-as import keeps later ideas parseable, validating.test.ts:reports local diagnostic for from-as mistaken import, validating.test.ts:reports local diagnostic for unquoted from-import |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | recovery_vs_budget | reqlan rq/language/parser_lexer.rq | import_error_recovery |
| references | no_name_idea_safe_warning | reqlan rq/language/syntax.rq | import_error_recovery |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…