Unable to flutter run or build app for desktop on windows

Steps to Reproduce

I have an app which runs and builds fine on macOS. It also worked on a windows device. However, I tried building it from a Parallels Windows 11 VM (running on an Apple Silicon Mac) and I ran into the following errors when running flutter run -d windows or flutter build windows:
Launching lib\main.dart on Windows in debug mode...
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: The command "setlocal [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: :cmEnd [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: :cmErrorLevel [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: exit /b %1 [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: :cmDone [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(156,5): error MSB3073: :VCEnd" exited with code 1. [C:\Users\hadymashhour\development\rolling_calendar\build\windows\INSTALL.vcxproj]
Building Windows application...
Exception: Build process failed.

I believe Parallels uses the windows 11 arm insider preview for apple silicon devices, however, I'm not sure.
Logs

Logs

[✓] Flutter (Channel stable, 2.10.1, on Microsoft Windows [Version 10.0.22000.493], locale en-US)
    • Flutter version 2.10.1 at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (22 hours ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.0.32126.317
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[✓] VS Code (version 1.64.1)
    • VS Code at C:\Users\hadymashhour\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.34.0

[✓] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22000.493]
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 98.0.1108.43

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 3 categories.

@stuartmorgan I've attached the log below. I also tried running/building on another real device (windows 10 laptop) and I got the same errors. The log is of that from the real device and not the virtual machine.
log.txt

The actual error is
[   +5 ms]   CMake Error at cmake_install.cmake:80 (file):
[        ]     file cannot create directory: C:/Program Files (x86)/rolling_calendar.
[        ]     Maybe need administrative privileges.

This looks like a Windows version of the strange error we've occasionally seen with Linux; the install step shouldn't be trying to actually install anything at that location. It should be targeting a location within the build directory, to make a self-contained runnable directory.
If you flutter clean and then build again, does it go away? (This is what has always happened with the Linux version; it seems to be a one-time configuration failure with CMake.)

@stuartmorgan I've done flutter clean then flutter build -v windows again on both the VM and real laptop and the build still fails. The VM log.txt is that of the VM and Real log is that of the real device.
VM Log.txt
Real log.txt

I also forgot to mention the real device is using vs community 2019 not 2022. It also has 0 issues with flutter doctor. I'll upload a flutter doctor -v later.

Here is the flutter doctor -v from the real device:
[✓] Flutter (Channel stable, 2.10.1, on Microsoft Windows [Version 10.0.19042.1466], locale en-US)
    • Flutter version 2.10.1 at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (2 days ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\HadyM\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.10.31515.178
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.1)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.1466]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 96.0.4664.110
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 97.0.1072.55

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hello @maheshmnj, it did before but for some reason it's not working anymore.
I did:

flutter create test
cd test
flutter build windows (failed)
flutter run -d windows (failed)

Here's the output of the build (not verbose):
💪 Building with sound null safety 💪

Building Windows application...
Unable to generate build files
PS C:\Users\hadymashhour\development\test> flutter build windows -v
[ +156 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +263 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +2 ms] db747aa1331bd95bc9b3874c842261ca2d302cd5
[   +1 ms] executing: [C:\src\flutter/] git tag --points-at db747aa1331bd95bc9b3874c842261ca2d302cd5
[  +51 ms] Exit code 0 from: git tag --points-at db747aa1331bd95bc9b3874c842261ca2d302cd5
[        ] 2.10.1
[  +16 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +37 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[  +36 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +305 ms] Unable to locate an Android SDK.
[  +14 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +37 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +117 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +91 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +212 ms] Skipping pub get: version match.
[ +158 ms] Generating
C:\Users\hadymashhour\development\test\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +119 ms] 💪 Building with sound null safety 💪
[  +24 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products *
-utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[  +35 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products
* -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[   +1 ms] [
             {
               "instanceId": "c340c1a5",
               "installDate": "2022-02-10T14:29:19Z",
               "installationName": "VisualStudio/17.0.6+32126.317",
               "installationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community",
               "installationVersion": "17.0.32126.317",
               "productId": "Microsoft.VisualStudio.Product.Community",
               "productPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\devenv.exe",
               "state":<PHONE_NUMBER>,
               "isComplete": true,
               "isLaunchable": true,
               "isPrerelease": false,
               "isRebootRequired": false,
               "displayName": "Visual Studio Community 2022",
               "description": "Powerful IDE, free for students, open-source contributors, and individuals",
               "channelId": "VisualStudio.17.Release",
               "channelUri": "https://aka.ms/vs/17/release/channel",
               "enginePath": "C:\\Program Files (x86)\\Microsoft Visual
               Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
               "installedChannelUri": "https://aka.ms/vs/17/release/channel",
               "releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.0#17.0.6",
               "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288",
               "updateDate": "2022-02-10T14:29:19.177515Z",
               "catalog": {
                 "buildBranch": "d17.0",
                 "buildVersion": "17.0.32126.317",
                 "id": "VisualStudio/17.0.6+32126.317",
                 "localBuild": "build-lab",
                 "manifestName": "VisualStudio",
                 "manifestType": "installer",
                 "productDisplayVersion": "17.0.6",
                 "productLine": "Dev17",
                 "productLineVersion": "2022",
                 "productMilestone": "RTW",
                 "productMilestoneIsPreRelease": "False",
                 "productName": "Visual Studio",
                 "productPatchVersion": "6",
                 "productPreReleaseMilestoneSuffix": "1.0",
                 "productSemanticVersion": "17.0.6+32126.317",
                 "requiredEngineVersion": "3.0.4496.34889"
               },
               "properties": {
                 "campaignId": "",
                 "channelManifestId": "VisualStudio.17.Release/17.0.6+32126.317",
                 "nickname": "",
                 "setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe"
               }
             }
           ]
[   +8 ms] Building Windows application...
[  +13 ms] executing: C:\Program Files\Microsoft Visual
Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S
C:\Users\hadymashhour\development\test\windows -B build\windows -G Visual Studio 17 2022
[  +71 ms] Building Windows application... (completed in 68ms)
[   +2 ms] "flutter windows" took 801ms.
[   +8 ms] Unable to generate build files
[   +5 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _runCmakeGeneration (package:flutter_tools/src/windows/build_windows.dart:269:5)
           <asynchronous suspension>
           #2      buildWindows (package:flutter_tools/src/windows/build_windows.dart:71:5)
           <asynchronous suspension>
           #3      BuildWindowsCommand.runCommand (package:flutter_tools/src/commands/build_windows.dart:57:5)
           <asynchronous suspension>
           #4      FlutterCommand.run.<anonymous closure>
(package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure>
           (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #10     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #12     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>

[   +8 ms] Running shutdown hooks
[   +1 ms] Shutdown hooks complete
[   +4 ms] exiting with code 1

The build problem only occurs when building for windows. I tried building the 'test' app I just created for the web (flutter build web) and it built with no errors.

I figured the issue out. I wanted to test something out so I disabled .NET 3.5 and 4.8 and uninstalled the Visual C++ redistributable. I forgot to re-enable them which was causing the errors. Both the test app and the app I was initially trying to build worked.
I figured this out from this Stack Overflow post: https://stackoverflow.com/questions/67932485/exception-unable-to-generate-build-files-for-window-build


Storage provisioner seems to get enabled but doesn't provision storage in apply

Storage provisioner seems to get enabled now after the previous issue but when applied with a pvc afterwards, the pvc is stuck in a pending state.
Example tf:
resource "minikube_cluster" "docker" {
  cluster_name = "${var.prefix}minikube"

  driver              = "docker"
  auto_update_drivers = true
  container_runtime   = "docker"

  cpus   = 4
  memory = "16384mb"

  cni = "calico"

  wait = ["all"]

  addons = [
    "dashboard",
    "default-storageclass",
    "storage-provisioner",
    "ingress",
    "ingress-dns",
    "istio",
    "istio-provisioner",
    "logviewer",
    "metrics-server"
  ]
}
resource "kubernetes_namespace" "ns" {
  metadata {
    name = "${var.prefix}backstage"
  }
}
resource "kubernetes_persistent_volume_claim" "pg_pvc" {
  metadata {
    name      = "${var.prefix}postgres"
    namespace = local.namespace
    labels = {
      type = "local"
    }
  }
  spec {
    storage_class_name = "standard"
    access_modes = [
      "ReadWriteOnce"
    ]
    resources {
      requests = {
        storage = "2G"
      }
    }
  }
}

Same as before though, this does work if you add the provisioner at the end and local-exec with minikube cli to enable the storage-provisioner

Thanks for trying the latest version out! While the last fix did remedy part of the problem, it turns out that the storage provisioner version is actually supposed to be embedded during the build.
This fix should set the storage-provisioner version such that the addon is enabled correctly when the cluster is spun up https://github.com/scott-the-programmer/terraform-provider-minikube/pull/72
I was able to reproduce it and verify the fix locally with your config 😄

I'll merge this PR in and cut a new release shortly 🎉
Thanks again!


How to use this library in the front end

Hi All,
I want to use this library in the front end. But there is no proper documentation. How to use the library.
Thanks,
Arun

I would need help to write proper documentation,
meanwhile you can check the source code if the docs index: https://github.com/farbelous/fontawesome-iconpicker/blob/master/index.html


Solve recursion error by lowering canvas max width to 50

Solves #57. Solution no. 2 . Please choose the better solution and deny the other pr.

replaced by #58

replaced by #58


No API factory available for dependency apiRef{core.scmauth} of dependent apiRef{plugin.catalog-import.service}

When trying to load the catalog import page, I am faced with "No API factory available for dependency apiRef{core.scmauth} of dependent apiRef{plugin.catalog-import.service}" error.
Expected Behavior
The catalog import page should load for me to import catalog entities.
Current Behavior

Steps to Reproduce
Output of yarn dev:
sang@TB-L161:~/Codes/backstage$ yarn dev
yarn run v1.22.17
$ concurrently "yarn start" "yarn start-backend"
$ yarn workspace app start
$ yarn workspace backend start
$ backstage-cli backend:dev
$ backstage-cli app:serve
[1] Build succeeded
[0] Loaded config from app-config.yaml, app-config.local.yaml
[0] <w> [webpack-dev-server] "hot: true" automatically applies HMR plugin, you don't have to add it manually to your webpack configuration.
[0] (node:88996) [DEP_WEBPACK_DEV_SERVER_CONSTRUCTOR] DeprecationWarning: Using 'compiler' as the first argument is deprecated. Please use 'options' as the first argument and 'compiler' as the second argument.
[0] (Use `node --trace-deprecation ...` to show where the warning was created)
[0] (node:88996) [DEP_WEBPACK_DEV_SERVER_LISTEN] DeprecationWarning: 'listen' is deprecated. Please use async 'start' or 'startCallback' methods.
[0] <i> [webpack-dev-server] Project is running at:
[0] <i> [webpack-dev-server] Loopback: http://localhost:3000/, http://<IP_ADDRESS>:3000/
[0] <i> [webpack-dev-server] Content not from webpack is served from '/home/sang/Codes/backstage/packages/app/public' directory
[0] <i> [webpack-dev-server] 404s will fallback to '/index.html'
[0] <i> [webpack-dev-middleware] wait until bundle finished: /
[1] 2021-11-03T15:49:38.629Z backstage info Loaded config from app-config.yaml, app-config.local.yaml
[1] 2021-11-03T15:49:38.642Z backstage info 0 secrets found in the config which will be redacted
[1] 2021-11-03T15:49:38.657Z backstage info Created UrlReader predicateMux{readers=azure{host=dev.azure.com,authed=false},bitbucket{host=bitbucket.org,authed=false},github{host=github.com,authed=false},gitlab{host=gitlab.tradebyte.org,authed=false},gitlab{host=gitlab.com,authed=false},awsS3{host=amazonaws.com,authed=false},fetch{}
[1] 2021-11-03T15:49:38.907Z auth info Configuring "database" as KeyStore provider type=plugin
[1] 2021-11-03T15:49:38.920Z techdocs warn The 'techdocs.generators.techdocs' configuration key is deprecated and will be removed in the future. Please use 'techdocs.generator' instead. See here https://backstage.io/docs/features/techdocs/configuration type=plugin
[1] 2021-11-03T15:49:38.921Z techdocs info Creating AWS S3 Bucket publisher for TechDocs type=plugin
[1] 2021-11-03T15:49:40.027Z catalog warn Processor BuiltinKindsEntityProcessor threw an error while validating the entity; caused by TypeError: /spec should have required property 'memberOf' - missingProperty: memberOf type=plugin entity=user:default/chris.slarke
[1] 2021-11-03T15:49:40.029Z catalog warn Processor BuiltinKindsEntityProcessor threw an error while validating the entity; caused by TypeError: /spec should have required property 'memberOf' - missingProperty: memberOf type=plugin entity=user:default/chris.williams
[1] 2021-11-03T15:49:46.424Z techdocs error Could not retrieve metadata about the AWS S3 bucket com-tradebyte-cps-backstage-techdocs. Make sure the bucket exists. Also make sure that authentication is setup either by explicitly defining credentials and region in techdocs.publisher.awsS3 in app config or by using environment variables. Refer to https://backstage.io/docs/features/techdocs/using-cloud-storage type=plugin
[1] 2021-11-03T15:49:46.425Z techdocs error from AWS client library Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1 type=plugin code=CredentialsError time=Wed Nov 03 2021 16:49:46 GMT+0100 (Central European Standard Time) retryable=true originalError=[object Object] stack=CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
[1]     at Timeout.connectTimeout [as _onTimeout] (/home/sang/Codes/backstage/node_modules/aws-sdk/lib/http/node.js:69:15)
[1]     at listOnTimeout (internal/timers.js:557:17)
[1]     at processTimers (internal/timers.js:500:7)
[1] 2021-11-03T15:49:46.430Z proxy info [HPM] Proxy created: /test  -> https://example.com type=plugin
[1] 2021-11-03T15:49:46.431Z proxy info [HPM] Proxy rewrite rule created: "^/api/proxy/test/?" ~> "/" type=plugin
[1] 2021-11-03T15:49:46.432Z search info Added DefaultCatalogCollator collator for type software-catalog type=plugin
[1] 2021-11-03T15:49:46.434Z app warn Can't serve static app content from /home/sang/Codes/backstage/packages/app/dist/static, directory doesn't exist type=plugin
[1] 2021-11-03T15:49:46.437Z backstage info Initializing http server
[1] 2021-11-03T15:49:46.441Z backstage info Listening on :7000

Please ignore the S3 credentials not found error, they are intentional when developing locally.

NodeJS Version (v14): 14.18.1
Operating System and Version (e.g. Ubuntu 14.04): Ubuntu 20.04
Browser Information: Agnostic

We are seeing the same issue as well. The error is not there if I run this from the Backstage repo itself but out created app version displays this issue. I'll do some more investigating from my side of things

Did not get anywhere with my investigation but here are the results of yarn backstage-cli info:
OS:   Windows_NT 10.0.19043 - win32/x64
node: v14.17.6
yarn: 1.22.5
cli:  0.8.1 (installed)

Dependencies:
  @backstage/backend-common                                0.9.8
  @backstage/catalog-client                                0.5.0
  @backstage/catalog-model                                 0.9.6
  @backstage/cli-common                                    0.1.5
  @backstage/cli                                           0.8.1
  @backstage/config-loader                                 0.7.1
  @backstage/config                                        0.1.11
  @backstage/core-app-api                                  0.1.19
  @backstage/core-components                               0.7.2
  @backstage/core-plugin-api                               0.1.12
  @backstage/dev-utils                                     0.2.12
  @backstage/errors                                        0.1.4
  @backstage/integration-react                             0.1.13
  @backstage/integration                                   0.6.9
  @backstage/plugin-api-docs                               0.6.12
  @backstage/plugin-app-backend                            0.3.18
  @backstage/plugin-auth-backend                           0.4.6
  @backstage/plugin-azure-devops-backend                   0.1.4
  @backstage/plugin-azure-devops                           0.1.2
  @backstage/plugin-badges-backend                         0.1.11
  @backstage/plugin-badges                                 0.2.13
  @backstage/plugin-catalog-backend                        0.17.2
  @backstage/plugin-catalog-graph                          0.2.1
  @backstage/plugin-catalog-import                         0.7.3
  @backstage/plugin-catalog-react                          0.6.2
  @backstage/plugin-catalog                                0.7.2
  @backstage/plugin-cost-insights                          0.11.10
  @backstage/plugin-explore-react                          0.0.6
  @backstage/plugin-explore                                0.3.20
  @backstage/plugin-home                                   0.4.4
  @backstage/plugin-jenkins                                0.5.11
  @backstage/plugin-kubernetes-backend                     0.3.18
  @backstage/plugin-kubernetes-common                      0.1.5
  @backstage/plugin-kubernetes                             0.4.18
  @backstage/plugin-lighthouse                             0.2.29
  @backstage/plugin-org                                    0.3.27
  @backstage/plugin-pagerduty                              0.3.17
  @backstage/plugin-proxy-backend                          0.2.13
  @backstage/plugin-scaffolder-backend-module-cookiecutter 0.1.3
  @backstage/plugin-scaffolder-backend                     0.15.11
  @backstage/plugin-scaffolder-common                      0.1.1
  @backstage/plugin-scaffolder                             0.11.9
  @backstage/plugin-search-backend-module-elasticsearch    0.0.4
  @backstage/plugin-search-backend-module-pg               0.2.1
  @backstage/plugin-search-backend-node                    0.4.3
  @backstage/plugin-search-backend                         0.2.6
  @backstage/plugin-search                                 0.4.16
  @backstage/plugin-sentry                                 0.3.27
  @backstage/plugin-shortcuts                              0.1.13
  @backstage/plugin-tech-radar                             0.4.11
  @backstage/plugin-techdocs-backend                       0.10.6
  @backstage/plugin-techdocs                               0.12.4
  @backstage/plugin-user-settings                          0.3.10
  @backstage/search-common                                 0.2.1
  @backstage/techdocs-common                               0.10.5
  @backstage/test-utils                                    0.1.20
  @backstage/theme                                         0.2.12
  @backstage/types                                         0.1.1
  @backstage/version-bridge                                0.1.0

Did you apply this change to your instance after updating the backstage packages? https://github.com/backstage/backstage/blob/master/plugins/catalog-import/CHANGELOG.md#minor-changes

I saw this when bumping versions and not applying the change in the changelog referenced above. Applying the change fixed it.

Yes I can confirm that the solution works for me too, thanks very much @dhenneke

Thanks @dhenneke that was the fix for us as well, I need to remember to always check the changelog!


Documentation: sendKeys() imprecision

Tutorial explains:
[...].sendKeys(1);
[...].sendKeys(2);

While API documentation:
Param       Type
var_args    ...(string|!webdriver.promise.Promise<string>)

So is number officially supported in addition to string?
Sorry to be picky, it's for the TypeScript definition file for Protractor.

This is not an issue. The parameters in our documentation reflects the javadocs for the selenium-webdriver.
webdriver.js:
   * @param {...(string|!promise.Promise<string>)} var_args The
   *     sequence of keys to type. All arguments will be joined into a single
   *     sequence.
   * @return {!promise.Promise<void>} A promise that will be resolved
   *     when all keys have been typed.
   */
  sendKeys(var_args) {

In the end, the typescript is transpiled to javascript and the javascript does not type check that it is a number or a string. This will eventually become more important when we have our own type declarations file that defines sendKeys and users are writing their tests in typescript.
For the DefinitelyTyped file, if users are writing their test in typescript, someone should probably update it so it is string|number.

@cnishina Selenium sendKeys() now officially accepts number: https://github.com/SeleniumHQ/selenium/commit/1dddaef3c8fe8d2974747e4a94b370982939139a

ping @cnishina, this is still not fixed: http://www.protractortest.org/#/api?view=webdriver.WebElement.prototype.sendKeys


Add accessor

Add xarray accessor to postprocess FLEXPART-WRF output to be more consistent with WRF data that is postprocessed with xWRF.

Reduced new pipes in 2926034c25e03990a240c8fbc1d46b81d41b1a99 and squashed xwrf pipes into one function in c3873ccf13714029f7579423046c109a5859a649


V3 thermal node

Moved thermal to it's own node.
Should be expanded later on to include runtime controls for tiny1c.
And also it might be worth to create a ThermalFrame dtype with methods to convert between temperature units and get temp at X,Y.
Right now you can get a FP16 and/or YUV422i ImgFrame from the temperature and color outputs respectively.

This is ready now. @moratom

@moratom , I added the crosshair example and fixed the autoFFC not working + in theory scaled up the displayed images, but it seems like the opencv resizeWindow function doesn't work like it used to, reported the issue here: https://github.com/opencv/opencv/issues/26180
So for opencv-python<<IP_ADDRESS> the image resize will work, for newer versions not


Updated Reqwest

Updated reqwest to its latest version, removes ~20 dependencies and brings us a little closer to async

I built a crate locally (twice in a row) and everything looks fine. Let's try this again.

For posterity: this is the follow-up to https://github.com/rust-lang/docs.rs/pull/815.


Can't extract frames for pix2pix training.

When I run the script file it fails to extract frames and it doesn't actually start the training.
I simply couldn't solve this problem;
Traceback (most recent call last):
  File "./magenta/video/tools/extract_frames.py", line 172, in <module>
    main(0)
  File "./magenta/video/tools/extract_frames.py", line 135, in main
    data = skvideo.io.ffprobe(video_filename)['video']
KeyError: 'video'

To begin the training, I first go to the folder;
cd /Users/MY_PATH/Desktop/tensorflow/magenta-master
Then run the script;
bazel run //magenta/video/next_frame_prediction_pix2pix:create_video  \
  /Users/MY_PATH/Desktop/tensorflow/magenta-master/magenta/video/next_frame_prediction_pix2pix/working_folder/  \
  20  \
  500 \
  /Users/MY_PATH/Desktop/tensorflow/magenta-master/magenta/video/next_frame_prediction_pix2pix/output_folder/

My 'working_folder' contains the mp4 file as well.
What I might be doing wrong?
Thanks very much!

@dh7

@dh7

Thanks Adam, it was just that I double checked everything and as far as I see it just should work.
If perhaps someone who could manage to run this could share the files/folder structure frame_extraction.py creates I can manually create it as well.
Thanks for the fantastic addition to the magenta collection by the way!

Hi Ailgun.
Your video need to be named video.mp4. An other name won't work for now.
About file structure, the script is just extracting frames as jpg image, but stretch them so they are square.

instead of:
mynames-iMac:magenta-master myname$ bazel run //magenta/video/next_frame_prediction_pix2pix:create_video  \

/Users/myname/Desktop/ml/tensorflow/magenta-master/magenta/video/next_frame_prediction_pix2pix/working_folder
20
500
/Users/myname/Desktop/ml/tensorflow/magenta-master/magenta/video/next_frame_prediction_

can you try:
//magenta/video/next_frame_prediction_pix2pix:create_video
/Users/myname/Desktop/my_project/working_folder
20
500
Users/myname/Desktop/my_project/backup_folder
and be sure you have a video.mp4 there:
/Users/myname/Desktop/my_project/working_folder

Thanks very much for the reply Damien, even though this seems very well constructed and easy to execute its seems I'm a bit unlucky about it. It's just that I've been wanting to try this for a long time!
I have tried it as you said, first I went to folder with cd then ran the bazel but still I got the same error.
My video.mp4 is inside the 'working_folder' as well.
cd /Users/myname/Desktop/ml/tensorflow/magenta-master

bazel run //magenta/video/next_frame_prediction_pix2pix:create_video  \
  /Users/myname/Desktop/my_project/working_folder  \
  20  \
  500 \
  /Users/myname/Desktop/my_project/backup_folder

This is the execution:
Last login: Wed Dec  5 22:25:14 on ttys000
cd /Users/myname/Desktop/ml/tensorflow/magenta-master
mynames-iMac:~ myname$ cd /Users/myname/Desktop/ml/tensorflow/magenta-master
mynames-iMac:magenta-master myname$
mynames-iMac:magenta-master myname$ bazel run //magenta/video/next_frame_prediction_pix2pix:create_video  \
>   /Users/myname/Desktop/my_project/working_folder  \
>   20  \
>   500 \
>   /Users/myname/Desktop/my_project/backup_folder
INFO: Analysed target //magenta/video/next_frame_prediction_pix2pix:create_video (0 packages loaded).
INFO: Found 1 target...
Target //magenta/video/next_frame_prediction_pix2pix:create_video up-to-date:
  bazel-bin/magenta/video/next_frame_prediction_pix2pix/create_video
INFO: Elapsed time: 0.120s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/magenta/video/next_frame_prediction_pix2pix/create_video /Users/myname/Desktop/my_project/working_folder 20 500 /Users/myname/INFO: Build completed successfully, 1 total action
Train a model and make videos, including steps that generate pre recursive pairs
This script need to be launched from the main tf_toolbox directory, not from the directory witch the script is
!!! This script contains some rm -rf !!! use with care, check arg1 carfully
Train pix2pix to predict the next frame
Do you want to generate the frames from video.mp4? [y/N] y
creating the 'frames' dir
rm: /Users/myname/Desktop/my_project/working_folder/frames/*.jpg: No such file or directory
argument to expand /Users/myname/Desktop/my_project/working_folder/video.mp4
argument expanded ['/Users/myname/Desktop/my_project/working_folder/video.mp4']
start parsing /Users/myname/Desktop/my_project/working_folder/video.mp4
Traceback (most recent call last):
  File "./magenta/video/tools/extract_frames.py", line 173, in <module>
    main(0)
  File "./magenta/video/tools/extract_frames.py", line 136, in main
    data = skvideo.io.ffprobe(video_filename)['video']
KeyError: 'video'
Do you want to reset the first-frame using a frame from the video? [y/N]

Later on, I manually created the 'frames' folder inside the working_directory, with ~100 RGB 1024x1024 .jpg files inside.
Then this is what happened later on, sorry for the extensive script.
Train a model and make videos, including steps that generate pre recursive pairs
This script need to be launched from the main tf_toolbox directory, not from the directory witch the script is
!!! This script contains some rm -rf !!! use with care, check arg1 carfully
Train pix2pix to predict the next frame
Do you want to generate the frames from video.mp4? [y/N] n
keeping 'frames' folder
Do you want to reset the first-frame using a frame from the video? [y/N] y
copying the test frame
cp: /Users/myname/Desktop/my_project/working_folder/frames/f0000001.jpg: No such file or directory
Do you want to generate the 'good' directory? just by copying the frame folder [y/N] y
creating the 'good' dir copying the frame folder
Do you want to (re)create 'train' [y/N] y
recreate 'train'
Do you want to remove or recreate the previous logs (to clean tensorboard)? [y/N] y
removing logs
Do you want to remove the previous generated video? [y/N] y
removing video
rm: /Users/myname/Desktop/my_project/backup_folder/video*.mp4: No such file or directory
Do you want to remove the CURENT model? [y/N] y
removing model checkpoint
rm: /Users/myname/Desktop/my_project/working_folder/pix2pix.model*: No such file or directory
rm: /Users/myname/Desktop/my_project/working_folder/checkpoint: No such file or directory
Do you want to (re)create 'test' and 'val'? [y/N] y
recreate 'test'
rm: /Users/myname/Desktop/my_project/working_folder/test/*.jpg: No such file or directory
looking for recursive img in /Users/myname/Desktop/my_project/working_folder/frames/*.jpg
found  100 for left list
looking for frames img in /Users/myname/Desktop/my_project/working_folder/good/*.jpg
found  100 for right list
Traceback (most recent call last):
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 123, in <module>
    main(0)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 99, in main
    match, i = is_match(left, r_list)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 71, in is_match
    frame_number = int(basename.split('.')[0][1:])
ValueError: invalid literal for int() with base 10: ''
recreate 'val'
rm: /Users/myname/Desktop/my_project/working_folder/val/*.jpg: No such file or directory
looking for recursive img in /Users/myname/Desktop/my_project/working_folder/frames/*.jpg
found  100 for left list
looking for frames img in /Users/myname/Desktop/my_project/working_folder/good/*.jpg
found  100 for right list
Traceback (most recent call last):
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 123, in <module>
    main(0)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 99, in main
    match, i = is_match(left, r_list)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 71, in is_match
    frame_number = int(basename.split('.')[0][1:])
ValueError: invalid literal for int() with base 10: ''
#######################################
starting sequence from 1 to 20
making pairs 1/20
looking for recursive img in /Users/myname/Desktop/my_project/working_folder/frames/*.jpg
found  100 for left list
looking for frames img in /Users/myname/Desktop/my_project/working_folder/good/*.jpg
found  100 for right list
Traceback (most recent call last):
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 123, in <module>
    main(0)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 99, in main
    match, i = is_match(left, r_list)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 71, in is_match
    frame_number = int(basename.split('.')[0][1:])
ValueError: invalid literal for int() with base 10: ''
trainning 1/20
2018-12-05 22:26:15.610410: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
 [*] Reading checkpoint...
 [!] Load failed...
looking for trainning data in /Users/myname/Desktop/my_project/working_folder/train/*.jpg
found 0 data
looking for trainning data in /Users/myname/Desktop/my_project/working_folder/train/*.jpg
found 0 data
looking for trainning data in /Users/myname/Desktop/my_project/working_folder/train/*.jpg
found 0 data
looking for trainning data in /Users/myname/Desktop/my_project/working_folder/train/*.jpg
found 0 data
looking for trainning data in /Users/myname/Desktop/my_project/working_folder/train/*.jpg
found 0 data
cleaning logs
backup model 1
cp: /Users/myname/Desktop/my_project/working_folder/checkpoint: No such file or directory
cp: /Users/myname/Desktop/my_project/working_folder/pix2pix.model*: No such file or directory
generate video test 1
2018-12-05 22:26:35.466466: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
WARNING:tensorflow:From /Users/myname/anaconda2/lib/python2.7/site-packages/tensorflow/python/util/tf_should_use.py:118: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use `tf.global_variables_initializer` instead.
 [*] Reading checkpoint...
 [!] Load failed...
('sampling image for recursion', 1, '/Users/myname/Desktop/my_project/working_folder/img/first.jpg')
Loading one image ...
Traceback (most recent call last):
  File "./external/pix2pix_tensorflow/main.py", line 75, in <module>
    tf.app.run()
  File "/Users/myname/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
    _sys.exit(main(argv))
  File "./external/pix2pix_tensorflow/main.py", line 67, in main
    model.recursion(args)
  File "/private/var/tmp/_bazel_myname/45335007f54935be7f3218e2298a1b20/external/pix2pix_tensorflow/model.py", line 489, in recursion
    sample = [load_data(sample_file, is_test=True, is_one=True) for sample_file in sample_files]
  File "/private/var/tmp/_bazel_myname/45335007f54935be7f3218e2298a1b20/external/pix2pix_tensorflow/utils.py", line 21, in load_data
    img_A, img_B = load_image(image_path, is_one)
  File "/private/var/tmp/_bazel_myname/45335007f54935be7f3218e2298a1b20/external/pix2pix_tensorflow/utils.py", line 32, in load_image
    input_img = imread(image_path)
  File "/private/var/tmp/_bazel_myname/45335007f54935be7f3218e2298a1b20/external/pix2pix_tensorflow/utils.py", line 73, in imread
    return scipy.misc.imread(path).astype(np.float)
  File "/Users/myname/anaconda2/lib/python2.7/site-packages/numpy/lib/utils.py", line 101, in newfunc
    return func(*args, **kwds)
  File "/Users/myname/anaconda2/lib/python2.7/site-packages/scipy/misc/pilutil.py", line 164, in imread
    im = Image.open(name)
  File "/Users/myname/anaconda2/lib/python2.7/site-packages/PIL/Image.py", line 2580, in open
    fp = builtins.open(filename, "rb")
IOError: [Errno 2] No such file or directory: '/Users/myname/Desktop/my_project/working_folder/img/first.jpg'
looking for all files in /Users/myname/Desktop/my_project/backup_folder/model_001/*
found  0 files
dyld: Library not loaded: @rpath/libiconv.2.dylib
  Referenced from: /Users/myname/anaconda3/bin/ffmpeg
  Reason: Incompatible library version: ffmpeg requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
./magenta/video/next_frame_prediction_pix2pix/recursion_640.sh: line 22:  1303 Abort trap: 6           ffmpeg -i $4/%04d.jpg -vcodec libx264 $4.mp4
select some pairs for recursion
looking for all files in /Users/myname/Desktop/my_project/working_folder/good/*
found  100 files
will use limit of 100 files
1 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/46.jpg to /Users/myname/Desktop/my_project/working_folder/recur/46.jpg
2 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/28.jpg to /Users/myname/Desktop/my_project/working_folder/recur/28.jpg
3 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/26.jpg to /Users/myname/Desktop/my_project/working_folder/recur/26.jpg
4 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/72.jpg to /Users/myname/Desktop/my_project/working_folder/recur/72.jpg
5 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/100.jpg to /Users/myname/Desktop/my_project/working_folder/recur/100.jpg
6 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/65.jpg to /Users/myname/Desktop/my_project/working_folder/recur/65.jpg
7 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/67.jpg to /Users/myname/Desktop/my_project/working_folder/recur/67.jpg
8 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/71.jpg to /Users/myname/Desktop/my_project/working_folder/recur/71.jpg
9 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/10.jpg to /Users/myname/Desktop/my_project/working_folder/recur/10.jpg
10 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/4.jpg to /Users/myname/Desktop/my_project/working_folder/recur/4.jpg
11 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/18.jpg to /Users/myname/Desktop/my_project/working_folder/recur/18.jpg
12 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/90.jpg to /Users/myname/Desktop/my_project/working_folder/recur/90.jpg
13 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/82.jpg to /Users/myname/Desktop/my_project/working_folder/recur/82.jpg
14 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/32.jpg to /Users/myname/Desktop/my_project/working_folder/recur/32.jpg
15 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/74.jpg to /Users/myname/Desktop/my_project/working_folder/recur/74.jpg
16 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/48.jpg to /Users/myname/Desktop/my_project/working_folder/recur/48.jpg
17 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/45.jpg to /Users/myname/Desktop/my_project/working_folder/recur/45.jpg
18 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/60.jpg to /Users/myname/Desktop/my_project/working_folder/recur/60.jpg
19 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/58.jpg to /Users/myname/Desktop/my_project/working_folder/recur/58.jpg
20 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/15.jpg to /Users/myname/Desktop/my_project/working_folder/recur/15.jpg
21 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/55.jpg to /Users/myname/Desktop/my_project/working_folder/recur/55.jpg
22 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/87.jpg to /Users/myname/Desktop/my_project/working_folder/recur/87.jpg
23 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/13.jpg to /Users/myname/Desktop/my_project/working_folder/recur/13.jpg
24 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/61.jpg to /Users/myname/Desktop/my_project/working_folder/recur/61.jpg
25 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/47.jpg to /Users/myname/Desktop/my_project/working_folder/recur/47.jpg
26 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/98.jpg to /Users/myname/Desktop/my_project/working_folder/recur/98.jpg
27 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/54.jpg to /Users/myname/Desktop/my_project/working_folder/recur/54.jpg
28 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/16.jpg to /Users/myname/Desktop/my_project/working_folder/recur/16.jpg
29 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/51.jpg to /Users/myname/Desktop/my_project/working_folder/recur/51.jpg
30 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/49.jpg to /Users/myname/Desktop/my_project/working_folder/recur/49.jpg
31 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/19.jpg to /Users/myname/Desktop/my_project/working_folder/recur/19.jpg
32 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/40.jpg to /Users/myname/Desktop/my_project/working_folder/recur/40.jpg
33 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/42.jpg to /Users/myname/Desktop/my_project/working_folder/recur/42.jpg
34 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/70.jpg to /Users/myname/Desktop/my_project/working_folder/recur/70.jpg
35 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/44.jpg to /Users/myname/Desktop/my_project/working_folder/recur/44.jpg
36 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/31.jpg to /Users/myname/Desktop/my_project/working_folder/recur/31.jpg
37 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/68.jpg to /Users/myname/Desktop/my_project/working_folder/recur/68.jpg
38 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/59.jpg to /Users/myname/Desktop/my_project/working_folder/recur/59.jpg
39 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/64.jpg to /Users/myname/Desktop/my_project/working_folder/recur/64.jpg
40 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/95.jpg to /Users/myname/Desktop/my_project/working_folder/recur/95.jpg
41 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/23.jpg to /Users/myname/Desktop/my_project/working_folder/recur/23.jpg
42 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/50.jpg to /Users/myname/Desktop/my_project/working_folder/recur/50.jpg
43 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/41.jpg to /Users/myname/Desktop/my_project/working_folder/recur/41.jpg
44 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/89.jpg to /Users/myname/Desktop/my_project/working_folder/recur/89.jpg
45 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/21.jpg to /Users/myname/Desktop/my_project/working_folder/recur/21.jpg
46 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/11.jpg to /Users/myname/Desktop/my_project/working_folder/recur/11.jpg
47 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/69.jpg to /Users/myname/Desktop/my_project/working_folder/recur/69.jpg
48 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/38.jpg to /Users/myname/Desktop/my_project/working_folder/recur/38.jpg
49 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/5.jpg to /Users/myname/Desktop/my_project/working_folder/recur/5.jpg
50 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/6.jpg to /Users/myname/Desktop/my_project/working_folder/recur/6.jpg
51 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/62.jpg to /Users/myname/Desktop/my_project/working_folder/recur/62.jpg
52 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/2.jpg to /Users/myname/Desktop/my_project/working_folder/recur/2.jpg
53 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/99.jpg to /Users/myname/Desktop/my_project/working_folder/recur/99.jpg
54 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/12.jpg to /Users/myname/Desktop/my_project/working_folder/recur/12.jpg
55 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/92.jpg to /Users/myname/Desktop/my_project/working_folder/recur/92.jpg
56 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/24.jpg to /Users/myname/Desktop/my_project/working_folder/recur/24.jpg
57 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/25.jpg to /Users/myname/Desktop/my_project/working_folder/recur/25.jpg
58 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/96.jpg to /Users/myname/Desktop/my_project/working_folder/recur/96.jpg
59 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/94.jpg to /Users/myname/Desktop/my_project/working_folder/recur/94.jpg
60 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/30.jpg to /Users/myname/Desktop/my_project/working_folder/recur/30.jpg
61 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/83.jpg to /Users/myname/Desktop/my_project/working_folder/recur/83.jpg
62 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/20.jpg to /Users/myname/Desktop/my_project/working_folder/recur/20.jpg
63 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/34.jpg to /Users/myname/Desktop/my_project/working_folder/recur/34.jpg
64 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/81.jpg to /Users/myname/Desktop/my_project/working_folder/recur/81.jpg
65 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/35.jpg to /Users/myname/Desktop/my_project/working_folder/recur/35.jpg
66 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/86.jpg to /Users/myname/Desktop/my_project/working_folder/recur/86.jpg
67 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/91.jpg to /Users/myname/Desktop/my_project/working_folder/recur/91.jpg
68 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/93.jpg to /Users/myname/Desktop/my_project/working_folder/recur/93.jpg
69 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/52.jpg to /Users/myname/Desktop/my_project/working_folder/recur/52.jpg
70 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/56.jpg to /Users/myname/Desktop/my_project/working_folder/recur/56.jpg
71 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/66.jpg to /Users/myname/Desktop/my_project/working_folder/recur/66.jpg
72 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/43.jpg to /Users/myname/Desktop/my_project/working_folder/recur/43.jpg
73 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/1.jpg to /Users/myname/Desktop/my_project/working_folder/recur/1.jpg
74 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/27.jpg to /Users/myname/Desktop/my_project/working_folder/recur/27.jpg
75 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/29.jpg to /Users/myname/Desktop/my_project/working_folder/recur/29.jpg
76 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/85.jpg to /Users/myname/Desktop/my_project/working_folder/recur/85.jpg
77 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/63.jpg to /Users/myname/Desktop/my_project/working_folder/recur/63.jpg
78 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/7.jpg to /Users/myname/Desktop/my_project/working_folder/recur/7.jpg
79 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/9.jpg to /Users/myname/Desktop/my_project/working_folder/recur/9.jpg
80 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/76.jpg to /Users/myname/Desktop/my_project/working_folder/recur/76.jpg
81 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/73.jpg to /Users/myname/Desktop/my_project/working_folder/recur/73.jpg
82 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/37.jpg to /Users/myname/Desktop/my_project/working_folder/recur/37.jpg
83 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/97.jpg to /Users/myname/Desktop/my_project/working_folder/recur/97.jpg
84 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/75.jpg to /Users/myname/Desktop/my_project/working_folder/recur/75.jpg
85 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/3.jpg to /Users/myname/Desktop/my_project/working_folder/recur/3.jpg
86 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/17.jpg to /Users/myname/Desktop/my_project/working_folder/recur/17.jpg
87 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/88.jpg to /Users/myname/Desktop/my_project/working_folder/recur/88.jpg
88 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/57.jpg to /Users/myname/Desktop/my_project/working_folder/recur/57.jpg
89 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/79.jpg to /Users/myname/Desktop/my_project/working_folder/recur/79.jpg
90 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/77.jpg to /Users/myname/Desktop/my_project/working_folder/recur/77.jpg
91 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/8.jpg to /Users/myname/Desktop/my_project/working_folder/recur/8.jpg
92 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/78.jpg to /Users/myname/Desktop/my_project/working_folder/recur/78.jpg
93 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/53.jpg to /Users/myname/Desktop/my_project/working_folder/recur/53.jpg
94 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/33.jpg to /Users/myname/Desktop/my_project/working_folder/recur/33.jpg
95 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/36.jpg to /Users/myname/Desktop/my_project/working_folder/recur/36.jpg
96 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/39.jpg to /Users/myname/Desktop/my_project/working_folder/recur/39.jpg
97 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/84.jpg to /Users/myname/Desktop/my_project/working_folder/recur/84.jpg
98 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/22.jpg to /Users/myname/Desktop/my_project/working_folder/recur/22.jpg
99 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/80.jpg to /Users/myname/Desktop/my_project/working_folder/recur/80.jpg
100 / 100   copying /Users/myname/Desktop/my_project/working_folder/good/14.jpg to /Users/myname/Desktop/my_project/working_folder/recur/14.jpg
use pre-recursion
2018-12-05 22:26:38.979707: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
pre recursion
WARNING:tensorflow:From /Users/myname/anaconda2/lib/python2.7/site-packages/tensorflow/python/util/tf_should_use.py:118: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use `tf.global_variables_initializer` instead.
 [*] Reading checkpoint...
 [!] Load failed...
look for files in /Users/myname/Desktop/my_project/working_folder/recur/*.jpg
look for files in /Users/myname/Desktop/my_project/working_folder/frames/*.jpg
Traceback (most recent call last):
  File "./external/pix2pix_tensorflow/main.py", line 75, in <module>
    tf.app.run()
  File "/Users/myname/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
    _sys.exit(main(argv))
  File "./external/pix2pix_tensorflow/main.py", line 70, in main
    model.pre_recursion(args)
  File "/private/var/tmp/_bazel_myname/45335007f54935be7f3218e2298a1b20/external/pix2pix_tensorflow/model.py", line 544, in pre_recursion
    match, frame_number = self.find_frame(filename, args.recursion, frames_files)
  File "/private/var/tmp/_bazel_myname/45335007f54935be7f3218e2298a1b20/external/pix2pix_tensorflow/model.py", line 517, in find_frame
    frame_number = int(basename.split('.')[0][1:])
ValueError: invalid literal for int() with base 10: ''
generate pairs from recursion
looking for recursive img in /Users/myname/Desktop/my_project/working_folder/recur/*.jpg
found  100 for left list
looking for frames img in /Users/myname/Desktop/my_project/working_folder/good/*.jpg
found  100 for right list
Traceback (most recent call last):
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 123, in <module>
    main(0)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 99, in main
    match, i = is_match(left, r_list)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 71, in is_match
    frame_number = int(basename.split('.')[0][1:])
ValueError: invalid literal for int() with base 10: ''
select some pairs for recursion (long)
looking for all files in /Users/myname/Desktop/my_project/working_folder/good/*
found  100 files
will use limit of 2 files
1 / 2   copying /Users/myname/Desktop/my_project/working_folder/good/65.jpg to /Users/myname/Desktop/my_project/working_folder/recur/65.jpg
2 / 2   copying /Users/myname/Desktop/my_project/working_folder/good/19.jpg to /Users/myname/Desktop/my_project/working_folder/recur/19.jpg
use pre-recursion (long)
2018-12-05 22:26:42.492129: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
pre recursion
WARNING:tensorflow:From /Users/myname/anaconda2/lib/python2.7/site-packages/tensorflow/python/util/tf_should_use.py:118: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use `tf.global_variables_initializer` instead.
 [*] Reading checkpoint...
 [!] Load failed...
look for files in /Users/myname/Desktop/my_project/working_folder/recur/*.jpg
look for files in /Users/myname/Desktop/my_project/working_folder/frames/*.jpg
generate pairs from recursion (long)
looking for recursive img in /Users/myname/Desktop/my_project/working_folder/recur/*.jpg
found  2 for left list
looking for frames img in /Users/myname/Desktop/my_project/working_folder/good/*.jpg
found  100 for right list
making pairs 2/20
looking for recursive img in /Users/myname/Desktop/my_project/working_folder/frames/*.jpg
found  100 for left list
looking for frames img in /Users/myname/Desktop/my_project/working_folder/good/*.jpg
found  100 for right list
Traceback (most recent call last):
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 123, in <module>
    main(0)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 99, in main
    match, i = is_match(left, r_list)
  File "./magenta/video/next_frame_prediction_pix2pix/join_pairs.py", line 71, in is_match
    frame_number = int(basename.split('.')[0][1:])
ValueError: invalid literal for int() with base 10: ''
trainning 2/20


make script in readme file more readable

I noticed that there are two scipts in readme looks like this:

maybe it will looks better in this way...
<script type="text/markscript">
// The duplication here is required because Markscript only executes top-level code blocks.
// TODO: Consider fixing this in Markscript.
var ohm = require('ohm-js');
var myGrammar = ohm.grammar('MyGrammar { greeting = "Hello" | "Hola" }');
</script>

You're proposing that we just remove the leading indentation, is that correct? Thanks for the suggestion, but I think I'm happy with the way it is currently.


fix: fix Dockerfile and update kubectl version

Signed-off-by: Nikolaos Moraitis<EMAIL_ADDRESS>

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: droslean
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Fix test projects that are still failing when running tests in VS

Same solution as for the other cases of this--app.config with binding redirect.

:shipit:


futures::future::Executor is not practically useful

Considering following case:
fn handle_task_async<TypeOfF, E: Executor<TypeOfF>>(e: &E) {
    let f = gen_f();
    e.execute(f)
}

To make above example work, I have to type the exact type of f in function handle_task_async's signature. However, the type of f can be too complicated to be figured out. So a box is necessary.
It would be better if the signature of execute becomes fn execute<F: Future>(f: F). That way the compiler can handling the types by itself.

Thanks for the report! One of the primary motivations, though, for having the type parameter on the trait was to allow implementations to place restrictions on what kind of futures they can execute. For example some are sendable, some are non-sendable, etc. If the type parameter is on the method then that isn't possible.
That being said the Executor trait as-is also isn't necessarily intended to be super widely used. It's mostly meant for some low-level abstractions, if necessary, but otherwise isn't intended to be super broadly used.


Stopping an instance does not return the services and periodic runs

 curl -v -H 'Content-Type: application/json' \
  -X POST -d '{ "status": "running" }' \
  'http://localhost:9000/api/v1/instances/2'
* Hostname was NOT found in DNS cache
*   Trying <IP_ADDRESS>...
* Connected to localhost (<IP_ADDRESS>) port 9000 (#0)
> POST /api/v1/instances/2 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:9000
> Accept: */*
> Content-Type: application/json
> Content-Length: 23
>
* upload completely sent off: 23 out of 23 bytes
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< Access-Control-Allow-Credentials: true
< Date: Thu, 01 Dec 2016 12:34:53 GMT
< Content-Length: 3638
<
{"id":"2","template":{"id":"curl","description":"A periodic job that sends an HTTP GET request to a specified address every minute.","parameters":["id","URL","enabled"],"parameterInfos":{"URL":{"name":"URL","default":"localhost:8000"},"enabled":{"name":"enabled","default":"true"}},"version":"54267e7e3c971d4d1e9638e5764ef414"},"parameterValues":{"id":"2","URL":"10"},"status":"stopped","services":{},"periodicRuns":[{"createdBy":"2","status":"dead","utcSeconds":1480518240,"jobName":"2/periodic-1480518240"},{"createdBy":"2","status":"dead","utcSeconds":1480588620,"jobName":"2/periodic-1480588620"},{"createdBy":"2","status":"dead","utcSeconds":1480595520,"jobName":"2/periodic-1480595520"},{"createdBy":"2","status":"dead","utcSeconds":1480588440,"jobName":"2/periodic-1480588440"},{"createdBy":"2","status":"dead","utcSeconds":1480518720,"jobName":"2/periodic-1480518720"},{"createdBy":"2","status":"dead","utcSeconds":1480588740,"jobName":"2/periodic-1480588740"},{"createdBy":"2","status":"dead","utcSeconds":1480589400,"jobName":"2/periodic-1480589400"},{"createdBy":"2","status":"dead","utcSeconds":1480593660,"jobName":"2/periodic-1480593660"},{"createdBy":"2","status":"dead","utcSeconds":1480518660,"jobName":"2/periodic-1480518660"},{"createdBy":"2","status":"dead","utcSeconds":1480518780,"jobName":"2/periodic-1480518780"},{"createdBy":"2","status":"dead","utcSeconds":1480518300,"jobName":"2/periodic-1480518300"},{"createdBy":"2","status":"dead","utcSeconds":1480518600,"jobName":"2/periodic-1480518600"},{"createdBy":"2","status":"dead","utcSeconds":1480589280,"jobName":"2/periodic-1480589280"},{"createdBy":"2","status":"dead","utcSeconds":1480592640,"jobName":"2/periodic-1480592640"},{"createdBy":"2","status":"dead","utcSeconds":1480589220,"jobName":"2/periodic-1480589220"},{"createdBy":"2","status":"dead","utcSeconds":1480588800,"jobName":"2/periodic-1480588800"},{"createdBy":"2","status":"dead","utcSeconds":1480595100,"jobName":"2/periodic-1480595100"},{"createdBy":"2","status":"dead","utcSeconds":1480587300,"jobName":"2/periodic-1480587300"},{"createdBy":"2","status":"dead","utcSeconds":1480518540,"jobName":"2/periodic-1480518540"},{"createdBy":"2","status":"dead","utcSeconds":1480595220,"jobName":"2/periodic-1480595220"},{"createdBy":"2","status":"dead","utcSeconds":1480518480,"jobName":"2/periodic-1480518480"},{"createdBy":"2","status":"dead","utcSeconds":1480589340,"jobName":"2/periodic-1480589340"},{"createdBy":"2","status":"dead","utcSeconds":1480595460,"jobName":"2/periodic-1480595460"},{"createdBy":"2","status":"dead","utcSeconds":1480518360,"jobName":"2/periodic-1480518360"},{"createdBy":"2","status":"dead","utcSeconds":1480518180,"jobName":"2/periodic-1480518180"},{"createdBy":"2","status":"dead","utcSeconds":1480588680,"jobName":"2/periodic-1480588680"},{"createdBy":"2","status":"dead","utcSeconds":1480595580,"jobName":"2/periodic-1480595580"},{"createdBy":"2","status":"dead","utcSeconds":1480587840,"jobName":"2/periodic-1480587840"},{"createdBy":"2","status":"dead","utcSeconds":1480588500,"jobName":"2/periodic-* Connection #0 to host localhost left intact
1480588500"},{"createdBy":"2","status":"dead","utcSeconds":1480588380,"jobName":"2/periodic-1480588380"},{"createdBy":"2","status":"dead","utcSeconds":1480587480,"jobName":"2/periodic-1480587480"},{"createdBy":"2","status":"dead","utcSeconds":1480587660,"jobName":"2/periodic-1480587660"},{"createdBy":"2","status":"dead","utcSeconds":1480587540,"jobName":"2/periodic-1480587540"},{"createdBy":"2","status":"dead","utcSeconds":1480518420,"jobName":"2/periodic-1480518420"},{"createdBy":"2","status":"dead","utcSeconds":1480588560,"jobName":"2/periodic-1480588560"}]}%

 curl -v -H 'Content-Type: application/json' \
  -X POST -d '{ "status": "stopped" }' \
  'http://localhost:9000/api/v1/instances/2'
* Hostname was NOT found in DNS cache
*   Trying <IP_ADDRESS>...
* Connected to localhost (<IP_ADDRESS>) port 9000 (#0)
> POST /api/v1/instances/2 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:9000
> Accept: */*
> Content-Type: application/json
> Content-Length: 23
>
* upload completely sent off: 23 out of 23 bytes
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< Access-Control-Allow-Credentials: true
< Date: Thu, 01 Dec 2016 12:34:58 GMT
< Content-Length: 419
<
* Connection #0 to host localhost left intact
{"id":"2","template":{"id":"curl","description":"A periodic job that sends an HTTP GET request to a specified address every minute.","parameters":["id","URL","enabled"],"parameterInfos":{"URL":{"name":"URL","default":"localhost:8000"},"enabled":{"name":"enabled","default":"true"}},"version":"54267e7e3c971d4d1e9638e5764ef414"},"parameterValues":{"id":"2","URL":"10"},"status":"stopped","services":{},"periodicRuns":[]}%

The problem is that in InstanceService we delete the job and then cleanup service and job statuses:
val deletedJob = nomadService.deleteJob(instance.id)
deletedJob
  .map { job =>
    serviceStatuses -= job
    jobStatuses -= job
  }

I did this because instead of caching the service statuses we are maintaining a map and there is a risk that it overflows.


Add button to toggle whether passwords are visible

Pull Request Description

Closes https://github.com/enso-org/cloud-v2/issues/785

Important Notes

Added to (and hence should be tested on):

Login screen
Registration screen
"Change password" modal
Reset password screen

Screenshots

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[x] The documentation has been updated, if necessary.
[x] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[x] All code follows the
Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
All code has been tested:

[x] Unit tests have been written where possible.
[x] If GUI codebase was changed, the GUI was tested when built using ./run ide build.

@somebody1234 please fix conflicts and we are 🟢 to merge


[Bug]: Deprecation warnings galore upon opening Module Management

Expected Behavior
I'd really like to not spam my console every time I open MM
Current Behavior
Error: You are accessing BasePackage#data which is now deprecated in favor of referencing schema fields directly on the BasePackage instance.
Deprecated since Version 10
Backwards-compatible support will be removed in Version 12
    at logCompatibilityWarning (commons.js:1692:19)
    at get data [as data] (commons.js:11759:7)
    at SpreadsheetController.lookupCompatibility (SpreadsheetController.js:87:14)
    at index.js:51:44
    at NodeList.forEach (<anonymous>)
    at applyModuleManagementColors (index.js:49:82)

slightly more than one of these per module, seems like (in my world, 284 warnings for 281 installed modules)
Steps to Reproduce

enable MCC
open module management
observe console

Context
No response
Version
1.4.1
Foundry VTT Version
10.281
Operating System
Windows 10
Browser / App
Chrome
Game System
pf2e 4.7.4
Modules Disabled

[X] I can confirm that disabling all of my other modules doesn't fix this issue.

You can disable compatibility warnings.
I don't plan on doing this anytime soon, but I'm open to PRs after v11 is stable.


Nunaweb not accepting .zip uploads

After selecting a .zip file (e.g my_project.zip)  for upload and clicking the "Submit" button on the nunaweb page, there is no response from the web application. There is no error in the logs or any files in the "nunaserver/upload" directory.
In contrast, submitting a github repository produces a .zip file for downloading.

I've figured out why this happens. The test zip you linked is a single namespace (i.e. there's no sub-namespaces); the backend is currently expects each repository/zip to contain one or more sub-namespaces. I will update the backend to support single-namespace uploads as well.

Fixed by #3 .