Skip to content
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 atom types in dropdowns. #7670

Merged
merged 16 commits into from
Sep 5, 2023
Merged

Conversation

vitvakatu
Copy link
Contributor

Pull Request Description

Fixes #7468

The fix is pretty simple: we reuse the existing functionality for importing stuff and generating expressions. It fixes issues with Nothing or Report_Unmatched types.

Kapture.2023-08-28.at.14.26.04.mp4

While debugging, I found it easier to work with a suggestion database when exported to some external format. Hence, I implemented serde serialization support for database entries and also a new debug shortcut ctrl+shift+u to dump all entries to the console.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed, the GUI was tested when built using ./run ide build.

Copy link
Member

@JaroslavTulach JaroslavTulach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see all consequences, but If the fix works, then fine. Thanks for the suggestion DB debugging shortcut.

app/gui/docs/product/shortcuts.md Outdated Show resolved Hide resolved
app/gui/suggestion-database/src/entry.rs Show resolved Hide resolved
app/gui/suggestion-database/src/entry.rs Show resolved Hide resolved
@@ -795,7 +799,7 @@ impl application::View for View {
(Press, "", "cmd alt p", "toggle_component_browser_private_entries_visibility"),
(Press, "", "cmd s", "save_project_snapshot"),
(Press, "", "cmd shift r", "restore_project_snapshot"),
(Press, "", "cmd z", "undo"),
// (Press, "", "cmd z", "undo"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented shortcut. Quite important, I'd say.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good catch. It was left after debugging.

@farmaazon
Copy link
Contributor

QA: 🍏

The debug shortcut didn't work for me.

The reported cases seem to work, I'm only surprised "Boolean.True" is not imported?
image

@vitvakatu
Copy link
Contributor Author

The reported cases seem to work, I'm only surprised "Boolean.True" is not imported?

Yep, there was an issue tracked in #7674. Fixing that issue should (I think) fix the booleans automatically. If not, we will handle it in a separate task.

As for debug shortcut, it only works with the CB being opened (not the best UX), perhaps this is the reason.

@vitvakatu vitvakatu added the CI: Ready to merge This PR is eligible for automatic merge label Sep 5, 2023
@mergify mergify bot merged commit 1f8675a into develop Sep 5, 2023
@mergify mergify bot deleted the wip/vitvakatu/atom-types-in-dropdowns branch September 5, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic Dropdown support for single Atom types does not work
3 participants