Ask Your Question
0

Code stopped compiling out of nowhere for no apparent reason

asked 2015-11-12 01:50:03 +0100

lolWhoCares gravatar image

updated 2015-11-12 02:13:24 +0100

tmonteil gravatar image

Sage has all of a sudden stopped compiling my code. It happened seemingly out of nowhere and im getting very worried because i spent ALOT of time writing an algorithm. Basically nothing happens when i run the code the long grey line comes up with a green bar flashing and the normal output rectangle but it jsut stays in that state permanently. Nothing seems to fix the problem, i've tried going back in the history, copying and pasting to a new folder and worksheet changing the code, trying to get literally anything to compile but to no avail. Im literally dumbfounded at the moment.

EDIT: The green loading bar actually seems to be appearing at the top of the code when i try to compile. Also, I dont know if length is ever an issue with Sage Math worksheets but my code is 235 lines if that helps at all.

EDIT 2: I am using SageMathCloud via. the link on sagemath.org, my web browser is google chrome, the code is written in a SageMath Worksheet, just in case my OS is Windows 10, here is a link to the code itself Problematic Code.

edit retag flag offensive close merge delete

Comments

1

What is your question ? What do you expect from us ? Where can we read the problematic code ?

tmonteil gravatar imagetmonteil ( 2015-11-12 01:56:03 +0100 )edit

Sigh. I think its very, very obvious what the question is as well as what i want. As stated, if you read, it doesn't seem to be a problem with the code because nothing will compile. Not even a print statement where i am positive there are no errors, furthermore, an error message wont even appear in the compile window. Please, stop with the non sense comments.

lolWhoCares gravatar imagelolWhoCares ( 2015-11-12 01:58:49 +0100 )edit

Well, since it seems that you have problems with the interface, would you mind telling us which interface did you use ? Which platform, which OS, which architecture, which version, etc ?

tmonteil gravatar imagetmonteil ( 2015-11-12 02:01:54 +0100 )edit

Is there a possibility that some mistake could appear in those 235 lines ? Could you split them into smaller parts and test them separately ?

tmonteil gravatar imagetmonteil ( 2015-11-12 02:03:29 +0100 )edit

By the way, unless you wrote some Cython code, your Sage/Python code is not compiled, but interpreted.

tmonteil gravatar imagetmonteil ( 2015-11-12 02:04:30 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-12 02:12:40 +0100

tmonteil gravatar image

From a local Sage installation (on Debian GNU/Linux), i got the following output. Hence it seems no to be a problem with Sage but with the cloud interface, so you should contact them.

************************************************************************\
****************************
[  3.0   0.0   0.0]
[  0.0 -16.2   0.0]
[  0.0   0.0  20.0]

z1: -0.021488
z2: -0.019339
z3: 0.999582

93.6663042847 is less than 111.863611111111

g1: 111.863611111111 W/ Alpha 0 = 0
g2: 2.53062847909 W/ Alpha_2 = 0.5
g3: 93.6663042847 W/ Alpha_3 = 1.0

h1 : -218.665965264
h2 : 182.271351611
h3 : 400.937316875

Newtonian Int. Root:  0.522693456135


x1:  0.0112316369854
x2:  0.0101083687482
x3:  -0.52247497027

Final g val: 2.32748460763252

*****new values set
[0.011231636985418606, 0.010108368748185518, -0.5224749702698577]
************************************************************************\
****************************
************************************************************************\
****************************
[                3.0                 0.0                 0.0]
[                0.0 -17.837555737206053                 0.0]
[                0.0                 0.0                20.0]

z1: -0.505109
z2: 0.862167
z3: 0.039165
g1: 2.32748460763252 W/ Alpha 0 = 0
g2: 60.3058562192 W/ Alpha_2 = 0.5
g3: 2026.77606173 W/ Alpha_3 = 1.0

h1 : 115.95674322311143
h2 : 3932.94041101
h3 : 3816.983667790308

Newtonian Int. Root:  0.234810421878


x1:  0.12983649437
x2:  -0.192337428251
x3:  -0.531671320443

Final g val: 1.25620659353088

*****new values set
[0.12983649436989167, -0.19233742825127198, -0.5316713204427171]
************************************************************************\
****************************
edit flag offensive delete link more

Comments

Honestly? Well thank you, i wish i would have came here sooner instead of wasting 3 hrs trying to figure out the issue. What exactly, should I say when i contact them? I dont exactly know how to state the problem to them. By the way, yes that is also the correct code that i was getting before it stopepd working for no apparent reason. Thanks friend.

lolWhoCares gravatar imagelolWhoCares ( 2015-11-12 02:15:41 +0100 )edit

From the website: "Not working? Email us at help@sagemath.com immediately!"

kcrisman gravatar imagekcrisman ( 2015-11-12 06:03:21 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-11-12 01:50:03 +0100

Seen: 1,092 times

Last updated: Nov 12 '15