TypeError and empty filenames when using re.Pattern functionality of MultiZarrToZarr’s coo_mapper

I’ve ran into and addressed two issues while using the regex pattern functionality of coo_mapper on MultiZarrToZarr. It’s unclear whether these reflect intentional design decisions so I’m opening an issue to clarify whether a PR implementing my fixes is warranted or not.
These problems were encountered using kerchunk version 0.0.6 on Python 3.8.4.
Problem statement
I am preprocessing a collection of NetCDFs that were originally standalone rasters (BILs) and thus lack a time dimension. Fortunately, their dates are expressed as 8-digit strings in the filename, i.e. file_20210915.nc. Therefore I generate the time dimension using a Regex pattern with the coo_map setting on MultiZarrToZarr:
nc_list = glob.glob(input_dir, “*.nc4”)
json_list = []
for nc in nc_list:
            fs = fsspec.filesystem('file')
            fs_nc = fs.open(nc)
            with fs_nc as infile:
                json_list.append(SingleHdf5ToZarr(infile, fs_nc.path).translate())

pattern = re.compile(r'([0-9]{8})') # extract 8 digit YYYYYmmdd strings from file names
mzz_opts = dict(    identical_dims = [“lat’, “lon”],
                    coo_map = {"time" : pattern},
                    concat_dims = [“time”])
mzz = MultiZarrToZarr(json_list, **mzz_opts)
mzz.translate()

This returns the following error
    def _get_value(self, index, z, var, fn=None):
        """derive coordinate value(s) for given input dataset

        How to map from input to

        index: int
            Current place in the list of inputs
        z: zarr group
            Open for the current input
        var: str
            name of value to extract.
        fn: str
            filename
        """
        selector = self.coo_map[var]
        if isinstance(selector, collections.abc.Callable):
            o = selector(index, z, var, fn)
        elif isinstance(selector, list):
            o = selector[index]
        elif isinstance(selector, re.Pattern):
>           o = selector.match(fn).groups[0]
E           TypeError: expected string or bytes-like object

The problem appears to be the use of re.match instead of re.search — match always starts from the 0 index of an object whereas my datetime strings are at the end of variable length strings. I can resolve this error by amending combine.py line 154 from o = selector.match(fn).groups[0] to o = re.search(selector,fn)[0].
More problematically, I found that combine.py’s fss property generates an empty list of filenames. Replacing line 116 (self._paths = [None] * len(fo_list) as below resolves the issue:
if isinstance(self.path[0], collections.abc.Mapping):
    self._paths = []
    fo_list = self.path
    # self._paths = [None] * len(fo_list) # replaced line
    for path in self.path: # new line
        self._paths.append(path["templates"]["u"]) # new line

The problem appears to be kerchunk dict objects being recognized as collections.abc.Mapping instances. Reviewing the code, it’s unclear to me if this is intentional or not. If the latter I’m happy to open a PR.
A small collection of sample files used for this operation can be found at https://www.dropbox.com/sh/yzbqqkqampcjcqo/AACKPVnB9bojkF5QVRZihU3za?dl=0.

Hi @rbanick,
It looks like the Kerchunk package you are using is a bit older as the bug from o = selector.match(fn).groups[0] has already been fixed by @martindurant in https://github.com/fsspec/kerchunk/commit/5cfa8871d86fe165213cc18fef042cf82258a573
Then MultiZarrtoZarr is intended to be used for combining existing Kerchunk jsons rather than directly from the .nc4 files and so it is neccessary to first compute these using  SingleHdf5ToZarr before passing these jsons to MultiZarrtoZarr.
Here is a quick example using the data you provided:
https://gist.github.com/peterm790/78ecd58d994d127594166e207ffeb515

It looks like the Kerchunk package you are using is a bit older

0.0.6 (the most recent release) was created before the fix, so I guess this calls for a bugfix release? @martindurant, what do you think?

@keewis good to hear the first issue is cleared up.
@peterm790 sorry my example wasn't clear -- the error occurs when providing a list of JSONs already processed via SingleHdf5ToZarr. I've amended the code to be clearer.
Is the second issue with an empty list of filenames resolved in the latest Kerchunk release?

@rbanick I'm facing almost the same issue and, according to version 0.9, seems that the match is still in use. Did you succeded? did you created a workaround?
Right now this are my thoughts:
Assuming a path like:
 '/tmp/20230101/CGL_TOC_202301010708_Africa.yaml'
the regex that works to catch the date and time within the namefile and is compatible with the re.match is:
 ' re.compile('^.+CGL_TOC_(.+?)_')
(in your specific case could be something like ^.+file_(.+?). )
This works like a charm but, unfortunately, the string obtained isn't converted to a DateTime64.
The attempt to convert it to a DateTime64 through the coo_dtypes can't work as the value isn't stored in a POSIX format within the file name.
If there is enough interest in this one option could be to add a keyword for the coo_map like 'time_fn:' that gets, through the regex, the time in string format and convert it to a DateTime64.
@martindurant What do you think? Is there any other solution that is already in place and I didn't discovered ?
FYI @annefou

Back in 2022 the replies to this issue indicated the re.match/search was already being addressed and a PR was not necessary. I made my own fork with the fix and have been using that in my production code, so I didn't pay further attention to this issue.
3 versions later re.match is still in use instead of re.search so I guess the issue was not addressed.  Is there a reason re.match remains or shall I submit a PR?
FYI I also had to patch line 156 (self._paths = [None] * len(fo_list)) to address the second issue of empty file path names.

Please yes, make a PR.

@rbanick Thanks for the quick answer on this.
Have you also created a method to convert the text to a DateTime64?

Not beyond astype("datetime"). There are many ways, I suppose.

@martindurant I'll make a PR for both issues later today
@pl-marasco I ran the below code in a preprocess_zarr function I provide to xr.open_dataset when opening the zarr JSON Kerchunk produces.
dti = pd.to_datetime(ds.time.values, format="%Y%m%d%H%M%S%f")
ds = ds.assign_coords({'time' : dti})

Note that you can give arbitrary functions to coo_map too, but I understand why you wouldn't want to.


Validation Errors when InjectionMaterials is combination of models

Describe the bug
When injection_materials contains both ViralMaterial and NonViralMaterial objects, the injection fails validation due to "extra input" and "field required" errors. It is incorrectly validating ViralMaterial objects against NonViralMaterials and vice versa.
To Reproduce

Create a ViralMaterial with some fields (ex: titer)
Create a NonViralMaterial with some fields (ex: concentration)
Create an Injection with injection_materials = [viral, nonviral]

from aind_data_schema.core.procedures import TarsVirusIdentifiers, NanojectInjection, ViralMaterial, NonViralMaterial
ids = TarsVirusIdentifiers.model_construct(virus_tars_id="AiV123", prep_lot_number="lot123")
viral = ViralMaterial.model_construct(name="example", tars_identifiers=ids, titer=7000000)
non_viral = NonViralMaterial.model_construct(concentration=0.5)
inj = NanojectInjection.model_construct(injection_materials=[viral,non_viral]
 inj.__class__.model_validate(inj.model_dump())

See validation errors.

Expected behavior
injection_materials is a union of ViralMaterial and NonViralMaterial. It should allow and validate correctly.
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.

You are forcing the model to be built without validation by calling the model_construct model (see the relevant documentation here)[https://docs.pydantic.dev/latest/api/base_model/#pydantic.BaseModel.model_construct].
The trace you get is not from the final NanojectInjection per se but instead because of the recursive validation of the  NonViralMaterial`.  Here's a working example that should get you started:
from aind_data_schema.core.procedures import TarsVirusIdentifiers, NanojectInjection, ViralMaterial, NonViralMaterial
from aind_data_schema.models.organizations import Organization

ids = TarsVirusIdentifiers(virus_tars_id="AiV123", prep_lot_number="lot123")
viral = ViralMaterial(name="example", tars_identifiers=ids, titer=7000000)
non_viral = NonViralMaterial(name="example", source=Organization.ABCAM, rrid=None, lot_number="foo", expiration_date=None)
inj = NanojectInjection(injection_materials=[viral, non_viral],
                        injection_coordinate_ml=0, injection_coordinate_ap=0, injection_coordinate_depth=[0, +10, -10],
                        protocol_id="bar", injection_angle=0, injection_volume=[-10, 0, 0])
inj.model_validate(inj.model_dump())

This signature is incorrect and may fix the bug if we fix it:
injection_materials: Annotated[
        List[Union[ViralMaterial, NonViralMaterial]],
        Field(title="Injection material", min_length=1, discriminator="material_type"),
    ]

I think  this bug might have already been fixed? I can't reproduce the bug when using Bruno's example and injection_materials already has the signature Jon suggested. Let me know if I'm missing something!

Closing this issue because it works with Bruno's example. Opening issue in metadata-service to fix construction of models to not use model_construct


added support for auto cert renewal flags in hlf-operator helm chart

What this PR does / why we need it:
This PR allows the users to pass the auto-renewal flags while installing the hlf-operator.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Additional documentation, usage docs, etc.:

@adityajoshi12
The "official" helm charts are in this repository: https://github.com/kfsoftware/hlf-helm-charts
The chart in the official repository(this one) needs to be copied from the hlf-helm-charts repository

I can see there is aleady one PR for this change on https://github.com/kfsoftware/hlf-helm-charts, we can use the same thing here as well, once that is merged.


Install button isn't doing anything; not saving as app in Chrome on mobile

I have implemented this nice plugin for our website to add it as an web app. It works fine on iOS with the dialog and also on Android the dialog is shown. However the install functionality does not work at all on my Google Pixel phone on chrome, but the demo version is working perfectly fine.
I am not sure what I am doing wrong, since I followed all the instructions of the plugin and also added the manifest file like this:
{
 "name": "Clashflash",
 "description": "In the mood for a game? Play all our (flash) indie games in one web app for the most immersive experience!",
 "scope": "/",
 "display": "standalone",
 "icons": [
  {
   "src": "/icon/android-icon-192x192.png",
   "type": "image/png",
   "sizes": "192x192",
   "purpose": "maskable any"
  },
  {
   "src": "/icon/android-icon-512x512.png",
   "type": "image/png",
   "sizes": "512x512",
   "purpose": "maskable any"
  },
  {
   "src": "\/android-icon-36x36.png",
   "sizes": "36x36",
   "type": "image\/png",
   "density": "0.75"
  },
  {
   "src": "\/android-icon-48x48.png",
   "sizes": "48x48",
   "type": "image\/png",
   "density": "1.0"
  },
  {
   "src": "\/android-icon-72x72.png",
   "sizes": "72x72",
   "type": "image\/png",
   "density": "1.5"
  },
  {
   "src": "\/android-icon-96x96.png",
   "sizes": "96x96",
   "type": "image\/png",
   "density": "2.0"
  },
  {
   "src": "\/android-icon-144x144.png",
   "sizes": "144x144",
   "type": "image\/png",
   "density": "3.0"
  },
  {
   "src": "\/android-icon-192x192.png",
   "sizes": "192x192",
   "type": "image\/png",
   "density": "4.0"
  }
 ]
}

Our website with the plugin implemented is available online: clashflash.com

This is because your manifest have issues. You need to fix them first:

And then just wait for installation available event from the component and then show your custom dialog.

Thanks a lot! Seems to be working now.


Semantic Attributes

I am looking for Semantic Attributes that i can use, instead of having to manually type in the semantic conventions, similar to how it is done in java and nodejs. Any ideas? Am i missing something?  (https://opentelemetry.io/docs/languages/net/instrumentation/)

@kevintatou does the following issue help with your question:
https://github.com/open-telemetry/opentelemetry.io/issues/1539


very slow start_align.py unless change is made to DataLoader instance

I needed to make a change in  /evaluation/face_align/PIPNet/start_align.py on line 40 during the DataLoader object instance from num_workers=1 to num_workers=0, or else the tqdm was just hanging indefinitely, as seen in this forum post talking about num_workers>0 https://discuss.pytorch.org/t/dataloader-slower-with-num-workers-0/100970 (up to 50 times slower)
Perhaps it depends on system configuration, but this is what I needed to do to get it to run instantly, and not hang indefinitely, hope it helps others out!

I had the same issue and made the same edit

Code updated, https://github.com/ygtxr1997/CelebBasis/commit/c2819fc26c8c0233905cb3713dd05592d595bf1f.


ui: change foursquare's map icon logo to swarm logo

ui: change foursquare's map icon logo to swarm logo

Done in https://camlistore-review.googlesource.com/c/camlistore/+/15651
and https://camlistore-review.googlesource.com/c/camlistore/+/15652


Scrolling is slow for openMagazin PDF

http://www.openmagazin.cz/pdf/2011/openMagazin-2011-04.pdf

The reason for this is that we render one <div> per letter.

The reason for this is that we render one <div> per letter, even with the latest text layer patches.

I've looked into this, and it's caused by the PDF file placing a setFont command before every single showText command. (The generator is Scribus PDF, which seem to be able to create very inefficient PDF files, see e.g. #6961)
The good news is that it seem to be possible to, at least partially, improve the situation here. I've got a patch locally, but it's currently blocked on PR #7374.

Closing since the file (which is no longer available on this URL, but is available in the Web Archive) now renders fine. All pages now render within a second whereas it was much more before.


fix the lsp cli for vim users

Re-creating the PR created by user @xuanduc987

@xuanduc987  try npm install -g<EMAIL_ADDRESS>and changing the install path for graphql-lsp or whatever works? i don't know how nvim.coc works beyond the default config


Phpmd fixes

Fixes some warnings from phpdm "unusedcode".
Also fixes an error in DocParser.

Thank you !


Name transfer for apparently abandoned project "mm"

The existing mm project on pypi appears abandoned. I have attempted to contact the project maintainer without success and the project homepage is non-existent.
I have been developing a python-based build system by this name since 1994. The project moved to Github in 2018 (see GitHub.com/aivazis/mm). It is used as the build system for a handful of projects, most notably pyre (GitHub.com/pyre/pyre), a project that is already available on pypi. Historically, users were comfortable accessing the build system from whichever source control system was hosting, but the class of user is about to change as pyre, and a number of projects that use it, are about to become available on a cloud based on-demand system for a NASA mission. The de facto installation tool for python packages is pip, so it would be important to provide access to mm through pypi.
Looking forward to your comments.

Please see https://pypi.org/help/#project-name-claim.


Escape invalid lines in the URL

ref #423

Self-reviewing: I guess we have a horrible way of adding comments in the scale now.


New release

Hi there 👋
Is it planned to release a new version soon. The current one is too old so we have too directly use master, which is unfortunate...

Ah, I did not see that issue: #943
My bad!

No worries, 0.27.0 is out now. 😄

Freat thanks :)


SparseResUNet42 should have LAYERS = (2, 3, 4, 6, 2, 2, 2, 2) instead of LAYERS = (2, 2, 2, 2, 2, 2, 2, 2)

From my understanding, in the original Spatiotemporal Segmentation paper MinkowskiNet42 (Res16UNet34C) has LAYERS = (2, 3, 4, 6, 2, 2, 2, 2). However, your SparseResUNet42 implementation has LAYERS = (2, 2, 2, 2, 2, 2, 2, 2). Is there a mistake in the naming or am I missing a detail?

Our implementation serves as a reference point. We didn't adhere to the exact settings of MinkowskiNet.


build artifact names use PyPa version not semver

When I build with a prerelease version I get an artifact named with PyPa versioning not semver.  Is this expected?
% hatch version
0.1.3
% hatch version alpha
Old: 0.1.3
New: 0.1.4-alpha.1
% hatch build -t sdist
...
dist/dblunch-0.1.4a1.tar.gz

pyproject.toml:
[build-system]
requires = ["hatchling", "hatch-semver"]
build-backend = "hatchling.build"
...
[project]
name = "dblunch"
...
dynamic = ["version"]
...
[tool.hatch.version]
path = "src/dblunch/__about__.py"
validate-bump = true
scheme = "semver"
...

That is correct. PyPI accepts only Python's versioning scheme. Semantic versions are translated to it: https://packaging.python.org/en/latest/specifications/version-specifiers/#semantic-versioning

Thanks @fleetingbytes. That makes sense.  FWIW, in my use case I am distributing a private package via Homebrew. I am not using PyPi at all.
Homebrew infers the version from the artifact name and the PyPa versioning throws it off when comparing versions:
For example it thinks that dblunch-0.1.4a6.tar.gz is newer than dblunch-0.1.5.tar.gz.
Looks like as a workaround I can provide the semver explicitly to Homebrew:
https://rubydoc.brew.sh/Formula#version-class_method.

That's interesting. Maybe hatch could be told to maintain another versioning scheme in the build filenames. Let's see what @ofek thinks about this.

Feel free to open a feature request asking for an option similar to strict-naming https://hatch.pypa.io/latest/plugins/builder/wheel/#options (also for source distributions)

Thanks @ofek and @fleetingbytes.  Hatch feature request:
https://github.com/pypa/hatch/issues/1251


Multiple locations for captions on thumbnails

It would be nice if captions could be placed above, to the left, and to the right of the thumbnail in addition to below like now.

The beauty about github and bootstrap is you can add this feature yourself and submit a pull request.

I know :) I just don't think I know CSS well enough

You can add this as well in the future, and we might, but that's not on our list right now. The captions can be on top or bottom at the least right now.

I think this would be something great to have.
Imagine having a list of items, and then a detail page for each item.
In the listing page, it would be really useful to have a photo and a description on the caption, on the right of each photo.


RUM-4731: Add MethodCall telemetry for compose mapper

What does this PR do?
Adds MethodCall telemetry for compose mapper, so that we can know the duration of each compose mapper execution.
Motivation
RUM-4731
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Make sure you discussed the feature or bugfix with the maintaining team in an Issue
[ ] Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Codecov Report
Attention: Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.

Project coverage is 82.12%. Comparing base (3ddf612) to head (75186b7).

Additional details and impacted files
@@                  Coverage Diff                   @@
##           feature/sr_compose    #2123      +/-   ##
======================================================
+ Coverage               81.97%   82.12%   +0.15%
======================================================
  Files                     512      512
  Lines                   18278    18264      -14
  Branches                 2814     2806       -8
======================================================
+ Hits                    14982    14998      +16
+ Misses                   2532     2505      -27
+ Partials                  764      761       -3

Files
Coverage Δ

...compose/internal/mappers/ComposeWireframeMapper.kt
14.06% <0.00%> (-1.19%)
:arrow_down:

... and 38 files with indirect coverage changes


adding test args to a sub-repo adds those args to all repos tests

For instance if you have:
dart_task:
  # Run the presubmit tests as well (usually skipped).
  - test: --run-skipped

then in the tool/travis.sh you will get:
  pub run test --run-skipped

but it will do that for all packages, not just the one package which had it added

actually I was wrong, you get duplicate case statements:
test) echo
  echo -e "TASK: test"
  pub run test
  ;;
test) echo
  echo -e "TASK: test"
  pub run test --run-skipped
  ;;


chore(rust): remove unused dependencies

These were all found by cargo-udeps.
Resolves: #4403.

I had to fix some warnings in our code (1b3947f). Those showed up (and failed the build) because cargo udeps compiles the code using a nightly version and the nightly apparently has a better detection of unused imports that already come in via * imports.
I could move those to a separate PR but I am not sure it is worth it.

Thanks for taking over this one!


Website primary page skeleton

Last deployed version: http://shershi-step-2020.appspot.com/
Sections of Website so far: NavBar, Home Page, About, Timeline, Projects, Gallery.
Added CSS Styling for NavBar, Home, About, Timeline, Project, and general section containers and wrappers so far.

Website looks great.
Just one minor comment about naming. Most css class names in the PR seems very general. For example .left .right, .light, .dark these naming don't completely explain what they do, but a rule is created for each of these selectors. You could either use a namespaced naming pattern like timeline-left, timeline-right, section-dark, section-light, or you can make the rules more specific by selecting with more classes, such as .timeline.left, .timeline.right, .section.dark, .section.light.
I like how Bootstrap name things, although it's too well-known for word abbreviation to be proper. See https://getbootstrap.com/docs/3.4/css/

Sherrydev #1
Can you please make the title more descriptive?

Please use the formatter before submitting!


Syntax error when nested arrays

Bicep version 0.4.63
Describe the bug
I got the error 'Error BCP018: Expected the "]" character at this location' at the very end of my file when using nested arrays.

To Reproduce
param vnets array = [
  {
    name: 'name'
    addresses: ['<IP_ADDRESS>/16']
  }
]

Additional context
Add any other context about the problem here.

The close array character currently needs to be on a new line - see #2056.  The following should work:
param vnets array = [
  {
    name: 'name'
    addresses: [
      '<IP_ADDRESS>/16'
    ]
  }
]

@afscrome - thanks for identifying the fix! I've tagged the original issue as a top 10 bug, as it's quite a confusing error.

Thanks it worked


Slow Learner skill affects level gain

At the 9th power level, drank a power-increasing drink. I didn't get level 10. I got 110k / 150k experience.
This is due to the fact that I have the Slow Learner skill, which gives 30% less experience.

Not reproduced


Add uv_timer_t wrappers to libuv layer

cc @halter73 @mikeharder @davidfowl

System.Threading.Timer?
Has the advantage if they don't perform well you know where they work ;-)

What are the timers going to be used for?

Timeouts

@benaadams We've decided to go with uv timers to keep them in the event loop. With framework timers we'd have to post a lot (with the current plan for implementing timeouts).

Looks reasonable. I'll hold off on reviewing until I see how it's used.

Closing this since #1066 has the same changes.


Error running newly created app (v2)

From @rodrigograca31 on October 18, 2016 20:33
Short description of the problem:
Error creating new app. (--v2)
What behavior are you expecting?
It should "compile" and run the app....
Steps to reproduce:

ionic start app --v2
cd app/
ionic platform add android
ionic run android

Running 'run:before' npm script before run

> ionic-hello-world@ build /home/unknown/git/app
> ionic-app-scripts build

[21:29:52]  ionic-app-scripts 0.0.36
[21:29:52]  build prod started ...
[21:29:52]  clean started ...
[21:29:52]  clean finished in 3 ms
[21:29:52]  copy started ...
[21:29:52]  ngc started ...
[21:29:52]  copy finished in 28 ms
[21:29:53]  lint started ...
[21:29:54]  lint finished in 1.23 s
[21:29:54]  can't resolve module @angular/core/src/di/opaque_token from /home/unknown/git/app/.tmp/index.ts
[21:29:54]  TypeError: undefined is not a function
[21:29:54]  ngc failed
[21:29:54]  ionic-app-script task: "build"
[21:29:54]  Error: Error

npm ERR! Linux 3.19.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" "--color"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ build script 'ionic-app-scripts build'.
npm ERR! This is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts build
npm ERR! You can get their info via:
npm ERR!     npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/unknown/git/app/npm-debug.log
Caught exception:
 undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Post the output of ionic info below please
Your system information:

Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
OS: Distributor ID:     LinuxMint Description:  Linux Mint 17.3 Rosa
Node Version: v0.12.7

Copied from original issue: driftyco/ionic-cli#1562

From @rodrigograca31 on October 18, 2016 20:33
ionic serve works fine...

From @MasterProgrammer200 on October 19, 2016 15:32
I am having the same issue.

ionic start cutePuppyPics --v2

cd cutePuppyPics

ionic serve <--- this works!

ionic g page myPage <---- error!

ionic build <---- error!

Ionic Info:

From @rodrigograca31 on October 19, 2016 22:4
@MasterProgrammer200 you should have posted your erro in text so it could be indexed.....
Since you are using Windows this confirms it's not platform specific...

@rodrigograca31,
This is an ngc error. ngc has really bad error messages sometimes. Unfortunately, there isn't anything we can do other than work with the Angular team to improve this, so that is what we're doing. I'm going to close this for now.
Thanks,
Dan

ngc error?
Yes, they could get better error messages, but how do I solve this problem?

@rodrigograca31, The issue is in your code, so you need to find out where it is in your code and fix it. Otherwise, the alternative is to not use ngc by adding --dev to the end of the build command in the scripts section of package.json.
Thanks,
Dan

@danbucholtz On my code? Nope!
This is a brand new app, not even one line was modified!
If you see the "Steps to reproduce:" you can see that I create a new app and run it and it doesn't run...
That's a pretty bad experience for a new user....

@rodrigograca31,
Ahh, we were burned by a semver issue temporarily. Angular made some breaking changes to their compiler. Update your package.json and remove the ^ everywhere, and then do a fresh npm install. That will fix it.
Thanks,
Dan

@danbucholtz I did what you said.
delete every ^
delete node_moduldes
npm install .
still not working

@danbucholtz Still not working like @swizard said ....
Commands run:
ionic start app4 --v2          <-- app created
cd app4
cordova platform add android
ionic run android              <-- error (just testing if it would work...)
nano package.json              <-- removed ^ from "@ionic/app-scripts" and "typescript"
rm -rf node_modules/           <-- remove the modules folder
npm install                    <-- reinstalled them...
ionic run android              <-- error again....

Error: (output from ionic run android)
Running 'run:before' npm script before run

> ionic-hello-world@ build /home/unknown/git/app4
> ionic-app-scripts build

[20:26:16]  ionic-app-scripts 0.0.36
[20:26:16]  build prod started ...
[20:26:16]  clean started ...
[20:26:16]  clean finished in 13 ms
[20:26:16]  copy started ...
[20:26:16]  ngc started ...
[20:26:16]  copy finished in 73 ms
[20:26:17]  lint started ...
[20:26:20]  lint finished in 2.51 s
[20:26:20]  can't resolve module @angular/core/src/di/opaque_token from /home/unknown/git/app4/.tmp/index.ts
[20:26:20]  TypeError: undefined is not a function
[20:26:20]  ngc failed
[20:26:20]  ionic-app-script task: "build"
[20:26:20]  Error: Error

npm ERR! Linux 3.19.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" "--color"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ build script 'ionic-app-scripts build'.
npm ERR! This is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts build
npm ERR! You can get their info via:
npm ERR!     npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/unknown/git/app4/npm-debug.log
Caught exception:
 undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

You need to remove the ^ from all entries in the package.json, or atleast anything with an @angular/xyz prefix. The issue is @angular/compiler or @angular/compiler-cli had a breaking change that they did not realize. We compiled ionic-angular with 0.6.2 and something in the latest breaks compatibility with it even though it's not supposed to.
Thanks,
Dan

There was ^ only on those two palces ("@ionic/app-scripts" and "typescript")
My package.json:
{
  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "build": "ionic-app-scripts build",
    "watch": "ionic-app-scripts watch",
    "serve:before": "watch",
    "emulate:before": "build",
    "deploy:before": "build",
    "build:before": "build",
    "run:before": "build"
  },
  "dependencies": {
    "@angular/common": "2.0.0",
    "@angular/compiler": "2.0.0",
    "@angular/compiler-cli": "0.6.2",
    "@angular/core": "2.0.0",
    "@angular/forms": "2.0.0",
    "@angular/http": "2.0.0",
    "@angular/platform-browser": "2.0.0",
    "@angular/platform-browser-dynamic": "2.0.0",
    "@angular/platform-server": "2.0.0",
    "@ionic/storage": "1.1.6",
    "ionic-angular": "2.0.0-rc.1",
    "ionic-native": "2.2.3",
    "ionicons": "3.0.0",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.21"
  },
  "devDependencies": {
    "@ionic/app-scripts": "0.0.36",
    "typescript": "2.0.3"
  },
  "description": "app4: An Ionic project",
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": []
}

@rodrigograca31,
Can you provide us a sample repository recreating the issue?
Thanks,
Dan

Same problem for me

[13:18:08]  ionic-app-scripts 0.0.38
[13:18:08]  build prod started ...
[13:18:08]  clean started ...
[13:18:08]  clean finished in 4 ms
[13:18:08]  copy started ...
[13:18:08]  ngc started ...
[13:18:08]  copy: Error copying "C:\Repos\patient-portal\src\manifest.json" to
"C:\Repos\patient-portal\www\manifest.json": File not found
[13:18:08]  copy: Error copying "C:\Repos\patient-portal\src\service-worker.js" to
"C:\Repos\patient-portal\www\service-worker.js": File not found
[13:18:08]  copy finished in 80 ms
[13:18:09]  lint started ...
[13:18:09]  C:\Repos\patient-portal\node_modules@angular\compiler-cli\src\private_import_compiler.js:10
[13:18:09]  exports.AssetUrl = compiler_1.compiler_private.AssetUrl;
[13:18:09]  TypeError: Cannot read property 'AssetUrl' of undefined
[13:18:09]  ngc failed
[13:18:09]  ionic-app-script task: "build"
[13:18:09]  Error: Error
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\hadar.m\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ build: ionic-app-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ build script 'ionic-app-scripts build'.

@danbucholtz Do you want the code that is causing the issue? It's the "standard" code when you create a new app using: ionic start app4 --v2
But here you go: (Note: Just removed "node_modules" folder because it had more than 100MB!!! What?)
(and GitHub was complaining about the .zip size...)
app4.zip

@macdasi Your eror seems different.... [13:18:09] TypeError: Cannot read property 'AssetUrl' of undefined
and I've also noticed ionic-app-scripts 0.0.38

@danbucholtz Now you have the .zip file but I will include here the npm-debug.log file contents:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'build',
1 verbose cli   '--color' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info prebuild ionic-hello-world@
6 info build ionic-hello-world@
7 verbose unsafe-perm in lifecycle true
8 info ionic-hello-world@ Failed to exec build script
9 verbose stack Error: ionic-hello-world@ build: `ionic-app-scripts build`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1015:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid ionic-hello-world@
11 verbose cwd /home/unknown/git/app6
12 error Linux 3.19.0-32-generic
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" "--color"
14 error node v0.12.7
15 error npm  v2.11.3
16 error code ELIFECYCLE
17 error ionic-hello-world@ build: `ionic-app-scripts build`
17 error Exit status 1
18 error Failed at the ionic-hello-world@ build script 'ionic-app-scripts build'.
18 error This is most likely a problem with the ionic-hello-world package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     ionic-app-scripts build
18 error You can get their info via:
18 error     npm owner ls ionic-hello-world
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

@rodrigograca31,
When I run ionic run android or npm run build, I get the following output:
> ionic-hello-world@ build /Users/dan/Downloads/app4
> ionic-app-scripts build

[09:50:59]  ionic-app-scripts 0.0.38
[09:50:59]  build prod started ...
[09:50:59]  clean started ...
[09:50:59]  clean finished in 4 ms
[09:50:59]  copy started ...
[09:50:59]  ngc started ...
[09:50:59]  copy finished in 30 ms
[09:50:59]  lint started ...
[09:51:00]  lint finished in 717 ms
[09:51:10]  ngc finished in 10.48 s
[09:51:10]  webpack started ...
[09:51:15]  webpack finished in 4.98 s
[09:51:15]  uglifyjs started ...
[09:51:15]  sass started ...
[09:51:15]  sass finished in 910 ms
[09:51:15]  cleancss started ...
[09:51:16]  cleancss finished in 972 ms
[09:51:22]  uglifyjs finished in 7.46 s
[09:51:22]  build prod finished in 22.93 s

That is the expected output. Are you not seeing that?
Thanks,
Dan

I didn't have the exact error as @rodrigograca31, but I was getting weird build errors as well (on 0.0.36). Unrecognized token '@' etc
Updating to 0.0.38 fixed the issues for me 👍

Ok it's the darndest thing, but on 0.0.38 the build errors go away, but what used to be the build error shows up on the console on app start.
Pasting the error here just to show how ridiculous it is

This is was very similar to the build error I was getting on 0.0.36.
During development I use livereload, by running an npm run watch on a another terminal, so that changes in src are watched for and files are automatically transpiled and copied into the build folder, triggering an update to the main.js file.
If I remove the HeroService mentioned in the screenshot of the error above, and remove all references of it, build works fine and there's no console errors. And keepinglivereload running, if I make the changes to bring back the HeroService, the app works fine and there's no error in the console. So something is definitely wrong with the build process.
@danbucholtz Any thoughts?

@danbucholtz I get this when I run that command: (0.0.36)
> ionic-hello-world@ build /home/unknown/git/app6
> ionic-app-scripts build

[18:00:06]  ionic-app-scripts 0.0.36
[18:00:06]  build prod started ...
[18:00:06]  clean started ...
[18:00:06]  clean finished in 4 ms
[18:00:06]  copy started ...
[18:00:06]  ngc started ...
[18:00:06]  copy finished in 50 ms
[18:00:07]  lint started ...
[18:00:09]  lint finished in 1.66 s
[18:00:09]  can't resolve module @angular/core/src/di/opaque_token from /home/unknown/git/app6/.tmp/index.ts
[18:00:09]  TypeError: undefined is not a function
[18:00:09]  ngc failed
[18:00:09]  ionic-app-script task: "build"
[18:00:09]  Error: Error

npm ERR! Linux 3.19.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ build script 'ionic-app-scripts build'.
npm ERR! This is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts build
npm ERR! You can get their info via:
npm ERR!     npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/unknown/git/app6/npm-debug.log

I will update to 0.0.38 and let you know if it solves the problem...

Upgrading to 0.0.38 didn't solve the issue... :cry:

@rodrigograca31, can you blow away node_modules and verify that 2.0.0 is installed for Angular dependencies and @angular/compiler-cli is version 0.6.2? We haven't seen or heard of this issue before and can't recreate it.
Thanks,
Dan

@danbucholtz I've created another test app and the same happens:
ionic start app7 --v2
cd app7/
rm -rf node_modules/
nano package.json
npm install
ionic run android

Error output:
Running 'run:before' npm script before run

> ionic-hello-world@ build /home/unknown/git/app7
> ionic-app-scripts build

[19:01:15]  ionic-app-scripts 0.0.38
[19:01:15]  build prod started ...
[19:01:15]  clean started ...
[19:01:15]  clean finished in 3 ms
[19:01:15]  copy started ...
[19:01:15]  ngc started ...
[19:01:15]  copy finished in 43 ms
[19:01:15]  lint started ...
[19:01:17]  lint finished in 1.38 s
[19:01:17]  can't resolve module @angular/core/src/di/opaque_token from /home/unknown/git/app7/.tmp/index.ts
[19:01:17]  TypeError: undefined is not a function
[19:01:17]  ngc failed
[19:01:17]  ionic-app-script task: "build"
[19:01:17]  Error: Error

npm ERR! Linux 3.19.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" "--color"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! ionic-hello-world@ build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ionic-hello-world@ build script 'ionic-app-scripts build'.
npm ERR! This is most likely a problem with the ionic-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ionic-app-scripts build
npm ERR! You can get their info via:
npm ERR!     npm owner ls ionic-hello-world
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/unknown/git/app7/npm-debug.log
Caught exception:
 undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'build',
1 verbose cli   '--color' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info prebuild ionic-hello-world@
6 info build ionic-hello-world@
7 verbose unsafe-perm in lifecycle true
8 info ionic-hello-world@ Failed to exec build script
9 verbose stack Error: ionic-hello-world@ build: `ionic-app-scripts build`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1015:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
10 verbose pkgid ionic-hello-world@
11 verbose cwd /home/unknown/git/app7
12 error Linux 3.19.0-32-generic
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" "--color"
14 error node v0.12.7
15 error npm  v2.11.3
16 error code ELIFECYCLE
17 error ionic-hello-world@ build: `ionic-app-scripts build`
17 error Exit status 1
18 error Failed at the ionic-hello-world@ build script 'ionic-app-scripts build'.
18 error This is most likely a problem with the ionic-hello-world package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     ionic-app-scripts build
18 error You can get their info via:
18 error     npm owner ls ionic-hello-world
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

package.json:
{
  "name": "ionic-hello-world",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "build": "ionic-app-scripts build",
    "watch": "ionic-app-scripts watch",
    "serve:before": "watch",
    "emulate:before": "build",
    "deploy:before": "build",
    "build:before": "build",
    "run:before": "build"
  },
  "dependencies": {
    "@angular/common": "2.0.0",
    "@angular/compiler": "2.0.0",
    "@angular/compiler-cli": "0.6.2",
    "@angular/core": "2.0.0",
    "@angular/forms": "2.0.0",
    "@angular/http": "2.0.0",
    "@angular/platform-browser": "2.0.0",
    "@angular/platform-browser-dynamic": "2.0.0",
    "@angular/platform-server": "2.0.0",
    "@ionic/storage": "1.1.6",
    "ionic-angular": "2.0.0-rc.1",
    "ionic-native": "2.2.3",
    "ionicons": "3.0.0",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.21"
  },
  "devDependencies": {
    "@ionic/app-scripts": "0.0.38",
    "typescript": "2.0.6"
  },
  "description": "app7: An Ionic project",
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": []
}

Keep in mind that this is a brand new app... (created with: ionic start app7 --v2)

What version of node are you using? What version of npm? What OS are you using? Is there anything unique about your environment? I have created about 5 projects today and haven't had that issue at all. I think it is something external to Ionic.
Thanks,
Dan

@jthoms1 posted my original ionic info output but I will add it again:
--------------------------------

Your system information:

Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.38
OS: Distributor ID:     LinuxMint Description:  Linux Mint 17.3 Rosa
Node Version: v0.12.7

--------------------------------

@rodrigograca31,
We don't support that version of Node.js anymore. Please update to the latest LTS release. I think that will resolve your issues.
Thanks,
Dan

Ok.... It's solved. I've used the following commands:
node -v   <-- v0.12.7
sudo npm install n -g
sudo n stable

node -v   <-- v7.0.0
:tada:  :tada:  :tada:
:confetti_ball: :confetti_ball: :confetti_ball:
@danbucholtz Thanks! Have some: :cake:
Now the world will have another app! (I will make millions with this app! or not... :cry:)

Now ionic run android executes normally.

@rodrigograca31, glad to hear it! Have a good day and happy hacking!
Thanks,
Dan

Hi Dan,
it seems that I still have a similar problem. Today I am migrating from beta.37 to rc3 and I get some weird errors when doing
ionic build android
ionic serve works absolutely fine and the app starts in the browser. But doing a built I get the following error:
 [20:08:11]  ionic-app-scripts 0.0.46 [20:08:11]  build prod started ... [20:08:11]  clean started ... [20:08:11]  clean finished in 4 ms [20:08:11]  copy started ... [20:08:11]  ngc started ... [20:08:11]  copy: Error copying             "/Users/me/projects/migration/myApp/node_modules/ionic-angular/fonts" to             "/Users/me/projects/migration/myApp/www/assets/fonts" [20:08:11]  copy finished in 118 ms [20:08:26]  Error: Error at             /Users/me/projects/migration/myApp/.tmp/pages/welcome/welcome.ngfactory.ts:328:40 [20:08:26]  Property 'rootPage' does not exist on type 'WelcomePage'. [20:08:26]  Error at             /Users/me/projects/migration/myApp/.tmp/pages/nav-frame/nav-frame.ngfactory.ts:454:149 [20:08:26]  Argument of type 'Date' is not assignable to parameter of type 'string'. [20:08:26]  Error at             /Users/me/projects/migration/myApp/.tmp/pages/nav-frame/nav-frame.ngfactory.ts:454:378 [20:08:26]  Argument of type 'Date' is not assignable to parameter of type 'string'. [20:08:26]  Error at             /Users/me/projects/migration/myApp/.tmp/pages/depots/details/details.ngfactory.ts:525:166 [20:08:26]  Supplied parameters do not match any signature of call target. ...
It seems like some kind of code error, but they not only do not make any sense, there isn't much information on where exactly that problem is, since welcome.ngfactory.ts is a temporary, generated file. And I do not have nor do I need a rootPage in it. With the beta I did not have these issues and it worked on Android and iOS.
Am I missing something?
Any help would be awesome.
Best regards,
Khalid

My Ionic info is:
Cordova CLI: 6.3.1 Ionic Framework Version: 2.0.0-rc.3 Ionic CLI Version: 2.1.14 Ionic App Lib Version: 2.1.7 Ionic App Scripts Version: 0.0.46 ios-deploy version: 1.9.0 ios-sim version: 5.0.12 OS: OS X El Capitan Node Version: v6.4.0 Xcode version: Xcode 7.3.1 Build version 7D1014

Hi,
just an update to my problem:
These were indeed code issues. It was just confusing to suddenly have such a strict type checking that wasn't there before, as well as the fact that the build result is inconsistent with the ionic serve result, which just works.
Maybe the ionic serve result can be adjusted in the future to behave similarly, so one may not be bitten later on.

I updated node to the latest version and then I got the following message:

[17:54:36]  ionic-app-script task: "build"
[17:54:36]  Error: "main.dev.ts" and "main.prod.ts" have been deprecated. Please create a new file "main.ts" containing
the content of "main.dev.ts", and then delete the deprecated files. For more information, please see the
default Ionic project main.ts file here:
https://github.com/driftyco/ionic2-app-base/tree/master/src/app/main.ts

So, I created a main.ts file. I made a CTRL C CTRL V from main.dev.ts to main.ts and that's it :)

I have the same issue when I run ionic run android -l
Here are the logs:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'ionic:serve',
1 verbose cli   '--',
1 verbose cli   '--v2',
1 verbose cli   '--runLivereload',
1 verbose cli   '--isPlatformServe',
1 verbose cli   '--livereload',
1 verbose cli   '--port',
1 verbose cli   '8100',
1 verbose cli   '--livereload-port',
1 verbose cli   '35729',
1 verbose cli   '--address',
1 verbose cli   '<IP_ADDRESS>',
1 verbose cli   '--iscordovaserve',
1 verbose cli   '--nobrowser' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'preionic:serve', 'ionic:serve', 'postionic:serve' ]
5 info lifecycle ionic-hello-world@~preionic:serve: ionic-hello-world@
6 silly lifecycle ionic-hello-world@~preionic:serve: no script for preionic:serve, continuing
7 info lifecycle ionic-hello-world@~ionic:serve: ionic-hello-world@
8 verbose lifecycle ionic-hello-world@~ionic:serve: unsafe-perm in lifecycle true
9 verbose lifecycle ionic-hello-world@~ionic:serve: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/faisalfarooq/Desktop/the_internet/ResSeniorIonic/node_modules/.bin:/Users/faisalfarooq/.rvm/gems/ruby-2.3.3/bin:/Users/faisalfarooq/.rvm/gems/ruby-2.3.3@global/bin:/Users/faisalfarooq/.rvm/rubies/ruby-2.3.3/bin:/Users/faisalfarooq/anaconda/bin:/Users/faisalfarooq/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Users/faisalfarooq/.rvm/bin
10 verbose lifecycle ionic-hello-world@~ionic:serve: CWD: /Users/faisalfarooq/Desktop/the_internet/ResSeniorIonic
11 silly lifecycle ionic-hello-world@~ionic:serve: Args: [ '-c',
11 silly lifecycle   'ionic-app-scripts serve "--v2" "--runLivereload" "--isPlatformServe" "--livereload" "--port" "8100" "--livereload-port" "35729" "--address" "<IP_ADDRESS>" "--iscordovaserve" "--nobrowser"' ]
12 silly lifecycle ionic-hello-world@~ionic:serve: Returned: code: 1  signal: null
13 info lifecycle ionic-hello-world@~ionic:serve: Failed to exec ionic:serve script
14 verbose stack Error: ionic-hello-world@ ionic:serve: ionic-app-scripts serve "--v2" "--runLivereload" "--isPlatformServe" "--livereload" "--port" "8100" "--livereload-port" "35729" "--address" "<IP_ADDRESS>" "--iscordovaserve" "--nobrowser"
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at EventEmitter.emit (events.js:172:7)
14 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:87:13)
14 verbose stack     at ChildProcess.emit (events.js:172:7)
14 verbose stack     at maybeClose (internal/child_process.js:827:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid ionic-hello-world@
16 verbose cwd /Users/faisalfarooq/Desktop/the_internet/ResSeniorIonic
17 error Darwin 16.4.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "ionic:serve" "--" "--v2" "--runLivereload" "--isPlatformServe" "--livereload" "--port" "8100" "--livereload-port" "35729" "--address" "<IP_ADDRESS>" "--iscordovaserve" "--nobrowser"
19 error node v4.4.2
20 error npm  v4.1.2
21 error code ELIFECYCLE
22 error ionic-hello-world@ ionic:serve: ionic-app-scripts serve "--v2" "--runLivereload" "--isPlatformServe" "--livereload" "--port" "8100" "--livereload-port" "35729" "--address" "<IP_ADDRESS>" "--iscordovaserve" "--nobrowser"
22 error Exit status 1
23 error Failed at the ionic-hello-world@ ionic:serve script 'ionic-app-scripts serve "--v2" "--runLivereload" "--isPlatformServe" "--livereload" "--port" "8100" "--livereload-port" "35729" "--address" "<IP_ADDRESS>" "--iscordovaserve" "--nobrowser"'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the ionic-hello-world package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     ionic-app-scripts serve "--v2" "--runLivereload" "--isPlatformServe" "--livereload" "--port" "8100" "--livereload-port" "35729" "--address" "<IP_ADDRESS>" "--iscordovaserve" "--nobrowser"
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs ionic-hello-world
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls ionic-hello-world
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]


Rename about-pull-requests.md to README.md

Why:
Closes [issue link]

What's being changed:

Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[x] This pull request impacts the contribution experience

[x] I have added the 'writer impact' label
[x] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

Why:
Closes [issue link]
What's being changed:
Check off the following:

[x]  I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x]  For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[x]  This pull request impacts the contribution experience

[x]  I have added the 'writer impact' label
[x]  I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

Oul


Runtime error in display_entities

I am using the latest version of skweak: 0.2.17. I tried running the example (quick-start.ipynb) in the repo. When I try to execute

skweak.utils.display_entities(docs[28], "other_org_detector")

, I get this error.

Oops, sorry, that was a mistake on my side when correcting a bug yesterday.

Thank you! It worked. But the same error persists for "Step by step NER" tutorial.

That's odd, from the error message you got, it seems you are not running the very last version (updated yesterday), since the line 740 in utils.py is now "spans = get_spans(doc, [layer]). Could you do a git pull?


net: lwm2m: Add support for objects versioning and IPSO objects in version 1.1

This PR implements support for object versioning of the LwM2M objects. Initial commit adds object version reporting to the recently introduced Link Format content writer.
Consecutive commits update the IPSO objects implementation to support version 1.1 of their specification (only the objects that actually have an updated specification), which extends the objects with Timestamp resource. Finally, remove the non-standard LWM2M_IPSO_TIMESTAMP_EXTENSIONS extension, since it's no longer needed with updated objects.
Fixes #6066
Resolves #31829

CC @endian-benjamin

Nice work

Well this is a fantastic addition feature-wise and I can't see anything controversial about the patch itself... LGTM


UPSTREAM: 113756: Fix etcd path construction

(cherry picked from commit 39a167e9012076eee63458d30e7c9f8da8eb8095)
Signed-off-by: Andy Goldstein<EMAIL_ADDRESS>

Note, this needs careful review due to the number of merge conflicts I had to resolve - make sure I resolved everything correctly

These changes look good to me.

This will be in the 1.26 rebase, so there is no longer a need to backport


Calibration tool arguments

In the camera_calibration code, the marker side length and separation between two separate markers is mentioned in meters. So, this should be measured when you print the board. Thus in README, the steps should be changed from:
./camera_calibration -d=16 -dp=../detector_params.yml -h=2 -w=4 -l=200 -s=100 ../../calibration_params.yml
TO
./camera_calibration -d=16 -dp=../detector_params.yml -h=2 -w=4 -l=<measured length in meters> -s=<measured length in meters> ../../calibration_params.yml

Thank you for pointing this out. Yes, you are correct. I guess I copied and pasted the arguments from the marker generation commands, and forgot to change that.
Issue corrected in e9b1454.


Additions to "Add Gradebook Item"

A few additions/tweaks to the "Add Gradebook Item" screen and resulting item creation:

Category info note when GB is not set with categories or cat & weighting: Rather than provide an empty dropdown menu or no category info at all, provide a note stating "No categories have been created."

Category percentage: If categories & weighting are in place, provide the category's percentage in parentheses next to the category name in the dropdown menu (e.g., Homework (30%) )

Item placement when grouped by category: When a new item is created and the GB is grouped by category, place the newly created item to the far-right of whichever category it belongs to.

Auto-scrolling to placement of new item, with temporary highlight of new item: When a new item is added, scroll the GB interface so as to make the new item visible to the user. Additionally, if possible, provide some sort of temporary highlighting to make the newly created item more immediately visible (perhaps a bolded border).

Hi @payten,
The category info / percentage and auto-scrolling are looking great. The only thing I'm still noticing is, when grouped by category, the newly created GB item doesn't appear to be getting added on the far-right (bullet 3 above):

Hi @steveswinsburg, if regard to #216, this is pretty much done in the Javascript at present as the category order XML isn't always in sync with reality.  Ideally we would update the GradebookNgBusinessService.addAssignment method to at least try and keep the XML more in sync, however as assignments can be imported and also created via the old Gradebook tool it completely bypasses our service leaving the XML in a dodgy state.
I've currently solved it by sorting by the index from the XML if it was present.  If assignments aren't in the XML they have an index of -1 and they are pushed to the end by default.  If any assignments have the same index (-1 or otherwise), we order by the assignment's ID in ascending order, ensuring newer assignments are at the end.

Yeah I don't think we can do much about the order unless we get this
sorting into the backend, which requires more complex changes.
But this is great for now.
cheers,
Steve
On Thu, Sep 10, 2015 at 9:56 AM, Payten Giles<EMAIL_ADDRESS>wrote:

Hi @steveswinsburg https://github.com/steveswinsburg, if regard to #216
https://github.com/steveswinsburg/gradebookNG/pull/216, this is pretty
much done in the Javascript at present as the category order XML isn't
always in sync with reality. Ideally we would update the
GradebookNgBusinessService.addAssignment method to at least try and keep
the XML more in sync, however as assignments can be imported and also
created via the old Gradebook tool it completely bypasses our service
leaving the XML in a dodgy state.
I've currently solved it by sorting by the index from the XML if it was
present. If assignments aren't in the XML they have an index of -1 and
they are pushed to the end by default. If any assignments have the same
index (-1 or otherwise), we order by the assignment's ID in ascending
order, ensuring newer assignments are at the end.
—
Reply to this email directly or view it on GitHub
https://github.com/steveswinsburg/gradebookNG/issues/176#issuecomment-139075932
.

Confirmed!


Adding Support for timer-based Questions

Currently This Application serves only Simple - (Question - Answer) Support without any kind of time limit
What I need is to add timer-based question support
**
Once you reach a particular question Timer Automatically Starts and Auto-Submit.
*** This is hard feature to add.

please assign this to me

sure!

I can't assess the quiz after creating the profile (Verifying account only shows a blank page)

verifying account need google authentication approval
to skip this in dev environment just create a super user and from profiles check a verified button!


typo

ver 5 uses snapshotChanges

Checklist

Issue number for this PR: #nnn (required)
Docs included?: (yes/no; required for all API/functional changes)
Test units included?: (yes/no; required)
In a clean directory, npm install, npm run build, and npm test run successfully? (yes/no; required)

Description

Code sample

Thanks @idanb11!

There's 5 instances of valueChanges in these docs still -
https://github.com/angular/angularfire2/blob/master/docs/rtdb/objects.md - am I wrong or should some more updates be made?


term: skip setRawMode if input is not tty

cuz otherwise it just errors
maybe we can print a warning too

done in v2.11.0 debabdd6dbc4b8dfe18b3b5fade0b313db4f4891


connection error prevents pool from ending connection

This doesn't work as expected (pool doesn't end, script doesn't exit)
pool.getConnection(function (err, conn) {
  conn.query('').
    on('end', function () {
      conn.release()
      pool.end()
    })
})

however, this works (pool closes connections and script exits)
pool.getConnection(function (err, conn) {
  conn.query('').
    on('error', function () {}).
    on('end', function () {
      conn.release()
      pool.end()
    })
})

Thanks for the great lib!

Ah ha, I see now. So what is happening is is a sequence, like query, doesn't have an error handler (either an error event listener or a callback function), then the error is not handed to the sequence, but as a consequence, the end event for the sequence will never fire. Seems like a bug to me, since we're not being consistent on when the end event is emitted. Since it currently emits on an error, it should still emit in this case as well :)

@dougwilson thanks! yes, that would be more expected behaviour.

Actually the end event is being fired; the problem is that, since there are no listeners to the error event, it bubbles up to PoolConnection, which, in turn, will call _removeFromPool. This will remove any references to the connection, and when we try to end the pool, the connection won't be ended/destroyed, causing a stall.
Do we really need to call _removeFromPool on error, since it will eventually be called on end events?

In my previous pool request, I assumed that all errors would trigger end events, but that may not always be the case. All fatal errors trigger end events, but it's not necessarily true for other types of errors.
So I thought about making a slight modification of the proposed fix. In PoolConnection, we would have:
this.on('error', function() {
  self._removeFromPool();
  self.destroy();
});

This also fixes the dangling connection issue and passes the tests.
What do you think, @dougwilson? Is it ok to always destroy the connection here or only if it is in a specific state, like protocol_error (which is the case for an invalid query)?

I believe this issue got fixed at some point, based on me not being able to reproduce anymore. If someone can reproduce with version 2.6.1+, please open a new issue/PR and let me know!


feat: added finance and store to community

added cards for finance and store in community page
fixes #2538

@thulieblack PR is open for your review.

Looks good but I would like to update all the cards in one PR.
For instance:

Update the Community Goals with the new link to 2024 https://github.com/orgs/asyncapi/discussions/948
Remove this card as it's no longer necessary at this moment.

Then we will be good to go

@thulieblack @akshatnema @derberg updated the cards

cc : @alequetzalli

/rtm

/rtm

/rtm


Quesiton about integrated providers

Hello,
If I decide to use Shopify or BigCommerce as the backend provider, how flexible could this storefront be? If I remember correctly, Shopify doesn't let you have your own checkout page, but needs you to redirect to theirs.
And BigCommerce doesn't let you have a faceted search ( by size, color, etc... ).
Are these limitations still there and are these features available in Vercel Commerce?

I was wondering about that myself, with starters like this project. The role of backend is diminished to a CMS which is only required at build time (I am assuming this is how it is working since there I couldn't find any documentation).
How can they even enforce restriction of any customization on front end when they don't control it?

They don't expose some endpoints publically. If I go and try create a storefront from scratch, I will probably not be able to use faceted search in BigCommerce. But in some cases of partnership, those endpoints are exposed and I am wondering if BigCommerce lets Vercel use the entire functionality

Hello @FlushBG !
We don't have support for Custom Checkout yet, but it's under development -- We have all the designs and components ready. We need to make the api for it flexible before standarizing it.
So, the idea is that you can add it yourself (components and everything) by forking the starter. You'll need to create a new provider shopify_stripe, for example to unlock more capabilities on the checkout if needed.

Thnks @okbel !
Thanks for the reply! What about BigCommerce, do they allow a custom checkout and using the faceted search?

Last time I check, they didn't support custom checkout! But, don't take my word for it: check the docs and each sites. They are usually super updated :)


wsltty.json / Can't install

I've tried on multiple computers and in PowerShell as Administrator
PS C:\WINDOWS\system32> scoop install wsltty
Installing 'wsltty' (3.0.6) [64bit]
Loading wsltty-3.0.6-install.exe from cache
Checking hash of wsltty-3.0.6-install.exe ... ok.
Extracting dl.7z ... done.
Running installer... Could Not Find C:\Users\Colovic\AppData\Local\wsltty\*.bat
Could Not Find C:\Users\Colovic\AppData\Local\wsltty\*.lnk
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
Could Not Find C:\Users\Colovic\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\WSLtty\*.lnk
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
'"C:\Users\Colovic\AppData\Local\wsltty\bin\zoo"' is not recognized as an internal or external command,
operable program or batch file.
'"C:\Users\Colovic\AppData\Local\wsltty\bin\zoo"' is not recognized as an internal or external command,
operable program or batch file.
'"C:\Users\Colovic\AppData\Local\wsltty\bin\zoo"' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
The system cannot find the file specified.
'bin\dash.exe' is not recognized as an internal or external command,
operable program or batch file.
done.
Linking ~\scoop\apps\wsltty\current => ~\scoop\apps\wsltty\3.0.6
'wsltty' (3.0.6) was installed successfully!

I fixed this a year ago and they left me hanging. 😐


gdb: add system-wide configuration file

paths are copied from debian and arch.
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

can you elaborate?

Sure. As a C++ dev, I'd like to see for example std::vector contents printed with gdb. This requires pretty printer scripts, which at least for C++ STL means some Python scripts. These don't work out of the box on nixOS, and I am suspicious of the /etc paths copied in the current nixpkgs like --with-system-gdbinit=/etc/gdb/gdbinit since they don't seem to exist and the commit message says that it was copied from debian and arch. You can see what people do for Ubuntu to make this work for example here and I'm struggling to figure out how to do something similar on NixOS while a lack of STL pretty printers makes my development iteration loop more time consuming with more log statements necessary.

To my knowledge, pretty printers have nothing to do with the central config file. On NixOS there can be several versions of the same standard library, so several versions of the same pretty printer python script. Therefore no central config file can point to the correct one, only the standard library that is used in the debuggee can. This currently works, provided that for a library /nix/store/$path/libfoo.so.py you have the pretty printer besides it as /nix/store/$path/libfoo.so-gdb.py. For example besides
/nix/store/xvzz97yk73hw03v5dhhz3j47ggwf1yq1-gcc-13.2.0-lib/lib/libstdc++.so.6.0.32 there is /nix/store/xvzz97yk73hw03v5dhhz3j47ggwf1yq1-gcc-13.2.0-lib/lib/libstdc++.so.6.0.32-gdb.py
Of course you also need debug infos for it to work. I obtain them by settting up nixseparatedebuginfod https://search.nixos.org/options?channel=24.05&show=services.nixseparatedebuginfod.enable&from=0&size=50&sort=relevance&type=packages&query=nixseparate
To test this I wrote a small cpp file
#include <iostream>
#include <ostream>
#include <string>
#include <vector>

[[gnu::noinline]]
void f(std::vector<std::string> &v) {
  for (const auto& e: v) {
    std::cout << e << std::endl;
  }
}
int main(int argc, char** argv) {
  std::vector<std::string> v;
  for (int i=0; i<argc; i++) {
    v.push_back(argv[i]);
  }
  f(v);
  return 0;
}

compiled it with -g and opened with gdb
start
Downloading separate debug info for /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/ld-linux-x86-64.so.2
Downloading separate debug info for system-supplied DSO at 0x7ffff7fc6000
Downloading separate debug info for /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libm.so.6
Downloading separate debug info for /nix/store/k7zgvzp2r31zkg9xqgjim7mbknryv6bs-glibc-2.39-52/lib/libc.so.6
b f
c
p v
$1 = std::vector of length 1, capacity 1 = {"/tmp/a.out"}
info pretty-printer
global pretty-printers:
  builtin
    mpx_bound128
objfile /nix/store/xvzz97yk73hw03v5dhhz3j47ggwf1yq1-gcc-13.2.0-lib/lib/libstdc++.so.6 pretty-printers:
  libstdc++-v6
    __gnu_cxx::_Slist_iterator
    __gnu_cxx::__8::_Slist_iterator
    __gnu_cxx::__8::__normal_iterator
    __gnu_cxx::__8::slist
    __gnu_cxx::__normal_iterator
    __gnu_cxx::slist
    __gnu_debug::_Safe_iterator
    std::_Bit_const_iterator
    std::_Bit_iterator
    std::_Bit_reference
[...]

as you can see the pretty printer works fine.


MAC address is not set for secondary/new SSID causes radio to fail startup

Hi,
Just upgraded to:
OpenWrt 21.02.0 r16279-5cc0535800 / LuCI openwrt-21.02 branch git-21.231.26241-422c175
Linksys WRT3200ACM

I setup my guest SSID as 2nd SSID of the radio interface.
Once added, it causes the entire radio interface to fail startup.
I found that the macaddr statement at /etc/config/wireless is missing for the new entry.
I am not sure how it should be generated and if the luci is responsible for that... but I guess so.
Once I manually put a mac address everything is working correctly.
 config wifi-iface 'wifinet3'
         option device 'radio1'
         option mode 'ap'
         option ssid 'XXXX'
+        option macaddr 'e8:9f:80:1b:70:db'
         option isolate '1'
         option encryption 'psk2+ccmp'
         option key 'XXXX'

Everything is not actually everything... after restart the new interface is failing with DEVICE_CLAIM_FAILED error, manual restart to the interface fixes the issue, however, this is problematic as the system fails every power-down. But I guess this is not luci issue.
Regards,
Alon

In order to simulate the manual restart I can execute to workaround the issue of DEVICE_CLAIM_FAILED post restart:
wifi down radio1 && wifi up radio1

According to https://forum.openwrt.org/t/wrt3200acm-21-02-0-rc4-multiple-wifis-on-a-single-radio/103515 just remove these macaddr options from all configured SSIDs. Not a LuCI issue at all.


New UserNotice Found: rewardgift

Feature Request
⚠  twitch-chat WARNING Unrecognized usernotice ID: rewardgift
pretty sure has to do with the free winter emotes that the community gets when someone subs, but i don't have much data past that

I don't think it provides much value to be able to react to this programmatically. I could add some code to suppress the message for this particular ID, but as this is seasonal I'd say just ignore it.

Reopened since this seems to be a regular thing now.


Text experiments

See issue 465 this is the script to generate the desired dataset on a scale to 1 - 25.

Fixed it :)


Syntax highlighting is broken with type variable in v-for

When using a v-for and calling the variable type, syntax highlighting is broken:

Reproduction
<template>

</template>

Put script block above template block and use a type alias (type Foo = {}) also breaks

Duplicate of #1290


little error : .ldf instead of .mdf for log file

Hi,
at the beginning of the article, it's written "copy the ADSync.mdf and ADSync_log.mdf " ==> it should be ADSync_Log.ldf and not ADSync_log.mdf ;-)
kind regards

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

ID: 21e6e33d-deb6-268d-9e4d-cefe45ba82ca
Version Independent ID: 5238537b-7b91-ba1b-28f7-aad7882bf14e
Content: Move Azure AD Connect database from SQL Server Express to SQL Server.
Content Source: articles/active-directory/hybrid/how-to-connect-install-move-db.md
Service: active-directory
GitHub Login: @billmath
Microsoft Alias: billmath

@RomanNG thanks for catching this! I've created a pull request with the fix for review by @billmath
https://github.com/MicrosoftDocs/azure-docs-pr/pull/60816

We will now proceed to close this thread. The change usually goes live in 24 hours.


Add haproxy26 container

This adds a container that can be used in Docker compose. It's a simple Haproxy loadbalancer, with all the StepupApps as backends. It also contains a Haproxy stats page to check the loadbalancer status.
A wildcard certificate is added for *.dev.openconext.local. The cert should be imported in the trusted certificate store on all the containers that need to access other containers.
Strictly speaking, this container should be in it's own repo. However, since the selfsigned certificate should be imported on all dev containers, I am putting it here.

@quartje - looks good to me!
The only mention I do have is about the certificate. Although we don't require strict security on the dev environment, it is a best practice in general to not add certificates to the code. So I am thinking you could add the certificate to the Github Actions secrets store: https://docs.github.com/en/actions/security-guides/encrypted-secrets
Then you could access that certificate during the Actions pipeline as an environment variable and "echo" it into a file inside the docker container image at build time. So it will be available in the image, but not visible in the code.

That's a nice suggestion. We need the certificate to distribute in the other containers, should we put that in a GitHub variable as well?

@quartje - yes! I would check if Github has "global" variables or secrets, that would be available to all projects. Then you could just pull it in any project and in any new project.


Dynamic Blog feed

Story:
As a BCDevExchange visitor I would like to view all BCDevX related blog posts on the site so that I can stay up to date with the project activities.
Additional detail:
The list of Blog entries in https://bcdevexchange.org/blog is currently static (updates in the application and requires a build).
We need to make this feed dynamic - consuming from http://blog.data.gov.bc.ca/feed/?category=BCDev
As it stands, the WordPress feed currently only shows the last 10 Blog posts. We'd like to consume all the BCDevX blog posts.
Links:
Blog page
Story Originator:

Daniel Yona

Success criteria:

Blogs will automatically appear from http://blog.data.gov.bc.ca/ as long as they are in the "BCDev" category in WordPress

Approach:

We will need to get the Blog time to expose access to this data (XML or JSON)
Once the data has been exposed, we can make modifications to our code in order to consume it.
We may want to build some caching mechanism into this so that we're not querying the data every time. May be as simple as sending the right headers on the feed from the WordPress side.

Connect with:

Loren M
Daniel Y

I think there is a bug in either waffle or github. According to waffle docs:
Closing Issues via Commits
Including a keyword and the issue # in your commit message will close that issue once it is merged into your default branch. This will automatically move the issue to the Done column on your Waffle board.

keywords:
close, closes, closed
fix, fixes, fixed
resolve, resolves, resolved

As you can see above I committed code, referenced the issue and contained keyword fixes but the issue is neither closed nor changed state in waffle board.
Please don't manually close the issue. I am trying to show the problem to waffle.

Hey @f-w, Kelli from Waffle here. The word "issue" in "fixes issue #148" is what's messing it up. Here's what GitHub says about it: https://help.github.com/articles/closing-issues-via-commit-messages/
Hope that helps!

@kellihsf thanks for the suggestion. Works like a charm!


Fixing javadoc warnings #53

Fixing Javadoc warnings (see #53).
Please note: this is a "work in progress" PR, please do not merge yet.
CLA not signed yet.

Codecov Report

Merging #56 into master will not change coverage.
The diff coverage is 50%.

@@            Coverage Diff            @@
##             master      #56   +/-   ##
=========================================
  Coverage     75.99%   75.99%
  Complexity     1321     1321
=========================================
  Files           101      101
  Lines          4629     4629
  Branches        801      801
=========================================
  Hits           3518     3518
  Misses          895      895
  Partials        216      216

Impacted Files
Coverage Δ
Complexity Δ

...tudarmstadt/ukp/jwktl/api/util/TemplateParser.java
79.51% <ø> (ø)
10 <0> (ø)
:arrow_down:

...de/tudarmstadt/ukp/jwktl/api/entry/WikiString.java
56% <ø> (ø)
8 <0> (ø)
:arrow_down:

...arser/en/components/ENSemanticRelationHandler.java
94.11% <ø> (ø)
15 <0> (ø)
:arrow_down:

...tudarmstadt/ukp/jwktl/parser/util/StringUtils.java
96.29% <ø> (ø)
26 <0> (ø)
:arrow_down:

...a/de/tudarmstadt/ukp/jwktl/api/IPronunciation.java
100% <ø> (ø)
0 <0> (ø)
:arrow_down:

...n/java/de/tudarmstadt/ukp/jwktl/WiktionaryCli.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

src/main/java/de/tudarmstadt/ukp/jwktl/JWKTL.java
30.76% <50%> (ø)
4 <3> (ø)
:arrow_down:

Continue to review full report at Codecov.

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

Still WIP, please do not merge yet.


MFA doesn't work as expected (fails or needs to be supplied every time)

I would like to use aws-shell, but we use roles with MFA authentication for all profiles. This breaks the commands that query aws and make other commands tedious to use.
my .aws/config file
[profile root]
output = json
region = eu-west-1

[profile account]
source_profile = root
role_arn = arn:aws:iam::ACCOUNT_ID:role/admin_role
mfa_serial = arn:aws:iam::ROOT_ACCOUNT_ID:mfa/ben
output = json
region = eu-west-1

.aws/credentials has the credentials for the root profile.
What happens (1): MFA is asked twice
$ aws-shell --profile account
aws> elasticbeanstalk list-available-solution-stacks
Enter MFA Code:
{} // Output skipped
aws> elasticbeanstalk list-available-solution-stacks
Enter MFA Code:
{} // Output skipped

What I expect to happen (1): MFA is asked once
$ aws-shell --profile account
aws> elasticbeanstalk list-available-solution-stacks
Enter MFA Code:
{} // Output skipped
aws> elasticbeanstalk list-available-solution-stacks
{} // Output skipped

What happens (2): Querying fails:
aws> ec2 start-instances --instance-ids
Enter MFA code:

Parameter validation failed:
Invalid length for parameter TokenCode, value: 0, valid range: 6-6

I think this may be okay if it wouldn't ask for MFA and wait with querying until you have authenticated.
What happens (3): Querying fails even after using MFA once
elasticbeanstalk list-available-solution-stacks
Enter MFA Code:
{} // Output skipped
aws> ec2 start-instances --instance-ids
Enter MFA code:

Parameter validation failed:
Invalid length for parameter TokenCode, value: 0, valid range: 6-6

I'm surprised that MFA is being asked twice when invoking multiple commands.  That should be cached by the CLI.
For the second issue, because we're using boto3 to do server side completion which is separate from the CLI commands being run, I can see how we would ask for the MFA code twice.  This is not ideal.
I'd like to improve this.  Thanks for the feedback.

It looks like there was something wrong with my aws cli.
After clearing .aws/cli/cache/ multiple commands work. I do not know how this got corrupted.
The second case still fails.
$ rm  .aws/cli/cache/*
$ aws-shell --profile account
aws> elasticbeanstalk describe-configuration-settings --application-name app --environment-name env
Enter MFA Code:
{} // output skipped
aws> elasticbeanstalk describe-configuration-settings --application-name app --environment-name env
{} // output skipped
aws> ec2 start-instances --instance-ids Enter MFA code: // hangs after supplying code, I have to hit enter twice
aws> ec2 start-instances --instance-ids

A client error (InvalidParameterCombination) occurred when calling the StartInstances operation: No instances specified
aws> elasticbeanstalk describe-configuration-settings --application-name app --environment-name env
{} // output skipped

Kind regards,
Ben

Hi,
I think this bug that you keep getting prompted repeatedly when using MFA makes it unusable for sites like ours where we use MFA for all our accounts. Is there a way to toggle the server side completion? If I could just toggle it off that would be a workaround. I think that would be a good feature also for the use case where you have high latency to the aws region. Say if you are in Asia Pacific and using a US region (which we do!) latency is > 200ms.

Yes, disabling the completion would make aws-shell useable. At this point it's easier to not use it at all.

Is there any plan to resolve this? aws-shell is absolutely awesome, but this bug makes it almost useless for my day-to-day activities administering a multi-account environment where I'm constantly role switching and all roles have an MFA requirement.
If this isn't possible to solve, would it be plausible to have a toggle for the server-side autocomplete functionality, or perhaps auto-disable those calls to boto3 if the current profile is MFA protected?


cannot connect to AKS via command line

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks get-credentials
Errors:
'clusters'
Traceback (most recent call last):
Local\Temp\pip-unpacked-wheel-kl_cpqvn\knack\cli.py, ln 215, in invoke
azure\cli\core\commands\__init__.py, ln 654, in execute
azure\cli\core\commands\__init__.py, ln 718, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 711, in _run_job
AppData\Local\Temp\pip-unpacked-wheel-imoq0319\six.py, ln 703, in reraise
azure\cli\core\commands\__init__.py, ln 688, in _run_job
azure\cli\core\commands\__init__.py, ln 325, in __call__
pip-unpacked-wheel-d55550gx\azure\cli\core\__init__.py, ln 779, in default_command_handler
azure\cli\command_modules\acs\custom.py, ln 2145, in aks_get_credentials
azure\cli\command_modules\acs\custom.py, ln 3359, in _print_or_merge_credentials
azure\cli\command_modules\acs\custom.py, ln 1281, in merge_kubernetes_configurations
azure\cli\command_modules\acs\custom.py, ln 1217, in _handle_merge
KeyError: 'clusters'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az aks get-credentials --resource-group {} --name {}

Expected Behavior
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.10.1

Additional Context

AKS

Have you previously downloaded credentials successfully or did get-credentials never work?
Do you have an existing .kube/config file?

@TomGeske Hello, sorry fro the delay response. It's not a block issue for me now. I hope I can give more feedback during the weekend. Please stay tuned.


CVE-2023-2828 seems to be missing

As reported in the Matrix channel: https://matrix.to/#/!nsjWUEtSIfrGjHKfkd:gitter.im/$nHwsqgGQFxcf1l_FwPyaSR7lM5bh1jrhdL4eWW3EB3E?via=gitter.im&via=matrix.org&via=matrix.freyachat.eu

it appears that vulnerablecode.io doesn't know about CVE-2023-2828 https://nvd.nist.gov/vuln/detail/CVE-2023-2828

This does not seem to be present in the public VCIO instance but it's there in my local db snapshot (https://github.com/nexB/vulnerablecode/issues/1262#issuecomment-1688162226) with vulnerability_id: VCID-vxq6-vrp7-aaae

^^

https://public.vulnerablecode.io/vulnerabilities/VCID-wgfs-fwbx-aaab?search=CVE-2023-2828 now we have this in our public instance, hence closing this


cannot download dragon bones

i visit the page but chrome page say ERR_CONNECTION_TIMED_OUT, can you submit to another site and lin for this page

Same here.. did you succeed?

same here

Try: https://web.archive.org/web/20230224001724/https://docs.egret.com/dragonbones/en
from: https://github.com/DragonBones/dragonbones.github.io/issues/26

Anyone had any luck downloading for mac?


Translator Badge Request

I've made changes to and helped out with the German translation every now and then and would like the badge also.

Added! Thanks for translating!


Bump eks-anywhere-packages

Issue #, if available:
Description of changes: Bump manually
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm


feat: import delegate statement from safe

Closes https://github.com/snapshot-labs/workflow/issues/228
Import delegates statement from Safe
To run: yarn ts-node scripts/import-statements.ts --providers safe

I get this error weirdly
TypeError: Cannot read properties of undefined (reading 'MAPPING')
    at snapshot-sequencer/src/lib/importer/statement/index.ts:40:55
    at Array.map (<anonymous>)
    at buildParams (snapshot-sequencer/src/lib/importer/statement/index.ts:38:20)
    at main (snapshot-sequencer/src/lib/importer/statement/index.ts:18:26)
    at main (snapshot-sequencer/scripts/import-statements.ts:22:12)
    at snapshot-sequencer/scripts/import-statements.ts:28:11

Done on prod DB ✅


Get the table schema with column names and types

Greetings, and thanks for the issue!  We can't quite figure out if this is a question, a bug report, or a feature request :) If there's something we can do for you - we'd be happy to help! Just make sure to  fill out a complete bug report.

I have posted our use-case here: https://github.com/googleapis/google-cloud-node/issues/2873


Windows Support

I'm creating this issue for people to subscribe to in order to be notified when you release a Windows version.
I simply request that you comment when you have progress updates, need beta testers, etc...
When there is finally a stable release, please close the issue.
Thank you for your hard work!

@spensbot, Thank you for working on this.
My schedule is a little busy at the moment, but I am hoping to take a deeper look into this during my stay-cation the week of the 12th.

@spensbot I'm testing this out today, I watched all of your videos first off.
I have a few feature requests, but I'll open separate issues for them.
First thing I noticed is that I can't get the DMX output to work, the indicator is green, but my lights don't do anything.
I have the EntTec OpenDMX USB, the blue one.
I use this one every weekend with my main rig, so I know it works.
It is COM5

Awesome! Thank you, I can't wait to be able to test it out!


feat: adding token expiration time

In addition, some updates to the migrate tokens script.

Codecov Report

Merging #344 (221b34b) into main (b636482) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #344      +/-   ##
==========================================
+ Coverage   68.30%   68.33%   +0.03%
==========================================
  Files          11       11
  Lines        2010     2012       +2
==========================================
+ Hits         1373     1375       +2
  Misses        538      538
  Partials       99       99

Impacted Files
Coverage Δ

service/handlers.go
61.77% <100.00%> (+0.07%)
:arrow_up:

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 b636482...221b34b. Read the comment docs.


Adding Hobospider132.github.io

Site: https://hobospider132.github.io/
Repo: https://github.com/Hobospider132/hobospider132.github.io
Size: 35.4 kb
Not sure if this is required:
https://gtmetrix.com/reports/hobospider132.github.io/uBNHZxtU/

I'm going to add your page manually. Thanks for your submission and welcome to the 250kb Club!
Btw, I suggest working on the text contrast to make it more readable, especially for visually impaired people.


feu, eradication

This pull request was generated by the 'mq' tool
[test]
flake rate: 0.4
logical conflict every: 100
sleep for: 300s
[pullrequest]
requests per hour: 30
deps=[e,f]

/trunk merge


ansibletower servicenow integration

Hi All,
I was trying to ansible tower service now integration by using below URL
I have configured ansible tower and created service now dev instance and followed the documentation steps as per below link, but at step no. 12
I was getting error( auth ivalid of redirect url)
https://www.ansible.com/blog/ansible-servicenow-howto-part-3-making-outbound-restful-api-calls-to-ansible-tower
if anyone aware of this Please help me out.

Service now support cannot be expected over here.


Update .NET SDK to v8.0.402

For the vs_buildtools component Microsoft.NetCore.Component.SDK, please update the installed .NET SDK Version to 8.0.402, see https://github.com/NuGet/Home/issues/13729 for details.
After that please update your .NET Framework SDK Dockerfiles, for example: https://github.com/microsoft/dotnet-framework-docker/blob/2d75ca9b3546b69e511e36a4b5d6a897a805506c/src/sdk/4.8/windowsservercore-ltsc2022/Dockerfile#L37
BTW: 8.0.402 is already used for .NET SDK Dockerfiles, for example: https://github.com/dotnet/dotnet-docker/blob/b9bca757f5f6135feab16b7d7aac9e0e3f101e3b/src/sdk/8.0/windowsservercore-ltsc2022/amd64/Dockerfile
Many Thanks.

[Triage] The version of the .NET SDK in the .NET Framework Dockerfiles tracks the version of the .NET SDK that's supported in the current Visual Studio version. .NET SDK out-of-band releases don't get inserted into Visual Studio. You can expect the next regular servicing version of the .NET SDK to be available in the .NET Framework images.
You may also manually install the latest version using the dotnet-install scripts: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
Closing this as not planned since we won't be changing the images to pick up the OOB 8.0.402 release.


OMS substratum seems to not apply

Attempting to run substratum in combination with microG, any one can confirm this should work?
No errors from substratum, theme builds and applies no errors but no visible changes.
I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.cyanogenmod.trebuchet/com.android.launcher3.Launcher (has extras)} from uid 1000 on display 0
W/ActivityManager: Unable to start service Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms } U=0: not found
W/ActivityManager: Unbind failed: could not find connection for android.os.BinderProxy@d97864
E/GmsClient: unable to connect to service: com.google.android.gms.measurement.START on com.google.android.gms
W/FA      : Service connection failed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
I/MSM-irqbalance: Decided to move IRQ224 from CPU0 to CPU3
W/OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
W/OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=rs.pedjaapps.alogcatroot.app/.LogActivity bnds=[646,81][858,395] (has extras)} from uid 10031 on display 0
D/su      : su invoked.
D/su      : starting daemon client 10140 10140
D/su      : remote pid: 18461
D/su      : remote pts_slave:
D/su      : waiting for child exit
D/su      : su invoked.
E/su      : SU from: u0_a140
D/su      : Checking whether app [uid:10140, pkgName: rs.pedjaapps.alogcatroot.app] is allowed to be root
D/su      : Privilege elevation allowed by appops
D/su      : Allowing via appops.
D/su      : 10140 /system/bin/app_process64 executing 0 /system/bin/sh using binary /system/bin/sh : sh
D/su      : Waiting for pid 18466.
I/SuControllerImpl: Got change
W/WindowManager: Attempted to remove non-existing token: android.os.Binder@6c29f82

OMS7 is working well here:

Here you go

@daktak: Have you tried if it works with the official build of microG?

Yeah I moved roms and it works with official build.


fixed links to demos readme.md files

Jenkins please retry a build

@azaytsev1980 what for do we need to change relative links to relative links?

@Wovchena The changes are needed so that our documentation generation system can set these links properly: "./" is required

@zmaslova @Wovchena @kchechil Thanks!