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

[latexindent.exe] -GCString switch cannot run normally #531

Closed
saxyx opened this issue Mar 24, 2024 · 2 comments
Closed

[latexindent.exe] -GCString switch cannot run normally #531

saxyx opened this issue Mar 24, 2024 · 2 comments
Labels
contribution Thank you to the contributor! github_actions Pull requests that update GitHub Actions code implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix windows-exe

Comments

@saxyx
Copy link
Contributor

saxyx commented Mar 24, 2024

Please provide the following when posting an issue:

GCString.tex code

\begin{table}[H]
\centering
\begin{tblr}{
hlines,
vlines,
cells = {c,m}}
5:30 & 起床 & 12:30~14:00 & 午休 \
6:00~7:00 & 早操 & 14:00~17:30 & 集训 \
7:00~7:50 & 早餐 & 17:30~18:30 & 晚餐 \
7:50~11:00 & 集训 & 19:00~21:00 & 晚自习 \
11:00~12:30 & 午餐 & 23:00 & 熄灯 \
\end{tblr}
\end{table}


If I run latexindent.exe "GCString.tex" -y="defaultIndent: ' '" -GCString -o=++ in cmd, the error message is

Can't locate object method "new" via package "Unicode::GCString" at E:\Personal\Temp\par-6c656e6f766f\cache-915a8c0064c09de5b911dab5529ae5b236f00de7\inc\lib/LatexIndent/AlignmentAtAmpersand.pm line 1789.

You can see rschupp/PAR-Packer#87 for more details.

Solution:

When using pp to package the program in cmd, use set PAR_VERBATIM=1, that is

set PAR_VERBATIM=1 && pp -M Win32::Unicode --addfile="defaultSettings.yaml;lib/LatexIndent/defaultSettings.yaml" --cachedeps=scancache --output latexindent.exe latexindent.pl
@cmhughes
Copy link
Owner

Great, thanks. Can you submit a pull request?

saxyx pushed a commit to saxyx/latexindent.pl that referenced this issue Mar 25, 2024
saxyx pushed a commit to saxyx/latexindent.pl that referenced this issue Mar 26, 2024
…annot run normally"

Macos executable file and Linux executables, also encountered the same problem at cmhughes#531
saxyx added a commit to saxyx/latexindent.pl that referenced this issue Mar 26, 2024
…annot run normally"

Macos executable file and Linux executables, also encountered the same problem at cmhughes#531
saxyx added a commit to saxyx/latexindent.pl that referenced this issue Mar 26, 2024
saxyx added a commit to saxyx/latexindent.pl that referenced this issue Mar 26, 2024
…annot run normally"

Macos executable file and Linux executables, also encountered the same problem at cmhughes#531
saxyx added a commit to saxyx/latexindent.pl that referenced this issue Mar 26, 2024
…annot run normally"

Macos executable file and Linux executables, also encountered the same problem at cmhughes#531
saxyx added a commit to saxyx/latexindent.pl that referenced this issue Mar 26, 2024
cmhughes pushed a commit that referenced this issue Mar 28, 2024
* bug fix "[windows, macos and linux executables] -GCString switch cannot run normally"

#531

* update batch-check.yaml
@cmhughes cmhughes added contribution Thank you to the contributor! github_actions Pull requests that update GitHub Actions code implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix windows-exe labels Mar 28, 2024
@cmhughes
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution Thank you to the contributor! github_actions Pull requests that update GitHub Actions code implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix windows-exe
Projects
None yet
Development

No branches or pull requests

2 participants