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

ValueError: Unexpected CONTROL '\MessageBreak' in file svjour3.cls (line 130, column 1). #37

Open
suvojit-0x55aa opened this issue Jan 24, 2021 · 2 comments

Comments

@suvojit-0x55aa
Copy link

Below is the whole log:

Traceback (most recent call last):
  File "/Users/shin/miniconda3/envs/latex_env/bin/flap", line 8, in <module>
    sys.exit(main())
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/ui.py", line 102, in main
    Controller(OSFileSystem(), Display(sys.stdout, verbose)).run(tex_file, output)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/ui.py", line 43, in run
    request.execute()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/engine.py", line 79, in execute
    flattened = self._rewrite(self.read_root_tex, str(self.root_tex_file.resource()))
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/engine.py", line 88, in _rewrite
    return parser.rewrite()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 78, in rewrite
    result += self._rewrite_one()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 86, in _rewrite_one
    return self._evaluate_one()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 138, in _evaluate_one
    return self.evaluate_command(str(self._next_token))
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 164, in evaluate_command
    return macro.invoke(self)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/macros.py", line 124, in invoke
    return self._execute(parser, invocation)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/macros.py", line 207, in _execute
    self._flap.relocate_dependency(class_name, invocation)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/engine.py", line 109, in relocate_dependency
    self._rewrite(file.content(), file.fullname(), symbol_table)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/engine.py", line 88, in _rewrite
    return parser.rewrite()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 78, in rewrite
    result += self._rewrite_one()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 86, in _rewrite_one
    return self._evaluate_one()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 138, in _evaluate_one
    return self.evaluate_command(str(self._next_token))
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 164, in evaluate_command
    return macro.invoke(self)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/macros.py", line 123, in invoke
    invocation = self._parse(parser)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/macros.py", line 129, in _parse
    self._capture_arguments(parser, invocation)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/macros.py", line 144, in _capture_arguments
    value = parser._evaluate_until(lambda token: token.has_text(next_token._text))
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 153, in _evaluate_until
    tokens += self._evaluate_one()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 136, in _evaluate_one
    return self._evaluate_group()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 146, in _evaluate_group
    tokens = self._evaluate_until(lambda token: token.ends_a_group)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 153, in _evaluate_until
    tokens += self._evaluate_one()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 138, in _evaluate_one
    return self.evaluate_command(str(self._next_token))
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 164, in evaluate_command
    return macro.invoke(self)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/macros.py", line 123, in invoke
    invocation = self._parse(parser)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/macros.py", line 129, in _parse
    self._capture_arguments(parser, invocation)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/macros.py", line 203, in _capture_arguments
    invocation.append_argument("class", parser.capture_group())
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 203, in capture_group
    tokens = self._accept(lambda token: token.begins_a_group)
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 109, in _accept
    self._raise_unexpected_token()
  File "/Users/shin/miniconda3/envs/latex_env/lib/python3.6/site-packages/flap/latex/parser.py", line 118, in _raise_unexpected_token
    raise ValueError(error)
@fchauvel
Copy link
Owner

Thanks for the feedback. I will try to take a look later this week if time allows. Note that I am not maintaining FLaP actively. I'll keep you posted.

@fchauvel fchauvel pinned this issue Mar 8, 2021
@fchauvel
Copy link
Owner

fchauvel commented Mar 8, 2021

Sorry for this late reply. Took me some time to refresh the FLaP project ;-)

I am not able to reproduce the crash you describe. Would you mind sharing more details about your LaTeX project?

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