Problem running example code in Jupyter; Install of ts2vg via %pip or %conda fails with same error

Hello Carlos,
Kindly, I am trying to run the example in a freshly installed Anaconda setup on a Mac M1.
I have created a new Jupyter Notebook, poasted the code but I keep getting this error:

%pip install ts2vg
from ts2vg import NaturalVG
import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
ccccccccc
# 1. Generate random time series (Brownian motion)
rng = np.random.default_rng(110)
ts = rng.standard_normal(size=200)
ts = np.cumsum(ts)

# 2. Build visibility graph
g = NaturalVG(directed=None).build(ts)
nxg = g.as_networkx()

# 3. Make plots
fig, [ax0, ax1, ax2] = plt.subplots(ncols=3, figsize=(12, 3.5))

ax0.plot(ts)
ax0.set_title("Time Series")

graph_plot_options = {
    "with_labels": False,
    "node_size": 2,
    "node_color": [(0, 0, 0, 1)],
    "edge_color": [(0, 0, 0, 0.15)],
}

nx.draw_networkx(nxg, ax=ax1, pos=g.node_positions(), **graph_plot_options)
ax1.tick_params(bottom=True, labelbottom=True)
ax1.plot(ts)
ax1.set_title("Visibility Graph")

nx.draw_networkx(nxg, ax=ax2, pos=nx.kamada_kawai_layout(nxg), **graph_plot_options)
ax2.set_title("Visibility Graph")

Collecting ts2vg
  Using cached ts2vg-1.2.2.tar.gz (618 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      Traceback (most recent call last):
        File "/Users/lwadmin/anaconda3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
          main()
        File "/Users/lwadmin/anaconda3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/lwadmin/anaconda3/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/9y/0tf_ch392nd_z9n63ynbj93m0000gn/T/pip-build-env-jlhi4th5/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/9y/0tf_ch392nd_z9n63ynbj93m0000gn/T/pip-build-env-jlhi4th5/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/9y/0tf_ch392nd_z9n63ynbj93m0000gn/T/pip-build-env-jlhi4th5/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 46, in <module>
        File "<string>", line 40, in main
        File "/private/var/folders/9y/0tf_ch392nd_z9n63ynbj93m0000gn/T/pip-build-env-jlhi4th5/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 973, in cythonize
          module_list, module_metadata = create_extension_list(
        File "/private/var/folders/9y/0tf_ch392nd_z9n63ynbj93m0000gn/T/pip-build-env-jlhi4th5/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 816, in create_extension_list
          for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
        File "/private/var/folders/9y/0tf_ch392nd_z9n63ynbj93m0000gn/T/pip-build-env-jlhi4th5/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 114, in nonempty
          raise ValueError(error_msg)
      ValueError: 'ts2vg/graph/_base.pyx' doesn't match any files
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Note: you may need to restart the kernel to use updated packages.
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 2
      1 get_ipython().run_line_magic('pip', 'install ts2vg')
----> 2 from ts2vg import NaturalVG
      3 import networkx as nx
      4 import numpy as np

ModuleNotFoundError: No module named 'ts2vg'

may this be related to ts2vg not supporting python 3.10? that is being installed with Anaconda currently.

Hey, thanks for the report.
There is currently two problems:

Building the package from source is not working. Only installing from pre-built wheels is supported. (fixing this is on my todo list but haven't had time to work on it),
In particular, I am explicitly not building wheels for Python 3.10 on MacOs on purpose. Due to a bug outside of my control (same as: https://github.com/pypa/cibuildwheel/issues/402).

Sorr for the inconvenience.

Seems it all built fine. Can you try installing ts2vg again?


(Enhancement) (level1) Add Github Greetings bot

Hey 🥳 Looks like an amazing project idea! I see this repo lacks a small enhancement Github Greetings bot that sends auto messages to greet new users when they raise a PR or an issue. Let me know if you would like this level1 set up! Please assign to me if interested! (GSSoC24-Ext Contribution)

Hey 🥳 Looks like an amazing project idea! I see this repo lacks a small enhancement Github Greetings bot that sends auto messages to greet new users when they raise a PR or an issue. Let me know if you would like this level1 set up! Please assign to me if interested! (GSSoC24-Ext Contribution)

Sorry ,we don't need that for now at least


Documentation

Need to update the README file to keep it current with package features and document how to best utilize it in a Laravel project.

Here are the Google API's that this package will need:

Google My Business
Google Places
Google Analytics (Multiple API's)
Google Search Console
Domains RDAP
PageSpeed Insights
YouTube Analytics
Google Ads

The README for this package should be updated to include references to the full documentation for the package at https://docs.tipoff.com as outlined in this issue:

tipoff/docs#5


ModelBuilder: Avoid "guessing" principal/dependent in 1:1 relationships

If there isn't a clear principal/dependent in a 1:1 relationship then we should throw and instruct the developer to explicitly configure them (by identifying the FK property).

@AndriySvyryd we discussed this a while back in triage, not sure if you have already worked on it or not. Opening an issue just to make sure we don't forget to do it :smile:


LUT config flow incorrectly discovering model

Whenever a source entity has a manufacturer and model defined it is marked by the LUT flow as supported.
It should also check against the library

Fixed with #986

Closable?


Fix mysql load command

Test highlighting the problem: Missing quotes around the filename.
Fix for that problem

The fix also includes the < '<filename>' as 2 additional bits in the StringCommand. This is not just for aesthetics, it actually fixed a problem I was having but couldn't get to the bottom of it as the command I see in the operation (--debug-operation) works if I exactly copy-paste it in a terminal.
I suspect it was that both bits in < '<filename>' used to be passed to the shell as a single argument, but without quoting it's impossible to see that.
Maybe --debug-operations should print out the bits rather than the formatted command.

Maybe --debug-operations should print out the bits rather than the formatted command.

100% agree, I think debug-operations needs a full rework in general (https://github.com/Fizzadar/pyinfra/issues/924).


Lab 4 Pull Request

You have all the bootstrap components, container, row, column, form, margin, button, but i dont see padding in the form of pt pr pb pl or p. However on your site its nicely spaced and works when the tab size is changed so the text appears on the left when large, and on top of the input when small.


Fimo workflow to find enhancer binding positions

This PR contains the memesuite/fimo extension for tfactivity.
It maps the binding sites of the differential transcription factors to the genome to get the exact locations of the TFs.
Fimo is only executed on the regions previously predicted as enhancer regions by ChromHMM.

The pipeline test runs fail because we do not have a test configuration yet. The linting tests should work, but they failed at least partially because the dev branch already did not match the expectations. The dev branch is updated now, so please update the PR to include the current dev branch (rebase/merge).
After this, make sure that the linting checks pass.

Also please make use of the template syntax and implement version capture in the same way as here


Replace the legacy nodejs runtime with the new, supported one.

I added a few comments inline.

Added some more stuff to the README to clarify.


Rename project

Does anyone have a better name suggestion for the project? I used the word 'Intent' as that's what Twitter call the action which the buttons are linked to as otherwise they would of just had a generic name such as 'Social Share buttons'.
Any ideas?

@DivineOmega has suggested with 'Direct Social Buttons'. Renaming in progress. :+1:


HTTP Live Streaming Support

This isn't ready to merge, just a place for discussion.
This work adds support for HTTP Live Streaming output, adding the concept of "stream groups" and forcing a rebuild of the old request logging pipeline.
HTTP Live Streaming uses index playlists and short requests for chunks of audio rather than the measured long-lived output of Shoutcast.  Listening sessions must be synthetically constructed after the fact by piecing together the individual requests.

Nice work on landing this :)

Seemed like it was time... KPCC has been running it for months for HLS, and next week we'll be launching a new version of our iPhone app which should transfer a lot of listening from Shoutcast to HLS.
Still lots of cleanup that needs to be done, though, especially around use cases that don't match how we've been using the server.


angular project

did someone actually make it work in angular? i'm not able to load the chatComposite. i think the error message is 'container not found'
some examples or a small help would be appreciated.
thanks!

never mind, it's working


Attempt to use geozero from git

To reference unpublished code for the local workspace,wWhat you have works, but typically I'd instead solve this by adding an entry to the patches section, like this:
https://github.com/flatgeobuf/flatgeobuf/compare/master...michaelkirk:mkirk/patch-fgb-dep?expand=1
some advantages being:

it's localized to a well known place (you don't have to make and unmake this change in multiple places)
it applies transitively to all the crates in the workspace
(not relevant here) it also applies transitively to any dependencies

Replaced by https://github.com/flatgeobuf/flatgeobuf/commit/6bf6d7fcfa30add6da439a0387d1835e60c93fb6


Add wiki_url output

https://github.com/actions/deploy-pages has a outputs.page_url output that is very nice when used like:
    # Deploy to the github-pages environment
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}

    # Specify runner + deployment step
    runs-on: ubuntu-latest
    steps:
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action

I think this is a good idea to add to the current action as a non-breaking v4.2 feature
@Andrew-Chen-Wang thoughts? I want a second opinion.
@Andrew-Chen-Wang btw if you missed it I released v4.1: https://github.com/Andrew-Chen-Wang/github-wiki-action/releases/tag/v4.1.0 because it ADDED A NON-BREAKING FEATURE to do debug logging #54 😊

sure this sounds good


Building XPSDrvSmpl VS Code 2019 Enterprise and Unable to install .INF

Visual Studio Version 16
VisualStudioVersion = 16.0.33328.57
Windows Driver Kit - Windows 10.0.19041.685
Windows SDK - 10.0.19041.685
I am able to build the XPSDrvSmpl for x64 but I am unable to install the driver. These are the steps that I take to install the driver:

I build the driver for x64 and it creates a package folder and package.cer
I install the package.cer certificate file
I got Device Manager -> Print queues
Select Action -> Add Legacy Hardware
Hit Next in the Wizard and select Install the hardware that I manually select from list (Advanced
Select Printers from Common hardware types
For Use an existing port choose FILE (Print to file)
Choose Have Disk... and select the INF file for Copy manufacturers files from
Select OK

I get the following error:

Does anyone how to get around this or the correct steps for deploying and testing a driver on your local machine. Any help is appreciated - thanks!

Hi Khalid,
Can you try using the latest version of the tools on Win11.
https://learn.microsoft.com/en-us/windows-hardware/drivers/what-s-new-in-driver-development

I am on Windows 10 and can only supports Windows 10 based systems

@mkhalid578 , were you able to resolve the issue somehow?

@Anton-V-K Unfortunately, no


Explicit for-loop optimisation or SupervisedTrainer

It seems that in the majority of tutorials, the optimisation for loop is given explicitly. In relatively few places, the SupervisedTrainer is used, despite existing for this reason.
I can see why having the explicit for loop is beneficial for tutorials - so that people are more aware of the inner workings. However, for the sake of conciseness, I would be in favour of having just one notebook (named suitably) in which the explicit for loop is given, and then from there on, using the SupervisedTrainer. Notebooks using SupervisedTrainer could then refer to the explicit notebook.
I think @ericspod is in favour of leaving the notebooks as they are, so as not to hide anything (which I understand). Anyone else have an opinion?

Example of notebook with explicit for loop: https://github.com/Project-MONAI/Tutorials/blob/master/brats_segmentation_3d.ipynb
Example of notebook with SupervisedTrainer: https://github.com/Project-MONAI/Tutorials/blob/master/models_ensemble.ipynb

Thanks for bringing this up! Earlier we had the feedback from the users saying that they don't want to spend time to learn yet another framework (referring to the monai.engines and monai.handlers mechanism), we therefore create those explicit forloop examples to show that many of the monai components work well in a 'vanilla' pytorch script.
Now we might have too many such examples. Perhaps we could address this after properly rearrange the examples https://github.com/Project-MONAI/Tutorials/issues/2 what do you think @Nic-Ma?

Sounds reasonable!
We should rearrange examples first then let's discuss the tutorials.
Thanks.


Initialize render window size in ddQVTKWidgetView constructor

The render window size is updated when a QResizeEvent happen. At construction
time, the render window size is set to (0,0). This can cause problem if one
requests the size of the render window (e.g. to compute its aspect ratio)
before a QResizeEvent happen.

This solves the failing test test_testDepthScanner

Yes, it was failing with Qt5/VTK8 in the Spartan build

@patmarion Ping for my comment ago since you said your notifications were disabled.
What configurations are tested on Travis-CI?

Python 2, Qt 4.8, and vtk 7.1 are tested on Travis-CI.
I don't have notifications disabled.  The only notification I don't get is when you add a commit to a PR.

I see. I will keep that in mind.

I'd be happy to have a qt5 and vtk8 configuration to travis-ci, but I haven't had time to set it up yet.


Create Individual Contribution Report

[x] Create Individual Contribution Report Page
[x] Add it to sidebar
[ ] Fill it accordingly

https://github.com/bounswe/bounswe2023group8/wiki/Hasan-Baki-Küçükçakıroğlu-‐-Milestone-1


cudpp Makefile: NVCCFLAGS missing -Xcompiler -fPIC

When trying to build a shared library using cudpp on Linux(x86_64) the
version of cudpp delivered with the NVidia SDK (any version) as well any
Version of cudpp including 1.1 result in:

relocation R_X86_64_32 against `a local symbol' can not be used when making
a shared object; recompile with -fPIC

The Problem is known and has been discussed/solved on
http://forums.nvidia.com/lofiversion/index.php?t63748.html

It would be a good idea to include the changes (see attached patch for
version 1.1) in future releases of cudpp as well as the version shipped
with the NVidia SDK.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 4 Sep 2009 at 9:12
Attachments:

cudpp_fPIC_common_mk.patch

Fixed in 1.1.1 branch by revision 114.

Original comment by<EMAIL_ADDRESS>on 29 Apr 2010 at 7:07

Changed state: Fixed


[Regression] New Qt5 dependencies break headless installs

Example here.
Functional regression from 1.7.3 to 1.8.0
New code in #76 adds general PyQt5 dependencies, where simple (headless) installation of Ragger/Speculos does not require it.
This means the code breaks when Ragger is used in headless mode, like in most (all?) CIs.

Will be fixed in #129

Not enough. Only exception from QtCore was filtered and managed. That seemed enough locally and in several docker container tests. However it does not seem enough for the live-built Speculos docker: the raised exception is from QtWidgets
1.8.2 incoming with this in #131


Add config file for AppveyorCI

See https://github.com/sodiumoxide/sodiumoxide/issues/223

I don't know why travis failed. But it is ok for appveyor  to fail (hence https://github.com/sodiumoxide/sodiumoxide/issues/223).

Also you need to add it to the bors configuration.

I missed that you added a new variable: SODIUM_INC_DIR. Now things look a little bit better:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_wstdlib.h:276:55: error: expected ')', err: true
fatal error: too many errors emitted, stopping now [-ferror-limit=], err: true
thread 'main' panicked at 'Unable to generate bindings: ()', libcore\result.rs:945:5
stack backtrace:
...

how about this for travis?

matrix:
  allow_failures:
  - rust: nightly

@kpp

how about this for travis?

I feel that would be misleading. I would want it to fail on nightly and block on that so we know the build is compatible with the next release. Also in future, we might have features that work only on nightly and thus need the nightly version of the toolkit.

bors: r+

bors: r+

bors: try

@kpp some issues with appveyor build. Can you fix them?

Can you fix them?

thread 'main' panicked at 'Unable to generate bindings: ()', libcore\result.rs:945:5

Also there are many errors like
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:304:51: error: unknown type name 'uintptr_t'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:305:67: error: unknown type name 'uintptr_t'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:309:8: error: unknown type name 'uintptr_t'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:317:1: error: a parameter list without types is only allowed in a function definition

I don't have a computer with Windows onboard to try to build your project, but in seems like your code is not xplatform right now. So your question is more addressed to your code not to Appveyour build.
Sorry.

@kpp Ah that's fine. Yah even i'm not on windows so will wait for another co-maintainer/collaborator to check this.

The build script is failing. most likely trying to find libsodium. does this PR only add support for the Appveyor config?
@kpp

Running `C:\projects\sodiumoxide\target\debug\build\libsodium-sys-878953a9d9b7de1a\build-script-build`
error: failed to run custom build command for `libsodium-sys v0.1.0 (file:///C:/projects/sodiumoxide/libsodium-sys)`
process didn't exit successfully: `C:\projects\sodiumoxide\target\debug\build\libsodium-sys-878953a9d9b7de1a\build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=SODIUM_LIB_DIR
cargo:rerun-if-env-changed=SODIUM_INC_DIR
cargo:rerun-if-env-changed=SODIUM_STATIC
cargo:rustc-link-search=native=C:\projects\sodiumoxide\deps\libsodium-win64\lib
cargo:rustc-link-lib=static=sodium
--- stderr
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vadefs.h:28:33: error: expected ';' after top level declarator
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:81:1: error: expected identifier
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:81:20: error: expected ';' after top level declarator
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:194:29: error: expected ';' after top level declarator
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:195:30: error: typedef redefinition with different types ('__int64' (aka 'unsigned int') vs 'long long')
C:\Program Files\LLVM\lib\clang\6.0.0\include\stddef.h:51:26: note: previous definition is here
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:304:51: error: unknown type name 'uintptr_t'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:305:67: error: unknown type name 'uintptr_t'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:309:8: error: unknown type name 'uintptr_t'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:317:1: error: a parameter list without types is only allowed in a function definition
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:317:18: error: expected ';' after top level declarator
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt.h:12:1: error: expected identifier
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt.h:12:20: error: expected ';' after top level declarator
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt.h:1976:1: error: a parameter list without types is only allowed in a function definition
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_malloc.h:13:1: error: expected function body after function declarator
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_malloc.h:228:1: error: a parameter list without types is only allowed in a function definition
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_search.h:16:1: error: expected function body after function declarator
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_search.h:206:1: error: a parameter list without types is only allowed in a function definition
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_wstdlib.h:13:1: error: expected function body after function declarator
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_wstdlib.h:276:55: error: expected ')'
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_wstdlib.h:275:40: note: to match this '('
fatal error: too many errors emitted, stopping now [-ferror-limit=]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vadefs.h:28:33: error: expected ';' after top level declarator, err: true
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:81:1: error: expected identifier, err: true
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:81:20: error: expected ';' after top level declarator, err: true
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:194:29: error: expected ';' after top level declarator, err: true
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:195:30: error: typedef redefinition with different types ('__int64' (aka 'unsigned int') vs 'long long'), err: true
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:304:51: error: unknown type name 'uintptr_t', err: true
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:305:67: error: unknown type name 'uintptr_t', err: true
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:309:8: error: unknown type name 'uintptr_t', err: true
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:317:1: error: a parameter list without types is only allowed in a function definition, err: true
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vcruntime.h:317:18: error: expected ';' after top level declarator, err: true
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt.h:12:1: error: expected identifier, err: true
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt.h:12:20: error: expected ';' after top level declarator, err: true
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt.h:1976:1: error: a parameter list without types is only allowed in a function definition, err: true
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_malloc.h:13:1: error: expected function body after function declarator, err: true
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_malloc.h:228:1: error: a parameter list without types is only allowed in a function definition, err: true
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_search.h:16:1: error: expected function body after function declarator, err: true
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_search.h:206:1: error: a parameter list without types is only allowed in a function definition, err: true
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_wstdlib.h:13:1: error: expected function body after function declarator, err: true
C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt\corecrt_wstdlib.h:276:55: error: expected ')', err: true
.
.
.
Command exited with code 101

most likely trying to find libsodium

no

does this PR only add support for the Appveyor config?

yes

So how is it going? We cannot upgrade to sodiumoxide v1.0.0 until you fix this issue.

Closed in favor of #269


Appendix F setting

Hello,
I ran the previous version of the code that contains search.py.
The code has the following default settings:
args = Namespace(cycles=50, data_path='datasets', dataset_name='cifar10', device='cuda', history_path='histories', init_channels=3, input_batch=16, input_dim=32, layers=1, log_path='logs', mutation_times=68, num_classes=10, population_size=128, repeats=32, sample_size=64, search_space='DARTS', seed=0)

args = Namespace(cycles=50, data_path='datasets', dataset_name='cifar10', device='cuda', history_path='histories', init_channels=3, input_batch=16, input_dim=32, layers=1, log_path='logs', mutation_times=68, num_classes=10, population_size=128, repeats=32, sample_size=64, search_space='DARTS', seed=0)

# DARTS search space
OPERATIONS = ['input', 'max_pool_3x3', 'avg_pool_3x3', 'skip_connect', 'sep_conv_3x3', 'sep_conv_5x5', 'dil_conv_3x3', 'dil_conv_5x5', 'output']

OPERATIONS = ['input', 'max_pool_3x3', 'avg_pool_3x3', 'skip_connect', 'sep_conv_3x3', 'sep_conv_5x5', 'dil_conv_3x3', 'dil_conv_5x5', 'output']

When running the code with default settings, as the evolution progresses, it seems that only architectures composed solely of 'sep_conv_3x3' and 'sep_conv_5x5' operations are considered for computation.

INFO  Best architecture: [Genotype(normal=[('sep_conv_5x5', 1), ('sep_conv_5x5', 0), ('sep_conv_3x3', 2), ('sep_conv_3x3', 2), ('sep_conv_3x3', 3), ('sep_conv_5x5', 3), ('sep_conv_3x3', 4), ('sep_conv_3x3', 3)], normal_concat=[2, 3, 4, 5], reduce=[('sep_conv_5x5', 1), ('sep_conv_5x5', 0), ('sep_conv_3x3', 2), ('sep_conv_3x3', 2), ('sep_conv_3x3', 3), ('sep_conv_5x5', 3), ('sep_conv_3x3', 4), ('sep_conv_3x3', 3)], reduce_concat=[2, 3, 4, 5]), 12238.230642330227, 20, 1348, 1302]

I am curious about the specific argument settings used in Appendix F experiments! Also, could you provide information on the swap scores for the architecture results in Figures 18, 19, 20, and 21?
Additionally, I am curious about whether there should be additional constraints in the mutation part of evolutionary search that are not present in the code.
Thank you.

Hello,
I ran the previous version of the code that contains search.py.
The code has the following default settings:
args = Namespace(cycles=50, data_path='datasets', dataset_name='cifar10', device='cuda', history_path='histories', init_channels=3, input_batch=16, input_dim=32, layers=1, log_path='logs', mutation_times=68, num_classes=10, population_size=128, repeats=32, sample_size=64, search_space='DARTS', seed=0)

args = Namespace(cycles=50, data_path='datasets', dataset_name='cifar10', device='cuda', history_path='histories', init_channels=3, input_batch=16, input_dim=32, layers=1, log_path='logs', mutation_times=68, num_classes=10, population_size=128, repeats=32, sample_size=64, search_space='DARTS', seed=0)

# DARTS search space
OPERATIONS = ['input', 'max_pool_3x3', 'avg_pool_3x3', 'skip_connect', 'sep_conv_3x3', 'sep_conv_5x5', 'dil_conv_3x3', 'dil_conv_5x5', 'output']

OPERATIONS = ['input', 'max_pool_3x3', 'avg_pool_3x3', 'skip_connect', 'sep_conv_3x3', 'sep_conv_5x5', 'dil_conv_3x3', 'dil_conv_5x5', 'output']

When running the code with default settings, as the evolution progresses, it seems that only architectures composed solely of 'sep_conv_3x3' and 'sep_conv_5x5' operations are considered for computation.

INFO  Best architecture: [Genotype(normal=[('sep_conv_5x5', 1), ('sep_conv_5x5', 0), ('sep_conv_3x3', 2), ('sep_conv_3x3', 2), ('sep_conv_3x3', 3), ('sep_conv_5x5', 3), ('sep_conv_3x3', 4), ('sep_conv_3x3', 3)], normal_concat=[2, 3, 4, 5], reduce=[('sep_conv_5x5', 1), ('sep_conv_5x5', 0), ('sep_conv_3x3', 2), ('sep_conv_3x3', 2), ('sep_conv_3x3', 3), ('sep_conv_5x5', 3), ('sep_conv_3x3', 4), ('sep_conv_3x3', 3)], reduce_concat=[2, 3, 4, 5]), 12238.230642330227, 20, 1348, 1302]

I am curious about the specific argument settings used in Appendix F experiments! Also, could you provide information on the swap scores for the architecture results in Figures 18, 19, 20, and 21?
Additionally, I am curious about whether there should be additional constraints in the mutation part of evolutionary search that are not present in the code.
Thank you.

Hi,
The default setting in the version you're running is automatically set mu and sigma based on maximum and mean values (line 90&91 in search.py), thus it leads to large models which only contain convoutional operations. If you wanna find models with different sizes, like Figures 18-21, you need to manually set the regularisation parameter, e.g., set mu to 0.5 if the model size distribution is 0.1-1.5 etc.


declarationMap does not work when finding references of some module to a project that consumed it

TypeScript Version:  3.6.2

Search Terms: declarationMap
Code
Finding references here:
https://github.com/xtermjs/xterm.js/blob/91691085f666a712b268bf74b90d6684e1829b16/src/common/input/Keyboard.ts#L38
Expected behavior:
Should find the reference in Terminal.ts because declarationMap is true. Here is find all references from the declaration file which is what I expect when using it on the implementation:

Actual behavior:
It doesn't find outside of the common project:

This is one of the issues that must be fixed before I would recommend adopting project references inside VS Code.

@Tyriar can you please provide tsserver log so we know what files were open and whats going on. Also #32028 might interest you and doesn't depend on declarationMap… There is a drop https://github.com/microsoft/TypeScript/pull/32028#issuecomment-528673751 here is something you would want to try.

tsserver log:

Info 0    [9:48:6.398] Starting TS Server
Info 1    [9:48:6.401] Version: 3.6.3-insiders.20190909
Info 2    [9:48:6.401] Arguments: /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper.app/Contents/MacOS/Code - Insiders Helper /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /var/folders/qp/2jw84z9n14ggbylqzf710v3w0000gn/T/vscode-typescript501/ac76aa6318dd1c3617c9/tscancellation-9065031ae69ac3d76fe0.tmp* --logVerbosity verbose --logFile /Users/daimms/Library/Application Support/Code - Insiders/logs/20190912T111112/exthost2/vscode.typescript-language-features/tsserver-log-4DNIXH/tsserver.log --globalPlugins typescript-tslint-plugin --pluginProbeLocations /Users/daimms/.vscode-insiders/extensions/ms-vscode.vscode-typescript-tslint-plugin-1.2.2 --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation
Info 3    [9:48:6.401] Platform: darwin NodeVersion: 10 CaseSensitive: false
Info 4    [9:48:6.409] Binding...
Info 5    [9:48:6.417] request:
    {"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true}}}
Info 6    [9:48:6.418] Host information vscode
Info 7    [9:48:6.418] response:
    {"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 8    [9:48:6.419] 0::configure: async elapsed time (in milliseconds) 1.8858
Info 9    [9:48:6.419] request:
    {"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true}}}
Info 10   [9:48:6.420] Scheduled: *ensureProjectForOpenFiles*
Perf 11   [9:48:6.420] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.9172
Info 12   [9:48:6.420] response:
    {"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 13   [9:48:6.421] event:
    {"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":268}}
Info 14   [9:48:6.421] request:
    {"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"/Users/daimms/dev/Tyriar/xterm.js/src/common/input/Keyboard.ts","fileContent":"/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * @license MIT\n */\n\nimport { IKeyboardEvent, IKeyboardResult, KeyboardResultType } from 'common/Types';\nimport { C0 } from 'common/data/EscapeSequences';\n\n// reg + shift key mappings for digits and special chars\nconst KEYCODE_KEY_MAPPINGS: { [key: number]: [string, string]} = {\n  // digits 0-9\n  48: ['0', ')'],\n  49: ['1', '!'],\n  50: ['2', '@'],\n  51: ['3', '#'],\n  52: ['4', '$'],\n  53: ['5', '%'],\n  54: ['6', '^'],\n  55: ['7', '&'],\n  56: ['8', '*'],\n  57: ['9', '('],\n\n  // special chars\n  186: [';', ':'],\n  187: ['=', '+'],\n  188: [',', '<'],\n  189: ['-', '_'],\n  190: ['.', '>'],\n  191: ['/', '?'],\n  192: ['`', '~'],\n  219: ['[', '{'],\n  220: ['\\\\', '|'],\n  221: [']', '}'],\n  222: ['\\'', '\"']\n};\n\nexport function evaluateKeyboardEvent(\n  ev: IKeyboardEvent,\n  applicationCursorMode: boolean,\n  isMac: boolean,\n  macOptionIsMeta: boolean\n): IKeyboardResult {\n  const result: IKeyboardResult = {\n    type: KeyboardResultType.SEND_KEY,\n    // Whether to cancel event propagation (NOTE: this may not be needed since the event is\n    // canceled at the end of keyDown\n    cancel: false,\n    // The new key even to emit\n    key: undefined\n  };\n  const modifiers = (ev.shiftKey ? 1 : 0) | (ev.altKey ? 2 : 0) | (ev.ctrlKey ? 4 : 0) | (ev.metaKey ? 8 : 0);\n  switch (ev.keyCode) {\n    case 0:\n      if (ev.key === 'UIKeyInputUpArrow') {\n        if (applicationCursorMode) {\n          result.key = C0.ESC + 'OA';\n        } else {\n          result.key = C0.ESC + '[A';\n        }\n      }\n      else if (ev.key === 'UIKeyInputLeftArrow') {\n        if (applicationCursorMode) {\n          result.key = C0.ESC + 'OD';\n        } else {\n          result.key = C0.ESC + '[D';\n        }\n      }\n      else if (ev.key === 'UIKeyInputRightArrow') {\n        if (applicationCursorMode) {\n          result.key = C0.ESC + 'OC';\n        } else {\n          result.key = C0.ESC + '[C';\n        }\n      }\n      else if (ev.key === 'UIKeyInputDownArrow') {\n        if (applicationCursorMode) {\n          result.key = C0.ESC + 'OB';\n        } else {\n          result.key = C0.ESC + '[B';\n        }\n      }\n      break;\n    case 8:\n      // backspace\n      if (ev.shiftKey) {\n        result.key = C0.BS; // ^H\n        break;\n      } else if (ev.altKey) {\n        result.key = C0.ESC + C0.DEL; // \\e ^?\n        break;\n      }\n      result.key = C0.DEL; // ^?\n      break;\n    case 9:\n      // tab\n      if (ev.shiftKey) {\n        result.key = C0.ESC + '[Z';\n        break;\n      }\n      result.key = C0.HT;\n      result.cancel = true;\n      break;\n    case 13:\n      // return/enter\n      result.key = C0.CR;\n      result.cancel = true;\n      break;\n    case 27:\n      // escape\n      result.key = C0.ESC;\n      result.cancel = true;\n      break;\n    case 37:\n      // left-arrow\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'D';\n        // HACK: Make Alt + left-arrow behave like Ctrl + left-arrow: move one word backwards\n        // http://unix.stackexchange.com/a/108106\n        // macOS uses different escape sequences than linux\n        if (result.key === C0.ESC + '[1;3D') {\n          result.key = isMac ? C0.ESC + 'b' : C0.ESC + '[1;5D';\n        }\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OD';\n      } else {\n        result.key = C0.ESC + '[D';\n      }\n      break;\n    case 39:\n      // right-arrow\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'C';\n        // HACK: Make Alt + right-arrow behave like Ctrl + right-arrow: move one word forward\n        // http://unix.stackexchange.com/a/108106\n        // macOS uses different escape sequences than linux\n        if (result.key === C0.ESC + '[1;3C') {\n          result.key = isMac ? C0.ESC + 'f' : C0.ESC + '[1;5C';\n        }\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OC';\n      } else {\n        result.key = C0.ESC + '[C';\n      }\n      break;\n    case 38:\n      // up-arrow\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'A';\n        // HACK: Make Alt + up-arrow behave like Ctrl + up-arrow\n        // http://unix.stackexchange.com/a/108106\n        if (result.key === C0.ESC + '[1;3A') {\n          result.key = C0.ESC + '[1;5A';\n        }\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OA';\n      } else {\n        result.key = C0.ESC + '[A';\n      }\n      break;\n    case 40:\n      // down-arrow\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'B';\n        // HACK: Make Alt + down-arrow behave like Ctrl + down-arrow\n        // http://unix.stackexchange.com/a/108106\n        if (result.key === C0.ESC + '[1;3B') {\n          result.key = C0.ESC + '[1;5B';\n        }\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OB';\n      } else {\n        result.key = C0.ESC + '[B';\n      }\n      break;\n    case 45:\n      // insert\n      if (!ev.shiftKey && !ev.ctrlKey) {\n        //  or  +  are used to\n        // copy-paste on some systems.\n        result.key = C0.ESC + '[2~';\n      }\n      break;\n    case 46:\n      // delete\n      if (modifiers) {\n        result.key = C0.ESC + '[3;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[3~';\n      }\n      break;\n    case 36:\n      // home\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'H';\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OH';\n      } else {\n        result.key = C0.ESC + '[H';\n      }\n      break;\n    case 35:\n      // end\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'F';\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OF';\n      } else {\n        result.key = C0.ESC + '[F';\n      }\n      break;\n    case 33:\n      // page up\n      if (ev.shiftKey) {\n        result.type = KeyboardResultType.PAGE_UP;\n      } else {\n        result.key = C0.ESC + '[5~';\n      }\n      break;\n    case 34:\n      // page down\n      if (ev.shiftKey) {\n        result.type = KeyboardResultType.PAGE_DOWN;\n      } else {\n        result.key = C0.ESC + '[6~';\n      }\n      break;\n    case 112:\n      // F1-F12\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'P';\n      } else {\n        result.key = C0.ESC + 'OP';\n      }\n      break;\n    case 113:\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'Q';\n      } else {\n        result.key = C0.ESC + 'OQ';\n      }\n      break;\n    case 114:\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'R';\n      } else {\n        result.key = C0.ESC + 'OR';\n      }\n      break;\n    case 115:\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'S';\n      } else {\n        result.key = C0.ESC + 'OS';\n      }\n      break;\n    case 116:\n      if (modifiers) {\n        result.key = C0.ESC + '[15;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[15~';\n      }\n      break;\n    case 117:\n      if (modifiers) {\n        result.key = C0.ESC + '[17;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[17~';\n      }\n      break;\n    case 118:\n      if (modifiers) {\n        result.key = C0.ESC + '[18;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[18~';\n      }\n      break;\n    case 119:\n      if (modifiers) {\n        result.key = C0.ESC + '[19;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[19~';\n      }\n      break;\n    case 120:\n      if (modifiers) {\n        result.key = C0.ESC + '[20;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[20~';\n      }\n      break;\n    case 121:\n      if (modifiers) {\n        result.key = C0.ESC + '[21;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[21~';\n      }\n      break;\n    case 122:\n      if (modifiers) {\n        result.key = C0.ESC + '[23;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[23~';\n      }\n      break;\n    case 123:\n      if (modifiers) {\n        result.key = C0.ESC + '[24;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[24~';\n      }\n      break;\n    default:\n      // a-z and space\n      if (ev.ctrlKey && !ev.shiftKey && !ev.altKey && !ev.metaKey) {\n        if (ev.keyCode >= 65 && ev.keyCode <= 90) {\n          result.key = String.fromCharCode(ev.keyCode - 64);\n        } else if (ev.keyCode === 32) {\n          // NUL\n          result.key = String.fromCharCode(0);\n        } else if (ev.keyCode >= 51 && ev.keyCode <= 55) {\n          // escape, file sep, group sep, record sep, unit sep\n          result.key = String.fromCharCode(ev.keyCode - 51 + 27);\n        } else if (ev.keyCode === 56) {\n          // delete\n          result.key = String.fromCharCode(127);\n        } else if (ev.keyCode === 219) {\n          // ^[ - Control Sequence Introducer (CSI)\n          result.key = String.fromCharCode(27);\n        } else if (ev.keyCode === 220) {\n          // ^\\ - String Terminator (ST)\n          result.key = String.fromCharCode(28);\n        } else if (ev.keyCode === 221) {\n          // ^] - Operating System Command (OSC)\n          result.key = String.fromCharCode(29);\n        }\n      } else if ((!isMac || macOptionIsMeta) && ev.altKey && !ev.metaKey) {\n        // On macOS this is a third level shift when !macOptionIsMeta.

Info 5    [9:50:43.973] request:
    {"seq":0,"type":"request","command":"configure","arguments":{"hostInfo":"vscode","preferences":{"providePrefixAndSuffixTextForRename":true,"allowRenameOfImportPath":true}}}
Info 6    [9:50:43.973] Host information vscode
Info 7    [9:50:43.974] response:
    {"seq":0,"type":"response","command":"configure","request_seq":0,"success":true}
Perf 8    [9:50:43.975] 0::configure: async elapsed time (in milliseconds) 2.0077
Info 9    [9:50:43.975] request:
    {"seq":1,"type":"request","command":"compilerOptionsForInferredProjects","arguments":{"options":{"module":"commonjs","target":"es2016","jsx":"preserve","allowJs":true,"allowSyntheticDefaultImports":true,"allowNonTsExtensions":true}}}
Info 10   [9:50:43.976] Scheduled: *ensureProjectForOpenFiles*
Perf 11   [9:50:43.976] 1::compilerOptionsForInferredProjects: elapsed time (in milliseconds) 0.9087
Info 12   [9:50:43.976] response:
    {"seq":0,"type":"response","command":"compilerOptionsForInferredProjects","request_seq":1,"success":true,"body":true}
Info 13   [9:50:43.977] event:
    {"seq":0,"type":"event","event":"typingsInstallerPid","body":{"pid":661}}
Info 14   [9:50:43.977] request:
    {"seq":2,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":[],"openFiles":[{"file":"/Users/daimms/dev/Tyriar/xterm.js/src/common/input/Keyboard.ts","fileContent":"/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * @license MIT\n */\n\nimport { IKeyboardEvent, IKeyboardResult, KeyboardResultType } from 'common/Types';\nimport { C0 } from 'common/data/EscapeSequences';\n\n// reg + shift key mappings for digits and special chars\nconst KEYCODE_KEY_MAPPINGS: { [key: number]: [string, string]} = {\n  // digits 0-9\n  48: ['0', ')'],\n  49: ['1', '!'],\n  50: ['2', '@'],\n  51: ['3', '#'],\n  52: ['4', '$'],\n  53: ['5', '%'],\n  54: ['6', '^'],\n  55: ['7', '&'],\n  56: ['8', '*'],\n  57: ['9', '('],\n\n  // special chars\n  186: [';', ':'],\n  187: ['=', '+'],\n  188: [',', '<'],\n  189: ['-', '_'],\n  190: ['.', '>'],\n  191: ['/', '?'],\n  192: ['`', '~'],\n  219: ['[', '{'],\n  220: ['\\\\', '|'],\n  221: [']', '}'],\n  222: ['\\'', '\"']\n};\n\nexport function evaluateKeyboardEvent(\n  ev: IKeyboardEvent,\n  applicationCursorMode: boolean,\n  isMac: boolean,\n  macOptionIsMeta: boolean\n): IKeyboardResult {\n  const result: IKeyboardResult = {\n    type: KeyboardResultType.SEND_KEY,\n    // Whether to cancel event propagation (NOTE: this may not be needed since the event is\n    // canceled at the end of keyDown\n    cancel: false,\n    // The new key even to emit\n    key: undefined\n  };\n  const modifiers = (ev.shiftKey ? 1 : 0) | (ev.altKey ? 2 : 0) | (ev.ctrlKey ? 4 : 0) | (ev.metaKey ? 8 : 0);\n  switch (ev.keyCode) {\n    case 0:\n      if (ev.key === 'UIKeyInputUpArrow') {\n        if (applicationCursorMode) {\n          result.key = C0.ESC + 'OA';\n        } else {\n          result.key = C0.ESC + '[A';\n        }\n      }\n      else if (ev.key === 'UIKeyInputLeftArrow') {\n        if (applicationCursorMode) {\n          result.key = C0.ESC + 'OD';\n        } else {\n          result.key = C0.ESC + '[D';\n        }\n      }\n      else if (ev.key === 'UIKeyInputRightArrow') {\n        if (applicationCursorMode) {\n          result.key = C0.ESC + 'OC';\n        } else {\n          result.key = C0.ESC + '[C';\n        }\n      }\n      else if (ev.key === 'UIKeyInputDownArrow') {\n        if (applicationCursorMode) {\n          result.key = C0.ESC + 'OB';\n        } else {\n          result.key = C0.ESC + '[B';\n        }\n      }\n      break;\n    case 8:\n      // backspace\n      if (ev.shiftKey) {\n        result.key = C0.BS; // ^H\n        break;\n      } else if (ev.altKey) {\n        result.key = C0.ESC + C0.DEL; // \\e ^?\n        break;\n      }\n      result.key = C0.DEL; // ^?\n      break;\n    case 9:\n      // tab\n      if (ev.shiftKey) {\n        result.key = C0.ESC + '[Z';\n        break;\n      }\n      result.key = C0.HT;\n      result.cancel = true;\n      break;\n    case 13:\n      // return/enter\n      result.key = C0.CR;\n      result.cancel = true;\n      break;\n    case 27:\n      // escape\n      result.key = C0.ESC;\n      result.cancel = true;\n      break;\n    case 37:\n      // left-arrow\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'D';\n        // HACK: Make Alt + left-arrow behave like Ctrl + left-arrow: move one word backwards\n        // http://unix.stackexchange.com/a/108106\n        // macOS uses different escape sequences than linux\n        if (result.key === C0.ESC + '[1;3D') {\n          result.key = isMac ? C0.ESC + 'b' : C0.ESC + '[1;5D';\n        }\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OD';\n      } else {\n        result.key = C0.ESC + '[D';\n      }\n      break;\n    case 39:\n      // right-arrow\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'C';\n        // HACK: Make Alt + right-arrow behave like Ctrl + right-arrow: move one word forward\n        // http://unix.stackexchange.com/a/108106\n        // macOS uses different escape sequences than linux\n        if (result.key === C0.ESC + '[1;3C') {\n          result.key = isMac ? C0.ESC + 'f' : C0.ESC + '[1;5C';\n        }\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OC';\n      } else {\n        result.key = C0.ESC + '[C';\n      }\n      break;\n    case 38:\n      // up-arrow\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'A';\n        // HACK: Make Alt + up-arrow behave like Ctrl + up-arrow\n        // http://unix.stackexchange.com/a/108106\n        if (result.key === C0.ESC + '[1;3A') {\n          result.key = C0.ESC + '[1;5A';\n        }\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OA';\n      } else {\n        result.key = C0.ESC + '[A';\n      }\n      break;\n    case 40:\n      // down-arrow\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'B';\n        // HACK: Make Alt + down-arrow behave like Ctrl + down-arrow\n        // http://unix.stackexchange.com/a/108106\n        if (result.key === C0.ESC + '[1;3B') {\n          result.key = C0.ESC + '[1;5B';\n        }\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OB';\n      } else {\n        result.key = C0.ESC + '[B';\n      }\n      break;\n    case 45:\n      // insert\n      if (!ev.shiftKey && !ev.ctrlKey) {\n        //  or  +  are used to\n        // copy-paste on some systems.\n        result.key = C0.ESC + '[2~';\n      }\n      break;\n    case 46:\n      // delete\n      if (modifiers) {\n        result.key = C0.ESC + '[3;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[3~';\n      }\n      break;\n    case 36:\n      // home\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'H';\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OH';\n      } else {\n        result.key = C0.ESC + '[H';\n      }\n      break;\n    case 35:\n      // end\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'F';\n      } else if (applicationCursorMode) {\n        result.key = C0.ESC + 'OF';\n      } else {\n        result.key = C0.ESC + '[F';\n      }\n      break;\n    case 33:\n      // page up\n      if (ev.shiftKey) {\n        result.type = KeyboardResultType.PAGE_UP;\n      } else {\n        result.key = C0.ESC + '[5~';\n      }\n      break;\n    case 34:\n      // page down\n      if (ev.shiftKey) {\n        result.type = KeyboardResultType.PAGE_DOWN;\n      } else {\n        result.key = C0.ESC + '[6~';\n      }\n      break;\n    case 112:\n      // F1-F12\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'P';\n      } else {\n        result.key = C0.ESC + 'OP';\n      }\n      break;\n    case 113:\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'Q';\n      } else {\n        result.key = C0.ESC + 'OQ';\n      }\n      break;\n    case 114:\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'R';\n      } else {\n        result.key = C0.ESC + 'OR';\n      }\n      break;\n    case 115:\n      if (modifiers) {\n        result.key = C0.ESC + '[1;' + (modifiers + 1) + 'S';\n      } else {\n        result.key = C0.ESC + 'OS';\n      }\n      break;\n    case 116:\n      if (modifiers) {\n        result.key = C0.ESC + '[15;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[15~';\n      }\n      break;\n    case 117:\n      if (modifiers) {\n        result.key = C0.ESC + '[17;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[17~';\n      }\n      break;\n    case 118:\n      if (modifiers) {\n        result.key = C0.ESC + '[18;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[18~';\n      }\n      break;\n    case 119:\n      if (modifiers) {\n        result.key = C0.ESC + '[19;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[19~';\n      }\n      break;\n    case 120:\n      if (modifiers) {\n        result.key = C0.ESC + '[20;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[20~';\n      }\n      break;\n    case 121:\n      if (modifiers) {\n        result.key = C0.ESC + '[21;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[21~';\n      }\n      break;\n    case 122:\n      if (modifiers) {\n        result.key = C0.ESC + '[23;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[23~';\n      }\n      break;\n    case 123:\n      if (modifiers) {\n        result.key = C0.ESC + '[24;' + (modifiers + 1) + '~';\n      } else {\n        result.key = C0.ESC + '[24~';\n      }\n      break;\n    default:\n      // a-z and space\n      if (ev.ctrlKey && !ev.shiftKey && !ev.altKey && !ev.metaKey) {\n        if (ev.keyCode >= 65 && ev.keyCode <= 90) {\n          result.key = String.fromCharCode(ev.keyCode - 64);\n        } else if (ev.keyCode === 32) {\n          // NUL\n          result.key = String.fromCharCode(0);\n        } else if (ev.keyCode >= 51 && ev.keyCode <= 55) {\n          // escape, file sep, group sep, record sep, unit sep\n          result.key = String.fromCharCode(ev.keyCode - 51 + 27);\n        } else if (ev.keyCode === 56) {\n          // delete\n          result.key = String.fromCharCode(127);\n        } else if (ev.keyCode === 219) {\n          // ^[ - Control Sequence Introducer (CSI)\n          result.key = String.fromCharCode(27);\n        } else if (ev.keyCode === 220) {\n          // ^\\ - String Terminator (ST)\n          result.key = String.fromCharCode(28);\n        } else if (ev.keyCode === 221) {\n          // ^] - Operating System Command (OSC)\n          result.key = String.fromCharCode(29);\n        }\n      } else if ((!isMac || macOptionIsMeta) && ev.altKey && !ev.metaKey) {\n        // On macOS this is a third level shift when !macOptionIsMeta.  I don't see any log.

@sheetalkamat click the "> Details"

@Tyriar I don't see any other project being open that can be looked up.. Eg.  I think if you open one of the file that references the file from the project that's currently open, tsserver would find the references correctly. At moment it does not lookup at any project other than already opened projects or the projects they reference if the definition falls into the referenced projects.
However I have #33287 which is on top of #32028 that will walk to find solution like files and load those projects when finding references. Can you please try out the drop from it and see if that helps. Also please share the log from this drop and your directory structure where the usage should have been located if that doesn't work. Thanks.

@sheetalkamat here are steps to reproduce the issue:

git clone https://github.com/xtermjs/xterm.js
Open in VS Code
Run yarn in terminal, this get deps and do a full build
Go to keyboard.ts, shift+F12 and try to navigate to the usage of evaluateKeyboardEvent in Terminal.ts

@sheetalkamat even if both files are open, the refs differ depending on where you start the search:

Is it because the leaf-node projects aren't looking for downstream references or something?

Looking into it

@Tyriar I definitely see that #33287 helps with your expectation to find reference in terminal.ts even when it is not yet opened yet when you look for reference in keyboard.ts. Its a work in progress and so surely not in 3.7 but could be in 3.8
PS: I am investigating why we see different behavior with declaration maps

@sheetalkamat that looks good, seem a little slow though. Once this is done the first time will is cache the project so successive requests are fast?

yes.. its loading those projects... (so its like initial time to open file from each project that's loaded as part of that I think in your case its two projects, browser and src itself, )

So the issue seems to be src\tsconfig.json root files also includes keyboard.ts (which is then mapped to d.ts file in the actually program but project thinks all rootFiles are attached to project so sends keyboard.ts and position as input to language-service operation which is wrong since it maps to d.ts with the same position instead.


Twitter Bootstrap Js (tabs, popups, dropdown) not working in Drupal

Firstly I design the site & convert it into HTML using Twitter bootstrap. The static model of my site is working absolutely fine all tabs popup etc working just fine. But when I give the HTML to developer’s for dynamic code & template creating all things stop working only UI is there but no tabs, popup, dropdown is working I check the JS paths they all are fine. developer even plugged in the jQuery simple tabs they are working fine but twitter bootstrap JS is not working any idea why? Please HELP else I have to design all those things again in jQuery & customize it as per the twitter bootstrap UI :’(

Do you get any JS errors? Are all the JS files included correctly?

could be you're including jquery ui and bootstrap plugins. If that is the case you need to make sure to include the bootstrap plugins after the jquery ui as they compete for namespaces.


Move symfony/translation to dev-dependencies

What was changed
I've moved the dependency for symfony/translation to the dev-dependencies
Why?
The version constraint for symfony/translation is very narrow. Currently this severely restricts where the sdk can be installed.
As far as I can tell, this is only to support the test suite, so I've moved it to the dev dependencies. nesbot/carbon provides its own, much wider, dependency constraint on symfony/translation.
Checklist

Closes

NA

How was this tested:

I've struggled to run some of the test suites locally (specifically Temporal\Tests\Functional\Client\ActivityCompletionClientTestCase never seems to pass locally). However, the rest of the tests continue to pass, and I'm using my fork of this in my own project without any issues.

Any docs updates needed?

None

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


KAFKA-8613: KIP-633 New APIs for Controlling Grace Period for Windowed Operations

[KAFKA-8613] Make grace period mandatory
KIP-633 New APIs for Controlling Grace Period for Windowed Operations

Added API changes by KIP-633 for JoinWindows, SessionWindows, TimeWindows and SlidingWindows
Renamed Windows.DEFAULT_GRACE_PERIOD_MS to DEPRECATED_OLD_24_HR_GRACE_PERIOD
Added new constant Windows.NO_GRACE_PERIOD to avoid magic constants when 0 is specified as grace Period
Added preliminary Java unit test cases for new API methods
Replaced Deprecated calls with equivalent in Examples
Replaced Deprecated API calls in Scala tests with updated API method calls
Added Deprecation suppression in Tests for deprecated API method calls in Java and Scala Tests

@ableegoldman @mjsax @cadonna @showuon please review when you have a moment
I apologize in advance but I was unable to merge the new changes into the old PR
https://github.com/apache/kafka/pull/10740
I spent a lot of time trying to rebase and merge but it just did not work. So I had to create a new branch and a new PR without the conflicts.

@showuon @ableegoldman @mjsax @cadonna
I have updated the PR with the requested changes. Please take a look when you have a moment. Thanks.

Thanks for the PR @izzyacademy and contrast to your first contribution!
Merged to meet the feature freeze deadline. Open comments can be addressed in follow up PRs.


error - DOMException [TimeoutError]: The operation was aborted due to timeout

Hi! Very cool project - attempting to run the inference server and the web app locally. The application seems to timeout when its generating the audio file. I've attached screenshots of my logs below, I'm running Node 19.2 as recommended in other issues threads.
RIFFUSION-APP

RIFFUSION-INFERENCE

localhost:3000

Ah yes! There is a timeout parameter in https://github.com/riffusion/riffusion-app/blob/main/pages/api/server.js which is set to 15 seconds. It's timing out since your inference is slightly slower than that. Feel free to increase it on your end, but I will change the default to 30 seconds for you.


Add support for Bun runtime / package manager

Feature Request
As this library's focus is performance, it would be great if it also supported Bun (https://bun.sh/), so that we can get the fastest validation library with the fastest runtime working together.

Not possible to support bun because it does not support transform API

Why wouldn't be a performance gain if the resulting JS is executed by Bun?

I do not know the reason why \o/.

It would he interesting study to researching the reason why like below article, but I do not have enough time to do it right now. Maybe possible at next year
https://dev.to/samchon/secret-of-typia-how-it-could-be-20000x-faster-validator-hidden-class-optimization-in-v8-engine-1mfb

is this transform api relevant to support bun?

You can run it on bun with unplugin-typia.
https://typia.io/docs/setup/#unplugin-typia


Workspace – User with offline default avatar present in member list if invited offline

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v9.0.17-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4828203
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:

Go to https://staging.new.expensify.com/
Log in with Gmail account
Create a workspace
Open Members tab
Go offline
Invite a member (Gmail account) you never chat before
Go online

Expected Result:
User with existing avatar present in member list
Actual Result:
User with offline default avatar present in member list
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[x] Android: mWeb Chrome
[ ] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/464c11d9-e8b7-4737-851b-6b4542560a63

View all open jobs on GitHub

We think that this bug might be related to #vip-vsb

@mallenexpensify  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

Unable to repro, It just took a bit for the avatar to update

https://github.com/user-attachments/assets/935b4e29-0932-4163-8c0a-9f658e74e6fa

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

@mallenexpensify When a new user is invited we create a pseudo-personal detail until the real personal data is received from the server and this psuedo-personal detail obviously doesn't have an avatar so even if you turn online it takes a bit to receive the real personal data from the server in that time gap you will see default avatar. This is not a bug.

Thanks @FitseTLT , going to close cuz what you said makes sense to me


Learn Intermediate OOP by Building a Platformer Game - Step 42 - strict test

Describe the Issue
these 2 if statements are functionally equivalent and yet one passes and the other does not pass, took me over a half hour, and made me a very sad panda
if(keys.rightKey.pressed && player.position.x < 400) {
}
if (keys.rightKey.pressed === true && player.position.x < 400) {
}
the problem is that later the keys are defined with press as false, which makes you assume you need to check if it is true, though you do not, and that is horribly confusing and stupid.
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-intermediate-oop-by-building-a-platformer-game/step-42
Your code

if(keys.rightKey.pressed && player.position.x < 400) {
}
if (keys.rightKey.pressed === true && player.position.x < 400) {
}
Expected behavior
I expected to pass and be done with this in 2 minutes or less.
Screenshots
No response
System

Device: [e.g. iPhone 6, Laptop]
OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
Browser: [e.g. Chrome, Safari]
Version: [e.g. 22]

Additional context
No response

The === operator checks for strict equality, meaning both the value and the type must match. So, keys.rightKey.pressed must be the boolean true, not just any truthy value.
In this case, even if keys.rightKey.pressed is 1, "some string", or {}, the condition will not evaluate as true. It will only be true if keys.rightKey.pressed is exactly true.
So the elegant way of writing if condition is first one only because in tests keys.rightKey.pressed can be equal to anything some timestamp or anything

so would just using 2 equals signs work then?

I am just saying that your code is tested in backend and test is written is such a way that it will handle only first if statement otherwise your second if statement is also correct.

I am just saying that your code is tested in backend and test is written

The tests are in the frontend code and use a regex
assert.match(animate.toString(), /keys\.rightKey\.pressed\s*&&\s*player\.position\.x\s*<\s*400/);

Even though keys.rightKey.pressed && player.position.x < 400 would be more common in JS apps, we should allow keys.rightKey.pressed === true because a lot campers will still feel more comfortable writing that and the tests should allow for either answer.
hope that helps 👍

Thank you, I appreciate it.


Fix ASGs

AWS called it "AsTags" instead of the actual "Tags" option

Coverage remained the same at 100.0% when pulling 2bc113873e93228d5be2bc5d4075b1066d8a0080 on fix-asgs into e2899c45beeb6428ca32fda0a442bddfb6faea9a on master.


Passing of label during Image Inference

Is it possible to pass the label while we infer the image using an encoder? Here encoder is trained using a labeled dataset and network. If you can share some ideas for changes to be done.
Thank you.

Hello @rut00, Did you find a solution to the issue? I also have an encoder trained over a labeled dataset and StyleGAN network.
Also, I observed that the avg_image generated each time respects only one label.
@yuval-alaluf  Can you please help me out regarding the issue?

I am not sure the motivation for using an encoder trained on labeled data in order to find the latent for representing an image. These are two seemingly different tasks. Maybe the encoder trained on labeled data can give better embeddings if you're trying to embed multiple classes into the same latent space, but even then, I am not sure if you will see much of a difference.
Could you provide some more details on exactly why you want to use labeled data here?

We want inferred images to be generated with the label we pass. In the case of a generator trained over a labeled dataset, generated images have the same label that we pass but in the case of an encoder, it always infers the image with the label that the average image has. So how to tell the encoder to use different labels?

You will need to train something yourself. I am not sure how I would go about this, and it seems like you will need to think of some modifications yourself in order to get something like this to work. So unfortunately, you're on your own here.


Fixed ipv4 host binding and sockjs proxy exclusion

Hi,
After initial setup of the plugin I ran into some bugs.
The first bug I identified was the fact that the express server was not binding correctly.
The second being the fact that sockjs was being proxied to the express server even though it should not. While I am not certain I believe sockjs is used for communication between the frontend and devServer.
Both can be seen in the image below.

Host Binding Fix
Looking at the the server.listen() definition we can see that the default behavior is to bind to ipv6 if enabled. Propagating the host variable to the function call fixed this issue.
Proxy Sockjs Fix
I did not find an easy way to exclude paths in the proxy definition so I opted to create a proxy spec for each route that should be proxied to the express server. This was done by saving the express routes information in parallel with the serverUrl information.
Result

Thanks for the plugin!

Hi, thanks for your contribution!
I didn't know for the server.listen function, thanks for that.
I will have specific questions about the proxy part.
Could you please separate that in both PRs for the both fixes/features?
Thanks.

PR has been split.
Fire away with you questions when you can.

Thanks.


can't build on non mac pc

getPassword in Example/android/app/build.gradle uses the command security.
AFAIK security is a mac only program, and so syncing gradle with android studio failed on linux.
overwriting it with some mundane value seems to work, since I'm not actually releasing.

FYI @sertony


significant performance drop (x10 times slower) when rendering a TextField

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
two samples (v4 and v5) identical and render 3000 TextFields
Steps:

open v5 version  https://codesandbox.io/s/mui-v5-perf-pk1h1h
press reload button -> render takes 20s
open v4 version https://codesandbox.io/s/mui-v4-perf-x8v9ew
press reload button -> render takes 2s

Current behavior 😯
render takes 20 seconds
Expected behavior 🤔
rendering should be 2 seconds
Context 🔦
even a small number of text fields noticeably slows down page rendering
Your environment 🌎
No response

You can use the disableInjectingGlobalStyles option in the InputBase in scenarios like this, with the downside that you would need to add the global styles for the auto-fill keyframe yourself at the top of your app. See https://codesandbox.io/s/mui-v5-perf-forked-ogd8ks?file=/src/App.tsx
It's the second time we see an issue like this, so maybe it is worth adding a perf example on the Text Field page.

what is the cause of the issue? I am also having the same issue and slows the render of the whole component. When i use disableInjectingGlobalStyles its fine. Also can someone explain what is the  auto-fill keyframe? @mnajdova

Also can someone explain what is the auto-fill keyframe?

See this issue! https://github.com/mui/material-ui/pull/29213


Mobile Nav pulling extra blank link into nav

What should happen?
The mobile sub nav should only have 3 links showing up, but there is a 4th blank link that is part of the nav.
...
What happens instead?
There is a 4th link that shows up as white space at the bottom of the 3 links on the second level of links. In the inspector I found that 4th link is being pulled from the very last li element at the buttom of the first level of li elements. I was able to reproduce this bug in the codepen I have placed a link for below.
Possible Solution

...
Test Case and/or Steps to Reproduce (for bugs)
Okay so to see where this bug is you need to use the inspector. Then switch to mobile view in the inspector. click on the first top level element it will be labeled top level. Then on that second level of links is where you will find the bug. You have to right click and hit inspect directly below the last link so you the inspector will show you where it is. You can see in the ul there is an extra space, and in that ul you will find a li element that shouldn't be there.

Test Case: https://codepen.io/andrew-unger/pen/WNrGYWd
Context
The styles we are using makes it so that there is a blank spot where that unwanted li element is showing up and it makes the styling look bad. We want that element to not show up and that blank spot to not be there.
Your Environment

Foundation version(s) used: not sure
Browser(s) name and version(s): Chrome
Device, Operating System and version: windows 10 OS
Link to your project:

Checklist

[x] I have read and follow the CONTRIBUTING.md document.
[x] There are no other issues similar to this one.
[x] The issue title and template are correctly filled.

Hi @Aunger3,
please provide a codepen which reproduces / shows this issue.

Hi @Aunger3,
please provide a codepen which reproduces / shows this issue.

I apologize I placed the link in a comment and didn't realize it

There is a 4th link that shows up as white space at the bottom of the 3 links on the second level of links. In the inspector I found that 4th link is being pulled from the very last li element at the buttom of the first level of li elements. I was able to reproduce this bug in the codepen I have placed a link for below.

Can you clarify that with some screenshot and simplify the codepen by removing unneeded content?
Also please check if this still happens with v6.6.3.

I think this bug happens when there are more Top level nav elements than second level nav elements. To see the bug my codepen needs to have those extra top level elements but I have changed the top level to click here so you know where to find the bug. Once in that next level if you use the inspector you can find an extra li element that shouldn't be there. This is on the mobile nav so make sure you have mobile view enabled

There is a 4th link that shows up as white space at the bottom of the 3 links on the second level of links. In the inspector I found that 4th link is being pulled from the very last li element at the buttom of the first level of li elements. I was able to reproduce this bug in the codepen I have placed a link for below.

Can you clarify that with some screenshot and simplify the codepen by removing unneeded content?
Also please check if this still happens with v6.6.3.
https://codepen.io/DanielRuf/pen/OJMRrBw?editors=1010

here is what I'm trying to explain how to see the bug.

here is what I'm trying to explain how to see the bug.

In general this is the underlying (parent) menu.
Shorter submenues might not work as you can see.
Maybe some overflow setting might work or workaround with a transparent background.
Related: https://github.com/foundation/foundation-sites/issues/10478
Did you already try data-auto-height?
This should resolve your issue by applying the height to the whole wrapper:

https://codepen.io/DanielRuf/pen/OJMRrBw?editors=1010

here is what I'm trying to explain how to see the bug.

In general this is the underlying (parent) menu.
Shorter submenues might not work as you can see.
Maybe some overflow setting might work or workaround with a transparent background.
Related: #10478
Did you already try data-auto-height?
This should resolve your issue by applying the height to the whole wrapper:

https://codepen.io/DanielRuf/pen/OJMRrBw?editors=1010

I apologize for the late response but we have solved the issue. I haven't asked the other Dev how they did it, but I think they might have done something like the solution you gave. This can be closed.

Thanks for the feedback that you could solve it. Closing as requested.


Regression: JSON $ref not handled correctly in v6.1.1

Upgrading from v5.12.7 to v6.1.1 appears to have lost the ability to handle $ref tags in a JSON schema correctly.
The schema I obtain from the backend server contains the following item which references another schema definition in the same file, ie:
  "inputs": {
    "title": "Inputs",
    "type": [
      "array",
      "null"
    ],
    "items": {
      "type": "object",
      "$ref": "#/definitions/ProcessInputSchema", <== works fine in v5 but not in v6
      "title": "Inputs",
      "description": "The inputs to the process."
    },

Previously, in v5.12.7, this $ref was resolved correctly and resulted in the inputs field containing a fieldArray with all the items listed in the ProcessInputSchema. In version 6.1.1, the $ref seems to be ignored or skipped and the inputs field does not contain that fieldArray anymore.
Your Environment

Angular version: 15.1.4
Formly version: 6.1.1 (not working) & 5.12.7 (working)

Hi, could you please provide a stackblitz reproduction example 🙏
Thanks!

Seems working here (check references example) https://formly.dev/docs/examples/advanced/json-schema/
Feel free to leave a comment once you've got a reproduction example, thanks!

Hi,
Thanks for looking at this....
I finally got round to stripping all the irrelevant bits from the code.
This is the version that is not working, ie the one with formly 6.1
https://stackblitz.com/edit/angular-6m61yn?file=src%2Fapp%2Fapp.component.ts
The ap just shows a "clickme" link which you should click.
Observe the console output which logs the content of the generated field item that I am interested in: "inputs". It should contain an array of content (see original report).
The schema can be found in the asset folder.
Unfortunately, stackblitz doesn't want to run with the package-v5-working.json. However, when run locally with that file it does produce the necessary FieldArray.
I have attached 2 screenshots of the behaviour as well.
Cheers,
Steve
Version 5 working as expected:

Version 6 not working as expected:

fieldArray return a function since v6 which is mentioned in our   Migration Guide.
Based on your example you can the value of fieldArray through the following path: formlySchema[0].fieldGroup[6].fieldArray.
-- const fields = JSON.parse(JSON.stringify(formlySchema));
console.log("inputs contains a FieldArray")
-- console.log(fields[0].fieldGroup[6]);
++ console.log(formlySchema[0].fieldGroup[6])

Here is another example if you want to customize the output of fieldArray https://github.com/ngx-formly/ngx-formly/issues/3351#issuecomment-1179780848

@aitboudad
Great thanks! That works!
I did look at the migration guide in detail but that one didn't jump out to me...


Simplify the detect_deleted function

Use .indexOf instead of .forEach. Mainly for simplicity but
should be faster too; https://jsperf.com/js-for-loop-vs-array-indexof/8
Also add the missing dev dependency for lodash.

Thanks, for the help!  (I cherry-picked 58cda3a)


Spelling issue?

Is it mine types or mime types? Link

You are right. Wanna do a PR?

Sure why not


tests: cpp: cxx: include top-level driver headers

Include (almost) all top-level driver header files to ensure error-free C++ compilation. This revealed a few issues, which are fixed by this PR as well.

Rebased after 53ef68d4598b2f9005c5da3fc0b860ca1999d350.


The :help dashboard.txt doesn't explain some of the options listed in the README

Basically the title: https://github.com/glepnir/dashboard-nvim#faq
I wanted to set some of these but wanted to read more about what they did and it doesn't see like they're defined in the help yet.

add it later


Jcenter deprecation

Hello, thank you for your work.
I am using your library with jcenter() on my gradle. However when I build I see jcenter was deprecated and instead I'm using mavenCentral() for your 1.1.10 version but it says "Unable to resolve dependency"
I tried also 1.1.7 and 1.1.5 ( by using implementation 'petrov.kristiyan:colorpicker-library:1.1.5' )
and by adding
maven {  url "https://dl.bintray.com/petrovkristiyan/maven" }
into repositories, but it didn't work when I delete jcenter. And as I read jcenter will be down on 2022-02-01

hello, Did you find a fix for this?
I am a beginner currently facing the same kind of issues when using the above.
At the time of posting this, jcenter is already down and mavenCentral() is being used instead.
I have followed most necessary steps as well as implemented the new changes such as adding the following code into the settings.gradle rather than the build.gradle:
`pluginManagement {
repositories {
   gradlePluginPortal()

   google()

    mavenCentral()

}
}
`
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)

repositories {

    maven { url 'https://www.jitpack.io' }

    google()

    mavenCentral()

    //jcenter() // Warning: this repository is going to shut down soon

}

}
`
Pardon my editing.


Fixes to get the build working with Scala 2.10 build

The fixes needed to get the build working with the Scala 2.10.

Thank you @srinipunuru! Merged and submitted!


figure out how to incorporate/normalize data sources

We also need to finalize how we'd like to handle the different data sources. Options:

add almost all data to one Locations table, adding columns (or adding serialized data to one json column in the postgres db), as necessary as CSVs are added, and merging/deduplicating data as CSVs are added. PROS: quick and easy way to normalize data, aggregate as much data as possible, and make it as easy to use as possible by data scientists/visualizers. CONS: requires developers to maintain and add csvs, may get unsustainable and messy with a bunch of very different data dumped into one table

keep most data in CSVs and just store super basic info in locations table (addresses, coordinates), as well as which sources that location appears in. Therefore the CSVs could be queried and data be kept as unadulterrated as possible, but still be related to common records. PROS: more scalable, perhaps keep more 'pristine' data. CONS: would require more advanced querying, would require developers for ongoing support, csvs kind of suck.

Store each csv as its own table, and the rows can be related to a common Location table as well (similar to 2 but storing the csv in database instead of as CSVs). PROS: same as above, plus added benefits of using a database, like performance/querying goodness. CONS: still would require developers to add/maintain data sources

Store each csv as a json-data row in a larger sources table. This would more easily allow users in a web interface to add csv data to the database without losing data or having to normalize anything.

Utilize elasticsearch as a data store and search engine, because that'd be baller and might be the most flexible solution since we don't quite know how we want to use the data yet.

Move to a noSQL database and pretend we're cool.

Ideas? Thoughts?

I am not sure if this is at all useful or relevant, but I wanted to leave this here just in case Miso Dataset.


DNS can be updated without a restart

The docs say the application gateway must be restarted.  We found that a minor change to a backend pool was enough to cause the app gateway to refresh the DNS cache and resolve our issue.  This step should be taken first to avoid downtime for other unrelated applications using the same gateway.

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

ID: b3927777-bbee-6c8d-61bd-5646fd8b9d25
Version Independent ID: ad9ca7b6-1076-9df5-00c0-1bb795fd481c
Content: Troubleshoot backend health issues in Azure Application Gateway
Content Source: articles/application-gateway/application-gateway-backend-health-troubleshooting.md
Service: application-gateway
GitHub Login: @greg-lindsay
Microsoft Alias: greglin

Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

We currently have a large backlog of issues, so I am working through them slowly. Thaks for the contribution here! I will address this issue shortly.


Update efficient delete in import best practices

Add the option to delete data efficiently with periodic.delete()
https://memgraph.com/docs/data-migration/best-practices#how-to-efficiently-delete-everything

Closing because it has been added in the meantime.


Accessibility Pass

Scope
Limited to documentation and visual features found on Obsidian-RPG-Manager Github. An accessibility pass will be performed in plugin later during design overhaul.
Summary
With release of v3.0 imminent, existing documentation will be checked for accessibility access. The existing functionality of GitHub users ability to change accessibility on their end is not greatest, so we will do what we can.  This includes but is not limited to:

[ ] Recoloring labels to conform to datapoints in Points of view: Color blindness
[ ] Ensuring clarity of explained concepts to be understood by those who have obtained basic comprehension of English as a Second Language
[ ] If jargon is to be used, adequately defining those definitions without relying upon external links to do so.
[ ] Explore utilization of the Atkinson Hyperlegible Font as it is also a Google Webfont.

Expected Completion Date
Current expected completion date of this pass is to match Milestone v3.2.

These are the two palettes that are created as a result of the recommendations from Points of view: Color blindness.

Hi @sigrunixia
I think the proposals are absolutely great. I have absolutely no issue in changing colours or any other details on GitHub

2022-10-12

Wontfix - Color changed to cream
Wontfix description changed to "This request will not be worked on."
Documentation - Color changed to Offwhite
Documentation description changed to "Documentation may need to be amended or created."
Feature - Color changed to Vermillion
Feature description changed to "This topic is related to a new feature."
Bug - Color Changed to Yellow
Bug description changed to " Something is not working and will need to be fixed."
All User Feedback Requested changed to All Feedback Requested
All Feedback Requested description changed to "The developer has questions and wants feedback from users."
All Feedback Requested - Color Changed to Sky Blue
Refactoring - Color changed to Orange
Refactoring description updated to: "This topic or pull request includes operational improvements to the plugin."
No Bug renamed to Q&A
Q&A given the description of "Questions for developers, collaborators, and contributors"
Duplicate description changed to "This topic or pull request is a duplicate."
Patch description changed to "This topic is related to an upgrade to an existing feature."

Additional colors still needed for "Ready", "Question", "Patch", "No Bug", and "Duplicate" which I will get to in my task above.
Proposed Changes
"Question" would be changed to "Discovery"
Discovery Description changed to: Additional information is needed before proceeding on this topic.

Closing as the remainder can easily be handled in #174 and #168. :)


Need to create materials on how to better handle the three to four data states on the UI - missing, available, and not available

Describe the bug
KK to do this as part of CEJST handoff to contractor and host agency
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

needs discussion


[Feature] Don't require login or PostHog telemetry in CLI

Problem description
For local usage that doesn't interact with Fern's services, auth0 and PostHog aren't actually necessary at all. Just by replacing all the usage of organizations and users with stubs, the clis and everything still work fine to generate sdks.
Why would it be useful?
The current required authentication is burdensome on automation or just using it without having everything broadcast to tracking servers. It's not offline friendly either, when there's no reason it couldn't be.
Describe the solution (optional)
Make authentication through the CLI optional, and offer an easy way to disable telemetry.
Additional context
Add any other context or screenshots.

Fixed here https://github.com/fern-api/fern/pull/4239


Generate and review validation reports: UCSF SFPL (repository #144)

Step 2: Generate reports

[x] Generate validation reports (run validate_by_mapper DAG): https://7a8067cb-3b99-477e-a883-7e311175a9b4.c3.us-west-2.airflow.amazonaws.com/dags/validate_by_mapper_type/grid?dag_run_id=manual__2024-01-31T16%3A54%3A54%2B00%3A00&num_runs=50
[x] Add a comment (in this issue) to the output URLs
[ ] Download the validation reports locally; prepend the collection registry number to the filename
[ ] Upload validation reports to the Rikolti Data Validation folder

Step 3: Review reports

[ ] Review sample collections validation reports; leave notes in the spreadsheet
[ ] Quickly (and not very deeply) scan through other validation reports (to identify if any new metadata fields surface)
[ ] Synthesize notes at the mapper level
[ ] Share an update (and surface any anomalies) during a weekly check-in (Mondays at 3:00pm)

Step 4: Have data validation issues? Address & resolve validation issues (synthesized mapper-level):

[ ] Create a new issue (“Validation results: Rikolti mapper name“) and report/request fixes & investigations. Add to current sprint.
[ ] Add a comment to link to the new “validation results” issue.
[ ] Add a “blocked/paused” label to this issue. Include a status note in this issue title (e,g., HOLD for fixes; HOLD for code review; etc.)
[ ] Move this issue back to the “To Do” pile.
[ ] Reset tasks listed in steps 2-3 above; re-generate & re-review (repeat steps 2-3 above, as needed.)

Step 5: Have acceptable validation reports?

[ ] Move the valid (accepted) reports to the “VALID” folder in google drive.

[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Download validation report at: https://rikolti-data.s3.amazonaws.com/26990/vernacular_metadata_2024-01-31T16:55:22/mapped_metadata_2024-01-31T16:56:05/validation_2024-01-31T16:56:16.csv
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Review collection data at: https://rikolti-data.s3.us-west-2.amazonaws.com/index.html#26990/vernacular_metadata_2024-01-31T16:55:22/mapped_metadata_2024-01-31T16:56:05/data/
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Download validation report at: https://rikolti-data.s3.amazonaws.com/27002/vernacular_metadata_2024-01-31T16:55:28/mapped_metadata_2024-01-31T16:56:05/validation_2024-01-31T16:56:17.csv
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Review collection data at: https://rikolti-data.s3.us-west-2.amazonaws.com/index.html#27002/vernacular_metadata_2024-01-31T16:55:28/mapped_metadata_2024-01-31T16:56:05/data/
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Download validation report at: https://rikolti-data.s3.amazonaws.com/5774/vernacular_metadata_2024-01-31T16:55:29/mapped_metadata_2024-01-31T16:56:06/validation_2024-01-31T16:56:17.csv
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Review collection data at: https://rikolti-data.s3.us-west-2.amazonaws.com/index.html#5774/vernacular_metadata_2024-01-31T16:55:29/mapped_metadata_2024-01-31T16:56:06/data/
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Download validation report at: https://rikolti-data.s3.amazonaws.com/27417/vernacular_metadata_2024-01-31T16:55:30/mapped_metadata_2024-01-31T16:56:06/validation_2024-01-31T16:56:18.csv
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Review collection data at: https://rikolti-data.s3.us-west-2.amazonaws.com/index.html#27417/vernacular_metadata_2024-01-31T16:55:30/mapped_metadata_2024-01-31T16:56:06/data/
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Download validation report at: https://rikolti-data.s3.amazonaws.com/27418/vernacular_metadata_2024-01-31T16:55:34/mapped_metadata_2024-01-31T16:56:06/validation_2024-01-31T16:56:18.csv
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Review collection data at: https://rikolti-data.s3.us-west-2.amazonaws.com/index.html#27418/vernacular_metadata_2024-01-31T16:55:34/mapped_metadata_2024-01-31T16:56:06/data/
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Download validation report at: https://rikolti-data.s3.amazonaws.com/27547/vernacular_metadata_2024-01-31T16:55:36/mapped_metadata_2024-01-31T16:56:07/validation_2024-01-31T16:56:18.csv
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Review collection data at: https://rikolti-data.s3.us-west-2.amazonaws.com/index.html#27547/vernacular_metadata_2024-01-31T16:55:36/mapped_metadata_2024-01-31T16:56:07/data/
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Download validation report at: https://rikolti-data.s3.amazonaws.com/27593/vernacular_metadata_2024-01-31T16:55:41/mapped_metadata_2024-01-31T16:56:07/validation_2024-01-31T16:56:20.csv
[2024-01-31, 16:56:20 UTC] {{logging_mixin.py:150}} INFO - Review collection data at: https://rikolti-data.s3.us-west-2.amazonaws.com/index.html#27593/vernacular_metadata_2024-01-31T16:55:41/mapped_metadata_2024-01-31T16:56:07/data/

Accepted on 2024-02-05!


I'm getting Maximum update depth exceeded when i'm using 100k in columns and rows in dynamic example

Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
▶ 4 stack frames were collapsed.
ref
/src/index.js:194:36
  191 | key={virtualColumn.index}
  192 | ref={el => {
  193 |   virtualRow.measureRef(el);
> 194 |   virtualColumn.measureRef(el);
      |                ^
  195 | }}
  196 | className={
  197 |   virtualColumn.index % 2

Anyone still getting this error on production only?

@tuanddd It doesn't have to be anything related to react-virtual, i.e I got the error like this:
{virtualizer.virtualItems.map(row => {
  const isLoaderRow = row.index > row.length - 1;
  const post = flatPosts[row.index];

  return (
    <div
      key={row.index}
      ref={row.measureRef}
      style={{
        position: 'absolute',
        top: 0, left: 0,
        width: '100%',
        height: `${getRandomIntBetween(300, 600)}px`, // <- too many function calls according to React
        transform: `translateY(${row.start}px)`
      }}
    >
      {isLoaderRow
        ? postsQuery.canFetchMore
          ? "Loading more..."
          : "Nothing more to load"
        : post.title}
    </div>
  );
})}

I got stomach ache because of this. Rect array is not humae


URL option for installer

It would significantly improve the development experience if there was an option to specify the branch or URL to install carl from when using the installer. Obviously this would also require some changes to the repository definition, so I'm not sure of the best way to achieve this.

Based on #11 I'm not sure I follow what you mean

This issue requests the ability to install carl from alternative repositories, using a cli option on the installer. For example, wget run https://carl.willow.sh/install installer-url would install carl from the installer-url branch.

https://github.com/ghostdevv/cc-carl/pull/11#issuecomment-1975156022

It would be better to achieve this using some kind of development mode that runs a server locally and hosts a modified install script. This could also allow you to test unpushed local changes which would be significantly better!


[AutoPR security/resource-manager] Security: 2017-08-01-preview - Introduce IoT security solution resource

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5234

(message created by the CI based on PR content)

Codecov Report

Merging #4394 into restapi_auto_security/resource-manager will increase coverage by 0.87%.
The diff coverage is n/a.

@@                            Coverage Diff                             @@
##           restapi_auto_security/resource-manager    #4394      +/-   ##
==========================================================================
+ Coverage                                   55.31%   56.18%   +0.87%
==========================================================================
  Files                                       10919     9343    -1576
  Lines                                      236293   187284   -49009
==========================================================================
- Hits                                       130699   105223   -25476
+ Misses                                     105594    82061   -23533

Impacted Files
Coverage Δ

.../hdinsight/operations/script_actions_operations.py
25.75% <0%> (-71.22%)
:arrow_down:

...hrbac/azure/graphrbac/models/key_credential_py3.py
30.76% <0%> (-69.24%)
:arrow_down:

...graphrbac/azure/graphrbac/models/key_credential.py
30.76% <0%> (-69.24%)
:arrow_down:

.../hdinsight/operations/configurations_operations.py
32.14% <0%> (-64.29%)
:arrow_down:

.../operations/script_execution_history_operations.py
31.91% <0%> (-63.83%)
:arrow_down:

...t/hdinsight/models/runtime_script_action_detail.py
38.46% <0%> (-61.54%)
:arrow_down:

...insight/models/runtime_script_action_detail_py3.py
38.46% <0%> (-61.54%)
:arrow_down:

...mt/hdinsight/operations/applications_operations.py
21.49% <0%> (-56.08%)
:arrow_down:

...hdinsight/azure/mgmt/hdinsight/models/usage_py3.py
44.44% <0%> (-55.56%)
:arrow_down:

...gmt-hdinsight/azure/mgmt/hdinsight/models/usage.py
44.44% <0%> (-55.56%)
:arrow_down:

... and 2158 more

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 5d9275e...45414ad. Read the comment docs.

Will be regenerated in https://github.com/Azure/azure-sdk-for-python/pull/3782