-
Notifications
You must be signed in to change notification settings - Fork 59
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
command 'zig.zls.startRestart' not found #136
Comments
I have zig installed Documentation says everything should work out of the box but it does not. Either documentation with the correct steps need to be written, or there is a bug. |
Same |
Do you have |
There are two concerns here:
Automation requires some careful thought. What are the sane defaults?
|
Setup only requires answering two questions: (after #138 at least)
Everything else is automatic. |
A new version of the extension has been published, please try running through the setup with it. |
Got into the same problem today with v0.5.2. Is this a regression? |
Nobody actually confirmed if this was fixed so I don't know. Could you give details on your installation process and setup? |
I am running on a mac but I am using VSCode terminal recognizes the Starting I wonder if there is an error somewhere that stops the commands from being registered |
The only reasonable way it wouldn't get registered is the initial setup failing; do you have |
I checked mine and it is not set. |
I wasn't able to reproduce your issues by setting the settings readonly and changing the workspace settings should have the same effect as global settings. Are you getting a modal asking you to select which |
Can you try if 0.5.3 fixed this for you? |
I think the main problem is documentation. It's unclear from the docs or setup that these settings need to be set:
|
Sorry for the delay in reponse. A couple of busy days at work. Will check it later today and report back |
They need to be set but the extension sets them for you. |
By "0.5.3 branch" you mean the extension reports version 0.5.3? Can you try setting |
oh sorry i meant extension version 0.5.3 and not the branch. I set the workspace extensions to
The extension still try to write to the global settings but it seems like zls starts correctly and I can run "Start/Restart server" now |
I agree, which is why I created #142. Unfortunately, this was closed without any documentation being added. I would have been happy to open a pr to address this if I thought the maintainers would be receptive to it. I think the maintainers have a philosophy about software development that UX alone should be good enough to make documentation unnecessary. I agree that this is a good goal that we should all pursue. But it is not realistic to assume that it can always be reached 100%, especially when the software is just a plugin with UX that is tightly constrained by another application. I occasionally set up new vscode instances with this extension and in my experience, these settings often do not get configured. I dealt with this as recently as last week. There are supposed to be prompts to ensure these are configured, but I don't think this approach is very reliable. I already know that they need to be set, so I manually go into the config file and edit the values when necessary. For new users who don't have this knowledge yet, it could be useful to have a simple explanation to help them troubleshoot when these values are not set correctly, so they don't need to go through github issues to figure it out. It would also be useful for anyone who needs to make changes to their zig tooling after the initial setup of this extension. |
I don't want users to have to read documentation to use the basic funcionalities of the extension and I think the initial setup is now good enough to accomplish that. If you make a PR that adds some documentation describing the key configuration values and some troubleshooting tips then I'll gladly merge it. |
These changes make ZLS an "invisible" component of the extension after the initial setup. This also removes the `zig.zls.checkForUpdate` command. I am not sure if it even needs to be brought back. I've made sure that no error is reported if no internet connection is available. The last installed ZLS version should be reused. closes #136 because `zig.zls.startRestart` will just enable ZLS instead of complaining
These changes make ZLS an "invisible" component of the extension after the initial setup. This also removes the `zig.zls.checkForUpdate` command. I am not sure if it even needs to be brought back. I've made sure that no error is reported if no internet connection is available. The last installed ZLS version should be reused. closes #136 because `zig.zls.startRestart` will just enable ZLS instead of complaining
These changes make ZLS an "invisible" component of the extension after the initial setup. This also removes the `zig.zls.checkForUpdate` command. I am not sure if it even needs to be brought back. I've made sure that no error is reported if no internet connection is available. The last installed ZLS version should be reused. closes #136 because `zig.zls.startRestart` will just enable ZLS instead of complaining
These changes make ZLS an "invisible" component of the extension after the initial setup. This also removes the `zig.zls.checkForUpdate` command. I am not sure if it even needs to be brought back. I've made sure that no error is reported if no internet connection is available. The last installed ZLS version should be reused. closes #136 because `zig.zls.startRestart` will just enable ZLS instead of complaining
Hi, I have a fresh installation of zig on my mac
0.11.0
, and installed zls through the vscode market place v0.4.3.The documentation says that it should work out of the box, but any zls command I try to trigger such as
start server
results in an error.The text was updated successfully, but these errors were encountered: