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

Support for parsing several files in parallel #57

Open
DanielBaciu opened this issue Oct 6, 2021 · 0 comments
Open

Support for parsing several files in parallel #57

DanielBaciu opened this issue Oct 6, 2021 · 0 comments

Comments

@DanielBaciu
Copy link

Hi,

We have many files to process each day, therefore we want to start several processes to parse them in parallel.

When using one process we have no issue, but when we start few we get several kind of errors:

  • Invalid token in Proparse listing file. (followed by different token and line)
  • ArrayIndexOutOfBoundsException

I have impression that here are some fixed name files created by the proparse while processing source file. When running multiple processes these may be overwritten by other process, which generates this issue.

We are using proparse.dll version 4.1.0.1219.

Original Exception: Invalid token in Proparse listing file. Token: m Line: 262
org.prorefactor.refactor.RefactorException: Invalid token in Proparse listing file. Token: m Line: 262
at org.prorefactor.macrolevel.ListingParser.parse(ListingParser.java:259)
at org.prorefactor.treeparser.ParseUnit.parse(ParseUnit.java:272)
at org.prorefactor.treeparser.ParseUnit.parse(ParseUnit.java:226)
at org.prorefactor.treeparser.ParseUnit.treeParser01(ParseUnit.java:348)
at cli.Progress.ClrBridge.ClrApi.InvokeMethod(Unknown Source)

Original Exception: null
java.lang.ArrayIndexOutOfBoundsException
at org.prorefactor.macrolevel.ListingParser.parse(ListingParser.java:236)
at org.prorefactor.treeparser.ParseUnit.parse(ParseUnit.java:272)
at org.prorefactor.treeparser.ParseUnit.parse(ParseUnit.java:226)
at org.prorefactor.treeparser.ParseUnit.treeParser01(ParseUnit.java:348)
at cli.Progress.ClrBridge.ClrApi.InvokeMethod(Unknown Source)

DanielBaciu pushed a commit to DanielBaciu/proparse that referenced this issue Oct 7, 2021
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

1 participant