Platform is the Problem/A test by Thijs

From XPUB & Lens-Based wiki
Revision as of 21:59, 6 November 2023 by Thijshijsijsjss (talk | contribs) (Add log of PitP setup process)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Last Thursday (2023-11-02), Riviera informed me that Platform is the Problem has been made publicly available for contribution via a Git repo, and asked me if I could give some feedback on the workflow presented in the readme. This is a log of that process.

2023-11-02

17:12: cloned the Git repo.

2023-11-06

21:23: Started reading the Readme. Conveniently, I am using a Linux distribution, so I will use the commands presented in the Readme file.

21:25: I do not have fish installed on my machine (I'm sorry Riviera). I am using bash intsall-context.fish instead of fish install-context.fish. No problems so far!

21:30: Running bash install-fonts.sh seems to download and install the fonts. However, I do get the following messages:

install-fonts.sh: line 27: mtxrun: command not found
install-fonts.sh: line 28: mtxrun: command not found
install-fonts.sh: line 29: mtxrun: command not found
install-fonts.sh: line 30: mtxrun: command not found

For now, I'll continue with the compilation step. 21:32: Running bash compile.fish. I get the following error message:

compile.fish: line 29: syntax error near unexpected token `cd'

compile.fish: line 29: `    cd $feature'

21:34: I checked for weird whitespace characters like carriage returns using cat -v compile.fish. Seems fine to me.

21:42: I have changed the for-loop syntax by adding do and repacing end with done:

27 cd ./src
28 for feature in $features;
29 do
30     cd $feature;
31     context --run --purgeall $feature.mkxl;
32     cd ..;
33 done
34 

21:44: The error seems to be resolved. A new one has appeared:

compile.fish: line 35: context: command not found

21:46: When reading the error message, I recalled the readme suggesting to add the executables to my path variables. I have done so with the command provided by the ConText installation text:

export PATH=/home/thijs/Applications/context/tex/texmf-linux-64/bin:$PATH

21:47: I can now perform bash compile.fish! It returns a fatal error:

You injected something that confused the parser, maybe by using some Lua call.
 mtx-context     | fatal error: return code: 1

21:51: By lsing, I've found that there are files in src. When using open src/platform-is-the-problem I get an error message:

bash: open: command not found

I often use Firefox to view pdf, so I use firefox platform-is-the-problem.pdf. This opens the file just fine! However, as expected, it just says 'error'.

21:57: I'm taking a look at the ConText code, but I'm pretty tired. I think it will be better to look into this with Riviera tomorrow.

21:58: Thijs out.