Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Include psc-package sources list in arguments too if being used #15

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

Merged

Conversation

actionshrimp
Copy link
Contributor

Pulp now supports psc-package as well as bower to manage packages. If you've initialised a project with pulp --psc-package init, psci is not passed the correct arguments unless you add the big list of output generated by psc-package sources to the psci/arguments custom variable.

This checks for a psc-package.json in the project root which tends to indicate psc-package is being used, and if it finds one, it adds the output from psc-package sources to the arguments list which seems to allow the psci buffer to start up again.

Copy link
Contributor

@kritzcreek kritzcreek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't actually tested this, but the code looks good and simple enough :) I made one minor suggestion, your call!

psci.el Outdated
(apply 'make-comint-in-buffer psci/buffer-name buffer
psci-program nil psci/arguments)
(let ((full-arg-list (if (file-exists-p "psc-package.json")
(let ((psc-package-sources (split-string (shell-command-to-string "psc-package sources"))))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might make sense to extract this into its own function. Something like psci/get-psc-package-sources.

@actionshrimp actionshrimp merged commit 875ea32 into purescript-emacs:master Aug 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.