eclipse-shellwax / shellwax

Shell script editor plugin for Eclipse
https://marketplace.eclipse.org/content/shellwax
Eclipse Public License 2.0
17 stars 12 forks source link

shellwax hangs when can't find language server #89

Closed dantheperson closed 9 months ago

dantheperson commented 1 year ago

Hello,

I have installed shellwax from the market place, but whenever i have a shell script open eclipse hangs for 20 seconds and repeatadly like every time the editor receieves the focus

ShellWax: 1.2.2.20221209-1429 Eclipse: 2022-12 (4.26.0) Ubuntu: 20.04.05

While it's hanging, the logs fill up with repeated messages:

Error: Cannot find module '/home/daniel/.local/share/shellwax/4.1.0/node_modules/.bin/bash-language-server'
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.12.1

It doesn't mention needing to install the language server in the pre-reqs, is that correct? ShellWax should already include the language server?

akurtakov commented 1 year ago

ShellWax installs bash ls itself. Is there any content in /home/daniel/.local/share/shellwax ? Is this the user you run shellwax with?

dantheperson commented 1 year ago

Yes thats the user i run eclipse under. There's only empty folders in there:

daniel@danski:~/.local/share/shellwax$ ls -l
total 1
drwxrwxr-x 3 daniel daniel 3 Feb  1 17:37 4.1.0
daniel@danski:~/.local/share/shellwax$ ls -l 4.1.0/
total 1
drwxrwxr-x 2 daniel daniel 2 Feb  1 17:37 node_modules
daniel@danski:~/.local/share/shellwax$ ls -l 4.1.0/node_modules/
total 0
dantheperson commented 1 year ago

sorry should have done that with hidden folders too

daniel@danski:~/.local/share/shellwax$ ls -la
total 11
drwxrwxr-x  3 daniel daniel  3 Feb  1 17:37 .
drwxr-xr-x 29 daniel daniel 33 Feb  1 17:37 ..
drwxrwxr-x  3 daniel daniel  3 Feb  1 17:37 4.1.0
daniel@danski:~/.local/share/shellwax$ ls -la 4.1.0/
total 3
drwxrwxr-x 3 daniel daniel 3 Feb  1 17:37 .
drwxrwxr-x 3 daniel daniel 3 Feb  1 17:37 ..
drwxrwxr-x 2 daniel daniel 2 Feb  1 17:37 node_modules
daniel@danski:~/.local/share/shellwax$ ls -la 4.1.0/node_modules/
total 2
drwxrwxr-x 2 daniel daniel 2 Feb  1 17:37 .
drwxrwxr-x 3 daniel daniel 3 Feb  1 17:37 ..
akurtakov commented 1 year ago

would you please delete /home/daniel/.local/share/shellwax and restart eclipse? Shellwax is supposed to install the plugin in that case.

dantheperson commented 1 year ago

Hi,

Yes i have tried that already, but same result.

On Thu, 2 Feb 2023 at 00:25, Александър Куртаков @.***> wrote:

would you please delete /home/daniel/.local/share/shellwax and restart eclipse? Shellwax is supposed to install the plugin in that case.

— Reply to this email directly, view it on GitHub https://github.com/eclipse/shellwax/issues/89#issuecomment-1411902430, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGIY65UJKMSFTZOEWAJ7W3WVJBY3ANCNFSM6AAAAAAUNH2XEA . You are receiving this because you authored the thread.Message ID: @.***>

-- Sent from my computer

akurtakov commented 9 months ago

Do you still face this issue?

akurtakov commented 9 months ago

Closing as no one else reported the issue and ShellWax ships optional nodejs feature that would fully satisfy its needs.