-
Notifications
You must be signed in to change notification settings - Fork 323
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
Reimplement enso_project
as a proper builtin
#6352
Conversation
It used to print literals [{0}] instead of the real content.
Remove its code generation.
e9ab0f4
to
3ae329e
Compare
3ae329e
to
0fa6cb0
Compare
enso_project
to suggestion databaseenso_project
as a proper builtin
Please also add tests checking that
|
distribution/lib/Standard/Base/0.0.0-dev/src/Meta/Enso_Project.enso
Outdated
Show resolved
Hide resolved
fbe7491
to
92669ee
Compare
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.
As the principal API still works am happy with this.
@@ -42,6 +43,7 @@ export project.Errors | |||
export project.IO | |||
export project.Math | |||
export project.Meta | |||
from project.Meta.Enso_Project export enso_project |
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.
We should probably add enso_project
to micro-distribution
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.
Done in ef5deaf
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.
Even though the module layout is not the same as in the standard distribution, but that should not be a problem, right?
# Conflicts: # lib/scala/interpreter-dsl/src/main/java/org/enso/interpreter/dsl/MethodProcessor.java
7f700c9
to
ef5deaf
Compare
It broke some test in RuntimeErrorsTest.
Cannot reproduce
(https://github.com/enso-org/enso/actions/runs/4839795157/jobs/8625338504#step:10:765) locally. Ensure "CI: Clean build required" label is set and restarting the jobs.
|
Forcing clean build with clean action. Seems like |
* develop: (34 commits) Continued Execution Context work and some little fixes (#6506) IDE's logging to a file (#6478) Fix application config (#6513) Cloud/desktop mode switcher (#6448) Fix doubled named arguments bug (#6422) Reimplement `enso_project` as a proper builtin (#6352) Fix layer ordering between dropdown and breadcrumbs backgrounds. (#6483) Multiflavor layers (#6477) DataflowAnalysis preserves dependencies order (#6493) Implement `create_database_table` for Database Table (#6467) Limit Dead Letter logging (#6482) More reliable shutdown of the EnsoContext to save resources (#6468) Make execution mode `live` default for CLI (#6496) Finishing Vector Editor (#6470) Proper handling of multiple list views. (#6461) Fix disappearing cached shapes (#6458) Add Execution Context control to Text.write (#6459) Change defaults for `Connection.tables` and ensure that `Connection.query` recognizes all available tables (#6443) Introducing @BuiltinMethod.needsFrame and InlineableNode (#6442) Hide profile button behind a feature flag (#6430) ...
* develop: Fix cut-off in text visualisations (#6421) Infer correct synthetic name for nested modules (#6525) Delete unused websocket dependency (#6535) Run typecheck and eslint on `./run lint` (#6314) Force pending saves if client closes abruptly (#6514) Continued Execution Context work and some little fixes (#6506) IDE's logging to a file (#6478) Fix application config (#6513) Cloud/desktop mode switcher (#6448) Fix doubled named arguments bug (#6422) Reimplement `enso_project` as a proper builtin (#6352) Fix layer ordering between dropdown and breadcrumbs backgrounds. (#6483) Multiflavor layers (#6477) DataflowAnalysis preserves dependencies order (#6493) Implement `create_database_table` for Database Table (#6467) Limit Dead Letter logging (#6482) More reliable shutdown of the EnsoContext to save resources (#6468) Make execution mode `live` default for CLI (#6496)
Fixes #5050
Pull Request Description
Remove the magical code generation of
enso_project
method from codegen phase and reimplement it as a proper builtin method.The old behavior of
enso_project
was special, and violated the language semantics (regarding theself
argument):Base.enso_project
, orVisualizations.enso_project
.Let's avoid implicit methods on modules and let's be explicit. Let's reimplement the
enso_project
as a builtin method. To comply with the language semantics, we will have to change the signature a bit:enso_project
is a static method in theStandard.Base.Meta.Enso_Project
module.project
argument (instead of taking it as an explicit self argument).Having the
enso_project
defined as a (shadowed) builtin method, we will automatically have suggestions created for it.Important Notes
enso_project
method. It is a standard builtin now.enso_project
is nowfrom Standard.Base.Meta.Enso_Project import enso_project
.org.enso.compiler.ExecCompilerTest#testInvalidEnsoProjectRef
.Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.