installing old version of amber

23 views
Skip to first unread message

Siemen Baader

unread,
Aug 9, 2019, 11:09:21 AM8/9/19
to amber...@googlegroups.com
Hi,

I have an old project from 6 years ago [1] that I want to use again, but I didn't put in the proper requirements in package.json. I think I used a setup back then which was recommended on amber-lag.net at one point which has a vendor/ directory with amber and requirejs in it that all my projects back then shared. But I don't have it anymore and I don't know which version it was - other than it must have been before Nov 8, 2013 which my latest commit is from.

The index.html file [2] references:

<script src="../vendor/amber/support/amber.js"></script>
<script src="../vendor/amber/support/requirejs/require.min.js"></script>

Any hints to how I can identify and recreate the required amber version?

Thanks,
Siemen



Herby Vojčík

unread,
Aug 9, 2019, 12:52:47 PM8/9/19
to amber...@googlegroups.com, Siemen Baader
On 9. 8. 2019 17:09, Siemen Baader wrote:
> Hi,
>
> I have an old project from 6 years ago [1] that I want to use again, but
> I didn't put in the proper requirements in package.json. I think I used
> a setup back then which was recommended on amber-lag.net
> <http://amber-lag.net> at one point which has a vendor/ directory with
> amber and requirejs in it that all my projects back then shared. But I
> don't have it anymore and I don't know which version it was - other than
> it must have been before Nov 8, 2013 which my latest commit is from.

As seen in CHANGELOG file, it must be before 0.12.0, which is really
very old.

> The index.html file [2] references:
>
> <script src="../vendor/amber/support/amber.js"></script>
>
> <script src="../vendor/amber/support/requirejs/require.min.js"></script>
>
>
> Any hints to how I can identify and recreate the required amber version?

I don't have the clue after that much time... maybe just put amber from
those times into vendor/ directory?

> Thanks,
> Siemen

Herby

Herby Vojčík

unread,
Aug 9, 2019, 2:05:40 PM8/9/19
to amber...@googlegroups.com, Siemen Baader
On 9. 8. 2019 17:09, Siemen Baader wrote:
> Hi,
>
> I have an old project from 6 years ago [1] that I want to use again, but
> I didn't put in the proper requirements in package.json. I think I used
> a setup back then which was recommended on amber-lag.net
> <http://amber-lag.net> at one point which has a vendor/ directory with
> amber and requirejs in it that all my projects back then shared. But I
> don't have it anymore and I don't know which version it was - other than
> it must have been before Nov 8, 2013 which my latest commit is from.
>
> The index.html file [2] references:
>
> <script src="../vendor/amber/support/amber.js"></script>
>
> <script src="../vendor/amber/support/requirejs/require.min.js"></script>
>
>
> Any hints to how I can identify and recreate the required amber version?
>
> Thanks,
> Siemen
>
> 1: https://github.com/siemenbaader/twiddler-tutor

Alternative, move to newest Amber if you want. It should work if you
create a new empty project with newest Amber, using 'Tutor' for main
class, and then copy old .st over, but keeping the 'up to date' header
(so the package creation and imports are correct), having old class and
method definitions, then recompiling from cli with 'grunt'.

Herby

Siemen Baader

unread,
Aug 9, 2019, 2:49:13 PM8/9/19
to Herby Vojčík, amber...@googlegroups.com
Thanks for your reply, Herby!

>
> Alternative, move to newest Amber if you want. It should work if you create a new empty project with newest Amber, using 'Tutor' for main class, and then copy old .st over, but keeping the 'up to date' header (so the package creation and imports are correct), having old class and method definitions, then recompiling from cli with 'grunt'.

Sounds like the best way to do it. What do you mean by the 'up to date header'? Something in the .st file?

-- Siemen


>
> Herby

Herby Vojčík

unread,
Aug 9, 2019, 2:51:38 PM8/9/19
to amber...@googlegroups.com, Siemen Baader
Yes. Using the header part as it is generated by up-to-date `amber
init`, but the actual classses and methods (bulk of the payload) from
old .st file.

>
> -- Siemen
>
>
>>
>> Herby
>

Reply all
Reply to author
Forward
0 new messages