Skip to content
New issue

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

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

Already on GitHub? # to your account

regression: Spoon-based projects broken because of positions #1970

Closed
4 tasks done
surli opened this issue Apr 18, 2018 · 7 comments
Closed
4 tasks done

regression: Spoon-based projects broken because of positions #1970

surli opened this issue Apr 18, 2018 · 7 comments
Labels

Comments

@surli
Copy link
Collaborator

surli commented Apr 18, 2018

I just put a label "breaking_pr" on #1964 because it seems some projects based on Spoon has been broken due to this PR. I'm not sure that this PR intended to have a breaking behaviour for clients, but it's obviously the case. I open the issue here because the 4 concerned projects are tested in the Spoon CI to ensure that the snapshots are not breaking things.

The concerned projects are the following:

Nopol and gumtree are both broken using last snapshot of Spoon returning java.lang.UnsupportedOperationException: PartialSourcePosition only contains a CompilationUnit.
Complete Jenkins logs for Nopol: https://ci.inria.fr/sos/job/nopol/88/console
For gumtree: https://ci.inria.fr/sos/job/gumtree-spoon-ast-diff/506/console

Then we have Spooet which seems broken because of changes on the visibility of reset method on DefaultJavaPrettyPrinter: I'm not quite sure if it's coming from #1964 or not. Complete Jenkins log: https://ci.inria.fr/sos/job/spooet/494/console

Finally NPEFix seems to compute diff differently since last commits. Here again the log: https://ci.inria.fr/sos/job/npefix/460/console

WDYT @monperrus @tdurieux @pvojtechovsky are those bugs or is it a normal regression due to a major change?

@surli surli added the bug label Apr 18, 2018
@surli surli changed the title Spoon-based project broken Spoon-based projects broken Apr 18, 2018
@monperrus
Copy link
Collaborator

monperrus commented Apr 19, 2018 via email

@monperrus monperrus changed the title Spoon-based projects broken regression: Spoon-based projects brokenbecause of positions Apr 19, 2018
@monperrus monperrus changed the title regression: Spoon-based projects brokenbecause of positions regression: Spoon-based projects broken because of positions Apr 19, 2018
@monperrus
Copy link
Collaborator

gumtree-spoon fixed

The reason was that Jenkins did not take the latest snaptshot. Add mvn -U dependency:resolve in the job.

@monperrus
Copy link
Collaborator

npefix also fixed, see https://ci.inria.fr/sos/job/npefix/

Thanks @tdurieux

@monperrus
Copy link
Collaborator

nopol fixed, see https://ci.inria.fr/sos/job/nopol/

thanks @tdurieux

@zqudm
Copy link

zqudm commented Sep 28, 2022

When i use spoon-core-6.0.0-jar-with-dependencies.jar, my program works well. However, when i use spoon-core-9.2.0-beta-8-jar-with-dependencies.jar, a failure occurred, that is,

Exception in thread "main" java.lang.UnsupportedOperationException: PartialSourcePosition only contains a CompilationUnit

How to fix this error? Thanks !

@tdurieux
Copy link
Collaborator

@zqudm
You should probably open a new issue

@zqudm
Copy link

zqudm commented Sep 28, 2022

@tdurieux Ok.

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

Successfully merging a pull request may close this issue.

4 participants