Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

Allow visualizations to define context module for preprocessor #1291

Merged
merged 26 commits into from
Mar 10, 2021

Conversation

mwu-tow
Copy link
Contributor

@mwu-tow mwu-tow commented Mar 4, 2021

Pull Request Description

Ref #1167.

Along the way, I've allowed visualizations to define preprocessor during the construction phase, removing need for workaround where it was changed only after first update.
Setting proper module for geomap allowed to significantly simplify code.
A few refactorings along the way.

Important Notes

Build requires parser fix from https://github.com/enso-org/rust-lib/pull/34

Checklist

Please include the following checklist in your PR:

  • The CHANGELOG.md was updated with the changes introduced in this PR.
  • The documentation has been updated if necessary.
  • All code conforms to the Rust style guide.
    - [ ] All code has automatic tests where possible.
    - [ ] All code has been profiled where possible.
  • All code has been manually tested in the IDE.
  • All code has been manually tested in the "debug/interface" scene.
  • All code has been manually tested by the PR owner against our test scenarios.
  • All code has been manually tested by at least one reviewer against our test scenarios.

@mwu-tow mwu-tow added Difficulty: Core Contributor Should only be attempted by a core contributor Priority: Highest Should be completed ASAP Type: Enhancement An enhancement to the current state of Enso IDE Category: Controllers The Application layer not bound to visual part Category: Visualizations Visualizations embedded in Enso IDE labels Mar 4, 2021
@mwu-tow mwu-tow self-assigned this Mar 4, 2021
src/rust/ide/src/controller/visualization.rs Outdated Show resolved Hide resolved
Comment on lines +27 to 28
// TODO [mwu] This should return Rc<ReferentName>.
fn name(&self) -> ImString;
Copy link
Member

Choose a reason for hiding this comment

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

Why ReferentName is not immutable by default (Why it doesn't embed Rc inside?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was introduced as a replacement for non-immutable String. Types in double representation module generally expect that Rc will be used on them, rather than built it in.

src/rust/ide/src/model/project.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@farmaazon farmaazon left a comment

Choose a reason for hiding this comment

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

  • The Table visualization doesn't work. IDE receives an update from the Engine, but nothing is displayed in visualization. Attached to one of the initial nodes in scene of fresh project.
  • Dataflow errors are not displayed. Try put 1.div 0 node. There should be error message below.

@mwu-tow mwu-tow requested a review from farmaazon March 9, 2021 09:04
@mwu-tow mwu-tow merged commit 4e7dfd0 into develop Mar 10, 2021
@mwu-tow mwu-tow deleted the wip/mwu/visualization-module-configuration-1167 branch March 10, 2021 10:09
mwu-tow added a commit to enso-org/enso that referenced this pull request Oct 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Category: Controllers The Application layer not bound to visual part Category: Visualizations Visualizations embedded in Enso IDE Difficulty: Core Contributor Should only be attempted by a core contributor Priority: Highest Should be completed ASAP Type: Enhancement An enhancement to the current state of Enso IDE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants