Giter VIP home page Giter VIP logo

Comments (12)

joshtynjala avatar joshtynjala commented on May 18, 2024

Thank you for reporting. The dts2as_generated folder should have been created in a previous step. It's strange that it didn't throw an error earlier, though. That may indicate that it's creating the dts2as_generated folder somewhere unexpected.

I tested this version on Windows 8.1, but not on Windows 10. I'll try with Windows 10 to see if I can reproduce too. Maybe something has changed in that version.

from dts2as.

datee avatar datee commented on May 18, 2024

The issue seem to be related to windows10 alright.. I've tried 3 different windows 10 computers and the bug is the same on all of them...

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024

I can successfully reproduce this issue on Windows 10. I'll get it fixed soon!

from dts2as.

datee avatar datee commented on May 18, 2024

So trying with 0.6.2 , the error is different... and the same as it was with Node.4.2.2
dts2as --outSWC pixijs.swc pixi.js.d.ts

\FlashDevelop\Tools\apacheflexjs\bin..) was unexpected at this time.
Could not create SWC file. The generated ActionScript contains compile-time errors.

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024

I just tested, and everything seems to working correctly for me on Windows 10.

I see that you left out the --flexHome argument. Are you certain that your FLEX_HOME environment variable is set correctly?

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024

I tested using both Node 4.2.2 and 5.1.0. I tried putting a space in the path to FlexJS, since that error seemed like it might indicate that there was a space in your path. I tried using --flexHome and falling back to a valid FLEX_HOME environment variable. I still cannot reproduce on Windows 10 with dts2as 0.6.2.

You could try uninstalling with npm uninstall -g dts2as. Then, reinstall and try again.

from dts2as.

datee avatar datee commented on May 18, 2024

Hm. I tried that. No change. Yes FLEX_HOME is set up correctly. Using FLEX_HOME ev.var or --flexHome does not change anything either. --outDir creates a folder with all the .as files.. they look correct. But still no swc file. Although the first time i ran the script a dts2as_generated folder appeared, but was removed immediately....

Tried this on several different windows 10 computers too. All give the same error.

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024

What is the full path that you are using for FLEX_HOME or --flexHome?

from dts2as.

datee avatar datee commented on May 18, 2024

So i found the error :

FlexJS was located in this folder :C:\Program Files (x86)\FlashDevelop\Tools\apacheflexjs
Moving FlexJS to c:\flexjs\ fixes the problem.

Even though the flexjs path has " " when using --flexHome or is correct with the FLEX_HOME var,
i guess the space in the path is still making the script fail...

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024

I don't understand how it could be happening. I also tested with a space in the path today, as I mentioned. In fact, the reason I needed to create version 0.6.1 was to fix an issue on Windows when there were spaces in the path to FlexJS or in the path of the current working directory. This should be addressed already. I'm stumped.

from dts2as.

datee avatar datee commented on May 18, 2024

Ok, an update : The error is infact NOT the space itself, but the character " ) " ... This single character in the path creates the error. (just the right parentheses, not the left..)

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024

Now, that's interesting. I wondered why your error included a path with ..) at the end

\FlashDevelop\Tools\apacheflexjs\bin..)

Perhaps it is unexpected behavior from Node's path.join(). I'll try to figure out what's happening there.

from dts2as.

Related Issues (20)

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.