question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On Windows, html report references all css and js from wrong location

See original GitHub issue

Project structure is:

{root}\contracts\Authorization.sol

Running solidity-coverage in {root} folder creates a new folder coverage.

Opening the index.html looks fine: cover1

However when drilling down into the contracts show a html page like: cover2

The location from the css and js file is wrong:

<link rel="stylesheet" href="../../../../../../../../../../prettify.css" />
...
<script src="../../../../../../../../../../prettify.js"></script>

A valid path could be:

<link rel="stylesheet" href="../coverage/prettify.css" />
...
<script src="../coverage/prettify.js"></script>

Is this a known issue?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
StefHcommented, Jan 2, 2018

It’s indeed solved !

All reports are now correctly generated in Solidity-Examples/SmartContracts/SupplyChainLog/Solidity/coverage/contracts folder.

0reactions
cgeweckecommented, Jan 2, 2018

@StefH I believe this should be resolved on latest: 0.4.8. Thanks so much for pursuing this - a Windows user fixed this problem months ago, and we immediately broke it again! Not good.

Please re-open if you continue to see this issue - closing for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling common HTML and CSS problems - MDN Web Docs
CSS has a similar story — you need to check that your property names are spelled correctly, property values are spelled correctly and...
Read more >
Jenkins - HTML Publisher Plugin - No CSS is displayed when ...
After performing these steps my Serenity reports had all images/css rendering properly, including reports from builds which had executed prior to this change....
Read more >
HTML File Paths - W3Schools
A file path describes the location of a file in a web site's folder structure. ... Buy lifetime access to all W3schools Certificates...
Read more >
JavaScript Window Location - W3Schools
The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page.
Read more >
CSS Layout - The position Property - W3Schools
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found