Skip to content
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

Update sage-mode to 0.9.1 #13182

Closed
gvol opened this issue Jun 29, 2012 · 28 comments
Closed

Update sage-mode to 0.9.1 #13182

gvol opened this issue Jun 29, 2012 · 28 comments

Comments

@gvol
Copy link

gvol commented Jun 29, 2012

After updating to 0.7 in #13176 we should move to the latest release.

The 0.9.1 spkg is at https://bitbucket.org/gvol/sage-mode/downloads/sage_mode-0.9.1.spkg

Version 0.8 includes support python.el by fgallina which will is in Emacs 24.2.

Version 0.9 includes improved sage-view rendering and, importantly, support the new ipython. Without 0.9 simple things such as tab completion are completely broken in Sage 5.7 and later.

Version 0.9.1 Fixes some problems reported on this ticket.

CC: @hivert @dwbump @jpflori

Component: packages: optional

Keywords: sage-mode

Author: Ivan Andrus

Reviewer: Frédéric Chapoton

Issue created by migration from https://trac.sagemath.org/ticket/13182

@gvol

This comment has been minimized.

@gvol
Copy link
Author

gvol commented Sep 12, 2012

comment:2

I have released sage-mode 0.8, so I'm marking this as needs review. Please reinstall the sage_mode spkg from the link in the description before reviewing.

@dandrake
Copy link
Contributor

comment:3

If nothing else, I'm happy that the name of the spkg now has an underscore (sage_mode instead of sage-mode). This may seem unimportant, but the usual "sage -i" command gets confused when the spkg name has a hyphen in it (some script splits on the hyphen to separate the name from the version number). So thanks for the name change!

I'll look over the spkg but my elisp knowledge is probably too minimal to properly review this, and I'm also stuck with Emacs 23 for now.

@gvol
Copy link
Author

gvol commented Nov 24, 2012

comment:4

Since this is technically an upstream package (and still optional) I don't know that you need to check the elisp so much as just make sure that it installs, and works correctly. Though of course feedback on the elisp is welcome too.

There is a known issue with new versions of Sage and pretty printing output.

@gvol

This comment has been minimized.

@nthiery
Copy link
Contributor

nthiery commented Mar 7, 2013

comment:6

I can confirm that 0.9 installed and ran smoothly on my machine (Ubuntu 12.04, emacs 23.3). And given that it fixes a critical issue (tab completion) with the latest version of Sage, I am all in favor for getting this in! Thanks for name change as well.

@gvol

This comment has been minimized.

@gvol
Copy link
Author

gvol commented Mar 10, 2013

comment:7

I have updated slightly the 0.9 package and made an official release. Since 0.7 is broken wrt newer versions of Sage I have changed this to a defect.

@gvol gvol changed the title Update sage-mode to 0.8 Update sage-mode to 0.9 Mar 10, 2013
@dandrake
Copy link
Contributor

comment:9

I've installed the 0.9 spkg into 5.9.beta0 on Ubuntu 12.10 (with emacs 23.4) and things seem to work fine. I'm going to try with emacs 24 and report how that works.

@dandrake
Copy link
Contributor

comment:10

The AUCTeX integration is great! But I do notice one problem with emacs 24:

If you don't have org-mode installed and you load a TeX file -- with or without any Sage stuff in it -- I get "Can't find library org". If I then install org-mode, loading a TeX file gives File mode specification error: (void-function loop).

This is with the current state of Ubuntu 13.04: emacs 24.2, AUCTeX 11.87 and org-mode 7.9.2. In Ubuntu 12.10 (versions 23.4, 11.86, 7.8.11, respectively) things work fine.

@gvol
Copy link
Author

gvol commented Mar 21, 2013

comment:11

The loop problem is because I forgot to require cl at compile time. I'm not sure why loading a tex file asks for org--it definitely shouldn't. I tried it real fast, but I couldn't reproduce it. If you uninstall org and set debug-on-error do you get a backtrace?

@gvol
Copy link
Author

gvol commented Mar 22, 2013

comment:12

I have a fix for the loop issue up on bitbucket (not sure why I didn't think of hosting spkg's there before).

@dandrake
Copy link
Contributor

comment:13

Backtrace for the problem when org isn't installed: http://boxen.math.washington.edu/home/drake/13182load-tex-file-backtrace.txt . Your 0.9.1 spkg fixes the loop problem when I have org-mode installed in emacs 24.

@gvol

This comment has been minimized.

@gvol
Copy link
Author

gvol commented Mar 22, 2013

comment:14

Replying to @dandrake:

Backtrace for the problem when org isn't installed: http://boxen.math.washington.edu/home/drake/13182load-tex-file-backtrace.txt . Your 0.9.1 spkg fixes the loop problem when I have org-mode installed in emacs 24.

This seems to be a bug in org-mode (the version that's shipped with your emacs). It's finding some org files (in particular org-latex), but can't actually (require 'org). Normally org wouldn't be loaded at run time, only at compile time, but since byte-compilation failed (due to this error), it also occurred at run time. I have updated the spkg on bitbucket to work around this issue (I hope).

Thanks for testing.

@gvol

This comment has been minimized.

@gvol gvol changed the title Update sage-mode to 0.9 Update sage-mode to 0.9.1 Mar 22, 2013
@nthiery
Copy link
Contributor

nthiery commented Mar 29, 2013

comment:16

Hi!

Would it be possible to add

    (require 'help-mode)

See: http://www.mail-archive.com/sage-devel@googlegroups.com/msg41622.html

Thanks!

@gvol
Copy link
Author

gvol commented Mar 29, 2013

comment:17

Replying to @nthiery:

Hi!

Would it be possible to add

    (require 'help-mode)

See: http://www.mail-archive.com/sage-devel@googlegroups.com/msg41622.html

Thanks!

It's on line 70 of sage-mode.el. Are you still seeing problems?

@nthiery
Copy link
Contributor

nthiery commented Mar 29, 2013

comment:18

Ah. I posted this after seeing an issue on Dan Bump's machine; however I did not double check he had the very latest version of the spkg. I am adding him in CC for confirmation.

@nthiery
Copy link
Contributor

nthiery commented Apr 1, 2013

comment:19

Replying to @nthiery:

Ah. I posted this after seeing an issue on Dan Bump's machine; however I did not double check he had the very latest version of the spkg. I am adding him in CC for confirmation.

I reinstalled the latest sage-mode on my machine, after removing the "require help-mode" line from my .emacs, and this indeed seems to work smootlhy. Dan, can you confirm?

@dandrake
Copy link
Contributor

dandrake commented Apr 1, 2013

comment:20

Replying to @nthiery:

I reinstalled the latest sage-mode on my machine, after removing the "require help-mode" line from my .emacs, and this indeed seems to work smootlhy. Dan, can you confirm?

I can confirm that the latest spkg works. It has a (require 'help-mode) line, my .emacs does not, and everything installs and works fine with emacs 23.

@gvol
Copy link
Author

gvol commented Jun 7, 2013

comment:22

I hate to bug everyone, but it would be great if this could get reviewed. I keep getting emails from people having problems and they are (understandably) still using sage-mode 0.7. It's not uncommon that their issues are solved by simply upgrading.

Thanks, and let me know if I can review one of your tickets in exchange or something.

@fchapoton
Copy link
Contributor

comment:23

I have tried on sage 5.10.rc1, and it works fine.

In particular, tab completion works.

I had to install preview-latex-style, which is not by default on my ubuntu LTS.

I would give a positive review, but I would prefer if Nicolas or Florent confirm me !

@gvol
Copy link
Author

gvol commented Jun 12, 2013

comment:24

Replying to @fchapoton:

I have tried on sage 5.10.rc1, and it works fine.

In particular, tab completion works.

I had to install preview-latex-style, which is not by default on my ubuntu LTS.

I would give a positive review, but I would prefer if Nicolas or Florent confirm me !

You mean you had to install preview.sty? You should only need that to use sage-view to display typeset text. But it would probably be a good idea to mention that as a requirement. I'll add it to the next version.

@fchapoton
Copy link
Contributor

comment:25

Using the skpg with emacs 23, I have only been hurted by problems with latex compilation, which are part of other tickets, namely #14382 and #13624.

So let me give a positive review.

@jdemeyer
Copy link

Reviewer: Frédéric Chapoton

@haraldschilly
Copy link
Member

comment:29

optional spkg is on the server

@gvol
Copy link
Author

gvol commented Jun 14, 2013

comment:30

Replying to @fchapoton:

Using the skpg with emacs 23, I have only been hurted by problems with latex compilation, which are part of other tickets, namely #14382 and #13624.

So let me give a positive review.

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants