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

Add conda-config (similar to elpy-config) command to re-evaluate cached values #134

Closed
epruesse opened this issue Nov 4, 2022 · 2 comments · Fixed by #136
Closed

Add conda-config (similar to elpy-config) command to re-evaluate cached values #134

epruesse opened this issue Nov 4, 2022 · 2 comments · Fixed by #136

Comments

@epruesse
Copy link

epruesse commented Nov 4, 2022

conda--config caches the parsed output of conda config --show --json. If that's wrong the first time round, there are constant weird error messages.

In my case, I was getting Wrong type argument: arrayp, nil on all conda-* functions called. Turns out conda--config contained (json-parse-error "invalid token near 'sh'" "<string>" 1 2 2). It took forever to realize was actually the cached value, not a current error...

Perhaps having conda-config similar to elpy-config to re-load and show the (cached) configuration would be a not-too-complex fix to this and similar issues?

@necaris
Copy link
Owner

necaris commented Nov 6, 2022 via email

@necaris
Copy link
Owner

necaris commented Nov 7, 2022

Does #136 look like it'll do the trick?

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

Successfully merging a pull request may close this issue.

2 participants