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
Spacchetti-CLI is now Spago #194
Comments
Nice! On the downside, this doesn't work for Windows users yet (and I'm not one of those either, haha). I'm not sure whether this should migrate. If I don't, that's annoying because this is a better workflow. If I do, then that creates other problems. Maybe this repo will force someone to open such an issue and maintain it? |
I'm posting the twitter announcement here for context: |
I guess Spacchetti never supported Windows either though (unless you built it yourself) |
Haha! Didn't know that. Well, that resolves that dilemma. |
Sorry it's taken so long to get to this. Spago looks really mature now. I'll be focusing on this more in the next few weeks. |
@JordanMartinez from the 0.7 release of some days ago, the NPM package also works for Windows (we had Windows builds since the previous release though) |
Nice! My current focus this week has been working on the documentation discussion work with Alex/chexxor Still, the work this will entail has a few parts Simple to:
Longer to do:
Release Notes:
Also, this will be considered a major breaking change because we're switching dependency managers (besides renaming files and whatnot). I know you two have written a ReadMe that explains spago well (haven't looked into it that much but have skimmed parts of it). So, some of this work may not be needed. I won't know until I start. |
I'm actually wondering whether this should be included yet. This project uses Atom, so if it doesn't work out well with that, it will be a major issue for me as I continue to develop this and for others who are using this to learn. Also, I realize that there is no corresponding |
@JordanMartinez I was planning to take on the implementation of Re Atom support: |
Yup! Just saw the update :-D As for the |
@f-f Does my new History: How We Got Here section fairly summarize the current state in a way that's understandable to new people? I'm assuming that |
there's no reason to keep using spacchetti now but purp is something i use actively, i just don't talk very much about it |
@justinwoo I think what Jordan means here is "deprecated" as in "should we not suggest it to people". In this sense
@JordanMartinez looks great! I'll add some clarifications:
|
Yeah, that was my point.
I agree.
I believe I was talking about
Gotcha. I guess I was trying to show that Looks like I'll need to rethink how I explain this. |
Here's an update on my work:
Also, I'm not yet familiar with Questions I have:
Possible communication issues I have found:
|
@JordanMartinez reading through your links I figured that some of the
To answer the rest of your questions (and the other concerns in the "Problem points" section:
It is correct that Makes sense?
Some clarifications about it:
I'll also note that there's no technical issue against having a local global cache of packages, it's just that no one opened an issue about it yet 😄 (so please open one if you think it's a good thing to have)
So if you wish to "make a module and run it via node", that's just If there's a place in our docs that it's misleading about it, it would be lovely if you could open a PR to clarify it somehow :)
I never had a use-case myself for this (as I don't use PS on node). If you think this is a common use-case could you open an issue about it?
This is a common use-case (also in my usage), and I've been thinking of providing some opinionated integration with
You can use |
Thanks for taking care of those things!
Yeah. Thanks for the clarification. I think my goal was to make
I've opened an issue first describing the issue and why I misunderstood things (see purescript/spago#135) and then submit a PR.
I think Justin's already done that via purescript/spago#131
Done. See purescript/spago#134
Perhaps I should clarify that statement. The point is that you can't publish docs to Pursuit unless you are using |
Summary of below contentI'm going to have to exclude this issue from the next major release (#291). It's slowed me down and there are other low-hanging fruit I can address now rather than continue waiting for things to improve. Keep in mind that my repo's folders' build configurations are definitely outside the norm. Please don't misunderstand me. I think Let me know which of these I should open issues for in Syntax - Basic SyntaxThings I didCalled The below directories were not deleted. I think that's fine since one will likely only "migrate" a project once. Removing these aren't hard, which is what I did:
Tried to compile the project again and see what issues arise. Failing to compile the project without a "Main" module
Right, because there isn't supposed to be a
Let's try removing the path completely
That's not too surprising. Why don't we try a real path that is commonly used?
Hmm... "Duplicate Module" is an odd error to get. So, it doesn't quite work if I'm just designing a "library" of sorts like this. Perhaps we should try a different command?
Does REPL work?
Seems like the same issue as before. Let's try
Any options that fix this issue?
Looks like no. Since Hello World - Hello World and EffectsThings I didCalled Tried to compile the project again and ran into more issues with "there is no Main module"
Silly me, I should have defined the actual module name to my "Main" program (since there are a couple of ones there to provide easily runnable examples).
Oh right, there is no
Uh.... ok.... What does the help say? Is there a path argument that I need to provide?
Ok.... Looks like at this point, I would just have to "drop down" to using |
@JordanMartinez I don't think taking care of these errors you encountered would require a breaking change. I'll try to clarify them:
Is this of any help? |
You can still list
I think the arrows are well suited for showing "this uses/wraps that", while "ideas inclusion" is better represented by prose (as you don't have a binary state arrow/no-arrow, things are usually more complicated)
Thanks!
Let's have an issue to discuss it! It's likely worth adding a FAQ entry or a separate section for this |
🤣 I'm a terrible programmer, haha! I skimmed the error message and thought it was referring to something else. I didn't realize the error was arising due to a test source file. 🤦♂️ Sadly, this is not the first time this has happened in my PS journey. You'd think I'd have learned by now.
Hmm.... this kind of falls under the issue of using one command to do multiple things at once (initialize a project and migrate from psc-package projects). I know you want to keep the number of commands low and when spago fully replaces psc-package, a migration command won't be needed. So, I think the second option makes more sense as the current implementation assumes that a project will always have a
This wasn't an issue and I hope it did not come across as one. I was merely documenting what occurred when I did this. (It was to help me know how to write the "migrate-to-spago.sh" file as I could delete these unneeded files in my repo after setting up the corresponding
I think this is a result of human error, not a bad program design. Perhaps it could be documented better by indicating the source globs (your last comment's idea). Perhaps the command docs in spago could clarify this as well.
Another thing to include in an FAQ section / general knowledge / migration section?
Good points!
Done. See purescript/spago#142 |
Good points, I'll go with these solutions
I documented this here, but reading it out loud I feel like it would make sense to just run (this would create other issues though, like carrying over all the build flags to these commands too. UX is hard)
Thanks! |
Just leave it as is then. |
Latest update on this. I've updated #291 to use It took a while to figure out how parcel works, but I think I'm getting the hang of it. |
https://github.com/JordanMartinez/purescript-jordans-reference/blob/0f9ace0b6a50b2a690294a0c8984f10e958763b4/01-Build-Tools/01-Tool-Comparisons/01-Dependency-Managers.md
https://github.com/spacchetti/spago/releases/tag/0.6.0.0
The text was updated successfully, but these errors were encountered: