Skip to content
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

Does not work on WSL 2.0 remote (Ubuntu) #73

Open
NemoTR opened this issue May 3, 2022 · 5 comments
Open

Does not work on WSL 2.0 remote (Ubuntu) #73

NemoTR opened this issue May 3, 2022 · 5 comments

Comments

@NemoTR
Copy link

NemoTR commented May 3, 2022

image

image

Have to use this plug-in locally.

@GenericallyNamed
Copy link

I'm experiencing this issue as well. When you run "Toggle Real-time Counter Visibility", do you also see a message at the bottom of the window saying "VSCodeCounter:Unsupported"?

@NemoTR
Copy link
Author

NemoTR commented Jun 30, 2022

I'm experiencing this issue as well. When you run "Toggle Real-time Counter Visibility", do you also see a message at the bottom of the window saying "VSCodeCounter:Unsupported"?

No, I don't. I just see ‘VScodeCounter preparing...’

@uctakeoff
Copy link
Owner

uctakeoff commented Sep 28, 2022

see #43 #26

@adiazmendez
Copy link

Hello, I have made several things in order to solve the issue:

  • I have saved the VSCodeCounter configuration using VSCodeCounter: Save the collected language configurations.
  • I have closed the WSL remote connection and then, connected again.
  • I have toggled VSCodeCounter: Toggle Real-time Counter visibility . The message is always VSCodeCounter: Unsupported when dealing with Javascript files. However, it works with other languaje files, like json.
  • The VSCodeCounter extension is installed in WSL instead of local.

My VSCodeCounter config in settings.json for using Javascript files is:

"javascript": {
      "aliases": [],
      "filenames": [],
      "extensions": [],
      "lineComments": [],
      "blockComments": [
        [
          "{/*",
          "*/}"
        ]
      ],
      "blockStrings": [
        [
          "`",
          "`"
        ]
      ],
      "lineStrings": []
    },

It is not still working for Javascript files and I do not know what I am doing wrong with my configuration.

@uctakeoff
Copy link
Owner

VSCodeCounter analyzes code based on information from other language extensions installed in the environment.
If you run it on a WSL, it will only respond to those language extensions that are installed on the WSL.

If you want to use a language extension that is installed locally but not on WSL, you need to extract the necessary information from the local language extension and bring it to the WSL environment.
The mechanism for this is "Save the collected language configurations."

You can run this in your local environment and bring the information you have created to the WSL environment to support it.
Again, look at the following instructions and try different ways to make it work.
https://github.com/uctakeoff/vscode-counter?tab=readme-ov-file#save-language-configurations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants