Skip to content

Use $HOME/.dart instead of $HOME/.dartServer #42499

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

Open
kevmoo opened this issue Jun 25, 2020 · 7 comments
Open

Use $HOME/.dart instead of $HOME/.dartServer #42499

kevmoo opened this issue Jun 25, 2020 · 7 comments
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-server Issues related to some aspect of the analysis server P4 type-enhancement A request for a change that isn't a bug

Comments

@kevmoo
Copy link
Member

kevmoo commented Jun 25, 2020

The dart CLI is using $HOME/.dart for its analytics data.

It'd be great if the analysis server used this, too – so there are fewer places we litter a users home directory.

Not a big priority – but something to consider.

CC @jwren

@kevmoo kevmoo added legacy-area-analyzer Use area-devexp instead. devexp-server Issues related to some aspect of the analysis server labels Jun 25, 2020
@kevmoo
Copy link
Member Author

kevmoo commented Jun 25, 2020

Also CC @mit-mit RE keeping our SDK footprint on a users machine as clean/sane as possible

@jwren
Copy link
Member

jwren commented Jun 25, 2020

  • some analyzer folks that have some context here

@devoncarew devoncarew removed their assignment Jun 25, 2020
@mit-mit
Copy link
Member

mit-mit commented Jun 26, 2020

I don't think $HOME/.dart should be used for content that is "temporary"; I thought that was for settings and similar.

For temporary files, did we consider using a system-level temp folder?

@mraleph
Copy link
Member

mraleph commented Jun 26, 2020

I think we should pack everything into a single folder - and that folder should follow established conventions.

On Linux this probably means following XDG (#41560)

On Mac this probably means ~/Library/Caches/...

@kevmoo
Copy link
Member Author

kevmoo commented Jun 26, 2020 via email

@scheglov
Copy link
Contributor

To do this right we would need to implement a package to support XDG directories on all platforms (Linux, Mac, Windows).
Then we could use this package in the analysis server.

@srawlins srawlins added the P4 label Jan 23, 2021
@srawlins srawlins added the type-enhancement A request for a change that isn't a bug label Nov 30, 2021
@jonasfj
Copy link
Member

jonasfj commented May 17, 2022

A utility to find an application specific config file was added to cli_util, see: applicationConfigHome

@bwilkerson bwilkerson added area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. and removed legacy-area-analyzer Use area-devexp instead. labels Feb 26, 2025
@scheglov scheglov removed their assignment Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-server Issues related to some aspect of the analysis server P4 type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

9 participants