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

Find-dialog remnants after macro execution, macOS #4671

Closed
JairoMartinezA opened this issue Dec 13, 2022 · 9 comments
Closed

Find-dialog remnants after macro execution, macOS #4671

JairoMartinezA opened this issue Dec 13, 2022 · 9 comments

Comments

@JairoMartinezA
Copy link

Hi Alex,

If you can replicate this issue:

I have the next text extract:

{"Estatus":1,"Mensaje":"{\"idServicio\":\"4182223\",\"tripnumber\":\"10786\"}"}

And I have a macro with these replace commands:

{
    "ver": "20151204",
    "list": [
        {
            "id": 89825,
            "nm": "CleanJSON",
            "rec": "",
            "evl": [
                "ed.cmd(cmds.cmd_FinderAction,'repall\\x01\\\\\"\\x01\"\\x01')",
                "ed.cmd(cmds.cmd_FinderAction,'repall\\x01:\"{\"\\x01:{\"\\x01')",
                "ed.cmd(cmds.cmd_FinderAction,'repall\\x01\":\"[{\\x01\":[{\\x01')",
                "ed.cmd(cmds.cmd_FinderAction,'repall\\x01]\"}\\x01]}\\x01')",
                "ed.cmd(cmds.cmd_FinderAction,'repall\\x01}\"}\\x01}}\\x01')"
            ]
        }
    ],
    "dlg_prs": {},
    "tm_ctrl": {
        "rp_ctrl": 300,
        "tm_wait": 10
    }
}

After the macro execution, CudaText paints this:

image

@Alexey-T
Copy link
Owner

did not repro on linux. seems the Find dlg remnants? what if you make option "find_separate_form":true ?

@JairoMartinezA
Copy link
Author

Correct, with that setting, the "issue" dissapears.

@Alexey-T
Copy link
Owner

btw, I dont see that Find dlg is showing by itself on macro running (in debugger). did you have Find dlg shown before macro run? did it hide by itself?

@Alexey-T Alexey-T changed the title Painting is wrong after macro execution Find-dialog remnants after macro execution, macOS Dec 13, 2022
@Alexey-T Alexey-T added the bug label Dec 13, 2022
@JairoMartinezA
Copy link
Author

No, the Find Dialog starts as hidden.

@Alexey-T
Copy link
Owner

Original issue - is it still here? Maybe Lazarus changes fixed it?

@JairoMartinezA
Copy link
Author

Hi Alex,

The issue is still present. Internally my macro makes some replaces:

# CleanJSONFormat [Shift+Meta+Alt+L]
ed.cmd(cmds.cmd_FinderAction,'repall\x01\\"\x01"\x01')
ed.cmd(cmds.cmd_FinderAction,'repall\x01:"{"\x01:{"\x01')
ed.cmd(cmds.cmd_FinderAction,'repall\x01":"[{\x01":[{\x01')
ed.cmd(cmds.cmd_FinderAction,'repall\x01]"}\x01]}\x01')
ed.cmd(cmds.cmd_FinderAction,'repall\x01}"}\x01}}\x01')
app.app_proc(app.PROC_EXEC_PLUGIN, 'cuda_fmt,format,')

And indeed, is related to the Find/Replace dialog

@Alexey-T
Copy link
Owner

Alexey-T commented Jan 2, 2025

Hi @rich2014, sorry to bother, but I don't have Mac setup yet. can you reproduce the issue in CudaText with Macros plugin? (with specified macros which calls CudaFormatter plugin).

@JairoMartinezA
Copy link
Author

Alex, in my case, in the latest builds of CudaText, I cannot see the error. I just checked right now and I don't see the error.

@Alexey-T
Copy link
Owner

Alexey-T commented Jan 2, 2025

So it was fixed in the meantime, in Lazarus... Closing..

@Alexey-T Alexey-T closed this as completed Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants