Skip to content

--profile uses wrong prefix to find template.html #567

@zopsicle

Description

@zopsicle

This line uses the MoarVM prefix to find template.html, whereas the file is in fact under the NQP prefix:

https://github.com/perl6/nqp/blob/fd8a7e5f9255d062e230cb2774dbf25c3d254127/src/vm/moar/HLL/Backend.nqp#L618

Error when running with --profile:

Could not locate profiler/template.html; should have been at /nix/store/b74nh0lhimgjpifrxclmgw0m55jakdy6-MoarVM-2019.07/share/nqp/lib/profiler/template.html; outputting sql data instead

If MoarVM and NQP are configured using different prefixes then this file cannot be found when running with --profile.

Example script to find template.html when using my MoarVM and NQP prefixes:

moarvmPrefix=/nix/store/b74nh0lhimgjpifrxclmgw0m55jakdy6-MoarVM-2019.07
nqpPrefix=/nix/store/358djk9pmr1f3ia9272vvkysyvzjgx0a-nqp-2019.07
find $moarvmPrefix -name '*.html'
find $nqpPrefix -name '*.html'

Output:

/nix/store/358djk9pmr1f3ia9272vvkysyvzjgx0a-nqp-2019.07/share/nqp/lib/profiler/template.html

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions