kiro-spec-engine 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -0
- package/README.md +223 -369
- package/README.zh.md +0 -330
- package/docs/README.md +223 -0
- package/docs/command-reference.md +252 -0
- package/docs/examples/add-export-command/design.md +194 -0
- package/docs/examples/add-export-command/requirements.md +110 -0
- package/docs/examples/add-export-command/tasks.md +88 -0
- package/docs/examples/add-rest-api/design.md +855 -0
- package/docs/examples/add-rest-api/requirements.md +323 -0
- package/docs/examples/add-rest-api/tasks.md +355 -0
- package/docs/examples/add-user-dashboard/design.md +192 -0
- package/docs/examples/add-user-dashboard/requirements.md +143 -0
- package/docs/examples/add-user-dashboard/tasks.md +91 -0
- package/docs/faq.md +696 -0
- package/docs/integration-modes.md +525 -0
- package/docs/integration-philosophy.md +313 -0
- package/docs/quick-start-with-ai-tools.md +374 -0
- package/docs/quick-start.md +711 -0
- package/docs/spec-workflow.md +453 -0
- package/docs/tools/claude-guide.md +653 -0
- package/docs/tools/cursor-guide.md +705 -0
- package/docs/tools/generic-guide.md +445 -0
- package/docs/tools/kiro-guide.md +308 -0
- package/docs/tools/vscode-guide.md +444 -0
- package/docs/tools/windsurf-guide.md +390 -0
- package/docs/troubleshooting.md +795 -0
- package/docs/zh/README.md +275 -0
- package/docs/zh/quick-start.md +711 -0
- package/docs/zh/tools/claude-guide.md +348 -0
- package/docs/zh/tools/cursor-guide.md +280 -0
- package/docs/zh/tools/generic-guide.md +498 -0
- package/docs/zh/tools/kiro-guide.md +342 -0
- package/docs/zh/tools/vscode-guide.md +448 -0
- package/docs/zh/tools/windsurf-guide.md +377 -0
- package/package.json +1 -1
|
@@ -0,0 +1,795 @@
|
|
|
1
|
+
# Troubleshooting Guide
|
|
2
|
+
|
|
3
|
+
> Common issues and solutions for kse
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
**Version**: 1.0.0
|
|
8
|
+
**Last Updated**: 2026-01-23
|
|
9
|
+
**Audience**: All Users
|
|
10
|
+
**Estimated Time**: Reference as needed
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Quick Navigation
|
|
15
|
+
|
|
16
|
+
- [Installation Issues](#installation-issues)
|
|
17
|
+
- [Adoption Issues](#adoption-issues)
|
|
18
|
+
- [Command Issues](#command-issues)
|
|
19
|
+
- [Integration Issues](#integration-issues)
|
|
20
|
+
- [Watch Mode Issues](#watch-mode-issues)
|
|
21
|
+
- [Platform-Specific Issues](#platform-specific-issues)
|
|
22
|
+
- [Getting More Help](#getting-more-help)
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Installation Issues
|
|
27
|
+
|
|
28
|
+
### Error: "npm install -g kse" fails
|
|
29
|
+
|
|
30
|
+
**Symptoms:**
|
|
31
|
+
```
|
|
32
|
+
npm ERR! code EACCES
|
|
33
|
+
npm ERR! syscall access
|
|
34
|
+
npm ERR! path /usr/local/lib/node_modules
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Cause:** Insufficient permissions to install global npm packages
|
|
38
|
+
|
|
39
|
+
**Solutions:**
|
|
40
|
+
|
|
41
|
+
**Option 1: Use npx (Recommended)**
|
|
42
|
+
```bash
|
|
43
|
+
# No installation needed, run directly
|
|
44
|
+
npx kse status
|
|
45
|
+
npx kse adopt
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Option 2: Fix npm permissions (macOS/Linux)**
|
|
49
|
+
```bash
|
|
50
|
+
# Create npm directory in home folder
|
|
51
|
+
mkdir ~/.npm-global
|
|
52
|
+
npm config set prefix '~/.npm-global'
|
|
53
|
+
|
|
54
|
+
# Add to PATH (add to ~/.bashrc or ~/.zshrc)
|
|
55
|
+
export PATH=~/.npm-global/bin:$PATH
|
|
56
|
+
|
|
57
|
+
# Reload shell config
|
|
58
|
+
source ~/.bashrc # or source ~/.zshrc
|
|
59
|
+
|
|
60
|
+
# Now install
|
|
61
|
+
npm install -g kse
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Option 3: Use sudo (Not Recommended)**
|
|
65
|
+
```bash
|
|
66
|
+
sudo npm install -g kse
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### Error: "kse: command not found"
|
|
72
|
+
|
|
73
|
+
**Symptoms:**
|
|
74
|
+
```bash
|
|
75
|
+
$ kse status
|
|
76
|
+
bash: kse: command not found
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Cause:** kse is not in your PATH
|
|
80
|
+
|
|
81
|
+
**Solutions:**
|
|
82
|
+
|
|
83
|
+
**Check if kse is installed:**
|
|
84
|
+
```bash
|
|
85
|
+
npm list -g kse
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**If installed, find where:**
|
|
89
|
+
```bash
|
|
90
|
+
npm root -g
|
|
91
|
+
# Output: /usr/local/lib/node_modules (or similar)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Add to PATH:**
|
|
95
|
+
```bash
|
|
96
|
+
# macOS/Linux - Add to ~/.bashrc or ~/.zshrc
|
|
97
|
+
export PATH="/usr/local/bin:$PATH"
|
|
98
|
+
|
|
99
|
+
# Windows - Add to System Environment Variables
|
|
100
|
+
# C:\Users\YourName\AppData\Roaming\npm
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Verify:**
|
|
104
|
+
```bash
|
|
105
|
+
which kse # macOS/Linux
|
|
106
|
+
where kse # Windows
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
### Error: "Node.js version too old"
|
|
112
|
+
|
|
113
|
+
**Symptoms:**
|
|
114
|
+
```
|
|
115
|
+
Error: kse requires Node.js 14 or higher
|
|
116
|
+
Current version: v12.x.x
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**Cause:** kse requires Node.js 14+
|
|
120
|
+
|
|
121
|
+
**Solution:**
|
|
122
|
+
|
|
123
|
+
**Update Node.js:**
|
|
124
|
+
```bash
|
|
125
|
+
# Using nvm (recommended)
|
|
126
|
+
nvm install 18
|
|
127
|
+
nvm use 18
|
|
128
|
+
|
|
129
|
+
# Or download from nodejs.org
|
|
130
|
+
# https://nodejs.org/
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Verify:**
|
|
134
|
+
```bash
|
|
135
|
+
node --version
|
|
136
|
+
# Should show v14.x.x or higher
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Adoption Issues
|
|
142
|
+
|
|
143
|
+
### Error: "Not a git repository"
|
|
144
|
+
|
|
145
|
+
**Symptoms:**
|
|
146
|
+
```bash
|
|
147
|
+
$ kse adopt
|
|
148
|
+
Error: Not a git repository
|
|
149
|
+
kse requires a git repository to track Specs
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
**Cause:** kse requires git for version control
|
|
153
|
+
|
|
154
|
+
**Solution:**
|
|
155
|
+
|
|
156
|
+
**Initialize git:**
|
|
157
|
+
```bash
|
|
158
|
+
git init
|
|
159
|
+
git add .
|
|
160
|
+
git commit -m "Initial commit"
|
|
161
|
+
|
|
162
|
+
# Now adopt kse
|
|
163
|
+
kse adopt
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**Why git is required:**
|
|
167
|
+
- Specs should be version controlled
|
|
168
|
+
- Team collaboration needs git
|
|
169
|
+
- kse uses git to detect project root
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
### Error: "kse.json already exists"
|
|
174
|
+
|
|
175
|
+
**Symptoms:**
|
|
176
|
+
```bash
|
|
177
|
+
$ kse adopt
|
|
178
|
+
Error: kse.json already exists
|
|
179
|
+
Use 'kse upgrade' to update existing installation
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Cause:** Project already has kse installed
|
|
183
|
+
|
|
184
|
+
**Solutions:**
|
|
185
|
+
|
|
186
|
+
**If you want to upgrade:**
|
|
187
|
+
```bash
|
|
188
|
+
kse upgrade
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**If you want to start fresh:**
|
|
192
|
+
```bash
|
|
193
|
+
# Backup existing Specs
|
|
194
|
+
cp -r .kiro .kiro.backup
|
|
195
|
+
|
|
196
|
+
# Remove kse
|
|
197
|
+
rm kse.json
|
|
198
|
+
rm -rf .kiro
|
|
199
|
+
|
|
200
|
+
# Re-adopt
|
|
201
|
+
kse adopt
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
### Error: "Permission denied creating .kiro directory"
|
|
207
|
+
|
|
208
|
+
**Symptoms:**
|
|
209
|
+
```bash
|
|
210
|
+
$ kse adopt
|
|
211
|
+
Error: EACCES: permission denied, mkdir '.kiro'
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Cause:** Insufficient permissions in project directory
|
|
215
|
+
|
|
216
|
+
**Solution:**
|
|
217
|
+
|
|
218
|
+
**Check directory permissions:**
|
|
219
|
+
```bash
|
|
220
|
+
ls -la
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
**Fix permissions:**
|
|
224
|
+
```bash
|
|
225
|
+
# Make sure you own the directory
|
|
226
|
+
sudo chown -R $USER:$USER .
|
|
227
|
+
|
|
228
|
+
# Or run in a directory you own
|
|
229
|
+
cd ~/projects/my-project
|
|
230
|
+
kse adopt
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Command Issues
|
|
236
|
+
|
|
237
|
+
### Error: "No Specs found"
|
|
238
|
+
|
|
239
|
+
**Symptoms:**
|
|
240
|
+
```bash
|
|
241
|
+
$ kse status
|
|
242
|
+
No Specs found in .kiro/specs/
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
**Cause:** No Specs have been created yet
|
|
246
|
+
|
|
247
|
+
**Solution:**
|
|
248
|
+
|
|
249
|
+
**Create your first Spec:**
|
|
250
|
+
```bash
|
|
251
|
+
kse create-spec 01-00-my-feature
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
**Or check if Specs exist:**
|
|
255
|
+
```bash
|
|
256
|
+
ls -la .kiro/specs/
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
### Error: "Invalid Spec name format"
|
|
262
|
+
|
|
263
|
+
**Symptoms:**
|
|
264
|
+
```bash
|
|
265
|
+
$ kse create-spec my-feature
|
|
266
|
+
Error: Invalid Spec name format
|
|
267
|
+
Expected: {number}-{number}-{kebab-case-name}
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
**Cause:** Spec names must follow the format: `XX-YY-feature-name`
|
|
271
|
+
|
|
272
|
+
**Solution:**
|
|
273
|
+
|
|
274
|
+
**Use correct format:**
|
|
275
|
+
```bash
|
|
276
|
+
# ✅ Correct
|
|
277
|
+
kse create-spec 01-00-user-login
|
|
278
|
+
kse create-spec 02-01-fix-auth-bug
|
|
279
|
+
|
|
280
|
+
# ❌ Wrong
|
|
281
|
+
kse create-spec user-login
|
|
282
|
+
kse create-spec 01-user-login
|
|
283
|
+
kse create-spec UserLogin
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
### Error: "Context export failed"
|
|
289
|
+
|
|
290
|
+
**Symptoms:**
|
|
291
|
+
```bash
|
|
292
|
+
$ kse context export 01-00-user-login
|
|
293
|
+
Error: Failed to export context
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
**Possible Causes & Solutions:**
|
|
297
|
+
|
|
298
|
+
**1. Spec doesn't exist:**
|
|
299
|
+
```bash
|
|
300
|
+
# Check Spec exists
|
|
301
|
+
ls .kiro/specs/01-00-user-login/
|
|
302
|
+
|
|
303
|
+
# If not, create it
|
|
304
|
+
kse create-spec 01-00-user-login
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
**2. Missing Spec files:**
|
|
308
|
+
```bash
|
|
309
|
+
# Spec needs at least requirements.md
|
|
310
|
+
ls .kiro/specs/01-00-user-login/requirements.md
|
|
311
|
+
|
|
312
|
+
# Create if missing
|
|
313
|
+
touch .kiro/specs/01-00-user-login/requirements.md
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
**3. File permission issues:**
|
|
317
|
+
```bash
|
|
318
|
+
# Check permissions
|
|
319
|
+
ls -la .kiro/specs/01-00-user-login/
|
|
320
|
+
|
|
321
|
+
# Fix if needed
|
|
322
|
+
chmod 644 .kiro/specs/01-00-user-login/*.md
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
### Error: "Task not found"
|
|
328
|
+
|
|
329
|
+
**Symptoms:**
|
|
330
|
+
```bash
|
|
331
|
+
$ kse task claim 01-00-user-login 1.1
|
|
332
|
+
Error: Task 1.1 not found in tasks.md
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
**Cause:** Task ID doesn't exist in tasks.md
|
|
336
|
+
|
|
337
|
+
**Solution:**
|
|
338
|
+
|
|
339
|
+
**Check tasks.md:**
|
|
340
|
+
```bash
|
|
341
|
+
cat .kiro/specs/01-00-user-login/tasks.md
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
**Verify task ID format:**
|
|
345
|
+
```markdown
|
|
346
|
+
# tasks.md should have:
|
|
347
|
+
- [ ] 1.1 Task description
|
|
348
|
+
- [ ] 1.2 Another task
|
|
349
|
+
|
|
350
|
+
# Not:
|
|
351
|
+
- [ ] Task description (missing ID)
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## Integration Issues
|
|
357
|
+
|
|
358
|
+
### My AI tool doesn't understand the context
|
|
359
|
+
|
|
360
|
+
**Symptoms:**
|
|
361
|
+
- AI generates code that doesn't match your Spec
|
|
362
|
+
- AI asks for information already in the Spec
|
|
363
|
+
- AI ignores design decisions
|
|
364
|
+
|
|
365
|
+
**Solutions:**
|
|
366
|
+
|
|
367
|
+
**1. Be explicit in your prompt:**
|
|
368
|
+
```
|
|
369
|
+
❌ Bad: "Implement the login feature"
|
|
370
|
+
|
|
371
|
+
✅ Good: "Please implement the login feature following the
|
|
372
|
+
requirements and design in the provided context. Pay special
|
|
373
|
+
attention to the API design and error handling sections."
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
**2. Verify context was provided:**
|
|
377
|
+
```bash
|
|
378
|
+
# Check context file exists and has content
|
|
379
|
+
cat .kiro/specs/01-00-user-login/context-export.md
|
|
380
|
+
|
|
381
|
+
# Should contain requirements, design, and tasks
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
**3. Break down large contexts:**
|
|
385
|
+
```bash
|
|
386
|
+
# Instead of entire Spec, export specific task
|
|
387
|
+
kse prompt generate 01-00-user-login 1.1
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
**4. Use steering rules:**
|
|
391
|
+
```bash
|
|
392
|
+
# Include project-specific rules
|
|
393
|
+
kse context export 01-00-user-login --include-steering
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
### Context file too large for AI tool
|
|
399
|
+
|
|
400
|
+
**Symptoms:**
|
|
401
|
+
- AI tool rejects context (too many tokens)
|
|
402
|
+
- AI tool truncates context
|
|
403
|
+
- Error: "Context exceeds maximum length"
|
|
404
|
+
|
|
405
|
+
**Solutions:**
|
|
406
|
+
|
|
407
|
+
**1. Use task-specific prompts:**
|
|
408
|
+
```bash
|
|
409
|
+
# Export just one task
|
|
410
|
+
kse prompt generate 01-00-user-login 1.1
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
**2. Simplify your Spec:**
|
|
414
|
+
- Remove unnecessary details from requirements
|
|
415
|
+
- Condense design documentation
|
|
416
|
+
- Break large Specs into smaller ones
|
|
417
|
+
|
|
418
|
+
**3. Use a tool with larger context window:**
|
|
419
|
+
- Claude Code: 200K tokens
|
|
420
|
+
- GPT-4 Turbo: 128K tokens
|
|
421
|
+
- Gemini Pro: 1M tokens
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
425
|
+
### AI generates code that doesn't match design
|
|
426
|
+
|
|
427
|
+
**Symptoms:**
|
|
428
|
+
- Code structure differs from design
|
|
429
|
+
- API endpoints don't match specification
|
|
430
|
+
- Component names are different
|
|
431
|
+
|
|
432
|
+
**Solutions:**
|
|
433
|
+
|
|
434
|
+
**1. Improve design specificity:**
|
|
435
|
+
```markdown
|
|
436
|
+
# ❌ Vague
|
|
437
|
+
- Create authentication system
|
|
438
|
+
|
|
439
|
+
# ✅ Specific
|
|
440
|
+
- Create AuthController class with login() method
|
|
441
|
+
- Method signature: async login(email: string, password: string): Promise<AuthResult>
|
|
442
|
+
- Return { token: string } on success
|
|
443
|
+
- Return { error: string } on failure
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
**2. Reference design in prompt:**
|
|
447
|
+
```
|
|
448
|
+
"Please implement exactly as specified in the Design section,
|
|
449
|
+
using the exact class names, method signatures, and API endpoints
|
|
450
|
+
documented."
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
**3. Provide code examples in design:**
|
|
454
|
+
```markdown
|
|
455
|
+
## Example Implementation
|
|
456
|
+
```javascript
|
|
457
|
+
class AuthController {
|
|
458
|
+
async login(email, password) {
|
|
459
|
+
// Implementation here
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
```
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
---
|
|
466
|
+
|
|
467
|
+
## Watch Mode Issues
|
|
468
|
+
|
|
469
|
+
### Watch mode not detecting changes
|
|
470
|
+
|
|
471
|
+
**Symptoms:**
|
|
472
|
+
```bash
|
|
473
|
+
$ kse watch status
|
|
474
|
+
Status: Running
|
|
475
|
+
|
|
476
|
+
# But editing Spec files doesn't trigger actions
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
**Solutions:**
|
|
480
|
+
|
|
481
|
+
**1. Restart watch mode:**
|
|
482
|
+
```bash
|
|
483
|
+
kse watch stop
|
|
484
|
+
kse watch start
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
**2. Check watch patterns:**
|
|
488
|
+
```bash
|
|
489
|
+
kse watch config
|
|
490
|
+
# Verify patterns include your files
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
**3. Check file system events:**
|
|
494
|
+
```bash
|
|
495
|
+
# Some editors don't trigger file system events
|
|
496
|
+
# Try saving with "Save As" instead of "Save"
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
**4. Increase watch delay:**
|
|
500
|
+
```bash
|
|
501
|
+
# If changes are too rapid
|
|
502
|
+
kse watch config --delay 1000
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
---
|
|
506
|
+
|
|
507
|
+
### Watch mode consuming too much CPU
|
|
508
|
+
|
|
509
|
+
**Symptoms:**
|
|
510
|
+
- High CPU usage when watch mode is running
|
|
511
|
+
- System becomes slow
|
|
512
|
+
|
|
513
|
+
**Solutions:**
|
|
514
|
+
|
|
515
|
+
**1. Reduce watch scope:**
|
|
516
|
+
```bash
|
|
517
|
+
# Watch only specific Specs
|
|
518
|
+
kse watch start --spec 01-00-user-login
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
**2. Exclude unnecessary files:**
|
|
522
|
+
```bash
|
|
523
|
+
# Add to watch config
|
|
524
|
+
{
|
|
525
|
+
"exclude": [
|
|
526
|
+
"node_modules/**",
|
|
527
|
+
".git/**",
|
|
528
|
+
"*.log"
|
|
529
|
+
]
|
|
530
|
+
}
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
**3. Stop when not needed:**
|
|
534
|
+
```bash
|
|
535
|
+
# Stop watch mode when not actively developing
|
|
536
|
+
kse watch stop
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
---
|
|
540
|
+
|
|
541
|
+
### Watch mode actions not executing
|
|
542
|
+
|
|
543
|
+
**Symptoms:**
|
|
544
|
+
- Watch mode detects changes
|
|
545
|
+
- But actions don't run
|
|
546
|
+
|
|
547
|
+
**Solutions:**
|
|
548
|
+
|
|
549
|
+
**1. Check action configuration:**
|
|
550
|
+
```bash
|
|
551
|
+
kse watch config
|
|
552
|
+
# Verify actions are properly configured
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
**2. Check action logs:**
|
|
556
|
+
```bash
|
|
557
|
+
kse watch logs
|
|
558
|
+
# Look for error messages
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
**3. Test action manually:**
|
|
562
|
+
```bash
|
|
563
|
+
# Try running the action command directly
|
|
564
|
+
kse context export 01-00-user-login
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
---
|
|
568
|
+
|
|
569
|
+
## Platform-Specific Issues
|
|
570
|
+
|
|
571
|
+
### Windows Issues
|
|
572
|
+
|
|
573
|
+
#### PowerShell vs CMD
|
|
574
|
+
|
|
575
|
+
**Issue:** Commands work in CMD but not PowerShell (or vice versa)
|
|
576
|
+
|
|
577
|
+
**Solution:**
|
|
578
|
+
```powershell
|
|
579
|
+
# Use CMD for kse commands
|
|
580
|
+
cmd /c kse status
|
|
581
|
+
|
|
582
|
+
# Or configure PowerShell execution policy
|
|
583
|
+
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
#### Path separators
|
|
587
|
+
|
|
588
|
+
**Issue:** Paths with forward slashes don't work
|
|
589
|
+
|
|
590
|
+
**Solution:**
|
|
591
|
+
```bash
|
|
592
|
+
# ❌ Wrong on Windows
|
|
593
|
+
kse context export .kiro/specs/01-00-user-login
|
|
594
|
+
|
|
595
|
+
# ✅ Correct on Windows
|
|
596
|
+
kse context export .kiro\specs\01-00-user-login
|
|
597
|
+
|
|
598
|
+
# ✅ Or use forward slashes (kse handles both)
|
|
599
|
+
kse context export 01-00-user-login
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
#### Line endings
|
|
603
|
+
|
|
604
|
+
**Issue:** Files have wrong line endings (CRLF vs LF)
|
|
605
|
+
|
|
606
|
+
**Solution:**
|
|
607
|
+
```bash
|
|
608
|
+
# Configure git to handle line endings
|
|
609
|
+
git config --global core.autocrlf true
|
|
610
|
+
|
|
611
|
+
# Or use .gitattributes
|
|
612
|
+
echo "*.md text eol=lf" >> .gitattributes
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
---
|
|
616
|
+
|
|
617
|
+
### macOS Issues
|
|
618
|
+
|
|
619
|
+
#### Gatekeeper blocking kse
|
|
620
|
+
|
|
621
|
+
**Issue:** "kse cannot be opened because it is from an unidentified developer"
|
|
622
|
+
|
|
623
|
+
**Solution:**
|
|
624
|
+
```bash
|
|
625
|
+
# kse is installed via npm, so this shouldn't happen
|
|
626
|
+
# But if it does:
|
|
627
|
+
xattr -d com.apple.quarantine $(which kse)
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
#### Permission issues
|
|
631
|
+
|
|
632
|
+
**Issue:** "Operation not permitted"
|
|
633
|
+
|
|
634
|
+
**Solution:**
|
|
635
|
+
```bash
|
|
636
|
+
# Grant Terminal full disk access
|
|
637
|
+
# System Preferences → Security & Privacy → Privacy → Full Disk Access
|
|
638
|
+
# Add Terminal.app
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
---
|
|
642
|
+
|
|
643
|
+
### Linux Issues
|
|
644
|
+
|
|
645
|
+
#### Different shells
|
|
646
|
+
|
|
647
|
+
**Issue:** Commands work in bash but not zsh (or vice versa)
|
|
648
|
+
|
|
649
|
+
**Solution:**
|
|
650
|
+
```bash
|
|
651
|
+
# Add kse to PATH in your shell config
|
|
652
|
+
# For bash: ~/.bashrc
|
|
653
|
+
# For zsh: ~/.zshrc
|
|
654
|
+
export PATH="$HOME/.npm-global/bin:$PATH"
|
|
655
|
+
|
|
656
|
+
# Reload config
|
|
657
|
+
source ~/.bashrc # or ~/.zshrc
|
|
658
|
+
```
|
|
659
|
+
|
|
660
|
+
#### Permission issues
|
|
661
|
+
|
|
662
|
+
**Issue:** "Permission denied" errors
|
|
663
|
+
|
|
664
|
+
**Solution:**
|
|
665
|
+
```bash
|
|
666
|
+
# Check file permissions
|
|
667
|
+
ls -la $(which kse)
|
|
668
|
+
|
|
669
|
+
# Should be executable
|
|
670
|
+
chmod +x $(which kse)
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
---
|
|
674
|
+
|
|
675
|
+
## Getting More Help
|
|
676
|
+
|
|
677
|
+
### Before Asking for Help
|
|
678
|
+
|
|
679
|
+
**Gather information:**
|
|
680
|
+
```bash
|
|
681
|
+
# kse version
|
|
682
|
+
kse --version
|
|
683
|
+
|
|
684
|
+
# Node.js version
|
|
685
|
+
node --version
|
|
686
|
+
|
|
687
|
+
# npm version
|
|
688
|
+
npm --version
|
|
689
|
+
|
|
690
|
+
# Operating system
|
|
691
|
+
uname -a # macOS/Linux
|
|
692
|
+
ver # Windows
|
|
693
|
+
|
|
694
|
+
# Current directory structure
|
|
695
|
+
ls -la .kiro/
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
### Where to Get Help
|
|
699
|
+
|
|
700
|
+
**1. Documentation:**
|
|
701
|
+
- [Quick Start Guide](quick-start.md)
|
|
702
|
+
- [FAQ](faq.md)
|
|
703
|
+
- [Command Reference](command-reference.md)
|
|
704
|
+
|
|
705
|
+
**2. GitHub Issues:**
|
|
706
|
+
- Search existing issues: https://github.com/kiro-spec-engine/kse/issues
|
|
707
|
+
- Create new issue: https://github.com/kiro-spec-engine/kse/issues/new
|
|
708
|
+
|
|
709
|
+
**3. GitHub Discussions:**
|
|
710
|
+
- Ask questions: https://github.com/kiro-spec-engine/kse/discussions
|
|
711
|
+
- Share tips and tricks
|
|
712
|
+
- Connect with other users
|
|
713
|
+
|
|
714
|
+
**4. Community:**
|
|
715
|
+
- Discord: [Join our Discord](https://discord.gg/kse)
|
|
716
|
+
- Twitter: [@kse_dev](https://twitter.com/kse_dev)
|
|
717
|
+
|
|
718
|
+
### Creating a Good Issue Report
|
|
719
|
+
|
|
720
|
+
**Include:**
|
|
721
|
+
1. **What you tried to do**
|
|
722
|
+
2. **What you expected to happen**
|
|
723
|
+
3. **What actually happened**
|
|
724
|
+
4. **Error messages** (full text)
|
|
725
|
+
5. **Environment info** (OS, Node version, kse version)
|
|
726
|
+
6. **Steps to reproduce**
|
|
727
|
+
|
|
728
|
+
**Example:**
|
|
729
|
+
```markdown
|
|
730
|
+
## Description
|
|
731
|
+
Context export fails for Spec with Chinese characters in filename
|
|
732
|
+
|
|
733
|
+
## Steps to Reproduce
|
|
734
|
+
1. Create Spec: kse create-spec 01-00-用户登录
|
|
735
|
+
2. Run: kse context export 01-00-用户登录
|
|
736
|
+
3. Error occurs
|
|
737
|
+
|
|
738
|
+
## Expected Behavior
|
|
739
|
+
Context should export successfully
|
|
740
|
+
|
|
741
|
+
## Actual Behavior
|
|
742
|
+
Error: Invalid filename
|
|
743
|
+
|
|
744
|
+
## Environment
|
|
745
|
+
- OS: macOS 13.0
|
|
746
|
+
- Node: v18.12.0
|
|
747
|
+
- kse: v1.0.0
|
|
748
|
+
|
|
749
|
+
## Error Message
|
|
750
|
+
```
|
|
751
|
+
Error: EINVAL: invalid filename
|
|
752
|
+
```
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
---
|
|
756
|
+
|
|
757
|
+
## Related Documentation
|
|
758
|
+
|
|
759
|
+
- **[Quick Start Guide](quick-start.md)** - Get started with kse
|
|
760
|
+
- **[FAQ](faq.md)** - Frequently asked questions
|
|
761
|
+
- **[Command Reference](command-reference.md)** - All kse commands
|
|
762
|
+
- **[Integration Modes](integration-modes.md)** - Using kse with AI tools
|
|
763
|
+
|
|
764
|
+
---
|
|
765
|
+
|
|
766
|
+
## Summary
|
|
767
|
+
|
|
768
|
+
**Most Common Issues:**
|
|
769
|
+
1. **Installation** - Use npx or fix npm permissions
|
|
770
|
+
2. **Command not found** - Add kse to PATH
|
|
771
|
+
3. **Spec name format** - Use XX-YY-feature-name format
|
|
772
|
+
4. **Context too large** - Use task-specific prompts
|
|
773
|
+
5. **Watch mode** - Restart or check configuration
|
|
774
|
+
|
|
775
|
+
**Quick Fixes:**
|
|
776
|
+
```bash
|
|
777
|
+
# Restart kse watch mode
|
|
778
|
+
kse watch stop && kse watch start
|
|
779
|
+
|
|
780
|
+
# Verify installation
|
|
781
|
+
kse --version
|
|
782
|
+
|
|
783
|
+
# Check Spec structure
|
|
784
|
+
ls -la .kiro/specs/
|
|
785
|
+
|
|
786
|
+
# Test context export
|
|
787
|
+
kse context export spec-name
|
|
788
|
+
```
|
|
789
|
+
|
|
790
|
+
**Still stuck?** → [Create an issue](https://github.com/kiro-spec-engine/kse/issues/new)
|
|
791
|
+
|
|
792
|
+
---
|
|
793
|
+
|
|
794
|
+
**Version**: 1.0.0
|
|
795
|
+
**Last Updated**: 2026-01-23
|