Comments (12)
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.
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.
I can successfully reproduce this issue on Windows 10. I'll get it fixed soon!
from dts2as.
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.
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.
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.
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.
What is the full path that you are using for FLEX_HOME or --flexHome?
from dts2as.
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.
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.
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.
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)
- Cannot compile SWC when other d.ts files are referenced, unless they are included in dts2as arguments
- Cannot parse TypeScript enums in d.ts files
- --flexHome and other arguments can't handle ~ for home directory in path
- Error when try to convert pixi.js.d.ts to pixijs.swc HOT 3
- Angular Material/AngularJS conversion issue HOT 9
- Tonejs problem HOT 3
- Errors when generating swc HOT 4
- PIXI SWC issue HOT 3
- dts2as and VSCode HOT 2
- Cannot transform any d.ts file successfully, is there anything wrong? HOT 8
- Parameters with different TS types in function overloads are converted to AS Object instead of a common base type
- ast2ts HOT 1
- Custom types are not found when populating parameters in functions HOT 3
- Add argument to enable function parameters and properties to be typed as strict interfaces instead of falling back to Object
- Treat all uppercase properties as constants (with setting to disable, if needed)
- asjsc warns about missing classes that appear in lib.d.ts but not in externs HOT 1
- TypeError: Cannot read property 'pos' of undefined HOT 5
- Fix build on Windows
- Update to TypeScript 1.7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dts2as.