fix: pre-release 1.6 code polish (L1, L3, N1, N2, N7) #321
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!321
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pre-release-1.6-polish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Code polish from the pre-release audit 1.6, all on features new in 1.6 (one commit per finding):
gram check --fixon a file it cannot write (read-only) keeps the diagnostics of the file as it stands, counts 0 fixes and says why on stderr (Could not write the fixes to ro.gram: permission denied), in text and JSON, with exit code 1. Test skipped under root and Windows.@usepath completion now goes throughresolveProjectDir(), a new export of@gram-lang/modules/nodesharingconfine()withresolveProjectPath(): nothing listed outside the project, for an undeclared alias, or for a path with a backslash or a null byte. Changesetmodules-node-pathcompleted./renderroute of the preview server is gone (its tests read the firstupdateof/events); the Print button is hidden on a view with no print layout, tab by tab (data-print). The/print400 guard stays.engines: { node: ">=22" }in@gram-lang/language-server, a sub-bullet inlsp-universal.Type of change
Quality checklist
bun run lint:fix)bun run typecheck)bun test)bun run change)bun run build)