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

Document settings.json #1463

Open
rtbo opened this Issue May 7, 2018 · 7 comments

Comments

Projects
None yet
5 participants
@rtbo
Copy link
Contributor

rtbo commented May 7, 2018

I'm not sure this repo is the most appropriate for such issue as I don't know exactly where are the web pages for code.dlang.org.

Although the command line and package format is very well documented, I can't find any documentation about the settings.json file. The information I could find is in the github issues and in the source code. Without reading the code, we don't know what options are supported.

@WebFreak001

This comment has been minimized.

Copy link
Member

WebFreak001 commented May 7, 2018

a PR documenting it should be made to https://github.com/dlang/dub-registry, but I think this issue actually fits here because dub is the thing using it. I have never actually really heard about settings.json being used or what it is used for lol

@rtbo

This comment has been minimized.

Copy link
Contributor

rtbo commented May 7, 2018

Ah, I thought dub-registry was only the app serving and caching the packages.

Yeah, there's nothing in there you cannot do with CLI. It helps to save keystrokes however.
E.g. to set a default compiler that is not /usr/bin/dmd.
Today, on windows each of my invocations looks like dub --compiler=xx --arch=yy.
(on windows arch defaults to x86 also on 64bits systems)

@WebFreak001

This comment has been minimized.

Copy link
Member

WebFreak001 commented May 7, 2018

yeah dub-registry is the server on code.dlang.org, it is everything there (including serving packages over http)

@SingingBush

This comment has been minimized.

Copy link

SingingBush commented May 11, 2018

seems like settings.json only supports a defaultCompiler option. Found it in the CHANGELOG.md

@s-ludwig

This comment has been minimized.

Copy link
Member

s-ludwig commented May 11, 2018

There is also defaultArchitecture and registryUrls, as well as customCachePaths on master.

@andre2007

This comment has been minimized.

Copy link
Contributor

andre2007 commented May 14, 2018

Regarding settings.json on windows a question as it fits here. Is it correct that settings.json is still effective in folder "AppData\Roaming\dub" while the dub packages moved to folder "AppData\Local\dub"?

@andre2007

This comment has been minimized.

Copy link
Contributor

andre2007 commented Nov 8, 2018

Pull request dlang/dub-docs#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment