Page 2 of 2

Posted: 23.07.2021 15:34
by uvviewsoft
Updated the plugin in addons. Thanks for the fixes.

Posted: 23.07.2021 16:28
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

Posted: 23.07.2021 16:47
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".

Posted: 23.07.2021 17:08
by Shovel
Just checked, it was indeed incorrect, sorry. Updated instruction with '-g' works.

Posted: 29.07.2021 12:45
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]

Posted: 29.07.2021 16:32
by Shovel
Please update the plugin from here - https://github.com/halfbrained/cuda_lsp

I added some logging to see what's up

Posted: 30.07.2021 16:07
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'

Posted: 30.07.2021 17:08
by Shovel
Thanks. Should be fixed - https://github.com/halfbrained/cuda_lsp

Posted: 02.08.2021 08:59
by king.midas
Shovel wrote:Thanks. Should be fixed - https://github.com/halfbrained/cuda_lsp
Command now work!
Thank you!