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

fix: rename the extension name with no conflict #275

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

Revathyvenugopal162
Copy link
Contributor

@Revathyvenugopal162 Revathyvenugopal162 commented Aug 16, 2023

fix #274

@Revathyvenugopal162 Revathyvenugopal162 requested a review from a team as a code owner August 16, 2023 12:00
@github-actions github-actions bot added the bug Defects or glitches reported by users or developers label Aug 16, 2023
@germa89
Copy link
Contributor

germa89 commented Aug 16, 2023

I don't see how the changes proposed can alleviate #274 ... Can you explain a bit please?

@RobPasMue
Copy link
Member

I don't see how the changes proposed can alleviate #274 ... Can you explain a bit please?

Agreed, me neither

@Revathyvenugopal162
Copy link
Contributor Author

I don't see how the changes proposed can alleviate #274 ... Can you explain a bit please?

i think the function 'fix_edit_link_button' is defined in ansys-sphinx theme and in pymapdl, made the jinja to add the function in html context, and shadowing fix_edit_link_button function, leading to unexpected behavior of looking for an extension named ansys.

@Revathyvenugopal162
Copy link
Contributor Author

I tried it locally and it is fixing my error for pymapdl!

@RobPasMue
Copy link
Member

Oh... so it's because PyMAPDL has it's own function? In that case... we might want to change PyMAPDL rather than the Sphinx theme... right?

@Revathyvenugopal162
Copy link
Contributor Author

Oh... so it's because PyMAPDL has it's own function? In that case... we might want to change PyMAPDL rather than the Sphinx theme... right?

Yes, but i think we both got that name from pyvista, if we are adding this as another extension or add theme in public themes, it should not conflict another library, so i changed it here.!
But changing for the moment in pymapdl will also solve the issue.

@RobPasMue
Copy link
Member

Yes, but i think we both got that name from pyvista, if we are adding this as another extension or add theme in public themes, it should not conflict another library, so i changed it here.! But changing for the moment in pymapdl will also solve the issue.

Okay, let's accept the change then =)

Copy link
Contributor

@germa89 germa89 left a comment

Choose a reason for hiding this comment

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

With the recent explanations, I see the point for this PR and I approve it.

Looking forward to see this change in the next release. Thank a lot @Revathyvenugopal162 !! 😄

@germa89
Copy link
Contributor

germa89 commented Aug 16, 2023

By the way, I guess your fix for the "edit button" should also work with PyMAPDL I guess? So maybe we can remove that bit from PyMAPDL.

@germa89
Copy link
Contributor

germa89 commented Aug 16, 2023

Also, how did you discover what was the reason? It seems to me the error was a bit obscure. Very good job!

@Revathyvenugopal162
Copy link
Contributor Author

By the way, I guess your fix for the "edit button" should also work with PyMAPDL I guess? So maybe we can remove that bit from PyMAPDL.

i believe, we can remove some code and the extension with these changes.

Copy link
Contributor

@MaxJPRey MaxJPRey left a comment

Choose a reason for hiding this comment

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

Thanks for the explanations @Revathyvenugopal162 .

@germa89
Copy link
Contributor

germa89 commented Aug 17, 2023

By the way, I guess your fix for the "edit button" should also work with PyMAPDL I guess? So maybe we can remove that bit from PyMAPDL.

i believe, we can remove some code and the extension with these changes.

I will.. eventually... one day.. find the time for this. 🥲

@RobPasMue
Copy link
Member

Can we merge this BTW?

@germa89 germa89 merged commit 07b87c4 into main Aug 17, 2023
21 checks passed
@germa89 germa89 deleted the fix/extension-function-name branch August 17, 2023 10:32
@germa89
Copy link
Contributor

germa89 commented Aug 19, 2023

We will need a patch release for this.

@RobPasMue
Copy link
Member

Yep, @Revathyvenugopal162 - please plan on it

@Revathyvenugopal162
Copy link
Contributor Author

Sure, i will do this Morning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defects or glitches reported by users or developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handler error in latest version
4 participants