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

Tab character causes SDLBackend compile error #118

Closed
raddari opened this issue Sep 7, 2024 · 2 comments · May be fixed by #119
Closed

Tab character causes SDLBackend compile error #118

raddari opened this issue Sep 7, 2024 · 2 comments · May be fixed by #119

Comments

@raddari
Copy link

raddari commented Sep 7, 2024

zig version: 0.14.0-dev.1457+7e3180487
dvui hash: 5be78609398c9f83f2c2dd87e63f239a017cddd7

I followed the sdl-standalone example, but when building I receive the following error:

/home/<>/.cache/zig/p/1220733888d9c304e1e3476ab48698dad0ee3c137a94018adc8665a5dbfb81801c87/src/backends/SDLBackend.zig:132:17: error: expected statement, found 'invalid token'
                //*customization: -color
                ^~~~~~~~~~~~~~~~~~~~~~~~

This line and the next two contain tab characters. Replacing them with spaces fixes the issue.

raddari added a commit to raddari/dvui that referenced this issue Sep 7, 2024
Fixes compilation error described in david-vanderson#118. Multiple spaces added to
preserve indentation.
@raddari
Copy link
Author

raddari commented Sep 7, 2024

Seems to be some breaking changes from 0.14.0-dev. Can't pin the exact zig commit, but it seems hard tabs are a compile error now :)

@david-vanderson
Copy link
Owner

Closing this issue since the draft PR will take it from here.

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

Successfully merging a pull request may close this issue.

2 participants