bash-language-server icon indicating copy to clipboard operation
bash-language-server copied to clipboard

explainshell does not work in VSCode after following setup instructions

Open peterge1998 opened this issue 2 years ago • 4 comments

Code editor

VSCode

Platform

Fedora 37

Version

?

What steps will reproduce the bug?

I started the container using: docker container run --name explainshell --restart always -p 5000:5000 -d spaceinvaderone/explainshell

It becomes reachable on localhost:5000: image

I have set this: image

But code highlighting does not work

How often does it reproduce? Is there a required condition?

No condition

What is the expected behavior?

To show the highlights as in https://user-images.githubusercontent.com/1387653/40897821-1961c830-6772-11e8-9cfb-da39b868f588.gif

What do you see instead?

Nothing

Additional information

No response

peterge1998 avatar Mar 29 '23 14:03 peterge1998

Same issue for Windows 10. explainshell server container built from https://github.com/idank/explainshell

obviliontsk avatar Apr 15 '23 10:04 obviliontsk

My source (aka https://github.com/idank/explainshell) don't have http api. Checked your source and it's working for me. Now have another issue. Old db and some cases not processed correctly, for example [ -z "$foo" ], if you hover on '-z' request sent will consist only of '-z' and nothing will be found as a result. Also multiline commands (with transitions '') not parsed correctly.

Update. It's not db old, it's explainshell parser fails to parse some flags from manpages for some reason.

obviliontsk avatar Apr 15 '23 11:04 obviliontsk

Btw, that setting should be set only to http://localhost:5000. The rest of that string is used for the JSON settings.

aarondill avatar Apr 28 '23 12:04 aarondill