-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to configure packages? #80
Comments
Hey, thanks for making an issue, I'm able to reproduce this.
Yeah, the process args are passed to the command separately, so that wouldn't work. In its current form, the only way to pass packages to the extension is with an In the meantime, adding a minimal ipkg file should get it working.
|
Thank you, this helped. Error is gone. The only thing that confuses me at the moment is that Idris2 compiler is not taking dependencies from ipkg when compiling, so I still need to pass "-p contrib". But this is beyond the scope of this project and is also something that will improve over time with tooling improvements. Anyway, I think you should leave it as it is now, but document this. |
Depending on your directory structure, I think you might need to pass the |
this option does the job, thanx! |
I’ve found that extension struggles in nested directories, and does not seem to respect Idris 2 package’s {
"idris.idrisPath": "idris2",
"idris.idris2Mode": true,
"idris.processArgs": [
"--find-ipkg",
"--source-dir path/to/package/sourcedir",
"--build-dir path/to/package/builddir",
],
} This seemed to fix it, at when only one package is involved (I imagine multi-package use cases would struggle). It’s most likely a bit much to ask for a fix at this point (there seems to ongoing work on an idris-lsp?), but in lieu of those being easy to install it’s been great to have this package in spite of needing some workarounds. It’s also really nice that you can just goof around in single files as well. Thanks @meraymond2 for the hard work and the cool extension! |
idris2-lsp can be easily installed with pack. https://github.com/idris-community/idris2-lsp#installation-with-pack |
Oh, I didn't realise pack was an Idris thing! Thought it was some linux package manager. Do you know if there’s a good workflow at all with using NixPkgs? |
Someone tried to get Idris2 to work with Nix, but it hasn't been updated since January. https://github.com/claymager/idris2-pkgs |
Is this still an issue, and if so, do you have an example? It's not clear to me whether this is an issue with the extension or with Idris2’s
I haven't had much time for this, so I recognise that changes happen pretty slowly. While most of the development on Idris 2 tooling is happening on the language server, I'll try to keep this working for Idris 2 as long as the ide-protocol is still supported. |
I am able to compile module with
but inside of the editor itself, I have an error
I attempted to include contrib into the path but it does not help
The text was updated successfully, but these errors were encountered: