Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build vsix and show error when launch #26

Closed
EricDDK opened this issue Sep 23, 2020 · 15 comments
Closed

build vsix and show error when launch #26

EricDDK opened this issue Sep 23, 2020 · 15 comments

Comments

@EricDDK
Copy link

EricDDK commented Sep 23, 2020

image
I want to secondary development.
I finished everything in tutorial https://github.com/sumneko/lua-language-server/wiki/Build-and-Run-(Standalone) .
Then I vsce package, but the extension show error.

@sumneko
Copy link
Collaborator

sumneko commented Sep 23, 2020

cd client then npm install

@EricDDK
Copy link
Author

EricDDK commented Sep 23, 2020

npm install

finshed it, but the extension still has no function. not output log.
use "发布" to F5 project.

@sumneko
Copy link
Collaborator

sumneko commented Sep 23, 2020

Did you compile the TypeScript of client? Press Ctrl + Shift + B and select client/tsconfig.json.

@EricDDK
Copy link
Author

EricDDK commented Sep 23, 2020

Did you compile the TypeScript of client? Press Ctrl + Shift + B and select client/tsconfig.json.

error TS5023: Unknown option 'p'
Use the '--help' flag to see options.
error TS5007: Cannot resolve referenced file: 'd:\work\Plugin\vscode-lua\client\tsconfig.json'.
The terminal process "C:\Windows\System32\cmd.exe /d /c tsc -p d:\work\Plugin\vscode-lua\client\tsconfig.json" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

@sumneko
Copy link
Collaborator

sumneko commented Sep 23, 2020

try update your TypeScript by npm install -g typescript

@EricDDK
Copy link
Author

EricDDK commented Sep 23, 2020

try update your TypeScript by npm install -g typescript

I remove path by https://stackoverflow.com/questions/32497809/windows-10-tsc-error-ts5007-cannot-resolve-referenced-file-tsconfig-json.
comile is over. but extension still has no functions.

@EricDDK
Copy link
Author

EricDDK commented Sep 23, 2020

try update your TypeScript by npm install -g typescript

Can you send me a whole project ? I don't know where is wrong.

@EricDDK
Copy link
Author

EricDDK commented Sep 23, 2020

try update your TypeScript by npm install -g typescript

image

@sumneko
Copy link
Collaborator

sumneko commented Sep 23, 2020

You could download vsix from https://github.com/sumneko/vscode-lua/releases, then unzip it.

@EricDDK
Copy link
Author

EricDDK commented Sep 23, 2020

You could download vsix from https://github.com/sumneko/vscode-lua/releases, then unzip it.

I cmd "bin\Windows\lua-language-server.exe -E main.lua"
then show
image

@EricDDK
Copy link
Author

EricDDK commented Sep 23, 2020

You could download vsix from https://github.com/sumneko/vscode-lua/releases, then unzip it.

I download and compare them. I found that there are many folders in my package that are not in your package, most of which are compiled files. but others are same.

by the logs when cmd "bin\Windows\lua-language-server.exe -E main.lua", is server has something wrong?

@sumneko
Copy link
Collaborator

sumneko commented Sep 23, 2020

There is a bug, see LuaLS/lua-language-server@57bfae9 .
Thank you.

@EricDDK
Copy link
Author

EricDDK commented Sep 23, 2020

There is a bug, see sumneko/lua-language-server@57bfae9 .
Thank you.

[exthost] [error] Error: Cannot find module 'semver'

@sumneko
Copy link
Collaborator

sumneko commented Sep 23, 2020

I guess you use npm install in the root path.
You should use it in client path, because only the client is implemented in TypeScript.

@EricDDK
Copy link
Author

EricDDK commented Sep 23, 2020

I guess you use npm install in the root path.
You should use it in client path, because only the client is implemented in TypeScript.

No. it;s a path system environment problem.
I give up to build it.

Thanks.

@EricDDK EricDDK closed this as completed Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants