Exception caused by using import statement in less file

22 views
Skip to first unread message

Philipp Burgmer

unread,
Mar 22, 2012, 6:44:01 AM3/22/12
to leonfr...@googlegroups.com
Hi all!

I run into a problem with leon's less support. If I I try to use less's import statement to include another less file, loen will throw an exception. I reported an issue at github [https://github.com/leonframework/framework/issues/31] with some example code and a stack trace.


Greetings
Philipp

Marco Rico-Gomez

unread,
Mar 26, 2012, 7:46:00 AM3/26/12
to leonfr...@googlegroups.com
Hi Philipp,

I just pushed a fix to master:
https://github.com/leonframework/framework/commit/5600fa176ac2cc58c943d6f13f1b8a42e992fd49
@import in less stylesheets should work now for absolute and relative
paths. Please give it another try.

Thanks for reporting this issue!

Greetings Marco.


2012/3/22 Philipp Burgmer <bur...@weiglewilczek.com>:

--
\ Marco
--
Twitter: @mricog
Website: http://mrico.eu

Roman Roelofsen

unread,
Mar 26, 2012, 8:23:54 AM3/26/12
to leonfr...@googlegroups.com
Great work Marco, thanks!

Philipp, can you verify?

Cheers Roman

2012/3/26 Marco Rico-Gomez <m.ric...@googlemail.com>

Philipp Burgmer

unread,
Mar 26, 2012, 8:28:58 AM3/26/12
to leonfr...@googlegroups.com
Hej,

No, unfortunately it's still not working. If the imported less file
contains relative imports again, the compilation will fail.
I think using Bootstrap is a good way to check if advanced less
support is working ;)

Greetings,
Philipp
__________

Philipp Burgmer

Weigle Wilczek GmbH
Martinstraße 42-44
73728 Esslingen
Deutschland

T +49 711 4599980
F +49 711 45999829
www.weiglewilczek.com

Geschäftsführer / Managing Director: Roman Roelofsen
Sitz der Gesellschaft / Domicile: Esslingen a. N.
Amtsgericht / Register Court: Stuttgart, HRB 214442
USt-Ident.-Nr. / VAT ID: DE 213 472 8800

2012/3/26 Roman Roelofsen <roma...@googlemail.com>:

Marco Rico-Gomez

unread,
Mar 26, 2012, 8:47:49 AM3/26/12
to leonfr...@googlegroups.com
Philipp, could you send me your sample app? Thanks.

2012/3/26 Philipp Burgmer <bur...@weiglewilczek.com>:

Marco Rico-Gomez

unread,
Mar 28, 2012, 5:26:35 PM3/28/12
to leonfr...@googlegroups.com
Hi,

I've pushed a new branch less13
(https://github.com/leonframework/framework/tree/less13). In this
branch Leon is using a modified version (1.3.0) of less (former
version in Leon was 1.1.3) which solves the compilation and import
issues with bootstrap.
Less 1.3.0 has new dependencies to envjs (http://www.envjs.com/) and
the Rhino Shell functions. Both libraries will now be loaded during
the initialisation of the LeonScriptEngine.

@Philipp Could you please try it again by using the less13 branch.

Cheers Marco

2012/3/26 Philipp Burgmer <bur...@weiglewilczek.com>:

Reply all
Reply to author
Forward
0 new messages