Skip to content
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

command line option --set doesn't seem to have any effect #580

Open
voger opened this issue Oct 13, 2019 · 0 comments
Open

command line option --set doesn't seem to have any effect #580

voger opened this issue Oct 13, 2019 · 0 comments

Comments

@voger
Copy link

@voger voger commented Oct 13, 2019

Compiler version

[voger@toshiba:17:40:02]$ npx qx compiler --version
1.0.0-beta.20191011-2006

The --set command line option doesn't seem to have any effect in the application environment settings.

Steps to reproduce

  1. Create a new qooxdoo application with qx create
  2. Edit Application.js to console log a setting. e.g. qx.allowUrlSettings is set by default to false
      var allowUrlSettings = qx.core.Environment.get("qx.allowUrlSettings")
      console.log("allowUrlSettings value: " + allowUrlSettings)
  1. Serve the application by setting that option to true
[voger@toshiba:17:24:33]$ npx qx serve --set qx.allowUrlSettings=true
Making applications...
>>> Making the applications...
Writing application testapp
>>> Compiled 0 classes in 13.295s
Applications are made
Web server started, please browse to http://localhost:8080
  1. Navigate to http://localhost:8080 and open the developper console. There the line
allowUrlSettings value: false

is logged.

Expected output

in step 4 that line should be

allowUrlSettings value: true

Aditional Example

When trying to set a new environment key e.g.:

[voger@toshiba:17:34:12]$ npx qx serve --set testkey="Test-Key"
Making applications...
>>> Making the applications...
Writing application testapp
>>> Compiled 0 classes in 13.232s
Applications are made
Web server started, please browse to http://localhost:8080

and trying to read that key in the console

qx.core.Environment.get("testkey")
Native.js:58 019695 testkey is not a valid key. Please see the API-doc of qx.core.Environment for a list of predefined keys.
qx.log.appender.Native.process() @ Native.js:58
qx.log.Logger.__log() @ Logger.js:595
qx.log.Logger.warn() @ Logger.js:286
qx.core.Environment.get() @ Environment.js:962
(anonymous) @ VM10010:1
undefined

it returns undefined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.