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

Add Kotlin lang #4221

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Conversation

pavelprystinka
Copy link
Member

No description provided.

if (KotlinASTAnalyser.hasPublicApiInKotlin(unzippedFile.getAbsolutePath())) {
apiListing.setLanguage("Kotlin");
final KotlinASTAnalyser kotlinAnalyser = new KotlinASTAnalyser(apiListing);
kotlinAnalyser.analyse(unzippedFile.getAbsolutePath());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it would be possible to give the KotlinAnalyser a custom FileSystem (consisting of the jar file) like I do for the Java listing below? That would avoid having to unzip.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JonathanGiles underlying Dokka API that is used to parse Kotlin AST only takes java.io.File and that needs to be a directory. I did not find a way to virtualize that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reckon you could do more or less what I have done, but rather than pass in the files individually, pass in the root directory. I would really like to see you try that, as it pains me (and I'm sure you) to see the files be unzipped in all cases!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do pass a root directory here unzippedFile.getAbsolutePath(). I do agree that it is far from ideal to unzip to the file system (not virtual one), but eventually I pass this root directory path to the Dokka, that only takes java.io.File which does not support virtual file system.

src/java/apiview-java-processor/pom.xml Show resolved Hide resolved
src/java/apiview-java-processor/pom.xml Outdated Show resolved Hide resolved
if (KotlinASTAnalyser.hasPublicApiInKotlin(unzippedFile.getAbsolutePath())) {
apiListing.setLanguage("Kotlin");
final KotlinASTAnalyser kotlinAnalyser = new KotlinASTAnalyser(apiListing);
kotlinAnalyser.analyse(unzippedFile.getAbsolutePath());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reckon you could do more or less what I have done, but rather than pass in the files individually, pass in the root directory. I would really like to see you try that, as it pains me (and I'm sure you) to see the files be unzipped in all cases!

@pavelprystinka pavelprystinka requested a review from a team as a code owner January 24, 2023 16:37
@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Apr 21, 2023
@ghost
Copy link

ghost commented Apr 21, 2023

Hi @pavelprystinka. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@github-actions
Copy link

Hi @pavelprystinka. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing /reopen if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

@github-actions github-actions bot closed this Apr 28, 2023
@github-actions github-actions bot removed the no-recent-activity There has been no recent activity on this issue. label Feb 29, 2024
@JonathanGiles
Copy link
Member

Sorry @pavelprystinka - this keeps dropping on the floor. Could you please update the code to fix the conflicts, and we can take another look.

Copy link

Hi @pavelprystinka. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label Jun 21, 2024
Copy link

Hi @pavelprystinka. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing /reopen if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

@github-actions github-actions bot closed this Jun 28, 2024
@github-actions github-actions bot removed the no-recent-activity There has been no recent activity on this issue. label Sep 23, 2024
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

Successfully merging this pull request may close these issues.

2 participants