-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add windows compatibility #193
Comments
To whoever is willing to help out with this issue as I can't get my hands on a Windows machine: running |
tried the current version
|
what about using https://www.appveyor.com/
https://www.appveyor.com/pricing/ example config: https://github.com/puli/cli/blob/master/appveyor.yml |
I'm all up for it, it's just the trouble of setting it up and doing the PR to fix the windows incompatibilities I'm not really willing to do. If a PR provides the fixes with a working AppVeyor config, I'll gladly accept it though |
got it up und running on window. i compiled box with itself from master with the wrong namespace is used on this function call |
Woa nice! I'll check this |
hmm, i think i was too fast. the build is created but the build file does not work :( |
This required some tweaking, but done in humbug/php-scoper#269. Will do a release soonish |
Shipped in 3.1.3 :) |
finally some time for testing. all in all it works quite well. i compiled https://gitlab.com/c33s-group/yaml-convert and got a working
stumpled upon some problems:
wouldn't it be good to have a windows detection and simply add this flags
the file exists in
|
extra info about polyfill: https://github.com/symfony/polyfill#design |
Isn't the issue because of your machine setup rather than just because it's the windows platform?
That's a legit one though: make sure all deps are installed properly before running Box.
The
Arg indeed, although I would rather upgrade to 7.2. |
this results in the warning
sadly it is not possible to upgrade everywhere. sometimes i have situations where people demand php 5.6. so as version 7.1 is still supported until dec 2019 integrating the awesome symfony polyfills would be my suggestion. so it simply work for people who can't update. |
An easy way to check that warning would be to do |
currently no configured xdebug on the windows system :( another catch: Outputcmder (same for bash.exe): ![2019-02-21 17_14_06-cmder](https://user-images.githubusercontent.com/649209/53184652-b7e8dc00-35fd-11e9-9822-1910313f68d5.png)cmd.exe:
|
Windows doesn't like emojis? |
at least win7x64 without any special fonts installed. |
another one: cannot run box if files are in the root dir Output
|
now i tried to compile https://github.com/composer/satis Output``` λ box compile --no-restart running convert with box converting box.yaml to json running convert with box-dist both not existing
/ __ )____ _ __ Box version 3.4.0@4eeb285 2018-12-13 09:51:10 UTC // Loading the configuration file "O:\satis\box.json". 🔨 Building the PHAR "O:/satis/satis.phar" ? Removing the existing PHAR "O:/satis/satis.phar"
💡 6 recommendations found: // PHAR: 2643 files (1.92MB) // Memory usage: 26.73MB (peak: 28.60MB), time: 48.64s O:\satis (master) Fatal error: Class 'Symfony\Component\Console\Application' not found in phar://O:/satis/satis.phar/src/Console/Application.php on line 30
|
the last reported error is not windows specific. i have the same error for the
should i open a new ticket for this? |
Oh if it isn’t yes please
…On Fri 1 Mar 2019 at 22:29, Julian ***@***.***> wrote:
the last reported error is not windows specific. i have the same error for
the satis.phar created on the debian build server (gitlab).
PHP Fatal error: Class 'Symfony\Component\Console\Application' not found in phar:///usr/local/bin/satis/src/Console /Application.php on line 30
should i open a new ticket for this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#193 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE76gYOBmBA3xMtYu6N9mMySIe5-jM4Fks5vSZvJgaJpZM4Txj8h>
.
|
Note that this was an issue from |
still broken
|
wouldn't it be better to create an issue for each problem/bug and add a "windows" label to it? this issue is getting bigger and bigger which makes it unclear.
of course you have the tasks in the description but this ticket is quite an epic |
by the way why "Check the compatibility with emojis"? it looks like that it is not compatible. simply remove them or add don't show them on windows or add a flag & an environment variable for it. |
Added to the top description of this issue.
I'm not sure there is a specific issue there to be honest. I suspect making sure all tests works on Windows would actually solve the problem. If anything though, there was a feature request about including dot files (cf. this comment) but so far no one has been willing to work on it.
It is actually not windows specific. Opened #368 for it.
Actually not windows specific, opened #367 for it. It's actually a scoping issue.
Included in the top list of the issue. "Check the compatibility with emojis" is voluntary vague: if there is possible support it's about checking how feasible it is, otherwise it's about removing them on Windows.
What is that? |
|
Can you open a new issue for that one with the details about what exists in the root? (e.g. in the current output it complains about |
tried to compile a symfony project with box 3.7.0
|
Can you double check the Symfony related doc to make sure there Compiler is
properly compiled while building the PHAR?
You also need to ensure the environment is prod and debug disabled at all
times within the PHAR (it needs to be seen as a prod ready and prod only
app).
…On Thu 25 Apr 2019 at 21:17, Julian ***@***.***> wrote:
tried to compile a symfony project with box 3.7.0
#!/usr/bin/env php
Fatal error: Uncaught Symfony\Component\Config\Exception\FileLocatorFileNotFoundException: The file "./config" does not exist (in: ). in phar://<redacted>/puppet-enc/build/puppet-enc.phar/vendor/symfony/config/FileLocator.php:71
Stack trace:
#0 phar://<redacted>/puppet-enc/build/puppet-enc.phar/vendor/symfony/http-kernel/Config/FileLocator.php(52): Symfony\Component\Config\FileLocator->locate('./config', NULL, true)
#1 phar://<redacted>/puppet-enc/build/puppet-enc.phar/vendor/symfony/config/Loader/FileLoader.php(110): Symfony\Component\HttpKernel\Config\FileLocator->locate('./config', NULL, true)
#2 phar://<redacted>/puppet-enc/build/puppet-enc.phar/vendor/symfony/dependency-injection/Loader/GlobFileLoader.php(26): Symfony\Component\Config\Loader\FileLoader->glob('/{packages}/*.{...', false, NULL)
#3 phar://<redacted>/pu in phar://<redacted>/puppet-enc/build/puppet-enc.phar/vendor/symfony/config/FileLocator.php on line 71
box.yaml
files:
- composer.json
directories:
- bin
- config
- src
- lib
finder:
-
name: '*.*'
in: vendor
exclude:
- .gitignore
- .md
- phpunit
- Tester
- Tests
- tests
compactors:
- Herrera\Box\Compactor\Json
- Herrera\Box\Compactor\Php
compression: GZ
main: bin/puppet-enc
output: build/puppet-enc.phar
stub: true
git-commit: git_commit
git-version: git_version
git-tag: git_tag
chmod: '0755'
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#193 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABHPVAPJDF6ZJYQFKDJNY2TPSGOPBANCNFSM4E6GH4QQ>
.
|
/cc @c33s
The text was updated successfully, but these errors were encountered: