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

jscompile doesn't work #392

Open
pyjsorg opened this Issue Apr 27, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@pyjsorg
Contributor

pyjsorg commented Apr 27, 2012

Don't even know what exactly I am doing here, but:

$ bin/pyjscompile
Traceback (most recent call last):
File "bin/pyjscompile", line 19, in <module>
pyjs.pyjampiler.main()
AttributeError: 'module' object has no attribute 'pyjampiler'

And if I try to be smarter about it I still get errors I can't interpret:

pyjs/src/pyjs$ PYTHONPATH=$PYTHONPATH:pwd/.. ./pyjampiler.py -w app -r
add -o out
add (add.py)
Traceback (most recent call last):
File "./pyjampiler.py", line 148, in <module>
Builder()
File "./pyjampiler.py", line 38, in init
self.run()
File "./pyjampiler.py", line 128, in run
self.compile_application()
File "./pyjampiler.py", line 116, in compile_application
self.compile(based_filename, module_name, self.options.working_dir)
File "./pyjampiler.py", line 73, in compile
store_source=self.options.debug
File "/home/marcus/projects/pyjamas/pyjamas/pyjs/src/pyjs/translator.py",
line 3928, in translate
current_tree = compiler.parseFile(src)
AttributeError: 'list' object has no attribute 'parseFile'

Thanks,
Marcus

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=327 (November 11, 2009 03:01:24)

@pyjsorg

This comment has been minimized.

Show comment
Hide comment
@pyjsorg

pyjsorg Apr 27, 2012

Contributor

From marcus.b...@ruhr-uni-bochum.de on November 11, 2009 03:07:01:
This is rev2250. "add.py" is simply a file with "print 1234 + 5678"

Contributor

pyjsorg commented Apr 27, 2012

From marcus.b...@ruhr-uni-bochum.de on November 11, 2009 03:07:01:
This is rev2250. "add.py" is simply a file with "print 1234 + 5678"

@pyjsorg

This comment has been minimized.

Show comment
Hide comment
@pyjsorg

pyjsorg Apr 27, 2012

Contributor

From cornelis...@gmail.com on November 11, 2009 07:27:40:
Thanks.

I reverted the pyjscompile to the good-old pyjscompile we had before pyjampiler.
The pyjscompile just compiles one file (with all translator options available),
while pyjampiler compiles all the files it can find.
(Luke, we're gonna need pyjscompile if we ever want to use makefiles).
Usage: pyjscompile --output add.js add.py

bootstrap.py now creates three files in bin/ : pyjsbuild, pyjscompile, pyjampiler
I fixed some stuff in pyjampiler, such that is does the job and doesn't complain, but
I've not checked if the output is valid.

Contributor

pyjsorg commented Apr 27, 2012

From cornelis...@gmail.com on November 11, 2009 07:27:40:
Thanks.

I reverted the pyjscompile to the good-old pyjscompile we had before pyjampiler.
The pyjscompile just compiles one file (with all translator options available),
while pyjampiler compiles all the files it can find.
(Luke, we're gonna need pyjscompile if we ever want to use makefiles).
Usage: pyjscompile --output add.js add.py

bootstrap.py now creates three files in bin/ : pyjsbuild, pyjscompile, pyjampiler
I fixed some stuff in pyjampiler, such that is does the job and doesn't complain, but
I've not checked if the output is valid.

@pyjsorg

This comment has been minimized.

Show comment
Hide comment
@pyjsorg

pyjsorg Apr 27, 2012

Contributor

From luke.lei...@gmail.com on November 11, 2009 10:32:13:
yep. absolutely.
we'll also need a "link" command, which is gonna be interesting.
i'm assuming that pyjampiler "takes over" .... actually, maybe it doesn't.
so i'm reverting my commit which put pyjampiler in place of pyjscompile.

Contributor

pyjsorg commented Apr 27, 2012

From luke.lei...@gmail.com on November 11, 2009 10:32:13:
yep. absolutely.
we'll also need a "link" command, which is gonna be interesting.
i'm assuming that pyjampiler "takes over" .... actually, maybe it doesn't.
so i'm reverting my commit which put pyjampiler in place of pyjscompile.

@duly

This comment has been minimized.

Show comment
Hide comment
@duly

duly Mar 16, 2014

Contributor

Can we close this issue?

Contributor

duly commented Mar 16, 2014

Can we close this issue?

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