No output given
See original GitHub issueDescribe the bug A clear and concise description of what the bug is. I installed jscpd using
npm i -g jscpd
npm i -g @jscpd/html-reporter
npm i -g @jscpd/badge-reporter
and navigated to my root project folder, running the command
jscpd --pattern "src/**/*.ts"
but the output is empty, I only see Detection time:: 0.244ms
I also tried
jscpd -k 10 -l 1
which should definitely find something. As a test I have
console.log("i got a line of code");
console.log("i got a line of code");
in my typescript file.
What’s the problem here? The idea to detect duplicate code is awesome, if it would work 😕
Desktop (please complete the following information):
- OS: Windows
- NodeJS Version [12.18.4]
- jscpd version [3.3.26]
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:10 (5 by maintainers)
Top Results From Across the Web
your program produce no output - python - Stack Overflow
When you use input('') , it takes the number from terminal (at the running time), so your code is OK, just to understand...
Read more >No Output Given : [] - ASKSAGE: Sage Q&A Forum
When there are parameters in the equations (variables which are not variables to-solve-for), I believe SageMath assumes these to be free ...
Read more >Why does the 'which' command in Terminal give no output in ...
On Ubuntu 20.04 with two versions of python installed python seems to be defined. which python has no response, but python opens the...
Read more >No error but still no output - Python - Code with Mosh Forum
Why can't this run and give a pattern output, please help. I am a beginner. def pattern(n): k = 2 * n -...
Read more >Why does this code give no output? - Sololearn
I need to find the sum of the digits in a number. n = int(input()) total = 0 while n > 0: n%10...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi! I have the same problem. Node 14.17.4
In file @jscpd/finder/dist/files.js in function “getFilesToDetect” after patterns.map() I got patterns like [ ‘D:\work\project_name\src/**/*’ ]
So in FastGlob.sync() function “getWorks” const task will contain patterns: [ ‘D:\work\project_name\src//*', '!/snapshots/', '!/node_modules/**’ ]
If in files.js I change const currentPath = fs_extra_1.realpathSync(path) to const currentPath = path; it work good for me.
Maybe it will be helpful for you
hi, I encounter the same issue in analysing vue project, also using Windows but with Node 14.18.0.
can’t solve it.