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

while keyword says 'At top level' #778

Open
sleetdrop opened this issue Jan 18, 2024 · 2 comments
Open

while keyword says 'At top level' #778

sleetdrop opened this issue Jan 18, 2024 · 2 comments

Comments

@sleetdrop
Copy link

sleetdrop commented Jan 18, 2024

When I input

<?php

while

then type space or ( the cursor doesn't move, and says 'At top level' in the echo area.

If input while in a function or method, it works.
Is this related default PSR style or sth?

I am using emacs 29.1 and php-mode 20231217.1125 from melpa

@zonuexe
Copy link
Member

zonuexe commented Jan 19, 2024

@sleetdrop
Thanks for the report.

I still don't understand the situation, so could you please explain the following points?

  • What behavior did you expect?
  • What unexpected behavior occurred as a result of this operation?

It may be helpful to provide the output of M-x php-mode-debug to resolve the issue.

I still haven't determined which function outputs the "At top level" message. If it is an error, it would be helpful to attach the backtrace output by M-x toggle-debug-on-error to help identify the problem.

Or, if you are able to record a video of your screen, please attach it. This will help us to quickly understand the situation.

We look forward to hearing any additional information.

@sleetdrop
Copy link
Author

I expect to write a php while statement block, but the cursor hangs there.
here is the screen recording

Screen.Recording.2024-01-19.at.14.06.49.mov

and I saw the following message in *Message* buffer
Debug on Error enabled globally
c-append-to-state-cache: At top level [9 times]

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