Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix: config.json の validation 失敗時にわかりやすいログを出すように #1222
fix: config.json の validation 失敗時にわかりやすいログを出すように #1222
Changes from 3 commits
c4b17c2
60e6867
8f36e1e
bdbc440
ff5d5ac
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
フォルダを開くボタン(またはリネームして再起動ボタン)を追加してあげると親切なような気がしました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
electron 自体が起動する前なので、ウィンドウを出すのも厳しい気がします。
検証はしてみますが。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.electronjs.org/ja/docs/latest/api/dialog#dialogshowerrorboxtitle-content
これが使えそう?
選択はできませんが
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、僕もちょっと思いました。ダイアログにしたら良さそうだなと。
たしかに
dialog.showErrorBox
使えそうですね!!他にも
dialog.showErrorBox
使ってる所あるので参考になるかもです。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dialog.showErrorBox
を出した後に、shell.openPath
やshell.showItemInFolder
でフォルダを開けないか試してみましたが、流石に ready 前なので動かなそうでした。ひとまず
dialog.showErrorBox
にしますね。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
個人的には依存増やしてまで(メンテコスト増やしてまで)ディレクトリ開く機能を付けるのはしなくても良いかも?と思いました。
まあ、@raa0121 さんのやりたいように…!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
私も同じく、依存を増やすほどじゃないかなと思いました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
どうでしょう? @sevenc-nanashi
まあ良いかと思える感じであればapproveいただけると!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
依存を増やしたくない、なるほど(そういう考えをしたことが無かった)
まぁ大丈夫だと思います。
(ボタンを提案した理由はファイルパスを手打ちしなくてもいいから。エラーダイアログはコピペが出来ないので)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
手打ちが面倒なのはめちゃわかります。
そもそも開発者向けには、やはりconfig.jsonをクリアする方法を提供するのが一番いいかなと思いました。
(そしてそれは結構実装が大変。electron-storeの仕様が。。。 😇 )