Closed EMoonArchiTech closed 3 weeks ago
wow! Apologies for the delayed reply. I seriously didn't expect anyone else to try and use this yet!
It looks like you've found a bug or two in the selectedWord
function. It's purpose is to find the word surrounding the cursor. I'll have to do some research to understand what's going on here. I'll start with your description of how you found the problem and see if I can recreate it.
Still utterly stunned anyone is looking at this. Thanks for the bug report. Please be patient while I work on this. I don't get much free time to work on this project.
@EMoonArchiTech if you could share the VSCode ext code that would help with my troubleshooting
ok, I think I am able to replicate the bug. At least I can certainly get it to crash when trying to bring up the docs for some of the keywords. I'm adding unit tests to the helper functions as I think that's where the problem is. I've also found some bugs with the scraper. I'll create a new issue for that.
I'll upload the extension soon but it's not super complicated, 98% of it is from microsoft's LSP sample extension with some modifications to get it to work with this project :)
I actually found the project by googling "cisco ios lsp server" while getting frustrated at editing a bunch of switch configs that I'm deploying for a client :P I think it's a very cool idea and have plenty of thoughts for features or functions. I mainly program at work in python but have been looking for a reason to learn GO, no promises about any commits though :) Completely understand not having a lot of time available and ditto.
If you're looking for inspiration there are two vscode ios extensions that are fairly limited but have some useful features. There's also sublime text's network tech extension that has a lot of really cool features. Not all of which would be able to be implemented purely in an LSP, but cool nonetheless.
Thanks @EMoonArchiTech. I'm happy for any contributions, suggestions, feature requests. I'm hoping to make config management easier. To me the current editor tooling is terrible. I'm hoping to fix it.
I've fixed the crash. But I notice that the autocomplete includes some non-config commands. I've created a new issue to resolve that.
I'm in the complete same mind :) If i hadn't found this project I probably would have tried (and failed!) to do it myself.
I've ran into some other (personal) issues that haven't let me get more into GO but at the very least I'm here cheering from the sidelines and happy to assist with testing!
Hello! Happy to be the first bug report! :)
For reference, I've implemented this lsp server into VSCode. I haven't committed the code anywhere or uploaded the extension but it's more or less working.
Last test I did was about a month ago and it did everything it should have without any issues, but now after pulling the most recent commits I'm getting a few crashes.
This is the content of the file I was testing at the time:
While selecting/highlighting the second row from
secret
to the end, I got the following crash:And then after restarting I got this second crash after putting my cursor at the end of the second line.
I hope this isn't just some issue with my own setup, but hope this is helpful in some way :) I'll be following along with this cool project either way!