Quentin Guidée
e8b86ca6a1
[upstream] Update
2020-10-10 02:28:33 +02:00
Gabriel Ozouf
b7c7695707
[apps/code] Remove interruption check
...
A check for interruption in ConsoleController::printText caused script
to immediately stop when launched after an interrupted script.
This check was used to break out of infinite print loop, but now
becomes redundant with how micropython_port_vm_hook_loop was changed.
Change-Id: Ifa8d415e1b2c2406ad67300eb14ce46889af296f
2020-08-31 15:32:02 +02:00
Joachim LF
d7ac7e19bb
[Update] Epsilon 14
2020-07-13 10:36:47 +02:00
M4x1m3
81e9cbc0e0
Enabled circuit breaker with emscripten
...
This is possible because we use WASM and ASYNCIFY with the latest-upstream
toolchain.
2020-07-01 21:23:50 +02:00
Émilie Feral
bac2949a5e
[escher][apps] SelectableTableViewDelegate: add
...
tableViewDidChangeSelectionAndDidScroll method and implement it for
Calculation::HistoryController
This fixes the following bug: In the calculation application, input 1,
OK, 1/2/3/4/5/6/7/8, OK, up, up, left, down, up. The selection failed.
2020-06-25 13:48:47 +02:00
Léa Saviot
2d1d3ca944
[apps/code] Fix variables loading in the console
...
The two following scenari display empty variable boxes, when there
should be loaded variables.
1) Open the console, go back to the scripts menu, go back to the
console, open the variable box
2) Open the console, execute mandelbrot, open the variable box
2020-06-25 11:31:01 +02:00
Léa Saviot
1045f54633
[apps/code] Fix variables loading in the console
...
Scenario: execute a script, open the variable box, select a leaf, reopen
the variable box -> it shows empty
2020-06-19 12:10:24 +02:00
Léa Saviot
ff3b756080
[apps/console] Fix the script console fetch status cleaning
...
unloadPythonEnvironment is not called when leaving the app, only after
editing a script, so it did not do what we wanted.
2020-06-11 14:12:50 +02:00
Léa Saviot
bee7441444
[apps/code] Fix an assertion break
...
Scenario: write a script, execute it in the console and open the
variable box, go back to edition and trigger autocompletion.
2020-06-10 10:49:22 +02:00
Léa Saviot
1ccb55a16e
[apps/code] Fix script importation status
...
Scenario: Execute the script parabola.py, open the variable box, select
any leaf, enter, open the variable box again -> no variables are loaded
anymore
2020-06-09 15:12:13 +02:00
Léa Saviot
1635f6132b
[apps/code] Fix circular importation in the variable box
...
Scenario (crashed only on the calculator):
script1.py
from script2 import *
a=1
script2.py
from script1 import *
b=2
2020-06-04 14:50:10 +02:00
Léa Saviot
f763bb50ac
[apps/code] Do not display subtitles in var box from console
2020-06-04 14:50:07 +02:00
Léa Saviot
714410287a
[apps/code] Remove TODOs
2020-06-04 14:50:06 +02:00
Léa Saviot
bba5b237d2
[apps/code] Display different varbox titles from editor and console
2020-06-04 14:50:06 +02:00
Léa Saviot
ac654f0097
[apps/code] Load varbox before returning it in console
2020-06-04 14:50:06 +02:00
Léa Saviot
d1c8bbdaf7
[apps/code] The console marks imported script for the var box
...
After lauching the console, if we fetch a script we mark it as fetched.
When the variable box displays variables from imported scripts, it scans
all the variables from the scripts marked as fetched.
2020-06-04 14:50:06 +02:00
Léa Saviot
f412d95584
[apps/code] Load builtins according to autocompleted text
2020-06-04 14:50:04 +02:00
Léa Saviot
b9693f1f26
[apps/code] Load variable box with script index argument
2020-06-04 14:50:03 +02:00
Quentin
f37040dc8a
[Fix] Conflicts
2020-04-16 14:04:56 +02:00
Romain Goyet
950862f8d0
Use std::min and std::max
2020-04-14 09:31:02 -04:00
Quentin
0d56576f9c
[Git] Fix conflicts
2020-04-01 11:36:16 +02:00
Émilie Feral
d247843da6
[apps/code] Clean ConsoleController::reloadData (always returns true)
2020-04-01 10:18:09 +02:00
Émilie Feral
81284120af
[apps/code] ConsoleController: refreshOutput is now done only when the
...
console is active
2020-04-01 10:18:09 +02:00
Émilie Feral
fb3f6ab6f3
[apps/code][python] ConsoleController doesn't keep any pointer/boolean to know
...
if the sandbox/matplotlib view controller is displayed. Its state won't be
always right; instead, use the StackViewController depth.
This fixes the following bug: when popping the sandbox/matplotlib view
controller, the first responder token was not given to the console
controller!
2020-04-01 10:18:09 +02:00
Émilie Feral
89b54d424e
[apps/code] ConsoleController: when becoming first responder, check if a
...
controller is displayed and switch the first responder accordingly
2020-04-01 10:18:09 +02:00
Émilie Feral
7d48d4e7c4
[apps/code] Console controller: display only one ExecutionViewController
...
at a time
2020-04-01 10:18:08 +02:00
Émilie Feral
53ec023ea0
[apps/code] ConsoleController: factorize code to reload the table
2020-04-01 10:18:08 +02:00
Émilie Feral
659da1dff8
[apps][python] ExecutionEnvironment handles hide sand display of sandbox
...
and plot controller the same way
2020-04-01 10:18:08 +02:00
Émilie Feral
51da01aa11
[apps/code] Remove 'm_preventEdition' from ConsoleController, it was
...
always used with m_preventEdition = true.
2020-04-01 10:18:08 +02:00
Romain Goyet
d71ad9b288
[wip] Convenience to test matplotlib
2020-04-01 10:18:08 +02:00
Romain Goyet
3df8018943
[apps/code] Remove useless code
2020-04-01 10:18:08 +02:00
Romain Goyet
2b73c4c9aa
[apps/code] Quick hacks to allow pushing a view controller
2020-04-01 10:18:08 +02:00
Romain Goyet
131df18b00
[python] A module can now ask to present a view controller
2020-04-01 10:18:08 +02:00
Quentin Guidée
02a5826789
Merge branch 'master' of https://github.com/numworks/epsilon into numworks-master
2020-02-28 19:50:43 +01:00
Léa Saviot
f12c53b3f2
[apps/code] printText should not be asynchronous in emscripten
...
Otherwise, we need to put in the whitelist all methods that might call
printText, which are a lot.
2020-02-27 11:32:26 +01:00
Quentin Guidée
a9c46dc28c
Fix conflicts
2020-02-26 22:17:57 +01:00
Léa Saviot
02e79ad595
[apps/code] Do not refresh the print if the sandbox is displayed
...
Otherwise the first responder becomes the console edit line, and events
(such as Toolbox) are not intercepted by the sandbox anymore.
2020-02-25 15:31:25 +01:00
Léa Saviot
9bc0776a6a
[apps/code] Allow interruption of infinite print loops
...
while (True):
print("hello")
is now interruptible when the user presses Back
2020-02-20 10:59:01 +01:00
Léa Saviot
cf37e5c45a
[apps/code] Fix input(), that did not return the input
2020-02-20 10:52:19 +01:00
Léa Saviot
84a66d3b31
[apps/code] Fix input(), that did not return the input
2020-02-20 00:20:41 +01:00
Léa Saviot
73bec71db3
[apps/code] Allow interruption of infinite print loops
...
while (True):
print("hello")
is now interruptible when the user presses Back
2020-02-20 00:08:42 +01:00
Quentin Guidée
5b2f33c80a
Fix conflicts
2020-02-17 17:10:32 +01:00
Romain Goyet
a187f39094
[apps] Report telemetry events
2020-02-17 10:31:24 -05:00
Romain Goyet
7f43b73049
[apps] Don't forget to call viewWillAppear
...
At the moment ViewController::viewWillAppear doesn't do anything, so
there is no real impact. But if we want to use it it needs to be called
from subclasses.
2020-02-17 10:31:24 -05:00
Quentin Guidée
ab8f731515
Fixed some conflicts
2020-02-12 17:42:58 +01:00
Léa Saviot
b7e177865a
[apps/code] Fix prompt after input
2020-02-12 15:13:22 +01:00
Léa Saviot
3dcb40b5d4
[apps/code] Do not call interrupt in printText
2020-02-12 15:13:22 +01:00
Léa Saviot
1dacd71acb
[apps/code] Remove unneeded arguments
2020-02-12 15:13:22 +01:00
Léa Saviot
c6c3e3f340
[apps/code] Hide prompt when running script
2020-02-12 15:13:22 +01:00
Léa Saviot
f47f1f0543
[apps/code] Refresh view in printText
2020-02-12 15:13:22 +01:00