Giter Club home page Giter Club logo

Comments (8)

boyter avatar boyter commented on August 23, 2024

Oh, the issue would be because you are specifying the file. If you remove cmscgats.c from your argument it should work. EG.

$ wget https://raw.githubusercontent.com/corretto/corretto-8/da7e192d1f7a73340cb1ec9b2f08645f8d189769/src/jdk/src/share/native/sun/java2d/cmm/lcms/cmscgats.c
--2019-02-12 09:48:13--  https://raw.githubusercontent.com/corretto/corretto-8/da7e192d1f7a73340cb1ec9b2f08645f8d189769/src/jdk/src/share/native/sun/java2d/cmm/lcms/cmscgats.c
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.28.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.28.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 74850 (73K) [text/plain]
Saving to: ‘cmscgats.c’

cmscgats.c                                               100%[==================================================================================================================================>]  73.10K  --.-KB/s    in 0.02s

2019-02-12 09:48:13 (3.01 MB/s) - ‘cmscgats.c’ saved [74850/74850]


# bboyter @ SurfaceBook2 in ~/Go/src/github.com/boyter/scc/examples/bug on git:master x [9:48:13]
$ scc cmscgats.c
───────────────────────────────────────────────────────────────────────────────
Language                 Files     Lines     Code  Comments   Blanks Complexity
───────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────────────────────────────────────────
Total                        0         0        0         0        0          0
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $0
Estimated Schedule Effort 0.000000 months
Estimated People Required NaN
───────────────────────────────────────────────────────────────────────────────


# bboyter @ SurfaceBook2 in ~/Go/src/github.com/boyter/scc/examples/bug on git:master x [9:48:19]
$ scc
───────────────────────────────────────────────────────────────────────────────
Language                 Files     Lines     Code  Comments   Blanks Complexity
───────────────────────────────────────────────────────────────────────────────
C                            1      2819     2402       140      277        143
───────────────────────────────────────────────────────────────────────────────
Total                        1      2819     2402       140      277        143
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop $67,794
Estimated Schedule Effort 5.517542 months
Estimated People Required 1.455479
───────────────────────────────────────────────────────────────────────────────

Having file arguments is something I should look into adding though. Encoding type should be ignored by scc generally as it just looks at the bytes.

from scc.

pombredanne avatar pombredanne commented on August 23, 2024

@boyter Thanks. My bad! being able to effectively handle a single file would be quite useful indeed. We can use this ticket to track this if this works for you and I renamed the ticket.

from scc.

pombredanne avatar pombredanne commented on August 23, 2024

@boyter Ben, see the proposed patch #55 ... and note that I am a total Go noob.

from scc.

boyter avatar boyter commented on August 23, 2024

Ill have a look as soon as I recover from the surgery I am about to go though. Should be a few days.

from scc.

pombredanne avatar pombredanne commented on August 23, 2024

@boyter Ben... no rush, get well!

from scc.

boyter avatar boyter commented on August 23, 2024

Seems @dbaggerman is taking care of this one. Ill leave it in his capable hands and spend more time enjoying my pain.

from scc.

pombredanne avatar pombredanne commented on August 23, 2024

@boyter thanks to @dbaggerman we are all set. This is all merged. Thanks++

from scc.

boyter avatar boyter commented on August 23, 2024

Excellent! Thank you @dbaggerman

from scc.

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.