-
Notifications
You must be signed in to change notification settings - Fork 24
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 a means of setting the Idris -p option #29
Comments
Probably we should set up Idris to (a) find the .ipkg file, if one exists, and (b) report back the contents of its fields, rather than re-implementing all this in every editor... |
I support this idea :D In the interim I we could just search for an ipkg file in the open directory and use that one without recursing through higher directories. Would we have to parse the ipkg file, search for the
would result in
|
That's what idris-mode does. /D |
When I open for instance https://github.com/archaeron/highlighter my project looks like this so even if the ipkg file and the source files are not in the same directory it would work. If on the other hand I'd just open the source folder it wouldn't. But at least you'd see what ipkg file it would use. |
or is this one of the simple idris programs you where talking about? :) |
I hadn't realized that Atom had a notion of "current open directory" that was different from the directory that the file is in. This should work fine, then! |
perfect, thanks for the answer 👍 |
:-) |
Is there some workaround to get |
there is a branch where there is some rudimentary ipkg support. |
Will I get any update notifications when I switch over or do I need to pull archaeron [email protected] schrieb am Mo., 17.08.2015, 20:22:
|
When I'm working on a feature branch that has not yet the newest version in the config file it tells me that there is a newer version available. But I've never tried updating then trough the official channel. |
ignore the noise… I managed to install from feature branch |
this is now in v0.3.0 |
Idris has a global library installation directory which is divided into packages. The
prelude
andbase
packages are always available for import, but further packages need to be enabled by passing Idris the-p PKGNAME
command-line option.This is something that's project-specific, so it doesn't really make sense in the global Idris configuration area (though that can be a temporary stopgap).
In the Emacs mode, we set this option in two ways:
.ipkg
file, or a subdirectory of such a directory, that file is processed to find the list of packages that a command-line invocation ofidris
would get from the package commands (e.g.--build
,--install
). These are then passed to the Idris subprocess.I don't know the right solution for Atom, but it's pretty important to be able to do this.
The text was updated successfully, but these errors were encountered: