ktorio / ktorio/ktor-documentation
Section `Server requests and responses tutorial` problem `private val tasks cannot be accessed from Routing.kt`
Open
Beginner friendly
- Dominant language
- Kotlin
- Stars
- 540
- Forks
- 375
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 19
Description
The current documentation declares `tasks` as `private` in `TaskRepository.kt`, but later accesses it directly from `Routing.kt` using `tasks.tasksAsTable()`.
This causes a Kotlin compilation error:
`Cannot access 'val tasks': it is private in file`
Suggested fix:
* remove `private`
Contributor guide
Research direction
Start with the `tasks` declaration in `TaskRepository.kt` and its direct use in `Routing.kt` in the `Server requests and responses tutorial`. Check the visibility mismatch, apply the documented correction, and verify that the tutorial no longer produces the Kotlin private-access compilation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100