block / block/kotlin-formatter

Feature request: plain file formatter in daemon mode

Open
#73 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
59
Forks
12
Avg merge
36m
Merged PRs (30d)
2

Description

There is test.kt: fun main(){print("hello world")}
And im trying to format it:
echo pre-commit test.kt | nc localhost 43649
0
Nothing to format
Why this happens? Tried both relative and absolute paths.
Also, really great project, especially daemon! For envs like neovim there no kt formatter that would format faster then in 1-2 seconds after format request, so you project is just a lifesaver!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported command with test.kt: echo pre-commit test.kt | nc localhost 43649, then trace the daemon's request handling for relative and absolute paths. Done means a plain Kotlin file request is recognized and formatted rather than returning "Nothing to format".

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.