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

Code Editor 2: autocompleting constructor makes pressing enter after typing { move the cursor right instead of making a new line #9457

Open
thennothinghappened opened this issue Feb 18, 2025 — with GM Bug Reporter · 0 comments
Assignees
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached
Milestone

Comments

@thennothinghappened
Copy link

thennothinghappened commented Feb 18, 2025

Description

See attached video and steps below:

ce2-constructor-keyword-makes-enter-move-instead-of-newline-on-brackets.mp4

Steps To Reproduce

  1. Begin typing a constructor. | indicates cursor position:
function Ctor() c|
  1. Autocomplete the constructor keyword. Note that a selection box appears as well:
function Ctor() constructor |
  1. Type a { to begin the scope (CE2 will autocomplete the }):
function Ctor() constructor {|}
  1. Press Enter to expand the scope:
function Ctor() constructor {}|

Notice how all that happens is the cursor is moved over by one.

Expected behaviour, by comparison:

function Ctor() constructor {
    |
}

This does not appear to happen without accepting the autocomplete for constructor.

Which version of GameMaker are you reporting this issue for?

IDE v2024.1300.0.743 Runtime v2024.1300.0.753

Which operating system(s) are you seeing the problem on?

Linux Arch Linux kernel 6.13.2.1

a9f1e0c7-affe-48c1-81c4-91ce4a26e3d1

@gm-bug-reporter gm-bug-reporter bot added ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached labels Feb 18, 2025
@stuckie stuckie moved this from Triage to Todo in Team Workload Feb 19, 2025
@stuckie stuckie added this to the 2024.13 milestone Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached
Projects
Status: Todo
Development

No branches or pull requests

3 participants