-
Notifications
You must be signed in to change notification settings - Fork 132
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
Allow integration with atom-ide-purescript #63
Comments
i think what you're missing is that the language server that's running doesn't know where to find sources. you probably want to open an issue in atom-ide-purescript about providing a way to call a command to get psc-package style sources, so that you can use |
From a cursory look at the So I guess setting it to something like |
FWW, when I tried
|
For the most part, you should be able to use |
Update: once #66 goes in it would be possible to run |
I've created an issue for it |
#66 is in (thanks!), so it is now possible to run I also have not managed to get go-to-definition to work, and I don't know why (my purescript source glob is set to |
@Dretch oh wow, I think this is a Dhall bug, opened dhall-lang/dhall-haskell#788 On the other hand, if Dhall is not able to find a place to cache imports, your package-set will have to be fetched from GitHub every time the atom plugin tries to build (so e.g. you won't be able to build while offline), so you would really want the plugin to pass |
Yeah, that's a Dhall bug which I'm fixing. Note that |
|
@spicydonuts fix for that should be up in #82 (here) Though I'm not sure how much of a fix this is. E.g. in case of build success we do output "Build successful" after the purs output. Is that fine? (I mean in this line) |
I'm not 100% sure but I thought the entire output had to be parseable as JSON |
This is weird, because here in the language-server (on which the VSCode and the atom plugin are based on) there's an So even the current version should work 🤔 @spicydonuts could you try to install spago from this branch and see if it fixes the issue? |
@Dretch the issue of spago dying when |
RE language-server and junk in the JSON output - no, it should only matter that the JSON output is (unprefixed) on a single line on stderr, as per compiler or pulp output, both of which already include junk lines too. Nate did have some issue on a "real world" project which we couldn't reproduce so maybe there is some issue around there though. (On the other points in this integration - I'll need to find some time but will address the |
@Dretch @nwolverson I think with the latest version of |
@f-f I think a new release of |
Just checking in on the status of this issue. It's been 22 days since the last comment and I don't see a new release for |
I just pushed a release of |
Wonderful! It looks like we can close this one, but feel free to comment here if there are more issues and this needs to be reopened Thanks a lot @nwolverson, @Dretch and everyone involved! 👏 |
I use Atom to write Purescript source code.
When I converted my project from Pulp + Bower to Spago the nice features of Atom (show-type-on-hover, go-to-definition, auto-import, etc) stopped working.
It would be nice to get this working again. I am not sure entirely what is involved, or whether changes are required to https://github.com/nwolverson/atom-ide-purescript itself. One thing that does appear to be required is for
spago build
to pass through arguments topurs
, likepulp build -- --json-errors
(once this is done then atom-ide can at least be configured to build with Spago).The text was updated successfully, but these errors were encountered: