Git Product home page Git Product logo

flex-compiler-shell-daemon's People

Watchers

 avatar

flex-compiler-shell-daemon's Issues

How to using java command fcshd.py

I'm using fcshd.py it's really good.

I trying web application based compiled  

Linux (centos 5.2) shell is a well-run 

but run java(process commad) is fail


command Line execute very well
==============================================
[root]# 
python /usr/tomcat/webapps/Test/fcshd.py "mxmlc /usr/tomcat/webapps/Test/Te
mp.mxml -o /usr/tomcat/webapps/Test/Temp.swf -include-
libraries /usr/tomcat/Test/swc -benchmark "
 Loading configuration file /usr/flex/flex_sdk_3.4/frameworks/flex-
config.xml
Initial setup: 11ms
Loaded 13 SWCs: 98ms
Nothing has changed since the last compile. Skip...
Total time: 115ms
Peak memory usage: 156 MB (Heap: 127, Non-Heap: 29)
Linking... 27ms
Optimizing... 224ms
SWF Encoding... 665ms
/usr/tomcat/Test/Temp.swf (2139325 bytes)
Total time: 917ms
Peak memory usage: 178 MB (Heap: 149, Non-Heap: 29)
(fcsh)
[root]#
==============================================

but I try this code using java 
=====================================

cmd = new String[3];
cmd[0] = "/bin/bash";
cmd[1] = "-c";
cmd[2] = "python /usr/tomcat/webapps/Test/fcshd.py 
\"mxmlc /usr/tomcat/webapps/Test/Temp.mxml -
o /usr/tomcat/webapps/Test/Temp.swf -include-
libraries /usr/tomcat/Test/swc -benchmark \"";
Process proc = Runtime.getRuntime().exec(cmd);

=====================================

response error message is failing:

=====================================
Please set the FLEX_HOME environment variable pointing to the location of
the FLEX SDK
=====================================

Please any Help me?

Original issue reported on code.google.com by [email protected] on 30 Apr 2010 at 8:38

Patch to have it working for Windows - no-deamon mode

Script you wrote I found nice, but it doesn't work on windows (e.g.
os.fork() doesn't exist on windows python). I wanted to adjust it for this
purpose, so I needed to turn-off deamon mode (btw. I don't know how to
implement such feature in python for windows). 

So now script works for windows like like this: 
 - you need at least 2 dos prompts
 - deamon-mode is not possible - fcsh.exe is started in standard new process
 - in first you start server like this: python fcshd.py 
 - in second you can: 
    - compile things: 
      - python fcshd.py "mxmlc test.mxml"
      - python fcshd.py "compile 2"
    - stop the server:
      - python fcshd.py --stop-server

 - server can be stopped in first prompt by ctrl+break


There are some open issues:
 - python fcshd.py --stop-server - reports problem (btw. it stops server
anyway):
  File "R:\env-lib\PYTHON25\lib\socket.py", line 331, in readline
    data = recv(1)
socket.error: (10054, 'Connection reset by peer')

Original issue reported on code.google.com by [email protected] on 12 Feb 2009 at 12:31

Attachments:

exceptions.IOError:[Errno 32] Broken pipe

What steps will reproduce the problem?
1.  flex_sdk_4.0.0.6898
2.  linux Centos 5 32

fcshd.py "mxmlc /home/flex/Web/src/WFL.mxml -o /tmp/py.swf"

returns 

XML-RPC Error: <Fault 1: 'exceptions.IOError:[Errno 32] Broken pipe'>


/tmp/fcshd.log has binary written info so I used strings to read it

strings /tmp/fcshd.log
2010-03-16 15:12:33,365 DEBUG Running fcsh cmd: mxmlc
/home/flex/Web/src/WFL.mxml -o /tmp/py.swf

Original issue reported on code.google.com by [email protected] on 16 Mar 2010 at 6:14

mxmlc should take current directory into account

fcshd.py mxmlc Test.as # everything is fine
cd ../other-dir; fcshd.py mxmlc Test.as # will try to put swf in first 
directory (?)

fcshd.py mxmlc should take the current directory into account when caching 
mxmlc invokations.

Original issue reported on code.google.com by [email protected] on 7 Apr 2010 at 3:28

Connection refused error

I get a socket error when I try to run the program:

$ ./fcshd.py "mxmlc /path/to/file.as"
Starting the server, please wait... OK.
Traceback (most recent call last):
  File "./fcshd.py", line 339, in <module>
    sys.exit(main(sys.argv))
  File "./fcshd.py", line 335, in main
    return run_command(command)
  File "./fcshd.py", line 282, in run_command
    output = server.run_command(cmd)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpcli
b.py",
line 1147, in __call__
    return self.__send(self.__name, args)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpcli
b.py",
line 1437, in __request
    verbose=self.__verbose
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpcli
b.py",
line 1183, in request
    self.send_content(h, request_body)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpcli
b.py",
line 1297, in send_content
    connection.endheaders()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.
py",
line 856, in endheaders
    self._send_output()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.
py",
line 728, in _send_output
    self.send(msg)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.
py",
line 695, in send
    self.connect()
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.
py",
line 679, in connect
    raise socket.error, msg
socket.error: (61, 'Connection refused')

What version of the product are you using? On what operating system?

Revision 4, python 2.5.1 on Mac OS X 10.5.5.

Original issue reported on code.google.com by [email protected] on 5 Apr 2009 at 1:22

Missing COPYING file

The Project Information mentions that the code license is "New BSD License".

It would be nice to include also in the source tree a COPYING or LICENSE file 
to make this clear.

Additionally would be nice to add an appropriate license header to the source 
file fcshd.py

Original issue reported on code.google.com by [email protected] on 30 Aug 2011 at 1:58

If FLEX_HOME is set incorrectly an error message should be given

What steps will reproduce the problem?
1. FLEX_HOME=some_bad_directory python fcshd.py --start-server
2.
3.

What is the expected output? What do you see instead?

 I expect to see the error because I did not pass the right FLEX_HOME. This happened to me because I was not sure what exact directory to pass to FLEX_HOME.

 I see "Starting the server, please wait...
OK."

 Actually fcsh did not start. The server log (fixed as described in issue 7) shows: 

2011-03-12 12:27:49,495 DEBUG Found fcsh prompt, read /bin/sh: 
sdk3.4.aa/bin/fcsh: No such file or directory



What version of the product are you using? On what operating system?

Latest version (how can I tell the version?) Mac OSX 10.6

Please provide any additional information below.

  fcshd.py should detect that fcsh did not start properly. 

Original issue reported on code.google.com by [email protected] on 12 Mar 2011 at 8:30

How to join the project

 I am sorry but I am new to Google Code and I do not know how to contact the owner, so I use this mechanism. 

I would like to use fcshd.py and I would like to contribute bug fixes. Please 
let me know how. My email is George Necula ([email protected])


Original issue reported on code.google.com by [email protected] on 12 Mar 2011 at 8:40

Two Windows bugs: Server will not start correctly, nor are you prompted to run with --start-server if the server isn't running.

What steps will reproduce the problem?
1. Run the script on Windows

What is the expected output? What do you see instead?
I don't recall what happened exactly, but I know that the server process 
wouldn't start without modifying the script. The call to Popen was failing, and 
I was getting an exception if the server wasn't running instead of getting a 
friendly prompt.

What version of the product are you using? On what operating system?
I had just downloaded the most recent code: r10

Please provide any additional information below.
I have fixed this error and have attached a fixed version of the script here. 
My changes are pretty minor, but hopefully this will help any other Windows 
devs.

P.S. Thanks for this great script!


Original issue reported on code.google.com by [email protected] on 4 Aug 2011 at 2:21

Attachments:

Bug when FLEX_HOME contains spaces

What steps will reproduce the problem?
1. Run FLEX_HOME="/Applications/Adobe Flash Builder 4/sdk/4.1.0" python 
fcshd.py --start-server
2.
3.

What is the expected output? What do you see instead?

  The server starts but it cannot start fcsh because the FLEX_HOME variable contains spaces.

What version of the product are you using? On what operating system?


Please provide any additional information below.

 You need to add \" around the use of FLEX_HOME in line 179:

        self.fcsh = Popen("LC_ALL=C \"$FLEX_HOME\"/bin/fcsh", shell=True, close_fds=True,
                          cwd=CWD, stdin=PIPE, stdout=PIPE, stderr=STDOUT)


Original issue reported on code.google.com by [email protected] on 12 Mar 2011 at 8:34

server log file empty

What steps will reproduce the problem?
1. On Mac OSX 
2. Run FLEX_HOME=... python fcshd.py --start-server
3.

What is the expected output? What do you see instead?

Expect to see some stuff in /tmp/fcshd.log. The file is empty.

What version of the product are you using? On what operating system?

  Downloaded it today. 

Please provide any additional information below.

 The problem is that logging.basicConfig is called before createDaemon. The latter will close file descriptors. Move the call to basicConfig after createDaemon. 


Original issue reported on code.google.com by [email protected] on 12 Mar 2011 at 8:24

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.