plugin LSP Client

Plugins for SynWrite and CudaText...
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

Updated the plugin in addons. Thanks for the fixes.
king.midas
Posts: 40
Joined: 26.02.2019 13:47

Post by king.midas »

uvviewsoft wrote:About your Q-1: "npm install typescript" is not server compilation. it's installing of TypeScript. the server compilation is the next command with "npx".
What error that "npx" command gives to u?

Also did u try to install TypeScript globally? https://docs.npmjs.com/downloading-and- ... s-globally
I am very newbie and "globally" did not understand :roll:

This message appear, when i am run "npx tsc" inside folder "server"

Code: Select all


                This is not the tsc command you are looking for


To get access to the TypeScript compiler, tsc, from the command line either:

- Use npm install typescript to first add TypeScript to your project before using npx
- Use yarn to avoid accidentally running code from packages which haven't been installed
If i run "npm install typescript" in "server" folder and retry command "npx tsc" works well

https://i.imgur.com/IcAp3it.png
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

1) "npm install NN" installs NN in the current folder only
2) "npm install -g NN" installs NN for entire PC (all folders)
AFAIK. so the TypeScript installation should be called with "-g".
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

Just checked, it was indeed incorrect, sorry. Updated instruction with '-g' works.
king.midas
Posts: 40
Joined: 26.02.2019 13:47

Post by king.midas »

Hello!

In CudaText 1.139.5.0 win64 and LSP client 2021.07.29 (from Addons manager) command "Definition"doesn't work again, substituting the wrong path.
Command "References" work normally. LSP server "AutoHotKey", does not change settings.

Code: Select all

Не удалось найти файл:
D:\d:\Midas\Dropbox\Docs\MyProgs\AHK\1test.ahk
[OK]
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

Please update the plugin from here - https://github.com/halfbrained/cuda_lsp

I added some logging to see what's up
king.midas
Posts: 40
Joined: 26.02.2019 13:47

Post by king.midas »

Shovel wrote:Please update the plugin from here - https://github.com/halfbrained/cuda_lsp

I added some logging to see what's up
In console text:

Code: Select all

LSP: starting server - AutoHotkey; root: None
NOTE: LSP: AutoHotkey - file does not exist: '\\d:\\Midas\\Dropbox\\Docs\\MyProgs\\AHK\\1test.ahk', uri:'file:///d%3A/Midas/Dropbox/Docs/MyProgs/AHK/1test.ahk'
Shovel
Posts: 141
Joined: 31.12.2019 10:16

Post by Shovel »

Thanks. Should be fixed - https://github.com/halfbrained/cuda_lsp
king.midas
Posts: 40
Joined: 26.02.2019 13:47

Post by king.midas »

Shovel wrote:Thanks. Should be fixed - https://github.com/halfbrained/cuda_lsp
Command now work!
Thank you!
Post Reply