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

salt-mode depends on salt #18

Closed
JeffAbrahamson opened this issue Jan 15, 2018 · 2 comments
Closed

salt-mode depends on salt #18

JeffAbrahamson opened this issue Jan 15, 2018 · 2 comments
Labels

Comments

@JeffAbrahamson
Copy link

Visiting a new (empty) .sls file invokes salt-mode, which, in the absence of a salt-minion, dies at line 233 or 244, "Error querying Salt minion". It seems reasonable that a developer should wish to edit an .sls file on a host that is not itself a salt minion.

The constant salt-mode--query-template also causes a failure if salt is not configured on the dev machine, since the import of salt.config fails.

Perhaps this is merely a documentation bug: failing to explain what is necessary on a development machine to use salt-mode.el.

@glynnforrest
Copy link
Owner

Thanks for the report @JeffAbrahamson.

This is definitely a bug, the mode should work without a salt-minion. The documentation features should be an added bonus if salt is installed.

I'll see about fixing this shortly.

@glynnforrest
Copy link
Owner

@JeffAbrahamson I've just pushed a commit that should fix this. Once melpa builds the new package, it'd be great if you could update and confirm this solves your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants