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

scroll_past_end makes Build Results hide content sometimes #6619

Open
ZeikJT opened this issue Feb 14, 2025 · 0 comments
Open

scroll_past_end makes Build Results hide content sometimes #6619

ZeikJT opened this issue Feb 14, 2025 · 0 comments

Comments

@ZeikJT
Copy link

ZeikJT commented Feb 14, 2025

Description of the bug

Unsure exactly what causes it, but if I run a zig file on a fresh open it has scroll_past_end enabled on the build results panel which means all I see by default is [Finished in 851ms] for example and I have to scroll up to see the printed data.

I know this isn't a native build system, but the setup is ridiculously simple: https://github.com/ziglang/sublime-zig-language/blob/master/Build%20Systems/Zig.sublime-build

I couldn't reproduce this issue with a native build system yet, but I've only tried python and lua so far.

Image
Image

Steps to reproduce

Doesn't seem like it's possible to run a custom package build system in safe mode? Here are the steps normally:

  1. Have zig installed (https://ziglang.org/)
  2. Open Sublime Text fresh
  3. Install Package Control
  4. Install Zig Language (https://github.com/ziglang/sublime-zig-language)
  5. Create a zig file, simple hello world example:
const std = @import("std");

pub fn main() !void {
    const stdout = std.io.getStdOut().writer();
    try stdout.print("{s}\n", .{"Hello World!"});
}
  1. Run it via Build With: Zig - Run file

Expected behavior

Build Results should clearly show output from the program.

Actual behavior

Need to scroll up to see results.

Sublime Text build number

4192

Operating system & version

Windows 11 Home (10.0.22631)

(Linux) Desktop environment and/or window manager

No response

Additional information

If I toggle the scroll_past_end setting I see it also toggle the scroll_past_end functionality in the Build Results panel, very strange behavior.

Also, if I run a native build system like python/lua it removes the scroll_past_end styling from the Build Results and fixes it for the remainder of the Sublime Text session. But once I close and reopen the program it can get into the bad state if I only run zig builds.

OpenGL context information


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