GithubHelp home page GithubHelp logo

Comments (3)

AlDanial avatar AlDanial commented on June 26, 2024

Have you tried with single quotes?

On my Windows 11 computer in a PowerShell terminal, the command works with either single or double quotes around Fortran 90.

from cloc.

chscott avatar chscott commented on June 26, 2024

I suspect you're using the old Windows PowerShell and not the modern PowerShell 7.x.

Windows PowerShell

PS C:\Users\Chad\src\tmc-tools> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.22621.2506
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.2506
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1


PS C:\Users\Chad\src\tmc-tools> cloc --force-lang="Visual Basic",lss .
    3672 text files.
    3470 unique files.
     241 files ignored.

github.com/AlDanial/cloc v 2.00  T=6.99 s (496.4 files/s, 65366.2 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PowerShell                    2158          47632          87990         271818
Markdown                       200          11164              0          24177
Visual Basic                    78           1667            899           6345
CSV                            966              0              0           2208
Bourne Shell                     5            219            251           1154
Text                            55            363              0            839
JSON                             5              0              0             90
INI                              1             12              0             82
C                                1              8              0             30
YAML                             1              0              0              6
-------------------------------------------------------------------------------
SUM:                          3470          61065          89140         306749
-------------------------------------------------------------------------------

PowerShell 7.x

C:\Users\Chad\src\tmc-tools> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

C:\Users\Chad\src\tmc-tools> cloc --force-lang="Visual Basic",lss .
    3672 text files.
    3392 unique files.
     319 files ignored.

1 error:
Unable to read:  basic",lss

github.com/AlDanial/cloc v 2.00  T=7.49 s (452.7 files/s, 59798.5 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PowerShell                    2158          47632          87990         271818
Markdown                       200          11164              0          24177
CSV                            966              0              0           2208
Bourne Shell                     5            219            251           1154
Text                            55            363              0            839
JSON                             5              0              0             90
INI                              1             12              0             82
C                                1              8              0             30
YAML                             1              0              0              6
-------------------------------------------------------------------------------
SUM:                          3392          59398          88241         300404
-------------------------------------------------------------------------------
C:\Users\Chad\src\tmc-tools> cloc --force-lang="Visual Basic,lss" .
    3672 text files.
    3470 unique files.
     241 files ignored.

github.com/AlDanial/cloc v 2.00  T=5.93 s (585.1 files/s, 77051.5 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
PowerShell                    2158          47632          87990         271818
Markdown                       200          11164              0          24177
Visual Basic                    78           1667            899           6345
CSV                            966              0              0           2208
Bourne Shell                     5            219            251           1154
Text                            55            363              0            839
JSON                             5              0              0             90
INI                              1             12              0             82
C                                1              8              0             30
YAML                             1              0              0              6
-------------------------------------------------------------------------------
SUM:                          3470          61065          89140         306749
-------------------------------------------------------------------------------

from cloc.

AlDanial avatar AlDanial commented on June 26, 2024

Your solution is good, thank you.

from cloc.

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.