-
Notifications
You must be signed in to change notification settings - Fork 334
Add flags to run project in command line #14310
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
Merged
+2,824
−1,319
Merged
Changes from all commits
Commits
Show all changes
146 commits
Select commit
Hold shift + click to select a range
ef7459d
WIP: Decouple Electron from `electron-client` entrypoint
somebody1234 8d362a1
Decouple Electron from `electron-client` entrypoint
somebody1234 3be6b66
Move `LocalBackend` and `RemoteBackend` to `common`
somebody1234 3cebacc
WIP: Headless hybrid execution
somebody1234 da0b2ac
WIP: Headless hybrid execution
somebody1234 5a67113
Fix type errors in `hybrid.ts`
somebody1234 e4f7e2a
Replace `App` class with free-standing functions
somebody1234 a6402b9
Remove global `electron` variable
somebody1234 46a246b
Move Electron-only functions to `electron` module
somebody1234 db294e8
Replace `*` imports with named imports
somebody1234 ec40192
More refactors
somebody1234 8afeafa
Merge branch 'develop' into wip/sb/enso-headless
somebody1234 79a0ba3
Fixes
somebody1234 23c401a
Fix imports to `result` and `opt`
somebody1234 8378775
Fix constructing `RemoteBackend`
somebody1234 4e691e6
Update Nix flake
somebody1234 5a70186
Merge branch 'develop' into wip/sb/enso-headless
somebody1234 c6b394b
Fix errors
somebody1234 9210c7e
Prettier
somebody1234 b3f51f1
Fix import errors
somebody1234 84b1055
Fix type error
somebody1234 bcf55e2
Fix lint error
somebody1234 846efb0
Set up infrastructure for running headless projects
somebody1234 c7ecc44
WIP: Add support for headless execution
somebody1234 a0f0111
Revert changes to `electron-client`
somebody1234 8e579c5
Address CR
somebody1234 413d4af
Fix unit tests
somebody1234 26fd722
Fix more unit tests
somebody1234 3ffaa46
Remove incorrect dependency on `ProjectManager` (would require HTTP s…
somebody1234 051d545
Move `download.ts` in `common`
somebody1234 bf8ed25
Remove `.js` extension from files in `common`
somebody1234 50a2992
Merge branch 'develop' into wip/sb/enso-headless
somebody1234 0565558
Address CR
somebody1234 27f6e3f
Move `download.ts` in `common`
somebody1234 42f4205
Remove `.js` extension from files in `common`
somebody1234 5d6d230
Fix error finding `enso` executable
somebody1234 9445f74
Fix error in `HttpClient`
somebody1234 6c000de
Avoid accessing `document` on `Node.js`
somebody1234 83368d2
Minor style refactor
somebody1234 da5332a
Remove unused code
somebody1234 c71d789
WIP: Ability for `electron-client` to refresh token
somebody1234 74594fd
Merge branch 'develop' into wip/sb/enso-headless-2
somebody1234 b219cec
Install vite
somebody1234 9a1fcc2
Merge branch 'develop' into wip/sb/enso-headless
somebody1234 6ee3d28
Merge branch 'wip/sb/enso-headless' into wip/sb/enso-headless-2
somebody1234 58c46e9
Fix import errors
somebody1234 5e5a363
Fix import errors
somebody1234 7015499
Fix import errors
somebody1234 e081372
I guess we do need `.js` suffix now...
somebody1234 0bfddcb
Merge branch 'wip/sb/enso-headless' into wip/sb/enso-headless-2
somebody1234 ddc0da0
Fix type errors
somebody1234 0c7f221
Merge branch 'wip/sb/enso-headless' into wip/sb/enso-headless-2
somebody1234 2cf4ad4
Merge branch 'develop' into wip/sb/enso-headless
somebody1234 04b67ec
Merge branch 'wip/sb/enso-headless' into wip/sb/enso-headless-2
somebody1234 f9ce935
Move `.dev-env` submodule
somebody1234 0074eb4
Initial `vite` setup for `common` module
somebody1234 9fcc3ab
Update `enso-common` imports to `enso-common/src/constants`
somebody1234 d4cb53c
Fix build errors
somebody1234 a39ac18
Fix config parsing error
somebody1234 837c54c
Fix runtime error
somebody1234 2e4205a
Merge branch 'develop' into wip/sb/enso-headless-2
somebody1234 1a13b3c
WIP: Fix token refresh
somebody1234 4d30051
Fix loading `.env` in `gui`
somebody1234 c2e271b
Fix loading project in headless mode
somebody1234 82ac195
Fix path to enso executable in dev mode
somebody1234 e59594b
First working headless execution
somebody1234 6f81959
Set cloud variables for headless execution
somebody1234 648a0ef
Add asset contents sidebar panel
somebody1234 90c714c
Fix issue closing project
somebody1234 0d75fbf
WIP: Add tests
somebody1234 d2bd3d0
Fix crash
somebody1234 cdec88e
Fix arg parsing
somebody1234 37aad0f
Skip integration test
somebody1234 8997375
Convert `App` back to a class
somebody1234 b125eac
Remove obsolete TODO
somebody1234 3cb824a
Add `useUpload` and move to `composables`
somebody1234 d6f4f70
Re-inline `await`ed Vite plugins
somebody1234 62e65e5
Implement and use `runProcess` in `ensoRunner`
somebody1234 3a29227
Avoid creating `projectService` in `runHybridProjectByUrl`
somebody1234 0ec0f3c
Fix `cwd` for `runProject`
somebody1234 da1898a
Merge branch 'develop' into wip/sb/enso-headless-2
somebody1234 addad10
Fix type error
somebody1234 492cc29
Fix mode not working
somebody1234 24ba3e2
Fix Bazel errors
somebody1234 8426dd2
Fix error message when running headless mode without logging in
somebody1234 b5e50aa
Refactor Enso exectuable detection code
somebody1234 20dd0b5
Fix Enso executable path detection
somebody1234 349349c
fix find executables path on MacOs
PabloBuchu 35a2232
Fix watch mode; improve asset preview
somebody1234 dbcfb91
Disable previewing of media files
somebody1234 9561547
Only preview media files when explicitly loaded
somebody1234 bac86e0
Fix bazel build
somebody1234 de7f22e
Fix type error
somebody1234 39e585e
Fix integration tests
somebody1234 22024c3
Address CR
somebody1234 a4a9fcd
Address Bazel comments
somebody1234 507d803
Address CR
somebody1234 b3224f1
Continue addressing CR
somebody1234 68b8c62
Fix tests
somebody1234 bccb0e0
Attempt to fix Bazel building
somebody1234 7e6dcdc
Scuff...
somebody1234 b2fed0a
Bazel is hard
somebody1234 b5d81ff
Prettier
somebody1234 5077613
Fix Bazel files
somebody1234 738c2c2
Fix type errors
somebody1234 10d67f0
Prettier
somebody1234 d7b70d3
Fix CI errors?
somebody1234 ae6d477
Merge branch 'develop' into wip/sb/enso-headless-2
somebody1234 ddd57db
Fix errors
somebody1234 5367111
Merge branch 'develop' into wip/sb/enso-headless-2
somebody1234 bdb421e
Fix package tests
somebody1234 64e4748
Fix Bazel build
somebody1234 82e7175
Fix Bazel build?
somebody1234 d30f0c1
Testing on CI...
somebody1234 539e5b7
Testing on CI... part 2
somebody1234 477ca6a
Testing on CI... part 3
somebody1234 ffa9499
Testing on CI... part 4
somebody1234 a3ea03d
Testing on CI... part 4b
somebody1234 8ebff68
This is not working
somebody1234 2434071
Check specific test
somebody1234 a20cbed
Fix workflow error
somebody1234 5a1eaaa
Debugging
somebody1234 346e916
Log mode
somebody1234 57665e3
Attempt to fix CI
somebody1234 17bed65
Attempt to fix CI (again)
somebody1234 dd4ef05
Revert incorrect fix
somebody1234 34e0f8d
Fix errors when env files are missing; change headless logs to inheri…
somebody1234 d8d42d8
Testing
somebody1234 e3e817c
Workaround to make tests happy
somebody1234 eb6e563
Fix CI
somebody1234 b89ba40
Attempt more proper fix for failing unit test
somebody1234 4d55f0c
Add changelog entry
somebody1234 788ed42
More debug logging
somebody1234 9f7c32c
Merge branch 'develop' into wip/sb/enso-headless-2
somebody1234 4e1b92e
Remove debug logs; adjust env file to work on tests
somebody1234 46ab7d1
fix terms modal
PabloBuchu bee52ea
Fix environment variables
somebody1234 2289e9e
Fix environment variables
somebody1234 5846a91
Fix E2E tests...
somebody1234 cf8fc90
Merge branch 'develop' into wip/sb/enso-headless-2
somebody1234 ed80e7b
Fix build error
somebody1234 cd1821d
Merge branch 'develop' into wip/sb/enso-headless-2
somebody1234 16bbc6b
:(
somebody1234 8ab3f7c
Fix CI
somebody1234 cb767e8
Remove debug log
somebody1234 2a6e21b
Fix Windows CI
somebody1234 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| strict_env | ||
|
|
||
| if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then | ||
| source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4=" | ||
| if ! has nix_direnv_version || ! nix_direnv_version 3.1.0; then | ||
| source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.1.0/direnvrc" "sha256-yMJ2OVMzrFaDPn7q8nCBZFRYpL/f0RcHzhmw/i6btJM=" | ||
| fi | ||
|
|
||
| use flake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [submodule "app/gui/.dev-env"] | ||
| path = app/gui/.dev-env | ||
| [submodule "app/common/.dev-env"] | ||
| path = app/common/.dev-env | ||
| url = ../dev-env.git | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule .dev-env
updated
from 000000 to 9857b9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ENSO_IDE_API_URL=https://mock | ||
| ENSO_IDE_HOST=https://ensoanalytics.com | ||
| ENSO_IDE_COGNITO_USER_POOL_ID=mars_AAAAAAAAA | ||
| ENSO_IDE_COGNITO_USER_POOL_WEB_CLIENT_ID=zzzzzzzzzzzzzzzzzzzzzzzzzz | ||
| ENSO_IDE_COMMIT_HASH=abcdef0 | ||
| ENSO_IDE_CLOUD_BUILD=false | ||
| ENSO_IDE_VERSION=0.0.1-testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| /** | ||
| * @file This file defines a global environment config that can be used throughout the app. | ||
| * It is included directly into index.html and kept as a separate built artifact, so that | ||
| * we can easily replace its contents in a separate build postprocessing step in `BUILD.bazel`. | ||
| */ | ||
|
|
||
| import { unsafeKeys } from './utilities/data/object.js' | ||
|
|
||
| declare global { | ||
| interface ViteTypeOptions { | ||
| // strictImportMetaEnv: unknown | ||
| } | ||
|
|
||
| // This needs to be ts-ignore, because not all packages have this key defined. | ||
| // eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
| // @ts-ignore This key is also defined in Vite. | ||
| type ImportMetaEnvFallbackKey = | ||
| 'strictImportMetaEnv' extends keyof ViteTypeOptions ? never : string | ||
|
|
||
| interface ImportMetaEnv { | ||
| [key: ImportMetaEnvFallbackKey]: any | ||
| BASE_URL: string | ||
| MODE: string | ||
| DEV: boolean | ||
| PROD: boolean | ||
| SSR: boolean | ||
| } | ||
|
|
||
| interface ImportMeta { | ||
| url: string | ||
| readonly env: ImportMetaEnv | ||
| } | ||
| } | ||
|
|
||
| const processEnv = typeof process !== 'undefined' ? process.env : {} | ||
|
|
||
| /** When running dev server, the config variables are grabbed from appropriate .env file. */ | ||
| export const $config = { | ||
| ENVIRONMENT: processEnv.ENSO_IDE_ENVIRONMENT ?? import.meta.env?.ENSO_IDE_ENVIRONMENT, | ||
| ENSO_HOST: | ||
| processEnv.ENSO_IDE_HOST ?? (import.meta.env?.ENSO_IDE_HOST || 'https://ensoanalytics.com'), | ||
| API_URL: processEnv.ENSO_IDE_API_URL ?? import.meta.env?.ENSO_IDE_API_URL, | ||
| SENTRY_DSN: processEnv.ENSO_IDE_SENTRY_DSN ?? import.meta.env?.ENSO_IDE_SENTRY_DSN, | ||
| STRIPE_KEY: processEnv.ENSO_IDE_STRIPE_KEY ?? import.meta.env?.ENSO_IDE_STRIPE_KEY, | ||
| AUTH_ENDPOINT: processEnv.ENSO_IDE_AUTH_ENDPOINT ?? import.meta.env?.ENSO_IDE_AUTH_ENDPOINT, | ||
| COGNITO_USER_POOL_ID: | ||
| processEnv.ENSO_IDE_COGNITO_USER_POOL_ID ?? import.meta.env?.ENSO_IDE_COGNITO_USER_POOL_ID, | ||
| COGNITO_USER_POOL_WEB_CLIENT_ID: | ||
| processEnv.ENSO_IDE_COGNITO_USER_POOL_WEB_CLIENT_ID ?? | ||
| import.meta.env?.ENSO_IDE_COGNITO_USER_POOL_WEB_CLIENT_ID, | ||
| GOOGLE_ANALYTICS_TAG: | ||
| processEnv.ENSO_IDE_GOOGLE_ANALYTICS_TAG ?? import.meta.env?.ENSO_IDE_GOOGLE_ANALYTICS_TAG, | ||
| COGNITO_DOMAIN: processEnv.ENSO_IDE_COGNITO_DOMAIN ?? import.meta.env?.ENSO_IDE_COGNITO_DOMAIN, | ||
| COGNITO_REGION: processEnv.ENSO_IDE_COGNITO_REGION ?? import.meta.env?.ENSO_IDE_COGNITO_REGION, | ||
| VERSION: processEnv.ENSO_IDE_VERSION ?? import.meta.env?.ENSO_IDE_VERSION, | ||
| COMMIT_HASH: processEnv.ENSO_IDE_COMMIT_HASH ?? import.meta.env?.ENSO_IDE_COMMIT_HASH, | ||
| YDOC_SERVER_URL: processEnv.ENSO_IDE_YDOC_SERVER_URL ?? import.meta.env?.ENSO_IDE_YDOC_SERVER_URL, | ||
| CLOUD_BUILD: processEnv.ENSO_IDE_CLOUD_BUILD ?? import.meta.env?.ENSO_IDE_CLOUD_BUILD, | ||
| AG_GRID_LICENSE_KEY: | ||
| processEnv.ENSO_IDE_AG_GRID_LICENSE_KEY ?? import.meta.env?.ENSO_IDE_AG_GRID_LICENSE_KEY, | ||
| GOOGLE_OAUTH_CLIENT_ID: | ||
| processEnv.ENSO_IDE_GOOGLE_OAUTH_CLIENT_ID ?? import.meta.env?.ENSO_IDE_GOOGLE_OAUTH_CLIENT_ID, | ||
| STRAVA_OAUTH_CLIENT_ID: | ||
| processEnv.ENSO_IDE_STRAVA_OAUTH_CLIENT_ID ?? import.meta.env?.ENSO_IDE_STRAVA_OAUTH_CLIENT_ID, | ||
| MS365_OAUTH_CLIENT_ID: | ||
| processEnv.ENSO_IDE_MS365_OAUTH_CLIENT_ID ?? import.meta.env?.ENSO_IDE_MS365_OAUTH_CLIENT_ID, | ||
| MAPBOX_API_TOKEN: | ||
| (typeof window === 'object' && | ||
| window && | ||
| 'api' in window && | ||
| typeof window.api === 'object' && | ||
| window.api && | ||
| 'mapBoxApiToken' in window.api && | ||
| typeof window.api.mapBoxApiToken === 'function' && | ||
| window.api?.mapBoxApiToken()) || | ||
| (processEnv.ENSO_IDE_MAPBOX_API_TOKEN ?? import.meta.env?.ENSO_IDE_MAPBOX_API_TOKEN), | ||
| } | ||
|
|
||
| /** Sets the global configuration. */ | ||
| export function setConfig(config: typeof $config) { | ||
| for (const k of unsafeKeys(config)) { | ||
| if (config[k] === undefined) { | ||
| continue | ||
| } | ||
| // Special-case as ENSO_HOST may currently be an empty string when it is unset in CI. | ||
| if (k === 'ENSO_HOST' && config[k] === '') { | ||
| continue | ||
| } | ||
| $config[k] = config[k] | ||
| } | ||
| } | ||
|
|
||
| // Undefined env variables are typed as `any`, but we want them to be `string | undefined`. | ||
| export type $Config = { | ||
| [K in keyof typeof $config]: unknown extends (typeof $config)[K] ? string | undefined | ||
| : (typeof $config)[K] | ||
| } |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.