Problems of publishing Sable with scripts

Use this forum to post Sable related questions.

Moderator: Administrator

Post Reply
cphan
Junior Member
Posts: 16
Joined: Mon Jun 16, 2014 3:31 pm
Vensim version: DSS

Problems of publishing Sable with scripts

Post by cphan »

I try to publish a Sable project including a JS script file, i have the error "Error adding script file. Please check syntax" when running the spk file. My JS file has only one simple function :

function test()
{
return 'helloworld';
}

How can i fix this ?
I herewith attach my test project.
Thanks
CT
Attachments
test.zip
(373.34 KiB) Downloaded 576 times
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Problems of publishing Sable with scripts

Post by Administrator »

It looks like it's a bug when handling unicode files. I'm looking into it.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Problems of publishing Sable with scripts

Post by Administrator »

I've uploaded a new version of Sable that should fix this.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
cphan
Junior Member
Posts: 16
Joined: Mon Jun 16, 2014 3:31 pm
Vensim version: DSS

Re: Problems of publishing Sable with scripts

Post by cphan »

I have tried your new version of Sable but it doesn't work.
cphan
Junior Member
Posts: 16
Joined: Mon Jun 16, 2014 3:31 pm
Vensim version: DSS

Re: Problems of publishing Sable with scripts

Post by cphan »

I've changed the encoding of my .js file to UTF-8, it works. Thanks!
Post Reply