-
Notifications
You must be signed in to change notification settings - Fork 8
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
setup of VS-Code-Extension #153
Comments
I think you need to do:
`cd vscode-client`
before
`vsce package`
|
PS C:\Users\Jakob\Documents\GitHub\ghdl-language-server\vscode-client> vsce package I haven't changed anything in the package.json file? Maybe it should be moved to devDependencies... However, at the moment i am more interested in how to debug the extension (nothing happens, when i press F5... |
What is your content of package.json ? Because in the repo, it is not in dependencies:
https://github.com/ghdl/ghdl-language-server/blob/master/vscode-client/package.json
I don't think you can debug it without first building it.
|
oh, you are right... (Below is a section of the code)
I didn't add it manually though... (i have removed it again) Now, a file named vhdl-lsp-0.1.0-dev.vsix was created. What's the next step, as still nothing happens by pressing F5 ? |
You have to install it:
`code --install-extension vhdl-lsp-*.vsix`
I am not sure what do you mean by debugging it. A long time ago, I read a webpage explaining how to debug a vscode extension.
|
Okay, i executed the given command and in Now, i can see the extension in the extensions-menu in vscode. Also, in the Output-Window in VS-Code, there are many errors mainly about libghdl. At the moment, there are 2 questions from different perspectives
End-user-experience
Developer-Experience
|
You also need to install ghdl, the pyGHDL python packages and ghdl-ls python tool (from the ghdl repo).
• Typically, before you package your extension, you would test your extension, debug, step through the extension when searching for errors etc... From other extensions i have experienced that you don't have to package the extension for testing purposes. You can start it in Debug mode, then a new vs-code window gets launched and you can test your extension. This is what i want to do.
I think you can do that, although I haven't done it recently.
But most of the extension is based on the separate ghdl-ls tool, which has its own testing suite.
|
Probably these websites should help me, but advice would be good
|
pyGHDL depends on libghdl (hence the error message).
We are working on the generation of a standalone pyGHDL wheel, but currently you first need to install ghdl to use pyGHDL.
The instructions you pointed to are the correct one.
(You can probably download the standalone wheel from the artifacts of a github action too).
|
Hello everyone!
As i am new to the topic in general, i would be happy about getting support in order to get the VS-Code extension running.
My steps so far:
When executing the command
vsce package
, i get the following message:PS C:\Users\Jakob\Documents\GitHub\ghdl-language-server> vsce package
ERROR Extension manifest not found: C:\Users\Jakob\Documents\GitHub\ghdl-language-server\package.json
The README-files from the ghdl and ghdl-language-server cause confusion for me.
Should the extension work out of the box or are there any previous steps required?
If yes, which steps have to be done?
My actual goal is to execute the extension in debug-mode.
(vsce package should not be necessary, as it just packages the extension, so the above listed steps might be a bit misleading for my actual goal)...
When i press F5 in VS-Code, nothing happens (i am expecting a new window to be launched with activated extension).
Thanks in advance for instructions to get the extension running!
The text was updated successfully, but these errors were encountered: