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

Characters appearing at the end of some commands #16

Closed
Arcensoth opened this issue Mar 20, 2019 · 7 comments
Closed

Characters appearing at the end of some commands #16

Arcensoth opened this issue Mar 20, 2019 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@Arcensoth
Copy link
Owner

Arcensoth commented Mar 20, 2019

image

@Arcensoth Arcensoth added the bug Something isn't working label Mar 20, 2019
@Arcensoth Arcensoth self-assigned this Mar 20, 2019
@Arcensoth
Copy link
Owner Author

Cannot reproduce. Pinging @misode for more info...

@Arcensoth Arcensoth added the help wanted Extra attention is needed label Mar 25, 2019
@misode
Copy link

misode commented Mar 25, 2019

I have a Windows OS. The issue appears for me in some mcfunction files on the GitHub site.
example file that doesn't reproduce this issue
example file that does reproduce the issue

@Arcensoth Arcensoth removed the help wanted Extra attention is needed label Mar 25, 2019
Arcensoth added a commit that referenced this issue Apr 13, 2019
This reverts commit e1f07ad.
@Arcensoth Arcensoth reopened this Apr 13, 2019
@Arcensoth
Copy link
Owner Author

Arcensoth commented Apr 13, 2019

At some point - probably as a side-effect of an earlier fix - I must have fixed the trailing arguments being highlighted as errors, but the ^M is a slightly different red and I don't think it's a problem with the syntax highlighter. Here's some research:

It looks like people might be committing files with CRLF and then GitHub decides to force-highlight the carriage returns.

We'll see how the next Linguist update handles the affected files and re-open if it's clear there's more to be done here.

@Arcensoth
Copy link
Owner Author

An update, for posterity:

GitHub Linguist has been updated, and is now running v0.13.0 of language-mcfunction.

As expected, the trailing arguments are being highlighted properly but the ^M characters remain:

https://github.com/Gamemode4Dev/GM4_Datapacks/blob/master/gm4_phantom_scarecrows/data/phantom_scarecrows/functions/main.mcfunction#L2

Like I mentioned in my last comment, I'm not confident that this is a problem with the grammar itself but instead that people are committing carriage returns to mcfunction files. It may be the grammar's fault that these characters are being highlighted, but after some testing (via github-lightshow) I was unable to remove these characters by any means.

Until I have more definitive information about the problem and/or people reporting it, I'm going to work under the assumption that this is out of the grammar's control.

@Arcensoth
Copy link
Owner Author

Re-opening because this is still a problem and it's probably something that can be fixed with some effort.

@Arcensoth Arcensoth reopened this Dec 20, 2019
@Arcensoth
Copy link
Owner Author

I should really create a new issue for this.

@Arcensoth
Copy link
Owner Author

(See #32 for a new report focused on the line-endings specifically.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants