Comments (11)
looks the problem is that in my extension did define the extension without the dot.
I added the dot in the last commit APerricone/harbourCodeExtension@d306520
from vscode-counter.
VSCodeCounter itself has no language parsing function.
https://marketplace.visualstudio.com/items?itemName=ekon.harbour
I confirmed that it works by installing the above extension.
from vscode-counter.
I'm using this extension for Harbour
https://github.com/APerricone/harbourCodeExtension
I'll try doing a clean installation of VSCode to see if it works.
Regards,
from vscode-counter.
I have make the extension work in one of my computers at work, but at home in my laptop it doesn't work. When I run the extension, the file generates this content:
Date : 2019-11-18 17:08:41
Directory : c:\alanit\develop\fester\prg
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines
Languages
+----------+------------+------------+------------+------------+------------+
| language | files | code | comment | blank | total |
+----------+------------+------------+------------+------------+------------+
+----------+------------+------------+------------+------------+------------+
Directories
+--------------------------------------------------------------+------------+------------+------------+------------+------------+
| path | files | code | comment | blank | total |
+--------------------------------------------------------------+------------+------------+------------+------------+------------+
+--------------------------------------------------------------+------------+------------+------------+------------+------------+
Files
+--------------------------------------------------------------+----------+------------+------------+------------+------------+
| filename | language | code | comment | blank | total |
+--------------------------------------------------------------+----------+------------+------------+------------+------------+
| c:\alanit\develop\fester\prg\Alanit\TRecordBiel.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\TRecordBiel2.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\main.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\tInforme.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\tfsdi.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\trecord.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\ut_brw.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\ut_calend.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\ut_common.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\ut_dbf.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\ut_index.prg | (Unsupported) | -1 | 0 | 0 | -1 |
| c:\alanit\develop\fester\prg\Alanit\ut_index.prg.bak | (Unsupported) | -1 | 0 | 0 | -1 |
...
How can I do for support Harbour files in your extension ?
Regards,
José Luis
from vscode-counter.
The difference is whether the Ignore Unsupported File
option is ON or OFF.
VSCodeCounter refers to the language extension table inside VSCode.
Have you tried the Harbor extension?
from vscode-counter.
I've tried your extensión in 3 computers, in one of them it works but in the others doesn't. All they have installed harbourCodeExtension.
Where can I find the language extension table inside VSCode ?
Regards,
from vscode-counter.
It seems that the setting may not be reflected unless it is restarted.
If not try it.
According to the debug log of the program, the grammar configuration file of the harbor file referenced the following file:
{home dir}\.vscode\extensions\aperricone.harbour-0.9.5\syntaxes\language-configuration.json
(Windows10)
please make sure.
from vscode-counter.
I did was find the cause just now too.
I hope this solves the problem.
from vscode-counter.
Thanks to both for your kind support, I'll try later but I'm sure that now the extensión will work fine.
Regards,
from vscode-counter.
Anyway the result can be incorrect, harbour is a strange language:
The comment starts with //
or with &&
(rarely used i think)
If the line starts with asterisk or the word "note" this line is a comment, unless the line before ends with a semicolon, in this case is the continuous of previous line.
As plus, you can include C source code inside the pragma dump...
So, it is a mess.
Theoretically my or your extension can export an method to manage this extreme case, see https://code.visualstudio.com/api/references/vscode-api#extensions
If the other extension is not installed it returns undefined.
from vscode-counter.
I also encountered this issue. It is better if the dependency issue could be resolved by extension.
from vscode-counter.
Related Issues (20)
- Path is rendered incorrectly HOT 1
- How to block Comments? HOT 4
- Open VSX?
- Support storing collected language elsewhere HOT 5
- Error Loading Webview HOT 1
- Count the files in the top-level as a separate item HOT 2
- Counts documentation comments as code in Julia HOT 1
- New lines in string
- Not exclude dirs HOT 1
- How do I convert to Chinese HOT 1
- Bug : blockComments character in a line of code falsifies the counts HOT 1
- BUG: Unable to correctly count the number of comment lines in the .vue file HOT 2
- Doesn't appear to work when used in a tunnel HOT 2
- Doesn't recognize javascript HOT 1
- Support for `ifdef Compiler Directives HOT 2
- Does not count comments in batch HOT 1
- It seems does not work with remote ssh in ubuntu22.04? Just show there was no target file. HOT 2
- Trailing newline ('\n') character in source code is treated as an extra blank line HOT 6
- 1
- Maximum call stack exceeded when counting very large repo HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-counter.