Coder Social home page Coder Social logo

Comments (7)

bcoe avatar bcoe commented on August 15, 2024

👋 hey @tonysoft sorry for the slow response, I got to the point near the end of this year where I was literally 2000+ tickets behind in open-source.

This is odd, the raw output itself looks reasonable; perhaps you could create a testing repo with a minimal reproduction for us to dig into.

from c8.

tonysoft avatar tonysoft commented on August 15, 2024

from c8.

shinnn avatar shinnn commented on August 15, 2024

I will isolate this to a simple test case and create a repo

Friendly ping @tonysoft

from c8.

bcoe avatar bcoe commented on August 15, 2024

@tonysoft closing this as inactive, please feel free to reopen if you're able to provide a repo demonstrating the issue.

There's been quite a bit of work on c8 over the past year, so you might also try the latest version.

from c8.

kevinbarabash avatar kevinbarabash commented on August 15, 2024

I'm running into the same issue. The text reporter works fine, but the html reporter generates a .json file instead of html output. I'm using version 7.1.0 of c8.

from c8.

kevinbarabash avatar kevinbarabash commented on August 15, 2024

I'm also getting some other errors in the output, e.g.

file: /Users/kevinbarabash/zippers/output/Test.Spec.Summary/index.js error: Error: Error parsing mappings (code 1): the mappings contained a negative line, column, source index, or name index
    at BasicSourceMapConsumer._parseMappings (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js:360:13)
    at BasicSourceMapConsumer._getMappingsPtr (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js:315:12)
    at _wasm.withMappingCallback (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js:510:14)
    at Object.withMappingCallback (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/wasm.js:95:11)
    at BasicSourceMapConsumer.originalPositionFor (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/node_modules/source-map/lib/source-map-consumer.js:508:16)
    at originalPositionTryBoth (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/lib/source.js:173:30)
    at CovSource.offsetToOriginalRelative (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/lib/source.js:56:19)
    at V8ToIstanbul._maybeRemapStartColEndCol (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/lib/v8-to-istanbul.js:167:84)
    at block.ranges.forEach (/Users/kevinbarabash/zippers/node_modules/v8-to-istanbul/lib/v8-to-istanbul.js:92:18)
    at Array.forEach (<anonymous>)

It's possible that these are interfering with c8's ability to generate the HTML report. I'm going to try to dig into the sourcemap issue sometime this week.

from c8.

kevinbarabash avatar kevinbarabash commented on August 15, 2024

I recompiled my project without sourcemaps and I'm still running into the same issue with a .json file for output instead of HTML.

from c8.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.