-
+
stack: StackItem[]
- environment?: ExecutionEnvironment
+ environment: ExecutionEnvironment
}
type EntryPoint = Omit
@@ -326,7 +330,12 @@ export class ExecutionContext extends ObservableV2
if (result.value.contextId !== this.id) {
return Err('Unexpected Context ID returned by the language server.')
}
- newState = { status: 'created', visualizations: new Map(), stack: [] }
+ newState = {
+ status: 'created',
+ visualizations: new Map(),
+ stack: [],
+ environment: DEFAULT_ENVIRONMENT,
+ }
return Ok()
}, 'Failed to create execution context')
}
diff --git a/app/gui2/src/stores/project/index.ts b/app/gui2/src/stores/project/index.ts
index f71d63978fe6..cce6e8d8cbfb 100644
--- a/app/gui2/src/stores/project/index.ts
+++ b/app/gui2/src/stores/project/index.ts
@@ -343,6 +343,10 @@ export const { provideFn: provideProjectStore, injectFn: useProjectStore } = cre
},
})
+ watch(executionMode, (modeValue) => {
+ executionContext.executionEnvironment = modeValue === 'live' ? 'Live' : 'Design'
+ })
+
function renameProject(newDisplayedName: string) {
try {
renameProjectBackend(newDisplayedName)
diff --git a/distribution/lib/Standard/Base/0.0.0-dev/src/System/File.enso b/distribution/lib/Standard/Base/0.0.0-dev/src/System/File.enso
index 4415e21a2f9d..a3cbb0e4f49a 100644
--- a/distribution/lib/Standard/Base/0.0.0-dev/src/System/File.enso
+++ b/distribution/lib/Standard/Base/0.0.0-dev/src/System/File.enso
@@ -121,7 +121,7 @@ type File
temp.delete_if_exists
## Attach a warning to the file that it is a dry run
- warning = Dry_Run_Operation.Warning "Only a dry run has occurred, with data written to a temporary file. Press the Record Once button ❙⬤❙ to write the actual file."
+ warning = Dry_Run_Operation.Warning "Only a dry run has occurred, with data written to a temporary file. Press the Run Workflow button ▶ to write the actual file."
Warning.attach warning temp
## ALIAS current directory
diff --git a/distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Upload_Table.enso b/distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Upload_Table.enso
index 59b9ba3f2bd2..e907789c0708 100644
--- a/distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Upload_Table.enso
+++ b/distribution/lib/Standard/Database/0.0.0-dev/src/Internal/Upload_Table.enso
@@ -51,7 +51,7 @@ create_table_implementation connection table_name structure primary_key temporar
internal_create_table_structure connection effective_table_name structure primary_key effective_temporary on_problems
if dry_run.not then connection.query (SQL_Query.Table_Name created_table_name) else
created_table = connection.base_connection.internal_allocate_dry_run_table created_table_name
- warning = Dry_Run_Operation.Warning "Only a dry run of `create_table` has occurred, creating a temporary table ("+created_table_name.pretty+"). Press the Record Once button ❙⬤❙ to create the actual one."
+ warning = Dry_Run_Operation.Warning "Only a dry run of `create_table` has occurred, creating a temporary table ("+created_table_name.pretty+"). Run Workflow button ▶ to create the actual one."
Warning.attach warning created_table
## PRIVATE
@@ -118,7 +118,7 @@ select_into_table_implementation source_table connection table_name primary_key
connection.drop_table tmp_table_name if_exists=True
internal_upload_table source_table connection tmp_table_name primary_key temporary=True on_problems=on_problems row_limit=dry_run_row_limit
temporary_table = connection.base_connection.internal_allocate_dry_run_table table.name
- warning = Dry_Run_Operation.Warning "Only a dry run of `select_into_database_table` was performed - a temporary table ("+tmp_table_name+") was created, containing a sample of the data. Press the Record Once button ❙⬤❙ to write to the actual table."
+ warning = Dry_Run_Operation.Warning "Only a dry run of `select_into_database_table` was performed - a temporary table ("+tmp_table_name+") was created, containing a sample of the data. Run Workflow button ▶ to write to the actual table."
Warning.attach warning temporary_table
## PRIVATE
@@ -345,7 +345,7 @@ common_update_table (source_table : DB_Table | Table) (target_table : DB_Table)
above fails, the whole transaction will be rolled back.
connection.drop_table tmp_table.name
if dry_run.not then resulting_table else
- warning = Dry_Run_Operation.Warning "Only a dry run of `update_rows` was performed - the target table has been returned unchanged. Press the Record Once button ❙⬤❙ to update the actual table."
+ warning = Dry_Run_Operation.Warning "Only a dry run of `update_rows` was performed - the target table has been returned unchanged. Press the Run Workflow button ▶ to update the actual table."
Warning.attach warning resulting_table
## PRIVATE
@@ -551,7 +551,7 @@ common_delete_rows target_table key_values_to_delete key_columns allow_duplicate
source.drop_temporary_table connection
if dry_run.not then affected_row_count else
suffix = source.dry_run_message_suffix
- warning = Dry_Run_Operation.Warning "Only a dry run of `delete_rows` was performed - the target table has not been changed. Press the Record Once button ❙⬤❙ to update the actual table."+suffix
+ warning = Dry_Run_Operation.Warning "Only a dry run of `delete_rows` was performed - the target table has not been changed. Press the Run Workflow button ▶ to update the actual table."+suffix
Warning.attach warning affected_row_count
## PRIVATE
diff --git a/engine/runtime/src/main/java/org/enso/interpreter/EnsoLanguage.java b/engine/runtime/src/main/java/org/enso/interpreter/EnsoLanguage.java
index 8c7ed0dbeafa..56a6fcb99d6b 100644
--- a/engine/runtime/src/main/java/org/enso/interpreter/EnsoLanguage.java
+++ b/engine/runtime/src/main/java/org/enso/interpreter/EnsoLanguage.java
@@ -328,6 +328,8 @@ private boolean astContainsExprTypes(Tree ast, List> exprT
help = "The environment for program execution. Defaults to `design`.")
public static final OptionKey EXECUTION_ENVIRONMENT =
new OptionKey<>(
+ // If you change the default, remember to update DEFAULT_ENVIRONMENT in
+ // app/gui2/src/stores/project/executionContext.ts
ExecutionEnvironment.DESIGN,
new OptionType<>("ExecutionEnvironment", ExecutionEnvironment::forName));