Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to ignore warnings during development: #1097

Open
waalge opened this issue Feb 13, 2025 · 2 comments
Open

option to ignore warnings during development: #1097

waalge opened this issue Feb 13, 2025 · 2 comments
Assignees

Comments

@waalge
Copy link
Contributor

waalge commented Feb 13, 2025

What is your idea? Provide a use case.

Early dev flow: make function with signatures, but no body. Start to fill them out.

fn func0(
  arg00: Typ00,
  arg01: Typ01,
  arg02: Typ02,
  arg03: Typ03,
) -> Typ0 { 
  fail @"todo"
}

fn func1(
  arg00: Typ10,
  arg01: Typ11,
  arg02: Typ12,
  arg03: Typ13,
) -> Typ1 { 
  fail @"todo"
}

fn func2(
  arg00: Typ20,
  arg01: Typ21,
  arg02: Typ22,
  arg03: Typ23,
) -> Typ2 { 
  fail @"todo"
} 

(Using fail @"todo" rather than todo @"stuff" supresses a line of output, and is sufficiently clear of its intent. )

Why is it a good idea?

Test some part of code

 Summary 2 errors, 132 warnings

ummmm.

Another suggestion: If the code sees a todo then condense all warnings of unused variable into I'm assuming you'll get around to using these variables when you do that todo

What is the current alternative and why is it not good enough?

Wading through irrelevant console output. LSP super noisy.

@rvcas
Copy link
Member

rvcas commented Feb 14, 2025

Yea we've been meaning to have a less verbose mode. Maybe it's about time.

@rvcas rvcas self-assigned this Feb 14, 2025
@KtorZ
Copy link
Member

KtorZ commented Feb 18, 2025

Note: warnings are printed on stderr whereas errors are printed on stdout. So you can simply redirect the output as such to get rid of warnings, while keeping errors:

 aiken check 2>/dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🪣 Backlog
Development

No branches or pull requests

3 participants