r/purescript • u/gilmi • May 18 '16
Development workflow using PureScript
Hey all,
I'd like to learn more about how you write purescript code and about your workflow. Which editor do you use? Which tools? What do you feel is missing? What do you think is great? Etc. :)
I usually use Emacs or Vim. I didn't manage to get psc-ide to work with emacs but I did with vim. I also open another terminal and run pulp server but I'm not sure it uses purescript-psa. I haven't tried pscid yet but i wonder if it is similar to pulp server. One of the things I would like to see something similar to hot reloading as pux does it.
View all comments
Show parent comment
3
u/gilmi May 18 '16 edited May 18 '16
Alright, I just got it to work with kritzcreek's help. A few things to note:
After you install the psc-ide-emacs plugin and adding the following to your
.emacsfile:You'll probably want some kind of workflow like this:
psc-ide-serverandpsc-ide-clientare matching that of the compilerpsc-idelying aroundM-! which psc-ide-server. if they are not, add the path they are at to/etc/paths. make sure to not use~and write/Users/<your-uname>/instead.C-c C-s(orM-x psc-ide-server-start) to start the server. You will be prompt with a suggestion to where thebower.jsonfile in your project is at. make sure to change the first~to/Users/<your-uname>/.C-c C-l(orM-x psc-ide-load-all). you might want to make the*psc-ide-server*buffer visible as well.C-c C-b(orM-x psc-ide-rebuild) to try and rebuild at get errors, and other things from hereI hope this works. if not, ping/msg me. I'll try to help!