Commit graph

2913 commits

Author SHA1 Message Date
John Miller
b2bc8159d4 Brute-foce the dependencies on undo-tree and px for emacs-25.
At least until I can figure out why 25.1 breaks here and not elsewhere.
2019-10-15 07:23:51 -05:00
John Miller
940e1f031e Fix cask. 2019-10-11 10:25:40 -05:00
John Miller
1aae4eea54 Specifying a version for undo-tree breaks emacs 25 environment. 2019-10-11 10:04:26 -05:00
John Miller
8bd83ef1b6 Melpa Stable is a Quagmire.
See https://github.com/emacs-ess/ESS/issues/629. Should update README to
recommend MELPA over MELPA Stable.
2019-10-11 09:28:56 -05:00
John Miller
d308de886e julia-mode is a dependency for ess.
But it isn't in melpa stable, yet. See
https://github.com/JuliaEditorSupport/julia-emacs/issues/46
2019-10-11 09:00:35 -05:00
John Miller
01f0012eba Make stable versions explicit in Cask. 2019-10-10 21:13:39 -05:00
John Miller
4399f92b6b Remove px dependency as it is not in melpa stable. 2019-10-10 14:04:52 -05:00
John Miller
eea09c2a55 Reference melpa-stable in build files. 2019-10-10 09:14:32 -05:00
John Miller
965d637781 Merge in ecukes fix for ac testing in travis. 2019-10-10 08:19:03 -05:00
John Miller
ae0df867bf Reference package versions available on Melpa Stable.
This is a stable release, after all. We also seem to be in luck in that all EIN
appears to be working with the stable versions (at least per local testing).
2019-10-10 08:11:26 -05:00
John Miller
3d5189fc6e Make it emacs 26.3, maybe it can find undo-tree. 2019-09-25 17:24:29 -05:00
John Miller
18c4be2f45 Looks like we need a xenial build. 2019-09-23 23:19:31 -05:00
John Miller
fcf13afcc7 Try an earlier version of emacs. 2019-09-23 22:52:56 -05:00
John Miller
ca10eec604 Try different emacs build for xenial. 2019-09-23 22:18:24 -05:00
John Miller
b129c230da What is causing the gnutls handshake errors? 2019-09-23 21:40:23 -05:00
John Miller
818d2a34f8 libgnutls-dev, not gnutls-dev 2019-09-23 21:15:11 -05:00
John Miller
576f6a148e Seem to be having a hard time finding the right gnutls library version. 2019-09-23 20:46:43 -05:00
John Miller
d9b5564524 Let us try xenial+python37+emacs26.3 2019-09-23 19:46:51 -05:00
John Miller
550258243a Is python 3.7 available on trusty builds? 2019-09-23 19:22:33 -05:00
John Miller
25399f17d8 Update travis builds. 2019-09-23 19:17:51 -05:00
John Miller
a2872eff6c
Merge pull request #582 from dickmao/doc-issue-580
Clarification of readme
2019-08-13 20:57:23 -05:00
dickmao
51c71b964f change README.rst [skip ci] 2019-08-13 19:17:04 -04:00
dickmao
a918fb06d2 Clarification of readme [skip ci] 2019-08-13 19:14:41 -04:00
John Miller
223f59bedf
Merge pull request #581 from dickmao/doc-issue-580
Do not advertise LSP compatibility
2019-08-13 16:56:35 -05:00
dickmao
61238485e0 Closes #580 2019-08-13 08:04:47 -04:00
John Miller
52f304d038
Merge pull request #577 from dickmao/bug-issue-576
org export needs to be synchronous
2019-08-12 09:12:50 -06:00
dickmao
2ca536fdec add org-export test 2019-08-10 21:16:51 -04:00
John Miller
cfd7a9a117
Merge pull request #575 from dickmao/shutdown
Shutdown
2019-08-09 17:51:04 -06:00
dickmao
101a04acc8 the failures happen often enough we should not split the screen. 2019-08-07 17:06:56 -04:00
dickmao
d6d97d135c Shutting down
On my linux machine and travis, I'm noticing the undocumented
`api/shutdown` does not reliably kill the server.

I tried my best with appveyor but couldn't coerce it back to the
working state 13 days ago.
2019-08-07 17:01:11 -04:00
John Miller
ce419a12a5
Appveyor iterating (WIP) (#573)
* ob-ein: Bring back old functionality.

Bring back some old features to babel edit buffers while trying to respect
recent addition of polymode support.

* Override polymode if the user really wants.

Polymode is really for notebook buffers in any case, but this will override
whatever completion backmode a user has configured for python-mode.

* Install cask using python2.

For now python2 is the easiest option for testing on Windows since cask does
not properly support python3 when in Windows.

* Let's throw in the ert-runner, see what happens.

* Can I use my fork of cask?

Work around smartrep weirdness, try to live without command line wildcard
expansion.

* Get the url for the fork right.

* Experiment with python37, use test_script.

* Unstick appveyor, I hope.

* Fix parsing error.

* test_script is not executing. Why?

* Add ert testing.

But why are the test_script commands not executing?

* tasks: Automate building and testing using invoke.

Invoke leverages Python, which I hope will allow us to abstract out differences
in platforms when it comes to building and testing ein.

* Use invoke on appveyor.

* appveyor: Use the environment python.

So we can test versions other than python 2.7.

* Parsing error.

Is
https://packaging.python.org/guides/supporting-windows-using-appveyor/#setting-up
lying to me?

* Quote commands, just in case.

* Get python onto the path.

* Appveyor is catching up to travis.

* Parsing error.

* Update pip, try to get quoted syntax right.

* Still not liking my pip call.

Last try, next step we go to a requirements.txt file.

* Go to using a requirements file for pip.

* ecukes needs bash to work.

* Cleaning up and fiddling.

Seems like the emacs-jupyter guy has his act together - maybe we can take some
inspiration for our appveyor config.

* Syntax error in environment.

* More syntax errros.

* Maybe we need quoting.

* I give up.

* Formatting and cleanup.

* Add customization, yet another syntax error.

New customizable variable `ob-ein-babel-edit-polymode-ignore' to override
keybinding for \C-c\C-c in an org source code edit buffer.

* John learned some Powershell today.

* Fix the executable path.

Sometimes there is more than one curl installed on the system, make sure we can
account for that in testing.

* Handle updating the path inside invoke.

* Report which curl we are using before starting functional tests.

* Enable RDP so we can see error logs.

* Keep the build alive even when it finishes.

* Fix #568.

Apparently we need to specify the user agent when on windows, otherwise tornado
will start throwing 403 responses. Currently using Mozilla/4.0 as the agent, but
might be a good idea to make this value customizable.

* Clean up emacs config.

* Why is appveyor dropping the xsrf token?

* xsrf cookie found, what does the header look like?

* Try different user-agent header, reenable rdp.

* JSON encoding issues on Python side, it appears. Let's try an older Python.

Login works, contents query to get notebooklist works (i.e. GET on
/contents/api), but creating a notebook (i.e. POST on /contents/api) fails with
invalid JSON. ein and emacs-request appear to be generating the proper json, but
jupyter notebook does not see the same thing that is being written. Could be
bytes vs. text issue with modern v3.x python, so let us see how this all works
with Python 2.7.

* Python27 does not have pathlib out of the box.

* Make amends with Python27

* Back to python37.

Tornado/notebook still isn't reading the POST'ed json correctly.

* Do we need to specify content type?

* Must be selective in specifying application/json content.

* Re-enable rdp.

* Let's try a different curl.

* Ensure most recent curl is on path

* Try a different path.

* Try to warn user if suspicious curl detected.

* Remove debugging statements.

* EVM depends on trusty for 26.x

See issue #125 (https://github.com/rejeep/evm/issues/125). Let's hope I got the
travis.yml syntax right.

* Minimal support for ecukes from invoke.

* Cleaner server shutdowns, better ecukes support from invoke.

Use the /api/shutdown REST API call now to shutdown running server. Also support
more command line options for ecukes from invoke.

* Almost full support of ecukes using invoke.

But! Also disabling integration testing for the time being until I understand
why ecukes fails even though everything else is working.

* Just do integration and functional testing on appveyor.

Better than nothing while I work out what is breaking the integration tests.
2019-07-28 18:20:13 -06:00
John Miller
fbf6664c33
Merge pull request #567 from dickmao/request-library-upgraded
tkf/emacs-request 0.3.1 defaults encoding to utf-8
2019-07-02 07:30:50 -05:00
dickmao
452d0e01b4 tkf/emacs-request 0.3.1 defaults encoding to utf-8
ein seems to have preferred the old default encoding of `binary` versus
`utf-8`.  Explicity set encoding back to `binary` but this
necessitates our using the latest emacs-request.

Fixes #566
2019-07-02 00:12:52 -04:00
John Miller
1b98f488af
Merge pull request #565 from dickmao/last-jedi
Keep jedi at 0.13.3
2019-06-22 15:51:40 -05:00
dickmao
63c55076cf the edge of jedi==0.14.0 is too sharp 2019-06-22 14:28:26 -04:00
John Miller
4e7d56a7d9
Document and dependency updates. (#561)
* Documentation chasing the commit tail.

* This really belongs with the project.

No longer 100% up to date, but worth including if nothing more than for
historical purposes.

* Update ob-ein documentation.

* Fix testing for emacs 27.

Shouldn't setq a structure accessor.

* Add the changelog.

* Workaround for issue #559.

Force ein to use an earlier version (0.9) of websocket.

* Update to v0.16.1

* Add changelog.

One of these days I will remember.

* Get my links right.

* Revert now that websocket is working again.

* Doc updates, dependency updates, prepare for another release.

Make sure we point to a working version of websocket. Documenting some changes
so we can release v0.16.2.

* Make sure we get all the documentation changes in.

* Latest IPython version is 7.5.

Update travis accordingly.
2019-06-22 10:01:50 -05:00
John Miller
8c5e9e220f
Merge pull request #562 from sam-s/master
fix#560: request-response-status-code may return nil
2019-06-22 09:04:35 -05:00
Sam Steingold
7cb4f91f7e fix#560: request-response-status-code may return nil 2019-06-21 09:39:03 -04:00
John Miller
27e9b8c9c4
Merge pull request #557 from dickmao/issue-456-redux
Polymode bugfixes
2019-06-11 07:29:21 -05:00
dickmao
dd531b5664 julia needs a brew update, however 2019-06-10 21:35:50 -04:00
dickmao
fbd01d1ca1 more instances of the same 2019-06-10 21:21:53 -04:00
dickmao
2f843ff5e2 The workaround referenced in
https://github.com/Homebrew/brew/issues/5513 may no longer be
necessary (and takes 10 minutes)
2019-06-10 21:09:54 -04:00
dickmao
3dce51ae20 osx speedup 2019-06-10 20:46:41 -04:00
dickmao
84a9fe7d21 Imperfect polymode testing
Unfortunately, no good way to test font-lock as font-lock-mode won't
activate under noninteractive ecukes (can try --no-win or --win, but
won't fly under travis)

In practice, polymode font-lock bugs often manifest themselves much as
issue #456 did.  The rear-nonsticky property on the input prompt gets
washed away by font-lock and brokenness ensues.
2019-06-10 20:07:58 -04:00
dickmao
1bdb5b0651 Polymode bugfixes
Because global-font-lock-mode will call font-lock-initial-fontify, the
inconsistency caused by nullifying font-lock-function while preserving
font-lock-fontify-buffer-function causes the whole buffer to get
fontified in polymode

Commit a969736 duplicated the before-until advice on
syntax-propertize.  This broke polymode badly, and yet none of my
tests catch this (partly because it's hard to test font-lock).
2019-06-10 19:10:55 -04:00
John Miller
2207014453
Merge pull request #553 from dickmao/issue-552-command
Do not assume "notebook" subcommand
2019-06-05 15:02:21 -05:00
dickmao
3f6e507857 Do not assume "notebook" subcommand
Some users run jupyter via `jupyter-notebook` instead of `jupyter`,
and break because we unilaterally impose the "notebook" subcommand.

Those users can now:
```
M-x customize-group ein
Jupyter Server Use Subcommand: Omit
```
2019-06-05 14:30:26 -04:00
John Miller
4bbdddf95c
Merge pull request #550 from millejoh/issue-547-kill-edit-cell
Issue 547 kill edit cell
2019-06-01 12:46:35 -05:00
John Miller
88a52f52ea Eldoc support should only show the function signature.
Returning the entire help string can be distracting as the minibuffers expands
to try to fit everything on string. The point of eldoc is to help with function
signature.
2019-06-01 09:51:19 -05:00
John Miller
609abd9a5e ein-cell-edit: Restore window configuration after exiting edit buffer.
Fixes #547.
2019-06-01 09:35:50 -05:00