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

Suppressing deprecation warnings #384

Closed
MagnusMG opened this issue Oct 24, 2022 · 4 comments
Closed

Suppressing deprecation warnings #384

MagnusMG opened this issue Oct 24, 2022 · 4 comments

Comments

@MagnusMG
Copy link

I use comment directives instead of annotations -- //DEPS instead of @file:DependsOn -- in order to make kscript work better in VSCode. And now I get warning from kscript every time I run my scripts:

[kscript] [WARN] There are deprecated features in scripts. Use --report option to print full report.

Any way of suppressing that?

@aartiPl
Copy link
Collaborator

aartiPl commented Oct 26, 2022

Well, the plan is to remove comment-based annotations in the future. This is because it's not the best software engineering solution, and additionally, in the end, I want to use in kscript engine, which won't support such annotations anyway.

@aartiPl aartiPl closed this as completed Oct 26, 2022
@MagnusMG
Copy link
Author

I hope that by the time comment-based annotations are removed VSCode will have improved their handling of KScript files, but until then, being able to suppress the warning would be great.

@aartiPl
Copy link
Collaborator

aartiPl commented Oct 26, 2022

This type of annotation, which is used in kscript, is just normal Kotlin:
https://kotlinlang.org/docs/annotations.html#annotation-use-site-targets
So, please note that it is nothing new or special just for kscript.

@MagnusMG
Copy link
Author

I seem to have found a way of making the annotation style directives work in VSCode. It is here, if anybody finds this thread and wants to know.

Thanks for not giving in, aartiPI. :-)

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

No branches or pull requests

2 participants