Skip to content

Commit 806cda1

Browse files
authored
Update issue templates
1 parent 2847888 commit 806cda1

2 files changed

Lines changed: 98 additions & 0 deletions

File tree

.github/ISSUE_TEMPLATE/-bug-.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: "[BUG]"
3+
about: " Report a lexer/parser/typecheck/codegen/VM bug or wrong runtime behavior"
4+
title: ''
5+
labels: bug
6+
assignees: HilthonTT
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Stage / component**
14+
Where does it go wrong?
15+
16+
- [ ] Lexer
17+
- [ ] Parser
18+
- [ ] Type checker (gradual types)
19+
- [ ] Optimizer / bytecode generator
20+
- [ ] VM (runtime, closures, coroutines, metatables)
21+
- [ ] Native module (name: `______`)
22+
- [ ] REPL
23+
- [ ] Tooling (`fmt` / `build` / `analyze` / `profile`)
24+
**Minimal reproduction**
25+
The smallest `.lsc` snippet that triggers it:
26+
27+
```lua
28+
-- your minimal script here
29+
```
30+
31+
**How you ran it**
32+
```bash
33+
# e.g. go run ./cmd examples/mycase.lsc
34+
# go run ./cmd -dis mycase.lsc (bytecode dump often helps codegen bugs)
35+
```
36+
37+
**Expected behavior**
38+
What you expected (output value, or that it should/shouldn't be a compile error).
39+
40+
**Actual behavior**
41+
What actually happened. Paste the full output, including any `type-error:` prefix or Go panic + stack trace.
42+
43+
```
44+
# Paste output here
45+
```
46+
47+
**Mode directive**
48+
Was the file `--!strict`, `--!nonstrict`, `--!nocheck`, or none (default gradual)?
49+
50+
**Environment**
51+
- Go version (`go version`):
52+
- OS / arch:
53+
- Commit / branch:
54+
- Build tags (e.g. plain, or `-tags luascript_ui`):
55+
- Relevant env (`LUASCRIPT_LIB`, `package.path` entries) if it's a `require` / module issue:
56+
**Additional context**
57+
- Is this behavior different from stock Lua 5.4? If so, how does `lua5.4` handle the same snippet?
58+
- Note: some things are deliberately out of scope for type-system v1 (generics, intersections, refinements, string-singletons, cross-module type checking, recursive aliases) — see the README "Not in v1" list before filing a typecheck issue.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: "[FEATURE]"
3+
about: Suggest a language feature, native module, or tooling improvement
4+
title: ''
5+
labels: enhancement
6+
assignees: HilthonTT
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Area**
17+
What does this touch?
18+
19+
- [ ] Syntax / parser
20+
- [ ] Type system
21+
- [ ] Bytecode / VM semantics
22+
- [ ] Standard library
23+
- [ ] Native module (existing or new: `______`)
24+
- [ ] Tooling (`fmt` / `build` / `analyze` / `profile` / REPL)
25+
**Prior art**
26+
How do Lua 5.4 and/or Luau handle this? Link the relevant reference if there is one — the project tracks Lua 5.4 semantics and Luau's type-system shape.
27+
28+
**Sketch**
29+
Example of the proposed syntax or API in `.lsc`:
30+
31+
```lua
32+
-- how it would look
33+
```
34+
35+
**Describe alternatives you've considered**
36+
A clear and concise description of any alternative solutions or features you've considered.
37+
38+
**Additional context**
39+
- If this is a type-system feature, note that generics, intersections, refinements, string-singletons, cross-module type checking, and recursive aliases are explicitly deferred past v1 — say whether this is one of those or something new.
40+
- Anything else: performance implications, whether types can stay fully erased before bytecode, etc.

0 commit comments

Comments
 (0)