Tako Schotanus
Tako Schotanus
Ok, will merge this as-is and any improvements/refactorings will be made in future PRs.
All JBang `run` output (so not the output of the application being run) is on stderr, perhaps it's enough to simply redirect that to a file? (Although that would of...
> For example stuff added on the command line --deps / --repos is not present in the info tools JSON. This is actually expected behaviour. Those options are runtime-only, so...
> Is this really expected? Yes, the dependencies are the ones that are defined in the source and do specifically _not_ include the dependencies you add on the command line...
Because `info tools` returns the information parsed from the source files, that's why it even works when the script isn't compiled. It also is hierarchical, so you can have nested...
So the title of this issue is really something like "jbang edit can't add/set dependencies"?
I'd have to look into this more closely tomorrow. But the first thing we'd have to check is if this still happens with the refactor of the Project PR.
I added an extra test that shows where your code causes problems. That test should already have existed of course but it didn't :-) So it's not that we disagree...
Perhaps the best thing to do would be to do is to split this code into two steps: https://github.com/jbangdev/jbang/blob/main/src/main/java/dev/jbang/cli/Init.java#L67-L76 The first step checks if the correct rules are followed and...
Pasting this here to make it clickable: https://github.com/coding-horror/basic-computer-games