-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VSCodeCounter] There was no target file. #26
Comments
I receive the same issue. Tried a multitude of folders, different languages (lua, php, js) Also works if you toggle live counting in an open file, would like to use this primarily with php, lua. Tried after numerous restarts, as well as toggling
|
I aswell got this issue with version 1.44.0. This extension has been quite useful and it is very unfortunate it stopped working in the latest version of VSCode. Hopefully this could be fixed. |
Just an update. I got it to work finally. I had to remove my workspace completely, create a brand new one, and re-add the desired folder to that workspace , then it allowed me to get a report. If I re-open my original saved workspace and try to count that again, the error pops up. So it appears to only function properly if you make a brand new workspace and add the folders you need to it. |
@im-richard, I tried on your way but not working and the programming language is PHP and Ruby. I remove and reinstall the plugin then add a new workspace still Not Working. |
Odd. Yeah I tried it about 5 different ways, and the only way that seemed to work was to start with a brand new workspace with nothing added. Then add the project folder you're going to be working with, then I right clicked on the root folder or sub-root (don't remember) and had it calculate the line count and it came right up unexpectedly. Try setting I tried a bunch of different ways and that's the only one that worked. If I opened up my old workspace and tried to count again; it fails with that error. Developer will maybe have to take a look at the code, or possibly has a fix or something we're missing. Also when you create a new workspace; try restarting vscode before adding the folder / and after adding the folder. I don't remember if I did or not. I tried a "reload" and that didn't seem to have any effect. I spent over an hour debugging before writing my post here, and then another 30 minutes afterward before I got it to function. |
@im-richard, Thank you so much for your reply. It is working now on Vscode version 1.44.0. I update my Vscode from version 1.43.2. |
Nice. Yeah I noticed you were outdated, and figured you may have thought of that if you saw my print of what I was running. At least we can use it for now. Glad you got it working. 👍 |
Sorry for the delay in replying. Check to see if the failed code is not in .gitignore.Check the languages currently available
Look at the debug log.
|
VSCode 1.46.1 Check available languages for me gives
in the report I get 0 lines of code and it tells me that all my xml, php, json, css, less and js files are unsupported. e.g
OK, theres my clue. Check your extensions in the section "Feature Contributions". You need to have an extension that provides the relevant Languages section and it needs installing on the remote end of you are using remote mode. e.g to support xml counting I needed the following installed to WSL. Can't find any extensions that provides PHP or less though. |
I recently noticed that the VSCodeCounter doesn't work properly with "VScode Remote Development". We are currently working through a trial and error process to find a solution. |
Yeah. It seems the list of languages when in remote mode is small by default. Installing some extensions into the remote helps but no where near the 50ish languages in the screenshot in the help for the extension. |
Ver. 2.0.0 released. I modified VSCode Counter's ability to collecting VSCode language extensions so that it can be called as an independent function. The idea is to collect the information once in the local environment and store it so that it can be used remotely. Please try the following;
|
:) Working perfectly for me now in remote mode. 53 languages detected instead of 13. :) |
Thanks for your effort |
My Vscode version is 1.43.2. and Programming language is PHP. When I click to "count line in the Directory " is show me this message "[VSCodeCounter] there was no target file." this is an excellent extension, could you please fix the issue.
The text was updated successfully, but these errors were encountered: