Windows support #315
Comments
Above commit should (?) fix no 2 |
EPERM issue is fixed, thanks! Tested on windows and updated the above checkboxes to reflect that saving styles also works now. File browser is still broken (does not display any entries and does not allow moving up a directory) so I can't yet test source creation: |
Word, will consider that next up. |
|
@BergWerkGIS okay, perhaps a |
Sure. |
@springmeyer tl;dr: If the On the other hand, if |
@BergWerkGIS I pushed an adjustment based on your notes to the Would love to know how it does for you -- I'll try to get tm2 up and running on a VM sometime today so I can debug more directly. |
@yhahn cannot test your adjustment: I was testing with an older commit (unfortunately don't remember which one exactly), because latest source fails at installing |
@yhahn I saw that your latest commit worked on AppVeyor, so I tested on two different machines with node 0.10.26, 0.10.28 and 0.10.29. I always deleted the tm2 folder completely and started from scratch. With 26/28 I get varying results: sometimes With 29 nothing gets compiled, but this error is shown: A manual |
@yhahn I tried to get |
Ok, worked my way thru the commits. This is the last one that is working for me: Merge pull request #414 from mapbox/tv102. The next one (abaculus updated for headers) isn't. |
@BergWerkGIS yeah, for now I've removed the @springmeyer is looking at mapbox/node-blend#48 so once that is resolved we can re-add the dep. |
@yhahn Ok, wasn't aware about that. Just to let you know how the latest commit looks like on my main machine. |
after #457 appveyor builds are now showing errors in the logs (https://ci.appveyor.com/project/Mapbox/tm2/build/1.0.4#L990) - which look similar to @BergWerkGIS's logs above. |
appveyor builds are now completing and passing. This gets us CI for the server component of tm2 -- next up for me is seeing if we can get our browser tests running + passing on windows. |
client-side testing in place. I haven't actually used the app on windows much and I see that as the next step as our tests are far from comprehensive. |
Closing this out in favor of more specific tickets now. |
TM2 does not work on windows yet, but it should be feasible to port it and have it work reasonably well in a modern browser like Chrome.
This ticket stands to track this task.
Porting will require:
process.env.HOME = process.env.USERPROFILE;
at startup (019471c#diff-168726dbe96b3ce427e7fedce31bb0bc)EPERM, open
error when trying to openapp.db
. The problem is that the deletion here https://github.com/mapbox/tm2/blob/23196a54a6d4d3f46b6e8847c437cbeca2eb4d68/lib/tm.js#L46 is not possible on windows because the file handle is still open.EPERM: stat
error when trying to listC:\
UNKNOWN, readdir
: somewhere a path is ending up like\\C:\users\<username
due to the/
prefixing right here: https://github.com/mapbox/tm2/blob/23196a54a6d4d3f46b6e8847c437cbeca2eb4d68/index.js#L306Fix broken source/style.tm2 saving that leads to paths likeNot fixed (still odd looking path) but the odd looking path appears to be harmless for saving and opening, which now works.http://localhost:3000/style?id=tmstyle://C:\Users\mapnik/foo.tm2
The text was updated successfully, but these errors were encountered: