Flutter create . doesn't add PodFile to macos directory (for desktop mac build)

Steps to Reproduce

Run flutter create . on an existing application to add support for macOS
the direcotry macos is created but it is missing a PodFile that is necessary for the build
I tried to run the app flutter run with only my mac connected and I get the error: Exception: Podfile missing

Expected results:
Building the app
Actual results:
Error related to missing podFile that is supposed to be created automatically

Logs
[ +128 ms] executing: [/Users/userone/Downloads/flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%H
[  +45 ms] Exit code 0 from: git -c log.showSignature=false log -n 1
--pretty=format:%H
[   +1 ms] bcac9d4ff4cc020d7557dea55383dbb6622ae8dd
[        ] executing: [/Users/userone/Downloads/flutter/] git tag --points-at
HEAD
[ +163 ms] Exit code 0 from: git tag --points-at HEAD
[   +1 ms] executing: [/Users/userone/Downloads/flutter/] git describe --match
*.*.* --first-parent --long --tags
[  +73 ms] Exit code 0 from: git describe --match *.*.* --first-parent --long
--tags
[        ] 1.24.0-1.0.pre-95-gbcac9d4ff4
[  +10 ms] executing: [/Users/userone/Downloads/flutter/] git rev-parse
--abbrev-ref --symbolic @{u}
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/Users/userone/Downloads/flutter/] git ls-remote --get-url
origin
[   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +44 ms] executing: [/Users/userone/Downloads/flutter/] git rev-parse
--abbrev-ref HEAD
[   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[   +5 ms] executing: sw_vers -productName
[  +13 ms] Exit code 0 from: sw_vers -productName
[        ] Mac OS X
[        ] executing: sw_vers -productVersion
[  +16 ms] Exit code 0 from: sw_vers -productVersion
[        ] 10.15.5
[        ] executing: sw_vers -buildVersion
[  +15 ms] Exit code 0 from: sw_vers -buildVersion
[        ] 19F96
[        ] executing: sysctl hw.optional.arm64
[   +4 ms] Exit code 1 from: sysctl hw.optional.arm64
[        ] sysctl: unknown oid 'hw.optional.arm64'
[  +43 ms] Artifact Instance of 'AndroidMavenArtifacts' 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.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' 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.
[  +53 ms] executing: /Users/userone/Library/Android/sdk/platform-tools/adb
devices -l
[   +7 ms] executing: /usr/bin/xcode-select --print-path
[   +5 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[        ] /Library/Developer/CommandLineTools
[   +1 ms] executing: /usr/bin/xcodebuild -version
[   +3 ms] Exit code 1 from: /usr/bin/xcodebuild -version
[        ] xcode-select: error: tool 'xcodebuild' requires Xcode, but active
developer directory '/Library/Developer/CommandLineTools' is a command line
tools instance
[        ] Xcode not found. Run 'flutter doctor' for more information.
[   +1 ms] executing: /usr/bin/xcodebuild -version
[   +3 ms] Exit code 1 from: /usr/bin/xcodebuild -version
[        ] xcode-select: error: tool 'xcodebuild' requires Xcode, but active
developer directory '/Library/Developer/CommandLineTools' is a command line
tools instance
[  +31 ms] List of devices attached
[   +4 ms] Artifact Instance of 'AndroidMavenArtifacts' 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.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required,
skipping update.
[   +2 ms] 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.
[  +17 ms] executing: /usr/bin/xcodebuild -version
[   +3 ms] Exit code 1 from: /usr/bin/xcodebuild -version
[        ] xcode-select: error: tool 'xcodebuild' requires Xcode, but active
developer directory '/Library/Developer/CommandLineTools' is a command line
tools instance
[ +109 ms] Found plugin path_provider at
/Users/userone/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.1/
[ +117 ms] Found plugin path_provider at
/Users/userone/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.1/
[  +31 ms] Generating
/Users/userone/Documents/flutter_ecommerce_app/android/app/src/main/java/io/flutt
er/plugins/GeneratedPluginRegistrant.java
[  +27 ms] executing: /usr/bin/xcodebuild -version
[  +25 ms] Exit code 1 from: /usr/bin/xcodebuild -version
[        ] xcode-select: error: tool 'xcodebuild' requires Xcode, but active
developer directory '/Library/Developer/CommandLineTools' is a command line
tools instance
[        ] executing: /usr/bin/xcodebuild -version
[  +12 ms] Exit code 1 from: /usr/bin/xcodebuild -version
[        ] xcode-select: error: tool 'xcodebuild' requires Xcode, but active
developer directory '/Library/Developer/CommandLineTools' is a command line
tools instance
[  +61 ms] Initializing file store
[  +11 ms] Skipping target: gen_localizations
[   +4 ms] complete
[   +4 ms] Launching lib/main.dart on macOS in debug mode...
[   +5 ms] /Users/userone/Downloads/flutter/bin/cache/dart-sdk/bin/dart
--disable-dart-dev
/Users/userone/Downloads/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_s
erver.dart.snapshot --sdk-root
/Users/userone/Downloads/flutter/bin/cache/artifacts/engine/common/flutter_patche
d_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -Ddart.developer.causal_async_stacks=true
--output-dill
/var/folders/kd/tv339_k92zqdh35j94z8d9vh0000gn/T/flutter_tools.OCUm9f/flutter_to
ol.uN1M3S/app.dill --packages .packages -Ddart.vm.profile=false
-Ddart.vm.product=false --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill
build/01094840f26094a3fe371d8be6b9cb48.cache.dill.track.dill
--flutter-widget-cache
[  +44 ms] Found plugin path_provider at
/Users/userone/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.1/
[  +39 ms] <- compile package:flutter_ecommerce_app/main.dart
[+8681 ms] Exception: Podfile missing
[  +11 ms] "flutter run" took 9,350ms.
[   +6 ms]
           #0      throwToolExit
(package:flutter_tools/src/base/common.dart:14:3)
           #1      RunCommand.runCommand
           (package:flutter_tools/src/commands/run.dart:622:7)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand
           (package:flutter_tools/src/runner/flutter_command.dart:1033:18)
           #3      _rootRunUnary (dart:async/zone.dart:1198:47)
           #4      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #5      _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
           #6      Future._propagateToListeners.handleValueCallback
           (dart:async/future_impl.dart:696:45)
           #7      Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
           #8      Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #9      _AsyncAwaitCompleter.complete
(dart:async-patch/async_patch.dart:40:15)
           #10     _completeOnAsyncReturn
(dart:async-patch/async_patch.dart:311:13)
           #11     RunCommand.usageValues
(package:flutter_tools/src/commands/run.dart)
           #12     _rootRunUnary (dart:async/zone.dart:1198:47)
           #13     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #14     _FutureListener.handleValue
(dart:async/future_impl.dart:143:18)
           #15     Future._propagateToListeners.handleValueCallback
           (dart:async/future_impl.dart:696:45)
           #16     Future._propagateToListeners
(dart:async/future_impl.dart:725:32)
           #17     Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #18     Future._asyncCompleteWithValue.<anonymous closure>
           (dart:async/future_impl.dart:567:7)
           #19     _rootRun (dart:async/zone.dart:1190:13)
           #20     _CustomZone.run (dart:async/zone.dart:1093:19)
           #21     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #22     _CustomZone.bindCallbackGuarded.<anonymous closure>
           (dart:async/zone.dart:1037:23)
           #23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
           #24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
           #25     _runPendingImmediateCallback
           (dart:isolate-patch/isolate_patch.dart:118:13)
           #26     _RawReceivePortImpl._handleMessage
           (dart:isolate-patch/isolate_patch.dart:169:5)

[ +257 ms] ensureAnalyticsSent: 254ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hook priority 4
[   +3 ms] Shutdown hooks complete
[        ] exiting with code 1

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.24.0-2.0.pre.95, on Mac OS X 10.15.5 19F96
    darwin-x64, locale en)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[!] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS
      development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
[✓] Android Studio (version 4.0)
[✓] Connected device (1 available)

@moda20
Do you have plugins in your existing project ?  The podfile is generated only if you have plugins in your project. If there are no plugins, the podfile won't generate. So the issue seem not to be related with podfile.
Can you try flutter clean and then run flutter run -d macos ? Also check this document on adding macOS support on existing project.

@darshankawar
i don't think i have any plugins, although the logs show that it tries and finds path_provider plugin.
here is my pubspec.yaml.
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  google_fonts: ^0.3.9

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
   - assets/
  #  - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

are the icons counted as plugins in this sense ?

@moda20
Can you try flutter pub cache repair ?
If problem persists, please provide a minimal code sample that we can try to replicate.

i tried creating a new app and i got the error saying : "xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance"
I switched to the xcode app for the CommandLineTools by running : sudo xcode-select -s /Applications/Xcode.app/Contents/Developer. doing this my "Missing PodFile" error on my main app disappeared.
Thanks.


Adding a check that ensures the app required for the database backend…

… is installed.
Although the proper setup is documented in the README, it is easy to miss and (a little) hassle to debug without knowledge of the django_tasks code itself.

An improper configuration would cause the following check error
$ pipenv run python manage.py check
SystemCheckError: System check identified some issues:

ERRORS:
?: DatabaseBackend configured as django_tasks backend, but database app not installed
	HINT: Insert 'django_tasks.backends.database' after 'django_tasks' in INSTALLED_APPS


QT wallet console command replies with "null"

Describe the issue
QT wallet replies null to addnode command in console.
Expected behaviour
Something informative
Actual behaviour
Much confuse.
Screenshots.

What version of Dogecoin Core are you using?
Any extra information that might be useful in the debugging process.
Filing for visibility.

The best solution:

Any instruction that involves RPC commands or debug console should specify what replies are expected.
Require that anyone who uses RPC commands or debug console to understand basics of how it works and what the commands do. Otherwise they may get tricked into executing scam commands.
Provide separate UI for functions that non-savvy users may need.

Agree. I think 1 and 2 are taken care of, with the only point that explaining a null pointer is not user friendly at all (and it's a bit of a design flaw, as a void method doesn't return a null pointer, it returns nothing.) I'm not going to advocate fixing the design flaw within Dogecoin, if this is important, this should happen upstream in bitcoin/bitcoin, so that the APIs remain the same.
As for point 3... we can launch a separate (cross-version) project here on github for improving user friendliness through adding UI functions. I think this would be useful. Open to thoughts on that approach.

@patricklodder Can you add steps to reproduce?

@patricklodder Seems fixed in #1788. Should it be closed?


Output as utilities

Hey @bradlc, I noticed something else.
Wouldn't it better to set the output of the plugin as utilities?
Now the output is set as component. But the plugin doesn't build components like a button or card.
What do you think?

 Not sure why I used addComponents initially.
addComponents has been replaced with addUtilities in 0.2.0. Thanks again.


Merge two models with multiple outputs

Hi!
I am trying to merge two models to train my deepnet. I'm using a function as the merge mode as defined in the API, but keras gave me the following error:
Exception: Output tensors to a Model must be Keras tensors. Found: Join.0
Here's the code i'm using:
def dotpMerge(inputs):
    plane_sweep_color = inputs[0]
    depth_probabilities = inputs[1]

    r_map = []
    g_map = []
    b_map = []
    for i in range(0, len(plane_sweep_color)):
        plane = plane_sweep_color[i]
        # Multiply R,G,B
        r_map.append(K.dot(plane[0], depth_probabilities[0]))
        g_map.append(K.dot(plane[1], depth_probabilities[1]))
        b_map.append(K.dot(plane[2], depth_probabilities[2]))

    final_r = r_map[0]
    final_g = g_map[0]
    final_b = b_map[0]
    for i in range(1, len(r_map)):
        final_r += r_map[i]
        final_g += g_map[i]
        final_b += g_map[i]

    return K.concatenate([final_r, final_g, final_b])

# Output dot product
color_model = Model(input=color_inputs, output=color_outputs)
select_model = Model(input=select_inputs, output=select_outputs)
output_towers_merge = merge([color_outputs, select_outputs], output_shape=(None, 8, 8, 3), mode=dotpMerge)

# Create the model
model = Model(color_inputs + select_inputs, output_towers_merge)
model.compile(optimizer='rmsprop',
              loss='categorical_crossentropy',
              metrics=['accuracy'])

Any ideas on what i'm doing wrong? is there any issue with keras related to this?
Thanks in advance.

Try to use Merge, not merge.

I've forgot to mention that color_model have multiple output, so in fact this is not a normal merge, because one of the models have N ouputs and the other one has 1 output. How to merge those is my question.

Your function does not output a Keras tensor, but rather a Theano tensor, which cannot be used to define a Model. To output a Keras tensor, wrap your function into a Lambda layer: http://keras.io/layers/core/#lambda

@fchollet It is not working. The same error "Found: Join.0" is given. How should i proceed on that?
Thanks!
output_towers_merge = merge([color_outputs, select_outputs], output_shape=(None, 8, 8, 3), mode=dotpMerge)
lam = Lambda(lambda x: x, output_shape=(8, 8, 3))
lam.build((8, 3, 3))
out = lam(output_towers_merge)

# Create the model
model = Model(input=color_inputs + select_inputs, output=out)

Lambda(dotpMerge, output_shape=...)

@fchollet Same thing Output tensors to a Model must be Keras tensors. Found: Join.0. Don't know where i'm wrong.
lam = Lambda(dotpMerge, output_shape=(8, 8, 3))
lam.build((8, 3, 3))
out = lam([color_outputs, select_outputs])

# Create the model
model = Model(input=color_inputs + select_inputs, output=out)

Please read the documentation.
On 2 July 2016 at 13:11, Marc Pomar Torres<EMAIL_ADDRESS>wrote:

@fchollet https://github.com/fchollet Same thing Output tensors to a
Model must be Keras tensors. Found: Join.0. Don't know where i'm wrong.
lam = Lambda(dotpMerge, output_shape=(8, 8, 3))
lam.build((8, 3, 3))
out = lam([color_outputs, select_outputs])
Create the model
model = Model(input=color_inputs + select_inputs, output=out)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fchollet/keras/issues/3130#issuecomment-230119836,
or mute the thread
https://github.com/notifications/unsubscribe/AArWb9GZx94tljzmVUiF9ATz_9qirN6mks5qRsYDgaJpZM4JDuXA
.

I got the same problem,
	x_u = Input(shape=(96,96,3)) 	f_u = shared_cnn(x_u) 	y_u = do_something(f_u) 	y_ut = Dense(output_dim=10)(y_u) 	model_pred = Model(x_u, y_ut)
and it told me that
Output tensors to a Model must be Keras tensors. Found: Tensor("add_711:0", shape=(?, 10), dtype=float32)

I have no idea on how to add _keras_history and _keras_shape to the output Tensor?

@Lieutenant-Tom Try with mymodel.layers[-1].output._keras_history='',mymodel.layers[-1].output._keras_shape=...

Doing that just like that @DawnMe  gives you
layer, node_index, tensor_index = x._keras_history
ValueError: not enough values to unpack (expected 3, got 0)


"getValue() method is redundant, use fromMetaWalEntry instead"

getValue() method is redundant, the same value can be obtained using the fromMetaWalEntry method.

@keith-turner helped me understand the test failures (or rather, why the current test is passing in the main branch when it probably shouldn't), and I opened up #4035 to help with that. Once that is merged, I'll help resolve the conflicts with this PR, so we can merge this in after that.

These changes look good, as-is, and can be merged now to drop storing the "filePath" in the Value and reading it from the column qualifier instead. However, there's some follow-on actions that you can add to this PR, or can create a separate PR for, at your discretion. Here's some things I saw while looking at this code, where there's room for improvement:

Pull in the mutation modification work into the LogEntry class. So, instead of calling code calling in to LogEntry to get the column qualifier, value, etc. to update a mutation, you just pass a mutation into the LogEntry class like: logEntry.addToMutation(mutation);, and the mutation updating is done internal to that method. That way, the column qualifier, value, etc. doesn't need to be used outside the class (except maybe for unit testing) and they can be made private, or even simplified or removed.
Get rid of switchFile method, since that's outdated, and simplify how VolumeUtil is using it
Rename "filePath", "filename", and "getFilePath()", etc. to something that reflects what is actually stored there. From what I can tell, what's stored there is a "-/host:port/UUID" (with "-/" ignored). So, maybe a better name is "logReference", since the host and UUID together could be called that. Or something like "serverAndUUID", but that's not really very friendly. If there's a better name, I'm open to that as well.
Make the validate method more rigorous and expect exactly 3 items ("-/host:port/UUID" -> {"-", "host:port", "UUID"}. Right now validates either 2 or 3... and it's not clear why. Probably so it could validate the old value, which did not contain the "-/" portion, as well as the column qualifier, which did. But it doesn't need to validate the 2-item version, since that shouldn't exist
Add upgrade code to drop the "-/" portion entirely, and further simplify all the code that tries to handle that, so it's only "host:port/UUID" instead in the column qualifier.

Some of these are certainly more complicated than others, and would require a separate PR. But some of these are small enough to include with this.

I removed the switchFile method and updated the switchVolumes method to directly create a new LogEntry instance with the switched file path. Now, the LogEntry class itself is responsible for creating instances based on the file path. Also, I added the functionality to add LogEntry information to a mutation by calling logEntry.addToMutation(mutation).


How can change NERDTreeHijackNetrw?

Before creating an issue, take some time ...: searched 2 days
if I use:
let g:NERDTreeHijackNetrw = 1
then open a directory using
:e path/to/folder/
will execute NERDTree in strange mode (secondary ... !?)
I like if will execute like:
:NERDTreeToggle path/to/folder/
can override previous autocmd to get this behaviour?
I need this autocmd to better integrate vim-startify plugin without change his code.
when I click on vim-startify link the plugin execute :e path/to/folder/ and I like change
this behaviour in :NERDTreeToggle path/to/folder/ and to do so I have to put in my .vimrc
an autocmd like the autocmd used by NERDTreeHijackNetrw but that not execute NERDTree in secondary mode.

I have success trying to write aucmd code.
Let me se if this can be write better if no answers come for tomorrow I close this question.
my code:
augroup NERDTreeStartify
  autocmd VimEnter * silent! autocmd! FileExplorer
  au BufEnter * call Stica(expand('<amatch>'))
  au VimEnter * if argc() == 1 && !exists('s:std_in') || v:this_session != '' | call Stica(expand('<amatch>')) | endif
augroup END
function! Stica(dir) abort
  if !isdirectory(a:dir)
    return
  endif
  execute 'NERDTreeToggle' a:dir | wincmd p | enew | wincmd p | execute 'cd '.a:dir
endfunction
let g:NERDTreeHijackNetrw = 0

Now inside Startify I can open folder using NERDTreeToggle and by command line too
I'm not a vim developer so forgive my smelly code :-)

I have using it and work


[feat] Customizable Fee Vault

Allow Succinct Gateway to be initialized with OR without a fee vault.
Ref

https://github.com/succinctlabs/succinctx/blob/b272dbbd19af831a313f78b61d6571b26230e048/contracts/src/SuccinctGateway.sol#L112

Please do review this humble PR :)


Vega Transaction component (links to block explorer)

In order to make the UX around being able to see and understand transactions made in the console, we need to have links for all transactions to the block explorer.

[ ] Links take you to the view of that transaction in the block explorer

Re-opening this ticket as discussed in the stand up.
Expecting the link to also be present in the accepted modal state which it currently is not.


Fix network error when open/close organization/individual projects and redirect to project page (#30387)

Fix https://github.com/go-gitea/gitea/issues/30901
Backport #30387

Why this PR didn't link to the issue? 🤔


Model is not visible

When I Open the viewer I can not see the Eye model. I can not even see the XY grid.
If a select one of the sub models f.eks. Eye then the selection box become visible but nothing else

If I switch to the clipping tab then the model is visible.

It works now. might have been a vscode version problem

I have the same problem since today (ubuntu 22.04).  No objects are visible, neither the original Eye or any own object.
VSCode 1.86.2

Do you see any errors in the output window of VS Code or of the Extension host?
And if you toggle on the developer mode (javascript console) any errors there?

No errors that I could spot, and the problem persisted over multiple reboots.
I also changed and checked the port, all seemed fine.
When I wanted to copy/paste the outputs today, the problem disappeared. All back to normal.

it seems that it works on and off, but I can't determine when. Currently it fails most of the time.
The js console indeed throws a lot of errors - see here:

Let's check a scenario that works:

use a terminal
activate your Python environment, e.g. conda activate myenv
change to folder where your Python files are
start VSCode with code .
open a Python file from the file explorer in VSCode

Is it working then?


Improve SwiftLint reliability

Sometimes the path is different, for ex:
https://github.com/wakatime/macos-wakatime/pull/31#issuecomment-1485764239

A related change just pushed 7127b2c817c812d4ec57b704160c6a4535c60567.


Buildbot display inadequate

By default, I open the console view of buildbot http://rostam.cct.lsu.edu/console and see an overview of the build status, unfortunately, what I do not see is the true state of the repository. The cdash dashboard http://cdash.cscs.ch/index.php?project=HPX&date=2016-12-14 shows me very clearly (and instantly) that nearly all tests are failing. To find this information in the buildbot display requires quite a lot of clicking (the waterfall view has the essentials, but it is so big you cannot see it without scrolling through all the results).
Since sunday/monday, nearly all tests are failing and the buildbot display shows 'warnings' as the status for most. If tests fail, then in my view buildbot should show red and display a state of fail.
I would like to see build/update status submitted to cdash as well as tests results because it presents the data in a much more easy to scan format.
I believe the buildbot console is contributing to a persistent 'bad perception' of the state of HPX. My reason being that when I see 'warnings' I am not very concerned and pay small attention to it (and allow myself to pull/merge into my local work), when I see fail, I am concerned and might spend time trying to fix or at least investigate the tests before merging master into my work.
Looking back through dashboard results, I have to go back to June before I can find a green status where all machines passed their tests. The current state of HPX is shocking, I believe buidbot is contributing to this problem by being
a) Not very good at displaying results
b) not accepting contributions from machines outside LSU, so when rostam/hermione has problems, the repo is effectively 'untested'
(A nice daily status ought to look something like https://open.cdash.org/index.php?project=VTK&date=2016-12-14 it is very clear when things go wrong)

@biddisco I couldn't agree more.
AFAIK, our buildbot setup already submits the results to some dashboard (http://cdash.cscs.ch/submit.php?project=HPX") . Not sure whether that works or not, I have never checked.

@hkaiser yes it does, (the correct link is in my previous comment). It is because I was looking at the CSCS dashboard and seeing all the test fails that I wanted to draw attention to the inadequacies of the buildbot display.

I'm going to go ahead and close this as we have a lot our testing now on cdash/pycicle.
However, I remember seeing a discussion about the colors used on buildbot. Would it be possible to change the colors to red on failed unit tests (compile and runtime)?


support DatabaseSequenceFilter

It would be nice to be able to use  DatabaseSequenceFilter in order to order the table actions automatically by FK refs to avoid constraint violations w/o having to order the tables manually in the datasets.
http://dbunit.sourceforge.net/faq.html#fkconstraintviolation
http://dbunit.sourceforge.net/apidocs/org/dbunit/dataset/FilteredDataSet.html

@slandelle Any thoughts or implementation hints on this?

@davidkarlsen Honestly, no idea. I'll be honest: I no longer use this project and really don't have time to do anything more than accepting contributions and dealing with releases.

@slandelle OK - nice to know - have you found better alternatives?

Several things:

I mostly develop in Scala now and don't have a use for Spring
I ended up realizing moking your real database with an in-memory one was a bad idea as you're not testing the real thing and would have to stick to features that are available in both, which is a real pity. I'd rather restore some database image and run this kind of tests in CI instead of embedded.

And one last thing: I really ended up hating dbunit:

weirdness, ex: schema inferred from first record of a given table, so if you have optional columns, you must have them all present in the first record, otherwise they're just silently ignored
files format

If I really was to conduct db tests this way, I'd rather use DbSetup instead.


OperationControlEvent enableQuery disables the query instead of enabling it.

From OperationControlEvent.java
public static OperationControlEvent enableQuery(String queryId) {
return new OperationControlEvent(Action.DISABLE_QUERY, queryId);
}
public static OperationControlEvent disableQuery(String queryId) {
    return new OperationControlEvent(Action.ENABLE_QUERY, queryId);
}

@aagupta1 would you mind I close the issue as it was resolved in #9?

Please go ahead and close.

Thanks!


use requestAnimationFrame in Swipe.js

React Motion takes care of requestAnimationFrame on their side. We need to do our part and make sure onSwipe gets called on an animation frame. More here: https://www.html5rocks.com/en/tutorials/speed/animations/

I tried accomplishing this with no luck. I think React might do something like this behind the scenes? I might be wrong. Please reopen if this looks like it can be done.


TypeError: can't pickle _thread.lock objects

HI
I' using Talos for hyper-parameter optimazation,
in the params for Talos ,  when it finishes the first param and going to the 2nd this error is showing :
TypeError: can't pickle _thread.lock objects
this is sample of model :
model.compile(optimizer=opti, loss=loss, metrics=metrics, loss_weights=loss_weights)
pth_r = '/Shared/talos/checkpoint_r_.hdf5'
pth_c = '/shared/talos/checkpoint_c_.hdf5'
pth_r2c = '/shared/talos/checkpoint_r2c.hdf5'

reduceLR = ReduceLROnPlateau(monitor='loss', factor=0.42, patience=9, verbose=1, mode='auto', cooldown=10)
chkpt_c = ModelCheckpoint(pth_c, monitor='val_out_bias_acc', mode='max', verbose=2, save_best_only=True, save_weights_only=True, period=1)
chkpt_r = ModelCheckpoint(pth_r, monitor='val_m_out_reg_mean_absolute_error', mode='min', verbose=2, save_best_only=True, save_weights_only=True, period=1)
chkpt_r2c = ModelCheckpoint(pth_r2c, monitor='val_out_reg2clf_acc', mode='max', verbose=2, save_best_only=True, save_weights_only=True, period=1)

out= model.fit( x= X_train, y=Y_train,
                epochs=175,
                batch_size=params['batch_size'],

                validation_data = [X_test, Y_test],

                callbacks = [chkpt_r, chkpt_c, chkpt_r2c, reduceLR] , class_weight =class_weight)

return out , model

Did you get a chance to look into this issue @sarmadm ?

Yes , I'm already using save_weights_only in ModelCheckpoint. But it doesn't solve it

@sarmadm As mentioned in a comment in the referenced issue, this is not a problem of Keras. Please refer to this stack overflow question and try all the work arounds provided. Thanks!


chore: Change to only start smoke-test back end once

It's only the smoke test fake back-end which is started once.
The actual SB app is still created/deployed for each test run, ensuring that LUMIGO_SWITCH_OFF can still be tested


feat(flagship): Add option to only include the default env

Usage: yarn run init --env prod --onlyDefault
Will only include the default env, which should reduce the size of production bundles by excluding the environments that aren't needed.

Fixed JSDoc error.


Screen sharing from iOS flutter not working

Hi,
I implemented Screen Sharing by referring given demo:
https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/tree/main/example/lib/examples/advanced/screen_sharing
Screen sharing is working fine on Android But not on iOS
In iOS:-

When i start the screen share it shows an alert,

I select my created broadcast extension from the list and
Click on "Start Broadcast" button
The indicator turns into the Red, which looks like the extension started screen capturing,

But the screen is not showing to the users joined in the same channel.
So far i followed all the instructions given here:
https://docs.agora.io/cn/video-call-4.x/screensharing_flutter_ng?platform=Flutter
Apart from this, should I need to do something else?
like should I need to write any script in SampleHandler.swift of my extension?
Now my SampleHandler.swift is:
import ReplayKit

class SampleHandler: RPBroadcastSampleHandler {

    override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) {
        // User has requested to start the broadcast. Setup info from the UI extension can be supplied but optional.
    }

    override func broadcastPaused() {
        // User has requested to pause the broadcast. Samples will stop being delivered.
    }

    override func broadcastResumed() {
        // User has requested to resume the broadcast. Samples delivery will resume.
    }

    override func broadcastFinished() {
        // User has requested to finish the broadcast.
    }

    override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) {
        switch sampleBufferType {
        case RPSampleBufferType.video:
            // Handle video sample buffer
            break
        case RPSampleBufferType.audioApp:
            // Handle audio sample buffer for app audio
            break
        case RPSampleBufferType.audioMic:
            // Handle audio sample buffer for mic audio
            break
        @unknown default:
            // Handle other sample buffer types
            fatalError("Unknown type of sample buffer")
        }
    }
}

Related to: https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/issues/607

The indicator turns into the Red, which looks like the extension started screen capturing,

Can you share a screenshot for this step?

@littleGnAl  Please have a look:

When the user click on Share Screen button,

_engine.joinChannelEx(
                        token: screenShareAgoraToken,
                        connection: RtcConnection(
                        channelId: channelName,
                        localUid: screenShareUid),
                        options: const ChannelMediaOptions(
                        autoSubscribeVideo: true,
                        autoSubscribeAudio: true,
                        publishScreenTrack: true,
                        publishSecondaryScreenTrack: true,
                        publishCameraTrack: false,
                        publishMicrophoneTrack: false,
                        publishScreenCaptureAudio: true,
                        publishScreenCaptureVideo: true,
                        channelProfile:
                        ChannelProfileType.channelProfileLiveBroadcasting,
                        clientRoleType: ClientRoleType.clientRoleBroadcaster,
                      ));

Then from the event listener,

 _engine.registerEventHandler(RtcEngineEventHandler(
     onJoinChannelSuccess: (RtcConnection connection, int elapsed) async {
        if (connection.localUid == screenShareUid){
             _shareScreen();
        }
     } , onLocalVideoStateChanged: (VideoSourceType source,
            LocalVideoStreamState state, LocalVideoStreamError error) {
             switch (state) {
               case LocalVideoStreamState.localVideoStreamStateCapturing:
               case LocalVideoStreamState.localVideoStreamStateEncoding:
                  setState(() {
                    _isScreenShared = true;
                   });
               break;
            }
         }
  ));

     Future<void> _shareScreen() async {
      await _engine.startScreenCapture(const ScreenCaptureParameters2(
          captureAudio: false,
          captureVideo: true,
      ));

      _showRPSystemBroadcastPickerViewIfNeed();

      await _engine.updateChannelMediaOptionsEx(
      options: const ChannelMediaOptions(
        publishScreenTrack: true,
        publishSecondaryScreenTrack: true,
        publishCameraTrack: false,
        publishMicrophoneTrack: false,
        publishScreenCaptureAudio: true,
        publishScreenCaptureVideo: true,
        clientRoleType: ClientRoleType.clientRoleBroadcaster,
      ),
      connection: RtcConnection(
          channelId: channelName, localUid: screenShareUid),
    );
  }

  Future<void> _showRPSystemBroadcastPickerViewIfNeed() async {
    if (defaultTargetPlatform != TargetPlatform.iOS) {
      return;
    }
    await _iosScreenShareChannel
        .invokeMethod('showRPSystemBroadcastPickerView');
  }

And in my build method,

@override
Widget build(BuildContext context) {
 return  . . . . . ..  .
   . . . . . . . . . .
 _isScreenShared ?

}

It seems the code is valid, if you first integrate the screen-sharing feature, you may need to reboot the phone at some time, maybe you can try rebooting your phone to see if helpful or not.

I tried after rebooting the phone, but still no luck.

I think it's better to submit a ticket to agora support to help further investigate this issue.

It is most likely the screen sharing works fine, but the remote user can not see the screen sharing stream, you can try this website to see if you can see the screen sharing stream.
https://webdemo.agora.io/basicVoiceCall/index.html

If you can see the screen-sharing stream on the website, I think you may need to share the code for how you render the remote users, I can check if it is valid or not.

If you can't see the screen-sharing stream on the website, I think it's better to submit a ticket to agora support to help further investigate this issue.

Looks like your given link of the web demo is for voice call, However, I found another one for video call( https://webdemo.agora.io/basicVideoCall/index.html ) and tested with that. But can't see the screen-sharing stream on the website, While I can see the camera stream on the website.

Hi @littleGnAl, As per your suggestion, I'm going with your #3 option.
I submitted a ticket to agora support, For your reference, the ticket id is CUS-29735

Hi @littleGnAl, As per your suggestion, I'm going with your #3 option. I submitted a ticket to agora support, For your reference, the ticket id is CUS-29735

hey can you share code cuz i dont even gitting extension screen

Hi @devsideal You Have to write the AgoraReplayKitHandler value in NSExtensionPrincipalClass in the info.plist of your
extension.

@devsideal Have you made any progress on this issue?

This is confirmed as resolved on the ticket
_The below change worked for me, would be great if you update the English version of the doc, Thank you so much
"- If you only need to use the functions in AgoraReplayKitExtension.framework provided by Agora, the modification method is: select Target as the newly created Extension, and in *Info, set *NSExtension > NSExtensionPrincipalClass to AgoraReplayKitHandler."
Just a small issue, After the Start Broadcast, the alert doesn't go away automatically until we touch the screen._


Wrap Radio Group Radix (New Component)

https://www.radix-ui.com/themes/docs/components/radio-cards

Hi @Alek99 Can I work on this?

@sagarhedaoo We already have a start here - just need to make sure it works correctly

Hi @picklelo! I finished the code but I am not able to commit because of some pyright issues.


Local pull request success status testing

Docs Build status updates of commit 50c95b6:
:clock10: Pending: waiting for processors (9 builds ahead of you)
:warning: Docs Build is busy, currently there are 9 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 50c95b6:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

E2E_DocsBranch_Dynamic/index.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


AttributeError for NoneType returns

Relatively often, I've run across the possibility that something goes wrong with the procedure either from my end or the optimization simply does not go through and the request response is null and has NoneType. The error thrown in these situations is:
data = response.json()
AttributeError: 'NoneType' object has no attribute 'json'
at line 160 in the optipyzer/api file. The exception handling currently uses a TypeError to catch these situations. Shouldn't it use an AttributeError, for clear reasons? It could be just a problem of my usage, but it is especially annoying because the mismatching errors causes a crash in the program. Let me know if I'm simply using the program incorrectly.

What code are you running to achieve this?
My disclaimer will be that this is an older API I've written with even older code from many years ago, so admittedly it may be "messy" or poorly designed...
If you see the potential for improvement I GLADLY welcome any contributions, but in the meantime, could you provide the code you're running, so I can look into it a bit more?

I think this got fixed in #9


Remove non-informationative javadocs method annotations

Remove javadoc method annotations that don't actually contain any information.
Remove unneeded imports
Remove unneeded license headers

(I'm bored in the car on a roadtrip and can't concentrate enough to do any real coding)

@damagatchi retest this please


TreeViewItem: Throw exception when ItemTemplate is customized wrong

Description

This TreeView-bug only occurs when TreeView.ServeData is used with a custom ItemTemplate.
The parent node reference passed to the MudTreeView.ServerData delegate function is ALWAYS null when the parameter 'Value' is NOT set in the customized MudTreeViewItems-Template.
To fix this issue an exception is thrown when the parameter MudTreeView.ServerData is set with MudTreeViewItem.Value & MudTreeViewItem.Text unset.
MudTreeView.Text needs to be null to make sure the TreeViewItem is not only supplied with a display text - in which case the parentNode would be null anyways.
See Ticket #7156 for bug reproduction - still present in latest release v6.0.15.
How Has This Been Tested?

Unit test is included in the comit covering the same scenario from Ticket #7156.
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[x] I've added relevant tests.

you might have to check if htis problem still exists. The Text/Value logic has changed a little bit. It is allowed to have either only Text or only Value or both. If there is no Value then Text will serve as Value (see the new GetValue() private function).

@henon Problem still exists with the current remote dev branch.
The refurbished Treeview's "ServeData" callback continues to not serve any value (=null) with the TreeView still misconfigured as described above: 'ItemTemplate' specified but without the 'Value'-parameter set .
I resolved the conflicts so you can merge this PR in.

@henon sorry messed up resolving the merge conflict. I pushed a new comit fixing my mistakes. Can you reopen the PR and consider my latest comit?

Sure no problem, please reference this one from the new one


Cannot use jsx syntax in js file

Describe the bug
In react-template, it seems jsx syntax is not allowed in .js file, while there are a lot react folks just use '.js' file.

Reproduction
Init a app repo with react-template, then rename main.jsx to main.js, also need to modify the index.html file.

System Info
Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:
[plugin:vite:import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.

Used package manager: pnpm
Logs

Before submitting the issue, please make sure you do the following

[ ] Read the Contributing Guidelines.
[ ] Read the docs.
[ ] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[ ] Provide a description in this issue that describes the bug.
[ ] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[ ] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

jsx is not supported in js files in vite. Here is the reasoning for this https://twitter.com/youyuxi/status/1362050255009816577
Switching your .js extensions to .jsx should fix your problems 🙂

jsx is not supported in js files in vite. Here is the reasoning for this https://twitter.com/youyuxi/status/1362050255009816577
Switching your .js extensions to .jsx should fix your problems 🙂

Ok, got it.
I am about to suggest you guys add this in docs.

Hey @wheatjs, is there a workaround for external libraries that are using jsx inside a js file?

@mohitgarg Add rollup/plugin-babel


⚠ Site has degraded performance

In d9a2d1e, Site (https://fyle.uk) experienced degraded performance:

HTTP code: 503
Response time: 15491 ms

Resolved: Site performance has improved in c48363e after 18 minutes.


It stopped running my code

const thisNewArr = (arr) => {
let newArr = []
let product = 2
arr.forEach((value) => {
newArr.push(product * value)
})
return newArr
}
thisNewArr ([2, 4, 6])
The above function should have worked however when I node the file in terminal it does not run the code at all. I ran this code in repl.it and it worked perfectly fine. Is there something that I could fix in my VS Code?

Never mind I found the problem. I forgot to console.log it. Thank you!

Never mind I found the problem. I forgot to console.log it. Thank you!


Popup Icon Not Changing Color

An issue discovered from #289.
The icon is supposed to change when different things are detected (ie GPC signal is sent, analysis mode is on/off, or .well-known is present). In MV3, Chrome changed the API chrome.browserAction to chrome.action and made the API return a promise. I believe this is why the icon is not changing, but it is possible it comes from some other disconnect because of a change between MV2 and MV3.

I checked this out a little. From what I can tell, the main issues are caused by us not being able to maintain global variables. Before, the icon solid setting was decided by an object called wellknown, and triggered by a message being passed. The icon being set to a circle with a green border was decided by a global boolean sendSignal.

I checked this out a little. From what I can tell, the main issues are caused by us not being able to maintain global variables.

That is a good observation. I could imagine that we will have this problem in other parts of our code as well. So, it would be a good to come up with a general approach (maybe, localStorage, Indexed DB, ...). We can also look at what other people are doing for their mv3 extensions. Are there blog posts, emerging best practices, ...?

I think I have been able to fix this, so I will open a pull request.

This has been resolved as well, so I will be closing it.


4.0/conection string enhance with arm resolve #26551

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
For now, serivcebus jms starter's credential can only be configured using the configuration option of "spring.jms.servicebus.connection-string". We also need to support the option of :

configuration option of "spring.cloud.azure.servicebus.connection-string".
configuration of  "spring.cloud.azure.servicebus.namespace" used with "credential" option, i.e.
the following configuration can be used.

#
spring:
  jms:
    servicebus:
      connection-string:  ${AZURE_SERVICEBUS_CONNECTION_STRING}

and
spring:
  cloud:
    azure:
      servicebus:
        connection-string:  ${AZURE_SERVICEBUS_CONNECTION_STRING}
 ...

OR
spring:
  cloud:
    azure:
      credential:
        client-id:  ${AZURE_CLIENT_ID}
        client-secret:  ${AZURE_CLIENT_SECRET}
      profile:
          tenant-id:  ${AZURE_TENANT_ID}
          subscription-id:  ${SUBSCRIPTION_ID}
      servicebus:
        resource:
          resource-group:  ${RESOURCE_GROUP}
        namespace: ${NAMESPACE}

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

close, another pr replaced. https://github.com/Azure/azure-sdk-for-java/pull/26668


Null is empty csv

Summary
Adds behavior to the CSVModule to support normalization of NULL/NIL values into empty-string values. Additionally, CSVExtractors can now specify unalterableColumns in order to leave certain types of data immune from this normalization.
New behavior

CSVModule now preprocesses CSV data in order to replace any values where value.toLowerCase() === 'null' ||  value.toLowerCase() === 'nil' with empty string ''.

Code changes

CSVPatientExtractor now defines two unalterableColumns, familyName and givenName.
BaseCSVExtractor now accepts unalterableColumns as a constructor argument and stores that value in local state.
Adds tests of this new normalization functionality

Testing guidance

Ensure current tests pass.
Try adding a NULL value to a CSV and see if it is appropriately replaced with an empty string (one option: replace gender with NULL/NIL in patient-information.csv and see if the dataAbsentReason appears in the output bundle)
Ensure that givenName and familyName aren't scrubbed, even if their values are NULL/NIL.

@Dtphelan1 just noticed this is going into main. Probably want this to go to develop.

Thanks for that change! Not to continue being a backseat reviewer (I just am noticing these things while making release notes), but did we want to make a note of what we are doing in the README? I know we talked about it, but maybe we decided against this since we evaluated which columns should be manipulated.

I went in and changed a patients given name to "nil" to make sure it didn't get wiped but their name ended up being output as "null" which seems very weird. 1. the name isn't supposed to be changed and 2. how did it go from nil to null?

looks like it might have to do with caseSensitivity issues – when we create our headers, we lowercase them all. So familyName and familyname won't match. Handling this now 😢

@dmendelowitz should have taken care of 2. Going to look into 1) now...

I don't seem to be able to replicate 1). Could you send me some screen grabs showing me what you were seeing exactly?

When the name was "Jane" in the csv it properly output "Jane Doe"

It looks like your most recent commit fixed the "nil" -> "null" thing

Ohhhh the null Doe thing might be my fault. I think when I updated the patient CSV to not require family or given name, I don't think I updated the template where it combines the two into that one text field. So I think the same thing would probably happen if you didn't include any value for givenName as well.

@jafeltra Yeah, when givenName is blank, I get "null Doe" also, so I guess that's an issue with the patient template not @Dtphelan1's new code

I know I already approved but this thought just came to my mind. Since I just learned that the patient IDs csv is parsed without the CSVModule, is there any chance that that CSV will have a nil or null that needs to be interpreted as empty? (I hope not)

Great question – I don't think we need to worry about this right now;
This does raise a bigger question about whether or not the client's should be aware of patient-mrns more generally. Not a problem for now, but something to think about more moving forward 😄


how to summary 10000 characters in chinese comments using gpt3 summary function(with 2046 token limitations)?

尝试分割为多次，再将多次回复合并，再提交一次

You might want to try and use something like nltk libraries to further refine your prompt

You can refer to the link below.
YouTube: Recursively summarize text of any length with GPT-3
GitHub: daveshap/RecursiveSummarizer

This is a good topic. We'll work on some content for this.


Relative links broken

We are trying to generate a bunch of PDFs files and usually we have relative links to the result of another AsciiDoc file in HTML.
Something like this
link:another_page.html[Another Page]
this works properly in the web but when we process this file with asciidoctor-pdf and download the file to your local machine, the link will be broken and make sense that (because it will use the local current path)
Is there any workaround to resolve relative links with a prefix URL something similiar to :imagesdir but remotely ?
Would be great if it is possible to resolve relative links like this
https://example.com/<relative-link>

I would recommend using an attribute reference that resolves to base URL. In the HTML backend, you can set the value to blank.
link:{link-base-url}another_page.html[Another Page]

You can define it at the top of your document as follows:
:link-base-url:
ifdef::backend-pdf[:link-base-url: https://example.com/]

Thank you for the anwser!
In this case is not an option there are more than 500 files, and also I can't modify the content.
But I will try to make a few regexp to match relative links and fix it before execute asciidoctor-pdf convert.
Thank you!

If you use source-to-source xrefs, then you can take advantage of the built-in relfileprefix attribute.
:relfileprefix: https://example.org/

xref:another_page.adoc[Another Page]

Which gives you:
Another Page

Unlike the xref macro, the link macro isn't aware of whether it's linking a relative, root-relative, or absolute URL. It just passes the target through.


Tutorials not working

It seems I can't open Tutorials 3. to 5. although I would be highly interested in reading them.
Thank's for any help!
Best
Markus

yeah me too!


HNC: Prevent updating annotations on propagated objects

The webhook does prevent editing the propagated object itself or labels but doesn't prevent updating annotations:
# I'm annotating a propagated object:

$ kubectl annotate role -n b rl propagate.hnc.x-k8s.io/select=abc
role.rbac.authorization.k8s.io/rl annotated

$ kubectl get role -n b -oyaml
apiVersion: v1
items:
- apiVersion: rbac.authorization.k8s.io/v1
  kind: Role
  metadata:
    annotations:
      propagate.hnc.x-k8s.io/select: abc
    creationTimestamp: "2021-04-29T21:02:29Z"
    labels:
      app.kubernetes.io/managed-by: hnc.x-k8s.io
      hnc.x-k8s.io/inherited-from: a
    name: rl
    namespace: b
    resourceVersion: "5297867"
    selfLink: /apis/rbac.authorization.k8s.io/v1/namespaces/b/roles/rl
    uid: 2fc22fd7-7a34-492c-b823-79dd9383b2f8
  rules:
  - apiGroups:
    - apps
    resources:
    - deployments
    verbs:
    - update
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

Replaced by https://github.com/kubernetes-sigs/hierarchical-namespaces/issues/10
/close


Doesn't work in IE Edge

Hi!
Scrolling does not work on IE Edge with example https://potato4d.github.io/vue-fixed-header/
Tested in Microsoft Edge 41.16299.248.0
In IE11 works fine
If in component manualy change tag from 'html' to 'body' it works fine (with 'html' scrollTop always return 0)

@CookiesEater
Oh, thanks.
I do not have Windows now, but I will check as soon as possible.


Join threads, release bound sockets on Service::stop

Adds join of the State thread on Service::stop
Simplifies acceptor logic (both TCP and UTP) by removing unnecessary threads. This also fixes #361 .

r? @vinipsmaker
(maidsafe_highfive has picked a reviewer for you, use r? to override)


Un-static the Precog cake

This PR was originally designed to make Precog unloadable.  It does that, but there appears to be a strange bug with the filesystem handlers (@wemrysi ??) where the close effect is not being run.  More research into this is needed.
In the meantime, the cake is dynamic now, so we're in better shape even without unloading.

@djspiewak Any idea which close isn't being run? (i.e. from a read, a write, a query?)

nvm, just saw #2288


🐛(frontend) responsive dashboard

Bug Report
Problematic Behavior
Dashboard is currently not usable on mobile.

Missing arrow for drop-down menu
The layout is not centered. In addition it does not have the same margins on both sides.
The breadcrumb does not wrap. It causes an overflow-x: scroll of the breadcrumbs div.
The breadcrumb should be at the top of the page.
Harmonize the overall margins between the divs, the spaces are excessively large
in the teacher dashboard, when you click on a course to get the details, the data table is not at all responsive.

Missing arrow for drop-down menu

We can change it for a cunningham select

The layout is not centered. In addition it does not have the same margins on both sides.

fixable

The breadcrumb does not wrap. It causes an overflow-x: scroll of the breadcrumbs div.

could we remove the breadcrumb for the mobile version ?
-> wraped breadcrumb will take lot's of place
-> some product title may not fit on a mobile width

The breadcrumb should be at the top of the page.
Harmonize the overall margins between the divs, the spaces are excessively large

the top margin is there in purpose, the design include the space for filters

In the teacher dashboard, when you click on a course to get the details, the data table is not at all responsive.

i've no idear about how to display as many column in a little width, any suggestion ?


Enable strict powerful feature restrictions on insecure origins

Proposal on chromium.org.
The toggle seems to be in web_preferences.cc and in --enable-strict-powerful-feature-restrictions, which is implied by --enable-potentially-annoying-security-features.

Is there anything enable-strict-powerful-feature-restrictions does that isn't already restricted by default?

On Fri, Nov 12, 2021 at 04:13:20PM -0800, qua3k wrote:

Is there anything that enable-strict-powerful-feature-restrictions does that isn't already restricted by default?

After much time spent looking through the source, I've been unable to
find an answer to this.
However, I do think that it's worth restricting more features than
upstream. Such insecure-origin feature restrictions may include:

JavaScript
Remote fonts
JIT: https://github.com/Hexavalent-Browser/Hexavalent/issues/1
...anything else?

If this seems interesting, we could rename this issue.
--
/Seirdy


bug(html): form and form controls are not ignored

Summary
partition_html() produces document elements for the contents of <form> elements, including form controls like <textarea>.
To Reproduce
html_text = """

  <form>

      Filename

      <input type="text" name="filename" value="testfile.txt" id="filename" />

      File Contents

      <textarea cols="60" rows="10" name="data" id="data">
        Whatever you put in this text box will be downloaded and saved in the file.
        If you leave it blank, no file will be downloaded.
      </textarea>

You must have Flash 10 installed to download this file.

  </form>
</body
"""

elements = partition_html(text=html_text)
print(f"{elements_to_json(elements, indent=2)}")

Expected:
[]

Actual:
[
  {
    "element_id": "9f4025fc69bda08e8b0f69052d615c6a",
    "metadata": {
      "category_depth": 0,
      "filetype": "text/html",
      "languages": [
        "eng"
      ]
    },
    "text": "Filename",
    "type": "Title"
  },
  {
    "element_id": "c5de569ff8ea14341c6835380ae221d3",
    "metadata": {
      "category_depth": 0,
      "filetype": "text/html",
      "languages": [
        "eng"
      ]
    },
    "text": "File Contents",
    "type": "Title"
  },
  {
    "element_id": "97e875b3ace86b3b5c23dd0facaec339",
    "metadata": {
      "filetype": "text/html",
      "languages": [
        "eng"
      ],
      "parent_id": "c5de569ff8ea14341c6835380ae221d3"
    },
    "text": "Whatever you put in this text box will be downloaded and saved in the file.\n        If you leave it blank, no file will be downloaded.",
    "type": "NarrativeText"
  },
  {
    "element_id": "af8b3b8e50388aefd0ed98c0d74b66aa",
    "metadata": {
      "filetype": "text/html",
      "languages": [
        "eng"
      ],
      "parent_id": "c5de569ff8ea14341c6835380ae221d3"
    },
    "text": "You must have Flash 10 installed to download this file.",
    "type": "NarrativeText"
  }
]

Additional context
Fixed by #3218. Recorded here to explain ingest test output changes and to inform CHANGELOG.

I confirm that #3218 ignore form, but not the revamp https://github.com/Unstructured-IO/unstructured/pull/3257
and perhaps add flag to partition_html to ignore or not form ?
best regards,

@heralight #3257 adds the new parser but does not install it. So partition_html() still uses the old parser in #3257. This was just to make #3218 more reviewable when rebased onto it since it will contain a lot of test changes that reflect the fixed behaviors. That rebase should be happening in the next hour or two.
Regarding including <form> content. Can you describe the use-case you have where you'd like to include that? In general, adding parameters is pretty expensive so we'd need to want it pretty bad to add a parameter specific to that.
Expensive not in the sense of initial development cost so much but they need to be added to the broader set supported by the API and SDK and they make using the system harder to learn for folks etc., so maintenance and overall system complexity.
We could consider maybe a bitmask parameter that allowed changing default inclusion behaviors, like exclude_html=EH_FORM | EH_HEADER | EH_FOOTER | EH_FIGURE

@scanny generally you want to parse html page but ignore inputs like form, validation texts, etc.
for example:
https://www.pap.fr/annonces/appartement-bordeaux-33800-r449601705
you want ignore part like the contact sidebars and bottom.
you you don't, you will have "incorrect email" text item for example, and it has too much noise.
And the actual parser didn't link parents correctly in this case.
from my point of view, we can replace skip_headers_and_footers argument by something like skip_dom_types a list of string to skip defined dom type, up to the user to specify correctly like "form".
and call like:
  if self._opts.skip_dom_types:
            etree.strip_elements(root, self._opts.skip_dom_type, with_tail=False)

Hmm. I like that idea. That gives a lot more flexibility, like strip headers but not footers, also ignore nav elements maybe, etc. :)


v8 image block img-responsive class

Adding an image block in v5.7 img-responsive class is added to the img.
In v8, img-responsive class is not added.
Not sure if this is by design? If it is to be taken out in v8, it would be nice to know as we use Bootstrap in our concrete5 themes.

@pili-pala
The "ccm-image-block" and "img-responsive" classes look to have been removed in this pull request:
https://github.com/concrete5/concrete5/commit/86a67f257e085bf5a14f5835e6aeb6cd3f537223#diff-cf11f305e5029da80a8d90fb5dc53251L18
To maintain backwards compatibility, I believe these should be restored.

Thanks for clarifying that. I will keep watching for any more changes, we would just like to know in order to keep our theme styles up to date. For backwards compatibility it would be a good idea to keep them, although maybe it is a bit odd to have img-responsive as a class for sites not using bootstrap.

@pili-pala
I agree that having CSS framework specific classes in blocks is not preferred. Instead, using the generic "ccm-image-block" to apply responsive CSS.

good idea

Hmm, that wasn't necessarily by design @a3020 what was the reason for the removal of those classes? I think we should add them back.

It looks like it was on purpose, but I can't find a reason why. So yes, let's add them back.


Python modules do not load shared libraries

Library paths are not initialized correctly.
Initially, <module>.Config.library_path is initially None. Python function_get_library uses __file__ as fallback, but the shared libraries are located in build/generated/ while __file__ refers to build/generated/<module>
Note that the Docker tests do not identify this issue, mysteriously.

closed by #304


[VCF] Add function to plot summary statistics

https://www.biostars.org/p/9483417/

https://www.biostars.org/p/9511028/
https://bioinf.comav.upv.es/courses/sequence_analysis/snp_calling.html


Can't import postgres.new.tar.gz file due to DataCloneError

Bug report

File Size: 26.2 MB
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

Navigate to postgres.new/export and click Export to download all of your databases into a single tarball.
Click Import and select the previously exported tarball.
open console and wait sometime
See error

System information

OS: [macOS]
Browser [chrome]

Thanks for opening an issue @rashidpathiyil. By chance can you provide (as much as you are willing):

The number of databases you are exporting from postgres.new
Migrations from some or all of your databases
The .tar.gz export that fails to import

Thanks!

Hey @rashidpathiyil, unfortunately I still haven't been able to reproduce this. Would it be possible to provide the .tar.gz file that failed to import? Also - does this also fail in other browsers like Firefox or Safari?


Include LICENSE in jar files

Is your feature request related to a problem? Please describe.
The jar artifacts produced out of this repository do not include the LICENSE file.
Describe the solution you'd like
Include LICENSE in any built jar artifacts.
Describe alternatives you've considered
Manual overrides for our license detection/handling code, for Google Cloud libraries.

The license information is in pom.xml. Maven reads it.
https://search.maven.org/artifact/com.google.cloud/google-cloud-core/2.10.0/jar


Item pickup delay

This PR adds item pickup time capabilities for the game. This has been discussed in PR #2289, and this is what I reduced it to.
I added timeToPickUp to represent the time needed to pass from when the item was dropped and pickUpTime as the time from when the counter starts.
I added the value changes in onDropItemRequest because I only wanted the player's item dropping to be affected by this change. Of course, any other drop item event listeners will be able to change the time needed to pick up the item by just getting the component, changing the two values, and saving.
I found this necessary because dropping items relatively below you or close enough to you would result in them being picked up by the character. This way, a player can throw items at his feed with no issues.
To test, get an item and throw it near your character. You shouldn't be able to pick it up for 2 seconds. On the other hand, items dropped from breaking blocks should be pickable instantly.
This can be only a beginning for the way item ownership and sharing items would work. Players will be able to throw items that they din't want to throw and stand on top of them so that nobody could take them until the pickup timer runs out
The only issue I have is the way I changed onBumpGiveItemToEntity. I'm not exactly sure what exactly was going on before (it looked like the item was given to the player even if there would be no itemComponent in it, which would be weird (for me at least)

Can one of the admins please verify this patch?

@GooeyHub: add to whitelist
@portokaliu: thanks for the cleanup! Pinging @flo and @Josharias for mini-review

Hooray Jenkins reported success with all tests good!

I will look more thoroughly later on tonight,  on first glance it seems like the two new fields could be a good fit on the PickupComponent.   Possibly filling in the timeToPickup and pickupTime after sending the DropItemEvent?
The GiveItemEvent is intentionally fired even if it does not have an ItemComponent so that, in theory, other inventory/item systems could be used that do not rely on ItemComponent.  In hindsight,  I wonder if GiveEntityEvent would have been a better name.

...5 hours later...  To me,  it still seems like a good idea to reduce the amount of things that ItemComponent is apart of.  Right now there is damage,  and stacking,  and usage, and cooldowns all on the same component.   I wonder if even another new component would be a good choice to store this protected pickup stuff... like a ProtectedPickupComponent? (no,  dont use that name,  but you know what I mean).   I suppose maybe fleshing out ownership and sharing a bit more may give a good idea of the direction to head.
That said,  I do like the mechanic of allowing dropped items to not get sucked up quite so fast.

There's already a PickupComponent used to recognize the item as one that can be picked up, and is used via the itemBase.prefab. If the item doesn't have an PickupComponent is it at all possible that it doesn't have an ItemComponent? Since onBumpGiveItemToEntity only accepts items that have a PickupComponent, I'm not sure there should even be an item component check, unless it is possible that the parameters are null (I know they shouldn't, but I'm still new to this)

It is possible for an item to not have a ItemComponent.  Although not presently in practice in the Core module.  I am not sure exactly what form of alternative inventory management will be developed,  but keeping the system specific to only the PickupComponent is a good step to keeping options open.
Nice idea with the "timeDropped",  it would help clarify what that field is for.

More thinking happened on Slack with @portokaliu... For another inventory management system to make use of these pickup events,  I suppose some more refactoring would be needed to further separate out the differences between preparing the item to be dropped (adding components that let it act in the world), bumping into the entity,  and un-preparing the item from having been dropped (removing the components that let it act in the world).  Right now, bump and un-prepare are mixed in together.
@portokaliu, likely keeping the fields inside of ItemComponent is not going to be horrible.  We can deal with that more when ItemComponent is broken down into smaller components and the bigger picture is more clear.

I added the changes we talked about. One thing I found weird is that the item can have a pickupComponent while not having an itemComponent. Note to self - don't assume anything... like, ever. (maybe it catches the item a second time after its components have been stripped from it?)

Hooray Jenkins reported success with all tests good!

There are definitely some unexpected scenarios that happen with entities.   It gets even weirder when in a remote client situation and you also have to deal with the temporary entities that get overwritten by the entities sent over the wire from the server.
This looks good to me.   There is one tweak that could be done,  but not necessary.  @portokaliu,  let me know if you are also satisfied with this PR and Ill merge it in.

Hooray Jenkins reported success with all tests good!

Tested it out, works as advertised, at least in a plain old single player game :-)
Am also happy to merge. Should we detail the more quirky issues elsewhere? I figure that's (mostly) pre-existing vs. caused by this PR? And what related tweak anyway?

I haven't tried getting a server up or anything yet, so I'm not exactly sure how it would fare in that environment. Might try it as soon as I look up how to do it :D
I'm also curious about the tweak. Anything that makes it better should be worth implementing now rather than later. I'm not in a real hurry to submit; It's not a critical task or anything :P

I double checked on a headless server with 2 connected clients and it functions as advertised.
Sorry for the confusion,  the tweak was putting the hardcoded value in the prefab.  Which you did.


ReadingQuality validation

As per the schema (https://github.com/energyos/OpenESPI-Common-java/blob/master/etc/espiDerived.xsd ) reading quality(quality of the reading) has definite set of values.Need validation/check, in reading data import/export, to enforce this.

The schema has an extensible enumeration model which is a union of the defined set of values and an integer. Therefore, the schema permits any value. It leaves to implementation agreements the defined interoperability if a limit to the value space is desired.
Is there a particular requirement you have in mind?

this leads to the larger question (beyond reading quality) of the need for all enumerations to be specifically implemented (thus enabling the validation/check of these enumerations when marshalling/unmarshalling).
Is there a need to validated the values of any/all of relevant attributes of the ESPI resources?

MDM system has many quality values but consumer application may not required all those. I am trying to map our internal MDM quality values to GreenButton values. Quality flag defined in existing schema could be sufficient for us.


Add SCP: Secret Laboratory

Work in progress

Hows this coming along? Need this for a new server setup please.

Just waiting on a review now that it's finished up.

It's come along well, despite no-one who has been asking for it contributing any testing and feedback lol

Thanks, happy to wait. Appreciate your testing it so thoroughly.

Testing of the public server was a success. Player tracking and everything seems to be working well. Nice work!

Client side everything looks good.

Ready now. Thanks again for testing


[BUG] [FlyteAdmin] Notifications SQS subscriber stops processing messages when "connection reset by peer"

Describe the bug
Notifications SQS subscriber stopped process messages
Expected behavior
Gracefully reconnecting if the application is running
Flyte component

[ ] Overall
[ ] Flyte Setup and Installation scripts
[ ] Flyte Documentation
[ ] Flyte communication (slack/email etc)
[ ] FlytePropeller
[ ] FlyteIDL (Flyte specification language)
[ ] Flytekit (Python SDK)
[x] FlyteAdmin (Control Plane service)
[ ] FlytePlugins
[ ] DataCatalog
[ ] FlyteStdlib (common libraries)
[ ] FlyteConsole (UI)
[ ] Other

To Reproduce
Steps to reproduce the behavior:

Run flyte with enabled notifications
Wait for this happens

Environment
Flyte component

[ ] Sandbox (local or on one machine)
[ ] Cloud hosted

[x] AWS
[ ] GCP
[ ] Azure

[ ] Baremetal
[ ] Other

Additional context
Logs:
{"json":{"src":"base.go:103"},"level":"error","msg":"error with starting processor err: [RequestError: send request failed\ncaused by: Post https://sqs.us-east-1.amazonaws.com/: read tcp <IP_ADDRESS>:59882-\u003e<IP_ADDRESS>:443: read: connection reset by peer] ","ts":"2020-07-03T10:35:10Z"}
{"json":{"src":"processor.go:113"},"level":"warning","msg":"The stream for the subscriber channel closed with err: RequestError: send request failed\ncaused by: Post https://sqs.us-east-1.amazonaws.com/: read tcp <IP_ADDRESS>:59882-\u003e<IP_ADDRESS>:443: read: connection reset by peer","ts":"2020-07-03T10:35:10Z"}

I guess solution will be similar to this one: https://github.com/lyft/flyteadmin/pull/92

@rstanevich thank you for opening up the bug, I will add it to the next milestone. Do you think thats ok, or is it affecting everyday and we should fix it ASAP?

thanks for opening @rstanevich - is this a recent issue?

thank you @kumare3 and @katrogan
Honestly, we noticed it first time about notifications SQS subscriber.
We are running flyteadmin in multiple replicas and we have alert for the oldest message in SQS. Then we can just restart flyteadmin pods.
So, it looks not urgent at least for us.

thank you @kumare3 and @katrogan
Honestly, we noticed it first time about notifications SQS subscriber.
We are running flyteadmin in multiple replicas and we have alert for the oldest message in SQS. Then we can just restart flyteadmin pods.
So, it looks not urgent at least for us.

Thank you for the reply. BTW, we have Flyte's very own Flash @katrogan who already has a PR for this

@rstanevich do you have an alert if FlyteAdmin crashes? What would be preferrable, that you notice a FlyteAdmin crash or it continues to limp along and you notice older messages?

@kumare3
Yes, we have alerts on crashing any pods in cluster.
Do you mean restarting container if sqs subscriber stopped?
actually, I don't know what is better. It is pretty good now... maybe I think connection retry should be executed unlimited times
with some interval.

@rstanevich I think we found a very good way of solving this problem. @katrogan will merge the PR soon. Thank you for raising the issue.

it is merged and will be part of the next release


Moved a Logic app to another subscription

Hi
I have a logic app associated to one subscription and RG. I moved it to another Subscription and RG.
Now, i could not find it. Neither in old and nor in new. Even though Activity Logs says Move was a success. Any idea why is it so.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5dd89e81-571e-d4d2-19da-1a5ed5145852
Version Independent ID: b8f89533-94b7-63a2-cd6e-e5a4efac9409
Content: Move logic apps across subscriptions, resource groups, or regions - Azure Logic Apps
Content Source: articles/logic-apps/move-logic-app-resources.md
Service: logic-apps
GitHub Login: @ecfan
Microsoft Alias: estfan

@akumar912 Thanks for your comment. We will review the issue and get back to you shortly.

@akumar912 The issue is more specific to your resource movement from one subscription to another. Microsoft Docs Github issue is mainly related to the document issue. I would recommend you to create a thread on the forums - Microsoft Q&A or create a support ticket to assist you further. If you don't have a support plan then send an email with subject line “Attn:Mayank” to AzCommunity[at]Microsoft[dot]com referencing this thread along with your logic app resource name, source subscription ID, and destination subscription ID.
We will proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


RELAYMSG should update client idle time

Reported by @Mikaela

/notice doesn't update idle time - with the reasoning that NOTICE responses are sent by bots, generally. If we follow that logic, /relaymsg probably shouldn't update client idle time either.

/notice doesn't update idle time - with the reasoning that NOTICE responses are sent by bots, generally. If we follow that logic, /relaymsg probably shouldn't update client idle time either.

wontfix

wontfix


Mouse Grabbing and MouseMoved Event

I'm not sure that it is right, that there are no MouseMoved Events, while the Mouse is grabbed?
Only tested on x11
See grabbing.rs example

I'm also having this problem on win32. Investigating.


Refactor functions yml structure

The purpose of this PR is to make the use of functions,yml file more convenient. The first issue that is tackled here is the repetitiveness of a number of fields throughout the config files we have.

Known issues here compared to main branch - (to keep track of and fix them later):

Docker image based lambdas can't be delpoyed or updated.


Configurable origin

#205 #216 improved security of Zeppelin.
This patch lets user specify origin name(s) by configurable parameters. Also allowing wildcard (*).

I like the singleton approach but I dont agree with * by default as it makes Zeppelin vulnerable to the attacks. This is how I did it. I need to fix the merge.
https://github.com/apache/incubator-zeppelin/pull/235

The reason support * and allowing * by default is, to keep the same behavior.
We already seeing many people asking about connection problem in various environment.
Current origin autodetect routine
java.net.InetAddress.getLocalHost().getHostName().toLowerCase()

is not sufficient to cover many cases.
I think until Zeppelin gets better autodetect routine that covers most cases automatically, we need to suppose * and make it default. Otherwise people will keep asking and keep having trouble with configuring origin. Later we can deprecate * and remove it finally.
Please consider this too.

I do don't get me wrong. But in this case it's equivalent of the door in a house.
My prescription is to be safe by default then to not be and then have to tell everyone to change to a secure setting when an exploit happens which let me remind you this lets potentially some hacker to send code to run on your box as you from anywhere on the Internet.

@djoelz I agree on improving security of Zeppelin.
However, many users uses Zeppelin behind the firewall. For them, forcing manual configuration of origin is just one more barrier to make Zeppelin up and running.
And until now, Zeppelin used to allow all by default. And people already build their infrastructure, deployment scripts with Zeppelin based on this behavior on docker, cloud services, etc. If default behavior is changing, all people need to change their stuff. that's what currently happening.
I can see your point that it's worth to bother people take care of security.
However, not making user experience trouble is also important. I'd like to see more smooth approach.
That's why i suggest "allow all by default" -> "improve autodetect" -> "deprecate wildcard" -> "remove allow all".

@Leemoonsoo Ok that seems like a good compromise. The only thing I would like to add is a link in the property summary that references the jira and mentions that if you use * you are vulnerable to it. Do you want me to merge your changes with mine? Who makes the fix?

@djoelz If you're okay, prefer to merge your patch. And that's good idea about mentioning risk of *.
Thanks for taking care of the security issues!

cool! I'm on it!

@Leemoonsoo Done! take a look at https://github.com/apache/incubator-zeppelin/pull/235 and close this one if you sign off.


sc-1343 verify emails sent in tests

This adds an assert helper which hopefully makes it easier to verify which emails are sent in the tests, by checking against both the audit log and the email mock.

Codecov Report

Merging #261 (862f427) into main (17b02a1) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #261      +/-   ##
==========================================
- Coverage   44.47%   44.43%   -0.05%
==========================================
  Files          53       53
  Lines        6082     6088       +6
==========================================
  Hits         2705     2705
- Misses       2891     2897       +6
  Partials      486      486

Impacted Files
Coverage Δ

pkg/gds/emails/mock.go
8.00% <0.00%> (-0.52%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17b02a1...862f427. Read the comment docs.


Add Github Actions for unit tests and mutation tests

 Here is an overview of what got changed by this pull request:

Coverage increased per file
===========================
+ src/Entity/Device.php  4
+ src/Mapper/RequestMapper.php  4
+ src/Response/ResponseFactory.php  5
+ src/Transaction/EpsTransaction.php  10
+ src/Entity/Redirect.php  8
+ src/Config/Config.php  2
+ src/Entity/Basket.php  2
+ src/TransactionService.php  2
+ src/Entity/Payload/NvpPayloadData.php  8
+ src/Helper/XmlBuilder.php  10
+ src/Transaction/CustomFieldTransaction.php  5
+ src/Entity/Mappable.php  1
+ src/Entity/Browser.php  2
+ src/Entity/AccountHolder.php  1

See the complete overview on Codacy


when submitting new prompts, check and prevent duplicate prompts

Dont think this will be an issue, closing


Windows Build error Couldn't find parent type for 'SimpleWheeledVehicleMovementComponent' named 'UWheeledVehicleMovementComponent'

OS:Windows10
VisualStudio 2019
Carla version : 0.9.11.release
UE4 version:4.24
Problem:
When I first time build UE4,get the following error:
ErrorLog:1>EXEC : error : Couldn't find parent type for 'SimpleWheeledVehicleMovementComponent' named 'UWheeledVehicleMovementComponent' in current module (Package: /Script/PhysXVehicles) or any other module parsed so far.
The git patch "UE4_patch_wheels.patch" has been apply,and it happend when build UE4 project in vs.
I try to use the cmd tool run the build.bat,and get the same error.

@bernatx could you have a look at this please?


Use Node process?

If it's possible to introduce a port for calling to a node process during compilation it could open some doors for a better experience. In particular calling babel to turn the es6 code into whatever module system the user wants, and for using it's dead code elimination feature.
The problem is performance. In previous versions that called out to a node process, one of the demo projects took 20s to compile. Without node, it was down to ~200ms. A small performance hit would be fine and is expected.

I tried using node again, this time using exos. I now see that the main source of bottleneck was the json encoding because without using it, the the performance stayed almost the same. Where the tests would run in 0.1s without it, they ran in 0.2s with it.

@bryanjos sorry, I'm new to this project and was just curious, why not just go to es5 instead?  It's a bit more work on your end I guess, but seems like it will make debugging simpler when you go to add source maps. I think Babel can take in source maps to start, but then I think you'll still have the complexity of two compilers adding indirection. Anyway, again, I'm new to the project, so I'm just curious. Great work on everything!  Thanks.

@ryanstout that's a valid question and one I wonder about myself more and more :). The biggest reasons are that es6 have constants, symbols (which are used here for atoms), modules, iterators and destructuring. Generators may or may not also play a factor later when it comes to erlang-style processes.
I originally wanted babel for maybe the ability to use es7+ features that would make translation easier, dead code elimination, and for picking an alternative module system. I'm not sure any more if making babel a part of this is a way forward or not anymore. I'm also not sure how to include the needed node modules when Elixirscript is used as a dependency.
Saying all of that, I am open to any suggestions on how to improve the experience. It's been bugging me a lot lately. I know right now the code that is created still has to go through a transpilation step of some kind. I think that the only es6 feature that's being used here that's not in evergreen browsers currently are modules. But there are so many different kinds of module systems and build tools out there that I figured following the spec would be the easiest and most beneficial.

@bryanjos do you have a link to dead code elimination in babel? (I didn't see much when googling)  I didn't think that was possible in a language like javascript, other than just not including files based on requires.

It used to be on their plugins page under experimental, but since babel 6.0 was released I don't see it anymore. The only thing I see is this, https://github.com/achicu/babel-plugin-dead-code-elimination. Not sure if that's the plugin version of what was there before or not.

After thinking things over I do not think this will be needed.


Configure OAuth2FeignRequestInterceptor

Hello All,
I am having an issue making a Feign request from an OAuth2 client to an OAuth2 resource. I was getting a 401 access denied error and saw that I needed to use the OAuth2FeignRequestInterceptor. My question is, is this auto configured or do I have to declare an bean to do so? Whenever I configure the bean to use an OAuth2FeignRequestInterceptor, I get this error:
No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread?
Here is my Feign Client definition:
@FeignClient(value = "STORE-SERVICE")
public interface StoreSearchClient {

    @RequestMapping(method = RequestMethod.POST, value = "/v1/search")
    SearchResponseMessage searchStore(SearchRequestMessage query);
}

My OAuth2FeignRequestInterceptor bean definition:
    @Bean
    public RequestInterceptor oauth2FeignRequestInterceptor(OAuth2ClientContext oAuth2ClientContext,
                                                            OAuth2ProtectedResourceDetails resource) {
        return new OAuth2FeignRequestInterceptor(oAuth2ClientContext, resource);
    }

Part of application yaml file:
hystrix:
  command:
    default:
      execution:
        isolation:
          strategy: SEMAPHORE

and my gradle dependencies:
dependencies {
    compile('org.springframework.cloud:spring-cloud-starter-config')
    compile('org.springframework.cloud:spring-cloud-starter-eureka')
    compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-oauth2', version: '1.1.3.RELEASE'
    compile('org.springframework.cloud:spring-cloud-starter-zuul')
    compile('org.springframework.security.oauth:spring-security-oauth2')
    compile('org.springframework.cloud:spring-cloud-starter-hystrix')
    compile('org.springframework.boot:spring-boot-starter-security')
	compile('org.springframework.boot:spring-boot-starter-web')
	compile("org.springframework.boot:spring-boot-starter-websocket")
    compile group: 'org.projectlombok', name: 'lombok', version: '1.16.10'
    compile('org.springframework.cloud:spring-cloud-starter-feign')
    compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-security', version: '1.1.3.RELEASE'
    testCompile('org.springframework.boot:spring-boot-starter-test')
}

I also have the EnableOAuth2Sso annotation on one of my configuration classes.
Thanks for any assistance

Can you try disabling hystrix entirely and seeing if that fixes the problem?
feign.hystrix.enabled=false

Doesn't seem to be making a difference.
#hystrix:
#  command:
#    default:
#      execution:
#        isolation:
#          strategy: SEMAPHORE

feign:
  hystrix:
    enabled: false

Hmmm maybe it is not a problem with Feign.  Could you provide a sample app that reproduces the problem so we can look further into it?

are you resolved this problem ?  i have same problem now