Title: The per-user configuration directory should not be created by JsonConfigFileAccessor until a write operation to user config file is requested · Issue #2037 · PowerShell/PowerShell · GitHub
Open Graph Title: The per-user configuration directory should not be created by JsonConfigFileAccessor until a write operation to user config file is requested · Issue #2037 · PowerShell/PowerShell
X Title: The per-user configuration directory should not be created by JsonConfigFileAccessor until a write operation to user config file is requested · Issue #2037 · PowerShell/PowerShell
Description: JsonConfigFileAccessor tries to create the per-user configuration directory at initialization, even if on configuration file is put there. And currently both read and write operations targeting the user scope settings will trigger the cr...
Open Graph Description: JsonConfigFileAccessor tries to create the per-user configuration directory at initialization, even if on configuration file is put there. And currently both read and write operations targeting the...
X Description: JsonConfigFileAccessor tries to create the per-user configuration directory at initialization, even if on configuration file is put there. And currently both read and write operations targeting the...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/2037
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The per-user configuration directory should not be created by JsonConfigFileAccessor until a write operation to user config file is requested","articleBody":"`JsonConfigFileAccessor` tries to create the per-user configuration directory at initialization, even if on configuration file is put there. And currently both read and write operations targeting the user scope settings will trigger the creation of the directory.\n\nThere is an edge case that we have to deal with -- what if somehow it fails to create the directory? The current implementation is to let the exception pop up, and reply on the caller to handle this situation. However, if the caller only issues a read request, it shouldn't matter that the configuration directory cannot be created, because that means no configuration file is there, so a default value should be returned for the setting, such as `null` for a string value.\n\nIMHO, The per-user configuration directory should only be created when powershell has to -- only write requests to the user settings would trigger the creation of the directory.\n","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2016-08-23T18:56:36Z","url":"https://github.com/PowerShell/PowerShell/issues/2037"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:60b28d44-1f35-c583-ca3a-576512c04692 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E22:289B7D:69A54:933C6:6AFD7A71 |
| html-safe-nonce | fe307fb705faa60ace4641ab8e7599356ee524fc610e3fec94cc0317ff6fde8a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTIyOjI4OUI3RDo2OUE1NDo5MzNDNjo2QUZEN0E3MSIsInZpc2l0b3JfaWQiOiI3NDE0MDQ1MDA0MjQ4NDgwMzY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e4a9ebf36c55cb193993a19220f28a1747234d7d878c3f3eb24297646747bb22 |
| hovercard-subject-tag | issue:172778797 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/2037/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b01af6308d93a0caa329606e9a8b82e80ca7ff61e6fa623bd35cf72413ca0ad5/PowerShell/PowerShell/issues/2037 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b01af6308d93a0caa329606e9a8b82e80ca7ff61e6fa623bd35cf72413ca0ad5/PowerShell/PowerShell/issues/2037 |
| og:image:alt | JsonConfigFileAccessor tries to create the per-user configuration directory at initialization, even if on configuration file is put there. And currently both read and write operations targeting the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daxian-dbw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width