Commit graph

735 commits

Author SHA1 Message Date
Michał Gibowski 10b78973cc
Fix spelling in runtime.ex docs (#822) 2021-12-23 13:20:55 +01:00
Benjamin Philip 1f6a75c4e3
Do not show choose file button if file select component is active (#821) 2021-12-23 12:29:49 +01:00
Michał Gibowski 4c5fd9a413
Add missing npm install step to Dev instructions (#815)
* Add missing `npm install` step to Dev instructions

* Update README.md

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-12-22 18:52:17 +01:00
Jonatan Kłosko 87a17f1fc5 Respect \r in individual stdout results 2021-12-22 15:48:35 +01:00
José Valim 4badf40afc Add TODOs 2021-12-17 23:24:17 +01:00
José Valim d8833be010 Make app.html consistent with live.html 2021-12-16 20:21:49 +01:00
Eksperimental ba365d7247
Improve command to show current commit (#809)
It `git show` will show the changes, not just the commit. 
It may not be clear to users that they only need to include the commit id.
2021-12-16 19:08:35 +01:00
José Valim 8f25c25c7a
Trigger the GC after evaluation and intellisense (#807)
This reduces memory consumption by the runtime,
especially when using intellisense features which
may generate a lot of garbage.

There is an odd chance this can generate slow downs
in certain cases but, for that to happen, I would
expect the notebook to either have a lot of data
allocated or many users interacting with it and
triggering completion and other features at the same
time.

We don't worry about the second case because the
goal is to move completion to an ephemeral separate
process anyway, which would remove the need for GC
during completion altogether (and allow several
completions to run concurrently). If this happens,
we can consider moving GC out of the evaluator and
have the session explicitly trigger it once it
terminates a chain of evaluation.

It is also worth triggering the GC whenever
we forget an evaluation context.
2021-12-15 12:25:09 +01:00
Kian Meng, Ang a58d0ed0c2
Fix license section markdown (#801) 2021-12-13 07:33:34 +01:00
Jonatan Kłosko 877ab913c8
Display full module name in hover docs (#798)
* Display full module name in hover docs

* Use inspect

* Return atom names from identifier matcher
2021-12-12 21:34:16 +01:00
Max Veytsman 4aa5447e9d
Add completion for struct keys (#793)
* Add completion for struct keys

Largely ported from `IEx.Autocomplete`.

* Add test for __exception__ field in struct

* Fix exception test

* Fix exceptions assetion

* Create `:in_struct_field` identifier

Along with a refactor

* Fix typespecs for `:map_field`

* Address feedback

* Update lib/livebook/intellisense/identifier_matcher.ex

Co-authored-by: José Valim <jose.valim@gmail.com>

* Use markdown snippet for both docs

* Fix tests

Co-authored-by: José Valim <jose.valim@gmail.com>
2021-12-12 21:19:17 +01:00
jonatanklosko 9598fa6b34 Update assets 2021-12-12 19:27:47 +00:00
Jean Carlos aa8f431608
Added margin on copy button (#796)
* fix handleDocumentFocus error

* format correction

* Update assets/js/session/index.js

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* format correction

* Update assets/js/session/index.js

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Move basic view to the top

* Added margin on copy button

* Update lib/livebook_web/live/output/text_component.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Update lib/livebook_web/live/output/text_component.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-12-12 20:26:10 +01:00
Alex Kwiatkowski 2688a685b9
Support telemetry poller 1.0 (#799) 2021-12-12 09:40:38 +01:00
jonatanklosko 9d85d33926 Update assets 2021-12-11 23:11:47 +00:00
Jonatan Kłosko b0563d14a6
Fix completion shortcuts (#792)
* Fix completion shortcuts

* Remove shortcut override
2021-12-12 00:10:15 +01:00
Jonatan Kłosko 6f53e3db6a
Add support for form control (#790)
* Add support for form control

* Handle report_changes map

* Assert on input/control events
2021-12-12 00:09:35 +01:00
Thomas Schmidleithner 460668402f
Fix docs after refactoring live_modal to modal (#794) 2021-12-12 00:08:54 +01:00
Jean Carlos 1d6348d7f1
Move basic view in the shortcut pane to the top (#791)
* fix handleDocumentFocus error

* format correction

* Update assets/js/session/index.js

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* format correction

* Update assets/js/session/index.js

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Move basic view to the top

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-12-11 01:57:54 +01:00
José Valim 67e73b6f89 Remove autocompletion to deprecated operator 2021-12-10 23:39:30 +01:00
José Valim bb27fc9fa8 Remove compile time deps from erl_dist 2021-12-10 23:38:57 +01:00
José Valim 8cb511fb87 Move required cell to autocomplation section for clarity 2021-12-10 16:04:48 +01:00
José Valim 69da78c13a Disable consolidation in distributed notebook, closes #786 2021-12-10 11:30:42 +01:00
Jonatan Kłosko e0c68f30f3
Release 0.4.1 (#783) 2021-12-09 22:36:22 +01:00
Jonatan Kłosko b422e1d98f
Revert to URI.new! (#784) 2021-12-09 20:46:45 +01:00
José Valim c66582f8bb
Include full stacktrace for unexpected exceptions (#781)
* Include full stacktrace for unexpected exceptions

* Update lib/livebook_cli.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-12-09 15:44:23 +01:00
jonatanklosko 33b220873f Update assets 2021-12-09 11:53:10 +00:00
Jean Carlos b92bf3ae7c
fix handleDocumentFocus error (#778)
* fix handleDocumentFocus error

* format correction

* Update assets/js/session/index.js

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* format correction

* Update assets/js/session/index.js

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-12-09 12:51:32 +01:00
jonatanklosko dcafe5c1fe Update assets 2021-12-09 11:20:16 +00:00
Jonatan Kłosko ee2602c932
Keep indentation when pasting code into the editor (#779) 2021-12-09 12:18:41 +01:00
jonatanklosko 973fc51c9d Update assets 2021-12-08 15:32:53 +00:00
Jonatan Kłosko a133a7070d
Use different icon when output is amplified (#775) 2021-12-08 16:30:52 +01:00
Stephen Ball 8c4ef89685
Update the vim modeline comment to not error (#774)
The currently suggested vim modeline formatting string to allow .livemd
files to render as markdown on GitHub works, but confuses vim itself.

```
<!-- vim: syntax=markdown -->
```

When opening a .livemd file with the suggested modeline in vim it errors
when it tries to parse `-->` as a modeline option.

e.g.

```
"2021/day2.livemd" 81L, 1616B
Error detected while processing modelines:
line    1:
E518: Unknown option: -->
```

The fix is to replace the suggested vim modeline

```
<!-- vim: syntax=markdown -->
```

With a modeline declaration format that indicates when the modeline
options are complete, allowing vim to ignore the rest of the line.

```
<!-- vim: set syntax=markdown: -->
```

Reference
- vim issue: https://github.com/vim/vim/issues/1648
- especially this comment: https://github.com/vim/vim/issues/1648#issuecomment-296386153

Fixes #773
2021-12-08 16:15:07 +01:00
Jonatan Kłosko fef322706f
Revert to URI.parse/1 (#770) 2021-12-08 16:11:04 +01:00
Kevin c9b21f221d
Update file infos then running_files changed (#772) 2021-12-08 13:53:31 +01:00
Kevin feb0ac214e
Fix error on back after closing session (#769)
* Fix error on back after closing session

Clicking the browsers back button after closing a session
resulted in an error since it was trying to close an already closed notebook

* Overwrite back history on section delete
2021-12-08 13:17:50 +01:00
roboticsdude60 3f86af051c
Update README.md (#767)
bump the version requirement of Elixir to match 1.13 from the previous 1.12
2021-12-08 08:08:23 +01:00
jonatanklosko 6144b679b6 Update assets 2021-12-07 18:16:26 +00:00
Jonatan Kłosko 89ea67861f
Improve "changed" indicator and batch evaluation shortcuts (#766)
* Make cell status italic when content changed

* Add Ctrl+Shift+Enter for evaluating all cells

* Improve the behaviour of evaluating all cells

* Fix typo
2021-12-07 19:14:32 +01:00
jonatanklosko 812f753a37 Update assets 2021-12-06 13:17:40 +00:00
Jonatan Kłosko 84222d0a0c
Allow editor command palette to overflow (#764) 2021-12-06 14:15:44 +01:00
jonatanklosko e98bfacfd0 Update assets 2021-12-06 12:11:56 +00:00
Jonatan Kłosko 859dfd9eb2
Disable word suggestions on Elixir cells (#763) 2021-12-06 13:10:16 +01:00
Kyungyeol Kim (Bret) a5cb366c73
Fix class name in import_file_uploader_component (#762) 2021-12-06 12:38:39 +01:00
Jonatan Kłosko f44e34d3d7
Release 0.4.0 (#745) 2021-12-05 19:12:11 +01:00
Jonatan Kłosko b97cde0879
Improve completion (#756)
* Don't show variable value in intellisense

* Don't complete quoted atoms
2021-12-05 16:49:51 +01:00
Jonatan Kłosko be3225fe3a
Bump Kino in explore notebooks (#755) 2021-12-05 16:26:46 +01:00
jonatanklosko d40a884f31 Update assets 2021-12-05 14:00:34 +00:00
Jonatan Kłosko d909272746
Improve completion (#747)
* Add keywords to completion

* Fix signature request caching for call without parentheses

* Don't insert parentheses for def* macros

* Don't trigger missing runtime message when auto completion is enabled

* Don't insert parentheses for keyword macros

* Improve completion of env macros

* Apply review comments

* Update locals without parentheses

* Apply suggestions from code review

Co-authored-by: José Valim <jose.valim@dashbit.co>

* Format

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-12-05 14:58:30 +01:00
Jonatan Kłosko 4b5ea87b3d
Include notebook name in the autosaved notebook path (#748)
* Include notebook name in the autosaved notebook path

* Add test for persisting unsaved notebooks
2021-12-05 14:58:19 +01:00