text:
Draft: feat: add osv schema and rocky provider by downloading google bucket

Add Android as a new provider by downloading the Android vulns from OSV's google bucket.
Raising the PR to check the change is wanted as I can see on slack there's still questions about how the integration with osv.dev will work going forwards, the schema is lifted from the osv-schema repo and returned back into the DB. I'm happy to do some work towards handling that schema in the other components but figured a discussion was probably needed.
Note for maintainers: Be sure to add the run-pr-quality-gate label to the PR when it has stabilized.

Your code contribution looks good, however, we've been looking at the upstream data quality and are uncertain if this data source makes sense relative to the upstream canonical data source (from rocky linux directly). A few questions came up:

Severity is not captured. OSV allows for capturing CVSS v2 or v3 severity but this doesn't appear to be populated in the OSV data. Upstream this is captured as a category string (e.g. "critical" or "low").
RPM modularity might not be accounted for (example fix for existing RPM-based providers https://github.com/anchore/vunnel/pull/36). I've been looking for examples of RPM modules being listed on records without success yet. It's possible that RPM modules are not leveraged in Rocky linux, however, we'd need to make certain this is the case before proceeding since this has been a source of false positives in the past for other RPM-based ecosystems.

I think both of these elements could be included in records upstream in the database_specific fields for the affected records. It looks like the OSV data for Rocky Linux is relatively new (https://groups.google.com/g/osv-discuss/c/lWurEpuSMOc) so it's possible that these details were overlooked and an adjustment upstream needs to be made (or that there are specific reasons why this information was not included).
Unfortunately what this means for this PR is that we won't be able to continue until these questions are answered or addressed upstream.

I'm going to close this PR for now, but shout out if there is additional progress / ideas that you have here and we can re-open or chat over an issue.

authors: jneate wagoodman

repo: anchore/vunnel


text:
🛑 🏠 Toshiki's Homepage is down

In 50dff1c, 🏠 Toshiki's Homepage (https://www.toshiki.top/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 🏠 Toshiki's Homepage is back up in 98d24f0 after 1 hour, 57 minutes.

source: gharchive/issue

repo: andatoshiki/toshiki-status

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 🍛 LostArk Chinese Forum is down

In fddc424, 🍛 LostArk Chinese Forum (https://lost-ark.top/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 🍛 LostArk Chinese Forum is back up in 9c63ef0 after 1 hour, 32 minutes.


text:
Unable to Manually Select and Input Number into OTP Fields Other than the First Field

Describe the bug
Users cannot manually select and input a number into a text input field other than the first one when using the OTP library. This issue prevents users from correcting or modifying any number except the first in the sequence.
Expected behavior
Users should be able to manually select any text input field within the OTP input sequence and input a number directly into the selected field. The focus should remain on the chosen input field until the user navigates to a different one or completes the OTP input process.

Hi, @apachi1444 , thank you for raising this question. UX of OTP style inputs are a bit different than normal Text Inputs, as each character divided into separate blocks. So, long story short, it's a bit tricky in terms of proper UX to correct or modify previous character(s), and because generally, the otp codes are short, it's acceptable for a user to backspace till the correction point.
One other suggestion can be, when user taps on already filled blocks, it removes the character with the ones that follow it, so the user gets a chance to correct and retype from that place

Closing this ticket due to inactivity. Feel free to reopen it

Hello anday , sorry for this late reply
I just retested the problem and I remark even if I don't type anything and I want to start from the 3rd character for example , it blocks me


text:
Develop

Issues Raised during defending

Coverage remained the same at 100.0% when pulling 60b448c9ba82b6920e320b8a4c7cdc4102aa1e14 on develop into 60bae08c31d10b613a50722952f9ee76810d2162 on master.

source: gharchive/pull-request

authors: andela-ekahindi coveralls

repo: andela-ekahindi/string-extension


text:
Steuerung per REST API

Laut README müsste sich EVCC folgendermaßen per REST API mit cURL steuern lassen (z.B. auf "Nur PV" stellen; andere Modi mit "off", "now" und "minpv" statt "pv"):
curl -s -X POST http://localhost:7070/api/mode/pv
Ich meine, das ging in einer der vorigen Versionen auch mal so. Im aktuellen Release (0.46) habe ich bemerkt, dass eine solche Anfrage mit "404 page not found" beantwortet wird.
Stattdessen geht es mit z.B. mit folgendem Befehl:
curl -s -X POST http://localhost:7070/api/loadpoints/0/mode/pv
Damit wird, laut README, nur der Loadpoint 0 gesteuert. Eine allgemeine Steuerung ("global charge mode") scheint jedoch nicht mehr möglich zu sein. Ist das so beabsichtigt und nur in der README noch erwähnt?

Fehler in der README, danke für den Hinweis!

https://github.com/andig/evcc/commit/b2ddbd4ff7f029445de0f11883e61cb24c26ac71

authors: andig ilosuna

repo: andig/evcc


text:
Inserting multiple rows into a table

In the test I find:
tx.executeSql('INSERT INTO Employees (name, office, department) VALUES ("Sylvester Stallone", 2,  4);');
tx.executeSql('INSERT INTO Employees (name, office, department) VALUES ("Elvis Presley", 2, 4);');
tx.executeSql('INSERT INTO Employees (name, office, department) VALUES ("Leslie Nelson", 3,  4);');
tx.executeSql('INSERT INTO Employees (name, office, department) VALUES ("Fidel Castro", 3, 3);');
tx.executeSql('INSERT INTO Employees (name, office, department) VALUES ("Bill Clinton", 1, 3);');
tx.executeSql('INSERT INTO Employees (name, office, department) VALUES ("Margaret Thatcher", 1, 3);');
tx.executeSql('INSERT INTO Employees (name, office, department) VALUES ("Donald Trump", 1, 3);');
tx.executeSql('INSERT INTO Employees (name, office, department) VALUES ("Dr DRE", 2, 2);');
tx.executeSql('INSERT INTO Employees (name, office, department) VALUES ("Samantha Fox", 2, 1);');

Is there a way to do this with one statement with passing an array?

Please raise this sort of question on stack overflow.

ok. https://stackoverflow.com/questions/57711001/how-can-i-insert-multiple-rows-into-a-table-with-react-native-sqlite-storage

This worked for me:

db.transaction(tx => {
  for (let i = 0; i < my_list.length; i++) {
    tx.executeSql(
      'INSERT OR REPLACE INTO category (id,name,age) VALUES (?,?,?,)',
      [
        my_list[i].id,
        my_list[i].name,
        my_list[i].age,
      ],
      (tx, results) => {
      },
      error => {
      },
    );
  }
});

authors: andpor elshen321 forki

repo: andpor/react-native-sqlite-storage

license: mit

license_source: bigquery


text:
TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/117981

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/118297

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/118900

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/119496

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/120811

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/121790


text:
🛑 Haags Historisch Museum is down

In 3f133bb, Haags Historisch Museum (https://www.haagshistorischmuseum.nl) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Haags Historisch Museum is back up in 5f32bbc.

repo: andreesg/intk-upptime


text:
🛑 Instituto Corpo is down

In 26885a8, Instituto Corpo (https://institutocorpo.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Instituto Corpo is back up in 6f46680.

repo: andrelug/uptime


text:
🛑 pharmacomms is down

In c6ef4e9, pharmacomms (https://pharmacomms.tv/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: pharmacomms is back up in 2f6dca2.

repo: andrespitt/uptime


text:
🛑 pharmacomms is down

In 3956813, pharmacomms (https://pharmacomms.tv/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: pharmacomms is back up in acee4c2 after 10 minutes.


text:
🛑 pharmacomms is down

In 2aac435, pharmacomms (https://pharmacomms.tv/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: pharmacomms is back up in b931fd6 after 8 minutes.


text:
🛑 nhcam is down

In d6c3714, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in 5e66e6f.

repo: andrewdavies-net/upptime


text:
🛑 nhcam is down

In e16dc3e, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in cf92dda.


text:
🛑 nhcam is down

In e527a40, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in ad81fa1.


text:
🛑 plexd is down

In 815f908, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 289 ms

Resolved: plexd is back up in d667450.


text:
🛑 plexd is down

In 76204c5, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 437 ms

Resolved: plexd is back up in b197729.


text:
🛑 nhcam is down

In 1f0baff, nhcam ($NHIPCAM) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nhcam is back up in 7575fcf.


text:
🛑 plexd is down

In 2e8bace, plexd ($PLEXD) was down:

HTTP code: 401
Response time: 279 ms

Resolved: plexd is back up in 6919cdc.


text:
PyLaTeX permissions issue

On some systems pylatex throws a permissions error when trying to save.

Traceback (most recent call last):
File "d:\ProgrammingProjects\Nice-Tabs\NiceTabs.pyw", line 199, in tabConverter
doc.generate_pdf(file.replace('.pdf',''),clean_tex=generateTex.get(),compiler='venv/Lib/site-packages/pdflatex-0.1.3.dist-info')
File "D:\ProgrammingProjects\Nice-Tabs\venv\lib\site-packages\pylatex\document.py", line 250, in generate_pdf
output = subprocess.check_output(command,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1440, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Access is denied

Not able to fix this permissions issue. Instead use the PDF generation from PDF latex directly. PDF generation works now

repo: andrewschalk/Nice-Tabs


text:
[Bug]: DemoRelease runtime error on interest screen

Is there an existing issue for this?

[X] I have searched the existing issues

Is there a StackOverflow question about this issue?

[X] I have searched StackOverflow

What happened?
Build variants: demoRelease
This happened after had been merged #1413 .
https://github.com/user-attachments/assets/00b26cca-bb92-4768-ae6c-ea44d0a88f65
It worked on 371e181b79ebcca4d7b38e24b800143025ae96f9.
Relevant logcat output
2024-09-05 22:08:37.431  6315-6315  AndroidRuntime          <pre-initialized>                    E  FATAL EXCEPTION: main
                                                                                Process: com.google.samples.apps.nowinandroid.demo, PID: 6315
                                                                                X6.f: Serializer for class 'c' is not found.
                                                                                Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.

                                                                                at b7.b0.h(SourceFile:26)
                                                                                at K3.a.N(SourceFile:13)
                                                                                at b2.x.<init>(SourceFile:8)
                                                                                at b2.A.<init>(SourceFile:26)
                                                                                at H2.v.e(SourceFile:16)
                                                                                at Z5.f.h(SourceFile:236)
                                                                                at g0.a.a(SourceFile:44)
                                                                                at g0.a.h(SourceFile:9)
                                                                                at T.n.h(SourceFile:98)
                                                                                at g0.a.a(SourceFile:44)
                                                                                at g0.a.h(SourceFile:9)
                                                                                at androidx.compose.animation.a.a(SourceFile:1523)
                                                                                at androidx.compose.animation.a.e(SourceFile:230)
                                                                                at androidx.compose.animation.a.b(SourceFile:170)
                                                                                at androidx.compose.material3.adaptive.layout.a.a(SourceFile:291)
                                                                                at Z5.f.h(SourceFile:69)
                                                                                at g0.a.a(SourceFile:44)
                                                                                at g0.a.h(SourceFile:9)
                                                                                at T.F.i(SourceFile:251)
                                                                                at g0.a.i(SourceFile:52)
                                                                                at H.s0.i(SourceFile:1266)
                                                                                at g0.a.i(SourceFile:52)
                                                                                at T.H.h(SourceFile:303)
                                                                                at g0.a.a(SourceFile:44)
                                                                                at C.G.i(SourceFile:141)
                                                                                at Y.p.E(SourceFile:451)
                                                                                at Y.p.N(SourceFile:29)
                                                                                at I0.e0.a(SourceFile:35)
                                                                                at n7.d.T(SourceFile:591)
                                                                                at T.E.i(SourceFile:43)
                                                                                at Y.p.E(SourceFile:451)
                                                                                at Y.p.L(SourceFile:137)
                                                                                at Y.p.o(SourceFile:238)
                                                                                at Y.p.D(SourceFile:30)
                                                                                at Y.t.u(SourceFile:23)
                                                                                at Y.t0.p(SourceFile:103)
                                                                                at Y.r0.j(SourceFile:564)
                                                                                at L0.d0.doFrame(SourceFile:34)
                                                                                at L0.b0.doFrame(SourceFile:48)
                                                                                at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1404)
                                                                                at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1415)
                                                                                at android.view.Choreographer.doCallbacks(Choreographer.java:1015)
                                                                                at android.view.Choreographer.doFrame(Choreographer.java:941)
                                                                                at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1389)
                                                                                at android.os.Handler.handleCallback(Handler.java:959)
                                                                                at android.os.Handler.dispatchMessage(Handler.java:100)
                                                                                at android.os.Looper.loopOnce(Looper.java:232)
                                                                                at android.os.Looper.loop(Looper.java:317)
                                                                                at android.app.ActivityThread.main(ActivityThread.java:8699)
                                                                                at java.lang.reflect.Method.invoke(Native Method)
                                                                                at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
                                                                                Suppressed: Q6.g: [L0.e0@6b66b49, L0.D0@3d21c4e, x0{Cancelling}@76a016f, c0@f6c9e7c]

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Thanks for spotting this. Investigating now.

This is caused by https://issuetracker.google.com/353898971. Workaround is to use @Keep on any routes which aren't referenced directly in code.
In this case, we have:
@Serializable data object DetailPaneNavHostRoute

NavHost(..., route = DetailPaneNavHostRoute::class)

nestedNavController.navigateToTopic(topicId) {
    popUpTo<DetailPaneNavHostRoute>()
}

So the class reference and the type parameter (presumably) aren't enough to stop DetailPaneNavHostRoute being removed during minification.

@dturner Thanks for sharing a reason of error and resolve it.

authors: Jaehwa-Noh dturner

repo: android/nowinandroid


text:
Add concept of shuffled order to the Player interface (to allow setting and predicting this order when making changes)

Media3 Version
Media3 1.0.0
Devices that reproduce the issue
All
Devices that do not reproduce the issue
--
Reproducible in the demo app?
Yes
Reproduction steps
In https://github.com/androidx/media/issues/273#issuecomment-1472952138 Marc suggested to use controller?.currentTimeline?.getFirstWindowIndex() to get the windowIndex where playback should start.
Unfortunately, the underlying shuffledWindowIndices will be in regular sequential order after adding new items, and are only later being shuffled in ExoPlayerImpl.java#L2266.
This means that after enabling shufflePlayback and adding new items it is currently impossible to directly seek to the first item in the shuffled list (without resorting to some hack and waiting until the order is shuffled)
Expected result

Actual result

Media

Bug Report

[ ] You will email the zip file produced by adb bugreport to dev.exoplayer@gmail.com after filing this issue.

More information:
Directly after calling .addMediaItems() a Timeline change event is emitted. When I listen to this event and query the firstWindowIndex it is still 0.
One second later, another Timeline change event is emitted. Only during this second later event the playlist has been shuffled and the firstWindowIndex is actually some real value:
2023-04-15 15:05:48.442  7261-7261  MediaPlayerController   org.moire.ultrasonic.debug2          W  (shuffle) Adding media items
2023-04-15 15:05:48.455  7261-7261  MediaPlaye...$listeners org.moire.ultrasonic.debug2          W  On timeline changed. First shuffle play at index: 0
2023-04-15 15:05:49.287  7261-7261  MediaPlaye...$listeners org.moire.ultrasonic.debug2          W  On timeline changed. First shuffle play at index: 2

The underlying reason for this is that there is no good concept of PlaybackOrder/ShuffleOrder in the Player interface that would allow a MediaController to set or predict the order.
I will turn this into a feature request to add such a concept to the Player interface, which should include the fix to the problem you are describing here.

Thanks, that sounds like a good plan.

Could you provide an approximate timeline for when we can expect this feature request to be implemented?
In the meantime, do you guys have any workarounds for using moveMediaItem and addMediaItem when shuffled mode is enabled?
I'm rewriting SimpleMusicPlayer here which supports reordering items in the queue and has a play next option as well. I can query the current timeline to get the shuffled indices but I can't figure out how to deterministically add or move a media item at a given index while shuffle mode is enabled.

@tzugen thanks, I'll take a look at it.

Hi, are there any updates on this?

authors: naveensingh nift4 tonihei tzugen

repo: androidx/media


text:
🛑 Portal Internal is down

In 25d12a5, Portal Internal ($PORTAL_INTERNAL_APP) was down:

HTTP code: 400
Response time: 677 ms

Resolved: Portal Internal is back up in a2e211c after 59 minutes.

repo: anduintransaction/upptime


text:
Don't send DISCARD after ExecAbortError in pipeline

Description of change
Don't send DISCARD after ExecAbortError when executing a MULTI/EXEC transaction in the Pipeline class.
The EXECABORT error type was added in Redis 2.6.5 and is returned from an EXEC command to indicate that the transaction was aborted due to an invalid command.  It is not necessary to call DISCARD after this error, and doing so causes a "DISCARD without MULTI" error.
Fixes #1300
Pull Request check-list

[x] Does $ tox pass with this change (including linting)?
[x] Does travis tests pass with this change (enable it first in your forked repo and wait for the travis build to finish)?
[x] Is the new or changed code fully tested?
[x] Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Codecov Report

Merging #1301 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1301      +/-   ##
==========================================
+ Coverage   92.76%   92.78%   +0.02%
==========================================
  Files          19       19
  Lines        6478     6485       +7
==========================================
+ Hits         6009     6017       +8
+ Misses        469      468       -1

Impacted Files
Coverage Δ

redis/client.py
86.25% <ø> (+0.04%)
:arrow_up:

tests/test_pipeline.py
100% <100%> (ø)
: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 81d7665...cf7662d. Read the comment docs.

Merged in 07fec7e18996b6b3b4f30ec9636b88c9b287ece5. Thanks for finding this!
I had to do some digging to validate this was a good change. I was actually involved in the original discussion with antirez back in 2012 when this code was added. The existing code worked against a branch he was developing to fix an underlying problem. I shipped the redis-py code, then a few days later in the same thread he changed the behavior of the server to automatically discard before replying with EXECABORT. I apparently missed that change in direction.

authors: andymccurdy codecov-io nickgaya

repo: andymccurdy/redis-py


text:
no flic.lua whenth 'main.lua -dataset flic -expID test-run`

I execute the command 'th main.lua -dataset flic -expID test-run', but your code does not contain src/dataset/flic.lua,  and after I changed mpii.lua to flic.lua, it shows cannot find data/flic/annot.h5

Yeah, sorry about that! In the latest updates to the code infrastructure support for FLIC was temporarily dropped. If you want to test the code on FLIC the commit from a couple months ago still works well, and hopefully I will set up proper support for FLIC in the new code soon.

authors: anewell desenzhou

repo: anewell/pose-hg-train


text:
QC metrics plots for control samples in tissue microarray

Section 1: Design details
Relevant background
Plot the consistency of expression of all markers within the control tissues over time using the non-zero mean intensity and/or the 99.9th percentile intensity. The purpose is to detect any possible systematic bias to the control signals throughout the imaging run.
Design overview
The input will consist of data from multiple TMAs, each TMA with a set of controls, some of which will be shared across TMAs. The program will read data from all TMAs, identify control samples for each TMA, extract the data from each control sample and perform QC metrics of choice. Violin plots will be produced in a faceted grid for each marker
Design list/flowchart
Provide an overview of how the different pieces of the project will interact with each other, either in a numbered list, bullet point, or brief sketch
Required inputs
Images for marker expression for multiple spots on two or more TMAs including control tissue and tumor tissue
Output files
Violin plots of control expression across multiple TMAs and whichever tissues are included as controls
@ngreenwald
Provide a description of the outputs for this project, including column names for dfs, dimensions for image data, etc. If any plots will be generated,
provide (simple) sketches demonstrating the plot type and axes labels.
Section 2: Implementation details
Once you have completed section 1, please tag the relevant parties and iterate on the initial design details until everyone is satisfied. Then,
proceed to section 2
Control flow
Provide additional, more granular details (if necessary) about how the proposed coding logic will be put together
Milestones and timeline
List each of the major components of the project, and provide an estimated completion date for each one.

Looks good, two quick questions:

Can you add a rough doodle/sketch of what the plots will actually look like? What would the axes be, what will be faceted and what will be plotted, etc.
How are the control tissues going to be identified? The current description makes it sound like all of the data is going to be read in then it will automatically be determined. I think it makes more sense to have the user provided a list of control tissues, which are then used to find substring matches to identify the relevant folders, and only those folders are read in/processed

authors: mheskett ngreenwald

repo: angelolab/toffy


text:
Changing the public ip of the script

Not an issue but I recently changed my ISP and my public ip got changed, how do I change it in the script without reinstalling?

should be able to change in /etc/openvpn/ there should be a config there

Thank you, found it in /etc/openvpn/client-template.txt and changed it!

repo: angristan/openvpn-install


text:
Feat/update hashing

Update some API methods and remove unnecessary and/or non-generic logic.

bevat niet de unit tests tho

👍  Ik haal hem los binnen om de conflicts op te lossen

@angryTom mja was beetje stom, ik dacht tijdens jouw lunch vast ff te kijken naar eea voor je, maar zag toen na tijdje pas dat jij ook commits had gepushed. Maar was gelukt dus.

authors: angryTom ivarb

repo: angryTom/hash


text:
Show/Hide columns make angular-gantt ugly

This is my options:
$scope.options = {
		columns: ['model.name'],
                ...
                }

and I have show/hide button which dynamically display model columns.
So I click on the button which make
columns:['model.name'] change to columns:['model.name', 'model.custom']
and column is displayed.
However if I try to hide columns by reverting model columns to
columns:['model.name'] gantt-chart width is not showing properly.
So is there any API that can make chart to re-render?
Because refresh columns and rows is not working.

ng-click="api.columns.generate()"

repo: angular-gantt/angular-gantt


text:
dependency conflict

current release 1.2.12 has a version conflict of angular. angular-moment 0.10.3 depends on angular <1.5.0 while this package depends on angular ~1.5

It will be solved with angular-moment 1.0.0 release. It's currently in beta.

sure until then the current release breaks cd pipelines. is there a hard dependency on 1.5?

it should be >=1.3

or >=1.3 <1.6 to make it safer ?

authors: Toilal viqtor


text:
ReactiveConnectDirective bad input, formGroup form not set in ConnectBase

This is a...

[ ] feature request
[x] bug report
[ ] usage question

What toolchain are you using for transpilation/bundling?

[x] @angular/cli
[ ] Custom @ngTools/webpack
[ ] Raw ngc
[ ] SystemJS
[ ] Rollup
[ ] Other

Environment
NodeJS Version: 10
Typescript Version: 3.2.4
Angular Version: 7.2.15
@angular-redux/store version: 10.0.0
@angular/cli version: 7.3.9
OS: Windows
Expected Behaviour:
class ReactiveConnectDirective extends ConnectBase {
@Input() formGroup: any; // Must be @Input('formGroup') form: any;
...
}
because:
Actual Behaviour:
connect-base does not have the property form set and cannot reset and initialize.
Stack Trace/Error Message:
core.js:15724 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'control' of undefined
TypeError: Cannot read property 'control' of undefined
at ReactiveConnectDirective.push../node_modules/@angular-redux/form/fesm5/angular-redux-form.js.ConnectBase.resetState (angular-redux-form.js:660)
at angular-redux-form.js:572

Sorry forgot to say in angular-redux/store@10.0.0

repo: angular-redux/platform


text:
Variable replacement inside loops

Hi!
I couldn't solve the following use case. What do I have to do when I have to replace a variable in a translation string inside a loop like ng-repeat?
For example, given the following:
Controller:
$scope.messages = [
	{ author: "John", body: "Lorem ipsum" },
	{ author: "Peter", body: "Lorem ipsum" },
	{ author: "Nancy", body: "Lorem ipsum" }
]

Translation:
{
	"REPLY_TO" : "Reply to {{user}}"
}

Partial:

message.body

		{{ 'REPLY_TO' | translate:'{user : message.author}' }}

I think something like that is not possible without doing all in the controller, which I feels breaks the principle of separation of concerns.

Hi,
I am very new to angular-translate, so please forgive me if this is a very stupid question!
Now on this example that SebC99 has provided : http://jsfiddle.net/UGLjh/
all seems well, however i am in a situation where i need the body to be translated as well
$scope.messages = [
{ author: "John", body: "Lorem ipsum" },
{ author: "Peter", body: "Lorem ipsum" },
{ author: "Nancy", body: "Lorem ipsum" }
]
body variable in the messages array is "Lorem ipsum" which is in Latin, what if i needed that to be translated as well.Is there a way to do that, imagine that $scope.messages array is actuall coming from a json file through $http service, and that data in that file is in english.Which has multiple nested arrays with english data.
How can i change that body data which is Lorem ipsum while i am translating "REPLY_TO" : "Reply to {{user}}".
I hope you can help me.
Thank you in advance

Hi @AqquaBug , thank you for using angular-translate!
In short: In the example, just like translating message.author you can use translating for message.body as well. You have to provide such translations: http://jsfiddle.net/ofawsL4m/
I hope I could help you!
[ Please open a new issue future. They are do not billed for anyone ;) ]

Hey knalli, thank you for your prompt reply.
But i mean this, please see the body variable in messages array :
https://jsfiddle.net/orcun/m5znzcq9/1/
Where the body variable inside messages are now in English, what if I had millions of descriptions like that coming from a database into a .json file in different languages.
In your example and SebC99's examples it seems to me that we are translating the UI -User interface text, buttons, messages to user's etc.
How about if i need to change the data that coming from a database, like descriptions of an author in several languages.
Or comments left for a product by customers, in 2 different languages, what would be the correct way to implement translations of this kind of data into our project.
Thank you for your help again

authors: AqquaBug Danita knalli

repo: angular-translate/angular-translate


text:
Demo site "Dropdown in Container" dropdown has incorrect menu positioning

Bug description:
Dropdown menu is incorrectly position
Link to minimally-working plunker that reproduces the issue:
http://angular-ui.github.io/bootstrap/#/dropdown

Version of Angular, UIBS, and Bootstrap
Demo site settings for current version (1.3.2)
Browsers afftected:

Chrome: 50.0.2661.94 m
IE: 11.0.9600.18282
FF: 46.0

@skmasq, which button are you clicking on to open the dropdown? The second button (the first blue one) on the top row?
What browser are you seeing this in? I am not seeing this behavior with the current live demo.

@skmasq, this is by design as the demo is showing you how you can bind the dropdown to a specific element and not necessarily the button itself.  please be respectful of our time by performing some initial research on your end before entering anything as dealing with issues can be very time consuming.

Hi @icfantv,
I am sorry that I have wasted your time in any way.
Where I am coming from, the docs say:
dropdown-append-to $ (Default: null) - Appends the inner dropdown-menu to an arbitrary DOM element.
dropdown-append-to-body B (Default: false) - Appends the inner dropdown-menu to the body element.
What I understood is:

dropdown-append-to instead of being appended to the body element, it would be appended to a specified element while keeping the drop down relative to the button, where the actual drop down would react to the parent elements scroll instead of body elements scroll.

I was not trying to be disrespectful of your time in any way, I just understood the doc that way, my apologies.

authors: deeg icfantv skmasq

repo: angular-ui/bootstrap


text:
fix(datepicker): Fix destroy event for popup

Closes #5058
Plunker with fix
Click destroy button to see popup go away on first input example.
The div keeps the reference to the element correct because it isn't added and removed to the dom as a clone due to ng-if

This LGTM, but since I made the original suggestion, someone else needs to sign off.

@icfantv, spaces should be all set. Sorry about that.

Ok, please walk me through how wrapping in a <div> fixes the issue.

Just leaving for posterity, wrapping it in a div is a hack to prevent popup[0] in the popup from being a comment tag due to how ng-if works.

Thanks for clearing that up wesleycho, our code broke when updating deps due to a missing  in our version of the template. I would expect the need to rewrite to be listed as a breaking change though (the required -wrapper part) as we had no clue that we had to update our template.

Sorry about that, I should have marked this as a breaking change technically.

@wesleycho do we need to update the changelog?

Technically, we probably should.

@jonasem, make sure you use the backtick characters (or escape the angle brackets with a backslash) around any code that could be interpreted by the editor as an actual DOM event.  This is why your <div> didn't actually show up.  I've edited your comment to escape them.

Thanks :-)

authors: deeg icfantv jonasem wesleycho


text:
Angular update to version 6 throwing error

ERROR in src/app/components/page-setting/user/user.component.ts(6,28):
error TS1149: File name '/.../node_modules/rxjs/Observable.d.ts' differs from already included file name '/.../node_modules/rxjs/observable.d.ts' only in casing.

I think you're having some weird errors and can't debug it, and so, understandably, you're frustrated. But this is a tracker for bugs and feature requests. If we can we also try to help with support requests. We're very lucky to have awesome community members that also spend time trying to help people here in the issue tracker.
But we can't really help much at all if you don't fill in the issue template. I read your issue and have no idea what's going wrong and how to help you. And when other users search the issue tracker and see your issue, it also doesn't help them.
So I think the best thing to do is to close this issue, and ask you to open a new one. In that new one please fill in the issue template and give us an idea of what's happening and how to reproduce it. That way we'll have a chance to help you.

authors: filipesilva tancygithun

repo: angular/angular-cli


text:
It is not clear if the update finished successfully or not

This issue impacts 9.0.0-rc.0 and happened while updating https://github.com/johannesjo/super-productivity and https://github.com/SAP/cloud-commerce-spartacus-storefront.
A failed update will show a message saying both the individual migration and the update failed:
× Package install failed, see above.
The update failed. See above.
git HEAD was at 85f08a4d93e684566f751e38e2a2feffe0194cd9 before migrations.
×  Migration failed. See above for further details.

The update below did not finish successfully however, and instead just shows the last migration as successful (@devversion confirms this). In this case the migration shows an error that it seems to suggest was actually recovered from, but it fact the intent is that the migration was interrupted and should later be resumed.
>  Undecorated classes with DI migration.
   As of Angular 9, it is no longer supported to use Angular DI on a class that does not have an Angular decorator.
   Read more about this here: https://v9.angular.io/guide/migration-undecorated-classes

    This migration uses the Angular compiler internally and therefore projects that no longer build successfully after the update cannot run the migration. Please ensure there are
no AOT compilation errors and rerun the migration.. The following project failed: projects/storefrontlib/tsconfig.lib.json

    TypeError: Cannot read property 'module' of undefined

    Could not migrate all undecorated classes that use dependency
    injection. Some project targets could not be analyzed due to
    TypeScript program failures.

    Migration can be rerun with: "ng update @angular/core --from 8.0.0 --to 9.0.0 --migrate-only"

√  Migration succeeded.

A completely successful migration will look the same as the migration above though:
kamik@RED-X1C6 MINGW64 /d/sandbox/latest-app (master)
$ ng update @angular/cli @angular/core --next
The installed Angular CLI version is older than the latest published version.
Installing a temporary version to perform the update.
Installing packages for tooling via yarn.
warning @angular-devkit/architect@0.900.0-rc.0: The engine "pnpm" appears to be invalid.
warning @schematics/angular@9.0.0-rc.0: The engine "pnpm" appears to be invalid.
warning @angular-devkit/schematics@9.0.0-rc.0: The engine "pnpm" appears to be invalid.
warning @angular-devkit/core@9.0.0-rc.0: The engine "pnpm" appears to be invalid.
warning @schematics/update@0.900.0-rc.0: The engine "pnpm" appears to be invalid.
warning @angular/cli@9.0.0-rc.0: The engine "pnpm" appears to be invalid.
Installed packages for tooling via yarn.
Using package manager: 'yarn'
Collecting installed dependencies...
Found 35 dependencies.
Fetching dependency metadata from registry...
    Updating package.json with dependency @angular/cli @ "9.0.0-rc.0" (was "8.3.17")...
    Updating package.json with dependency @angular/core @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular/language-service @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular/compiler-cli @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular/animations @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular/platform-browser @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular/platform-browser-dynamic @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular/common @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular/compiler @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular/forms @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular/router @ "9.0.0-rc.0" (was "8.2.13")...
    Updating package.json with dependency @angular-devkit/build-angular @ "0.900.0-rc.0" (was "0.803.17")...
UPDATE package.json (1636 bytes)
√ Packages installed successfully.
** Executing migrations of package '@angular/cli' **

>  Update an Angular CLI project to version 9.
UPDATE angular.json (6359 bytes)
UPDATE package.json (1637 bytes)
UPDATE server.ts (1863 bytes)
√ Packages installed successfully.
√  Migration succeeded.

>  Update lazy loading syntax to use dynamic imports.
√  Migration succeeded.

** Executing migrations of package '@angular/core' **

>  Static flag migration.
   Removes the `static` flag from dynamic queries.
   As of Angular 9, the "static" flag defaults to false and is no longer required for your view and content queries.
   Read more about this here: https://v9.angular.io/guide/migration-dynamic-flag
√  Migration succeeded.

>  Missing @Injectable migration.
   In Angular 9, enforcement of @Injectable decorators for DI is a bit stricter.
   Read more about this here: https://v9.angular.io/guide/migration-injectable
√  Migration succeeded.

>  ModuleWithProviders migration.
   In Angular 9, the ModuleWithProviders type without a generic has been deprecated.
   This migration adds the generic where it is missing.
   Read more about this here: https://v9.angular.io/guide/migration-module-with-providers
√  Migration succeeded.

>  NGCC postinstall migration.
   Adds an ngcc invocation to npm/yarn's postinstall script.
   Read more about this here: https://v9.angular.io/guide/migration-ngcc
UPDATE package.json (1743 bytes)
√ Packages installed successfully.
√  Migration succeeded.

>  Renderer to Renderer2 migration.
   As of Angular 9, the Renderer class is no longer available.
   Renderer2 should be used instead.
   Read more about this here: https://v9.angular.io/guide/migration-renderer
√  Migration succeeded.

>  Undecorated classes with decorated fields migration.
   As of Angular 9, it is no longer supported to have Angular field decorators on a class that does not have an Angular decorator.
   Read more about this here: https://v9.angular.io/guide/migration-undecorated-classes
√  Migration succeeded.

>  Undecorated classes with DI migration.
   As of Angular 9, it is no longer supported to use Angular DI on a class that does not have an Angular decorator.
   Read more about this here: https://v9.angular.io/guide/migration-undecorated-classes
√  Migration succeeded.

We should confirm the update finished, was successful, or if it was interrupted midway and should later be continued.

This was previously not an issue because the CLI did not print any message stating that the migration was successful or not. Now with V9 of the CLI, it always prints Migration successful. This is not correct since migrations can be simply incomplete or failing gracefully (for various reasons).
e.g. most of the time migrations have edge cases which cannot be handled automatically. In those cases user action is required and it does not make sense to make the user think that the migration was successful/complete.

If a migration can stop midway, it shouldn't print this indication though:
    Could not migrate all undecorated classes that use dependency
    injection. Some project targets could not be analyzed due to
    TypeScript program failures.

    Migration can be rerun with: "ng update @angular/core --from 8.0.0 --to 9.0.0 --migrate-only"

This is incorrect because many packages can be updated at the same time. In this example it is only correct to use --migrate-only with @angular/core if that was the last package to be updated. But the migration does not know this.
The update procedure itself should indicate how to resume from an interrupted migration, and show the full command to resume all un-fully-migrated packages.

I don't quite follow why that would be incorrect. The migration coming from @angular/core just asks the developer to re-run the migrations for @angular/core since the migration from core failed. Previous migrations which were successful as part of @angular/core and will be scheduled twice, will just be a noop.

In this example it is only correct to use --migrate-only with @angular/core if that was the last package to be updated. But the migration does not know this.

I'm slightly confused. Doesn't it print that --migrate-only and @angular/core should be used? Since we print the message from the failing migration, we know that we are in between v7 and version 8. Hence we can propose that command in order to ask for re-running.

Agreed that this is something the CLI could do, but at the time of writing this is not available and we achieved something similar by printing such a message. We did this in version 8 too.

It's incorrect because the original command was ng update @angular/core @angular/cli --next. The migrations for @angular/cli might not have happened yet when the update process was interrupted.
So running ng update @angular/core --from 8.0.0 --to 9.0.0 --migrate-only does not get you to the same place as if the migration had not been interrupted. To do that you'd need instead to do  ng update @angular/core @angular/cli --from 8.0.0 --to 9.0.0 --migrate-only (including CLI as well).

Why would the migrations from @angular/cli be relevant though for that particular migration that failed? It's true that the CLI migrations can change things too, but from the perspective of the @angular/core migration, the only prerequisite is that there is an TS project.
If you are saying that the @angular/core migrations are dependent on migrations of the CLI, then I'm not sure if that is the right thing. I'd expect the the core migrations to be not dependent on migrations outside of the @angular/core scope. In general though.
The way you are describing the issue is that followed migrations will be interrupted. This is not the goal and not the case currently. The goal is:

All followed migrations continue executing.
But only the incomplete migration will be re-run manually (with the given command)

Other migrations as part of @angular/core ran already and will be a noop.

Ah I see. Yes I did think that the last migration interrupted the process and prevented the remaining ones from executing.
So that does sound right. We should somehow indicate that some migrations need extra attention and might require action.

Talked about this in the planning meeting today, decision for now is to simply rename "Migration succeeded." to "Migration completed." to be more clear that we don't necessarily know that it was successful. Sent out a PR to change this.
Longer term, we'll have to look in to a broader redesign which allows some migrations to fail and more clearly communicate them to the user (something like Karma where some tests pass and other fail).

Message change was merged to master and 9.0.x branches. I'll leave this issue open since it seems to be a larger challenge which will require a greater redesign to address. If that is being tracked elsewhere, then we can maybe close this issue.

Yeah this looks as good a place to track it as any.

@alan-agius4 I feel differently. An easy example is that a migration cannot handle all patterns automatically and requests the developer to manually take action. In those case the migration is not successful nor complete. This is actually quite common since migrations most of the time are limited by the possibilities of static analysis. I agree that we could rethink how errors are handled (e.g. not gracefully exiting), but in terms of this issue, it seems to unveil the general issue where the CLI makes an assumption. It's wrong to assume that a migration is complete or successful if it didn't throw. There should be an API to communicate back to the CLI what the status is (for purposes like printing how to rerun the migration). In any case though (except when an error is thrown), the CLI should not make any assumption IMO.

A larger expansion and refactoring is planned and will include a structured migration system.  However, at the current juncture the migrations will need to work within the current confines of the system.  This unfortunately means that the migrations themselves will need to contain more boilerplate and infrastructure than should ideally be needed. But this will improve as update is updated.

authors: clydin devversion dgp1130 filipesilva


text:
Does Angular 2 or Angular 2 CLI have (or plan to have) an addon system similar to Ember CLI's?

I'm not sure if it's specified or obscurely mentioned in any docs somewhere, but does Angular 2 or Angular 2 CLI have or plan to have an addon system similar to that of Ember CLI?
I'm curious about the idea of shareable Angular 2 components, Angular 1/2 directives, services, etc. that can be imported into your Angular 2 app.

It does currently, on master!
See here https://github.com/angular/angular-cli#installing-a-3rd-party-library

authors: filipesilva jettaprime


text:
Web workers not working in a multiple project workspace

🐞 Bug report
Command (mark with an x)

[ ] new
[x ] build
[ ] serve
[ ] test
[ ] e2e
[x ] generate
[ ] add
[ ] update
[ ] lint
[ ] extract-i18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?
I don't know
Description
Using: ng generate web-worker, not working in a multiple project workspace
🔬 Minimal Reproduction
ng new my-app --> create a new app
...
cd my-app
ng g application another-app --> create another project
cd projects/another-app --> go inside the new project
ng generate web-worker app --> generate a web worker and adds the configuration
ng build --> build the project
🔥 Exception or Error
The web worker bundle is not in the build for the project
🌍 Your Environment

Angular CLI: 12.0.3
Node: 14.15.5
Package Manager: npm 6.14.11
OS: win32 x64

Angular: 12.0.3
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.3
@angular-devkit/build-angular   12.0.3
@angular-devkit/core            12.0.3
@angular-devkit/schematics      12.0.3
@schematics/angular             12.0.3
rxjs                            6.6.7
typescript                      4.2.4

Anything else relevant?

Thank you very much, that worked. Closing the issue.


text:
'new g service name --module=my.module' not adding a service in a right place

Bug Report
- [ x] bug report
- [ ] feature request

Versions.
@angular/cli: 1.3.0-rc.5
node: 7.8.0
os: win32 x64
@angular/animations: 4.3.3
@angular/common: 4.3.3
@angular/compiler: 4.3.3
@angular/core: 4.3.3
@angular/flex-layout: 2.0.0-rc.1
@angular/forms: 4.3.3
@angular/http: 4.3.3
@angular/material: 2.0.0-beta.3
@angular/platform-browser: 4.3.3
@angular/platform-browser-dynamic: 4.3.3
@angular/router: 4.3.3
@angular/cli: 1.3.0-rc.5
@angular/compiler-cli: 4.1.3

Repro steps.

Have a module with providers (in my case it is core.module) e.g:

providers: [
    Guards.LoggedInGuard,
    Services.AuthService,
    // more services here
    [{provide: ErrorHandler, useClass: GlobalErrorHandler}],
  ],

Run
ng g service core/services/super --module=core.module

In result CLI sticks the SuperService in to providers array like:
providers: [
    Guards.LoggedInGuard,
    Services.AuthService,
    // more services here
    [{provide: ErrorHandler, useClass: GlobalErrorHandler}SuperService],
  ],

Desired functionality.
The ng g service core/services/super --module=core.module result should be
providers: [
    Guards.LoggedInGuard,
    Services.AuthService,
    // more services here
    [{provide: ErrorHandler, useClass: GlobalErrorHandler}],
    SuperService
  ],

Same as #7061

Closing in favor of #7061

authors: Brocco cyrilletuzi kuncevic


text:
Underscores not allowed in generated class names

Bug Report or Feature Request (mark with an x)
- [] bug report -> please search issues before submitting
- [X] feature request

Versions.

@angular/cli: 1.3.2
node: 6.11.2
os: win32 x64
@angular/animations: 4.3.6
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.3.2
@angular/compiler-cli: 4.3.6
@angular/language-service: 4.3.6
Repro steps.

ng g c step-1_welcome creates a component with the file name step-1-welcome and a class name Step1WelcomeComponent rather than the expected step-1_welcome and Step1_WelcomeComponent
The log given by the failure.

n/a
Desired functionality.

To be able to create more readable class names and directories.
Mention any other details that might be useful.

If this is against convention, please provide me with a reference as to why this is the case.

The style guide says to use dot and dash:
https://angular.io/guide/styleguide#separate-file-names-with-dots-and-dashes
(I'd prefer to choose underscore sometimes too, but given the CLI has done it this way for years now, I don't think we should change the behavior, and it does match the style guide.)

authors: abductedMind alexeagle


text:
bower_components fails with 404 error

Getting following error when running this app in my RHEL 7 instance, I am running this as a root user
[Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
[Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /bower_components/bootstrap/dist/css/bootstrap.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
[Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /bower_components/bootstrap/dist/css/bootstrap.css" Error (404): "Not found"
[Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /bower_components/angular/angular.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
[Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /bower_components/angular/angular.js" Error (404): "Not found"

It sounds like bower dependencies have not been installed. What is the output of npm install?

I have the same issue, dependencies are all installed and in the right place

The only issue that appears is the following:

@danikvsn, these warnings are OK. Just ignore them. So, are you saying that everything is installed as expected in /bower_components, but the server return 404? What are the exact errors you get?

Just a 404 error. I was only able to fix it by throwing bower_components into the app directory

If you are using the latest code from this repo, bower_components should already be inside app/:
https://github.com/angular/angular-phonecat/blob/0970e05d951d2d1485e5b6700032d9729b77d1df/.bowerrc#L2

The step branches however haven't been adjusted to reflect that

authors: BharathNatarajan danikvsn gkalpak

repo: angular/angular-phonecat


text:
Update question-control.service.ts - to initialize the controller value

controller value now will be initialized with 'question.value', regardless if the controller has validation of 'required' or not.

I have signed.

@wardbell This fix looks good to me.

@rexebin I think you have to comment just

I signed it!

for the bot to set the CLA correctly. :smile:

I signed it!

😁 the bot could be a little more flexible here😂

It does not seem to respond so i guess there must be something else that needs to trigger :SMI

I'm convinced.  Merged.

authors: bampakoa rexebin thelgevold wardbell


text:
$http's JSONP should require trusted resource URLs

$http does not perform any security checks on the URLs that it receives.  It should require URLs that pass checks for $sce.RESOURCE_URL.
This should generally not have a huge impact in terms of breaking backwards compatibility.  The cases that break, are where folks are performing JSONP requests to 3rd party servers.  In such cases, it would be a good idea for the apps that do break to configure the $sce whitelist to include that specific trusted 3rd party server to unbreak themselves.
It might be a good idea to backport this to earlier versions if we can feel confident that we won't actually be breaking most applications.

@petebacondarwin for triage review (milestone ok?)

@chirayuk - This sounds like a good security measure and if the mitigation is simply adding to a whitelist then it seems a reasonable breaking change. Do you think you could knock up a PR? If not, then if anyone else in the community wants to have a go at a PR that would be great too!

@petebacondarwin I'm working on this today.

I started on it yesterday but didn't have time to finish it.  I won't get to it anytime today or tomorrow.  However, I created a work-in-progress PR #11623 of my progress so far.

authors: chirayuk petebacondarwin


text:
Form inside ng-if not registered in $scope

I'm submitting a ...  (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior
A <form> that has any ng-if directive attached will not register itself in the controller $scope. Even if the ng-if always resolves to true. In other words, ng-if=true triggers the bug as well.
I suspect this bug may also be triggered with other directives like ng-switch. But, I haven't tested this.
Expected behavior
The opposite: A form should register itself with the $scope regardless of whether it has an ng-if, or otherwise, or not. Especially if that ng-if causes the form to be rendered.
Reproduction of the problem
See this plunk
Click the "test me" button and keep an eye on your console. It'll display $scope.form, which is undefined. Take away the ng-if=true from the form tag, and it'll print out the form object just fine.
What is the motivation / use case for changing the behavior?
It's useful to stop displaying a form when it's successfully sent or otherwise handled, so we can display a message (for instance, to say "thanks!") instead of redisplaying the form or having to redirect to a new page.
Please tell us about your environment:

Angular version: 1.6.1
Browser: all, as far as I can tell
Language: javascript, take a pick

This happens because ngIf creates a new scope, so name="form" will register the form controller on that new scope (which is a child of the ctrl scope). You can solve this, by binding to an existing object on the target scope. (Alternatively, you can bind to the controller and use the controllerAs syntax, which is generally considered a good practice.)
This is because of how prototypal inheritance works in JavaScript. You can read more about how this affects scopes here.

authors: gkalpak thany


text:
Feature request : Handling child directives from parent scope

Probably not the best place to post this, but I would like Angular to have a way to call from the parent scope a function defined at the child scope of a directive.
I know that you have events that one can use, but I see people on the web demonizing them. I don't know if they are right, but I think I would like to be able to get hold from the parent scope of a JS object representing my child directive and call (public only?) methods defined on it.
Let's face it: Angular's success is based on the fact that it brings the logic of desktop programming (with isolated components, etc) in a programming world that had no logic at all (at least that's my biased opinion). So, I think it would be nice if you could just inherit this concept as well, that is allowing a parent scope to control its child directives via some public interfaces, just like an instance of a class in C++/C# can call the public methods of instances of other classes instantiated inside them.
I know that JS and access modifiers (plus various other important programming aspects) have no direct link between them, but I think it's worth trying to make your library better by any means.
For example, if I have a modal dialog directive, that accepts some parameters to use when it gets loaded, I would like to do it like that:
  //$scope.$directives should hold the immediate child directives of the scope, named after a "ngName" attribute.
  $scope.$directives.myModal.show(params); // myModal should be the object representation of a directive and show() is a public method on it.

  //I think that this will also eliminate the need of using watches in MANY cases, thus improving performance.

Instead of :
$scope.$broadcast("showModal", params); // I have no idea who is listening to this event. Perhaps I only want the DIRECT children of my scope to get this event, not all the branch. Or what if I only want one instance of a directive to receive this event?

or
// Polluting the scope without a good reason...
$scope.modalParams = params;
$scope.modalShowTrigger = Math.random(); // From its name, you know that some directive observes this value, but it is very easy to loose track of what each variable does in a complex UI...

Looking forward to hearing your thoughts on this. :)

In 1.7.1, you can use ngRef to publish directive controllers to the containing scope 😮

authors: DumboJetEngine Narretz


text:
fix($animateCss): remove animation end event listeners on close

Previously the transition/animation end events were not removed when the
animation was closed. This normally didn't matter, because
the close function knows the animations are closed and won't do work
twice.
However, the listeners themselves do computation that could fail when
the event was missing some data, for example when the event was
triggered instead of natural.
This commit includes the fix for a bug that was introduced by this change
and landed on master separately: d041081add76ef9d896cbc29f76a54baa3315135

Landed.


text:
Change the structure to follow the anguar2-style-guide

Ref: https://github.com/mgechev/angular2-style-guide
We're still fleshing out some of the details surrounding directory structure but here's the gist:

use app (ie not src) as the base folder of the angular2 application
This is what the angular-cli as well as many other existing seed/boilerplate projects currently use.

change from by-type to a by-feature structure
This is a fundamental departure from the patterns used in AngularJS but it's essential to maximize module reuse. angular-cli also follows this pattern.

consolidate the repo components and service under a single feature
To follow more of a DDD approach.

@evanplaice can you make a PR?

@gdi2290 I know that @IgorMinar has a detailed proposal for dir structure to be generated / used by the CLI so the 2 should be aligned.

https://angular.io/styleguide This is the correct link for styleguide. This repo is not lined-up with the official styleguide.
Example:
Do put bootstrapping and platform logic for the app in a file named main.ts.

@francescopersico When this issue was created, the official style guide didn't exist
Things will be adjust as 'best practices' solidify.

authors: evanplaice francescopersico gdi2290 pkozlowski-opensource


text:
mat menu not working correctly when two triggers are used for same mat-menu

What is the expected behavior?
I am using mat menu without backdrop.
I am trying to open mat-menu with two different triggers
When we click on triggers it should close and open mat menu correctly.
What is the current behavior?

When I click on first trigger button it opens mat menu
When I click on second trigger it opens mat-menu
When I again click on first trigger it doesn't open mat-menu
Again if click on first trigger then it will open mat-menu

What are the steps to reproduce?
Have a look on below stackblitz
https://stackblitz.com/edit/angular-yvk7bv
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7+
Is there anything else we should know?
I checked in DOM when I click on first trigger button it adds div with class cdk-overlay-connected-position-bounding-box, when I click on second trigger again it adds one more div with same class.
It seems it is not destroying properly.

Could you please provide update on this. I can see PR but its not merged.

Any update on this. When its going to merge.

Please tell me the fix.. Im also facing the same problem

Any update on this ?

This should be fixed by https://github.com/angular/components/pull/30163.

authors: amilaI crisbeto kodsaikiran lokeshdaiya

repo: angular/components


text:
sticky matColumnDef don’t work so good

What is the expected behavior?
A simple table whose first column is sticky should work.
What is the current behavior?
Does not work good:

A the column that are initially hidden have missing styles
If more than half the table is hidden, then the first column gets pushed out of the way.

What are the steps to reproduce?
Just create a table, as simple as can be, with the first column being sticky:
https://stackblitz.com/edit/angular-sticky-column-bug?file=src/app/app.component.ts
https://angular-sticky-column-bug.stackblitz.io/
Screenshots:
Initial state:
Start scrolling:
Scroll some more:
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
At least 7.3.6.
Is there anything else we should know?

I did some more investigating. This only happens if:

You use "component-based" material tables (aka <) rather than attribute based (,  etc...)
You give your columns a min-width

Just umping in to say that I think the "attribute-based" <table mat-table> is the preferred alternative since it has been available.
If you can use the table native element, I reckon you should go for it. It also lets you painlessly use the overflow properties to enable scrolling, and probably lets you avoid a few other quirks I don't know of.
Disclaimer: I'm not denying there's a problem 🙂

If I recall correctly, this was expected about the flexbox-based table, but it was supposed to be documented. @andrewseguin was that right?

I am trying to use the material table with 4 sticky columns, 2 of them to left and 2 of them to right. The problem is that the offset is calculated wrong by sticky and stickyEnd attributes from angular material. Does anyone have the same issue?

Same problem!

Same problem

"@angular/material": "^8.2.3",
"@angular/core": "~8.2.14",

Issue still exists.

I did some more investigating. This only happens if:

You use "component-based" material tables (aka <mat-table>, <mat-header-cell>) rather than attribute based (<table mat-table>, <th mat-header-cell> etc...)
You give your columns a min-width

Thank you for pointing that out. I was able to workaround the issue by giving the table a minimum width instead.

authors: MatheusRodrigues301 TrevorKarjanis alexpetrus20 ccjmne jelbourn lexstark paulferaud szellcsaba-ge


text:
Document naming convention for material files

I have tried searching through the issues here and on slack. I couldn't find details on this in the CODING_STANDARDS.md document.
The angular.io styleguide states:

“Do follow a pattern that describes the symbol’s feature then its type. The recommended pattern is feature.type.ts.”

What is the reasoning behind leaving off the 'type' in the component file name for material components?

It's more consistent with Google's internal file naming scheme (we sync the code into Google's source repository)
Names like button.component.tsand checkbox.component.ts are beyond redundant for this repo in particular; the names of each thing stand on their own.

Feel free to send a PR to the coding standards to call this out explicitly.

authors: JBorgia jelbourn


text:
Menu: keyboard interaction doesn't work correctly after calling item's focus method

Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-sferxh
Steps to reproduce:

Open the menu in the example
Third item should be focused and visually, it seems to be
Press arrow-down key
See that the focus moves to the second item instead of fourth item

Expected Behavior
Keyboard interaction should work after calling item's focus method.
Actual Behavior
Keyboard interaction features should reflect when user calls item's focus method.
Environment

Angular: 8.2.14
CDK/Material: 8.2.3
Browser(s):  tested on Chrome
Operating System (e.g. Windows, macOS, Ubuntu): tested on Windows 10

Duplicate of https://github.com/angular/components/issues/17761.

authors: RandomNonameDude crisbeto


text:
docs-bug(material-docs): Add MatIconTestingModule to documentation

Documentation Feedback
Add MatIconTestingModule to MatIcon documentation. Right now there is almost impossible to know this NEW feature exists, I only found it in change log.
Something like this should be enough:

If you receive Error: Error retrieving icon :icon_name! Unable to find icon with the name ":icon_name" on custom icons add MatIconTestingModule to tests.

Affected documentation page: https://material.angular.io/components/icon/overview

Fixed in https://github.com/angular/material.angular.io/pull/757.

authors: BojanKogoj crisbeto


text:
bug(mat-progress-bar): Buffer bar slightly lighter than expected

Reproduction

Visit the Material docs page: https://material.angular.io/components/progress-bar/overview
Change the theme to dark.
See that the mat-progress-bar has a fixed white background (blend with theme color).

Expected Behavior
The background should be transparent (semi opacity). Not fixed color white.
Actual Behavior
The background color is fixed white. It's 1. hard to see in dark mode. 2. Ugly in dark mode. 3. It violates Material Design.
https://material.io/components/progress-indicators
https://material.io/design/color/dark-theme.html
Get inspired by Vuetify Progress Bar
Demo

As you can see, the background color is more prominent as the progress in dark mode. Not good...
Goal
Should look like:

Environment
All you need is on the docs page. It's not related to my project.
Viewed in Chrome on Windows 10. Angular Material Version 11.2.2. (as you can see in the gif record).

@andrewseguin I took and a look and it does look like the buffer portion of the bar is a bit lighter than expected, which is more noticeable in dark themes. Seems to apply to the MDC version as well.

"slightly" is slightly understatement. The lighter section (background) takes the prominent part of this component.

authors: infacto jelbourn y0nd0


text:
feat(CDK-DRAG-DROP): XY positioning mode

Feature Description
Add new positioning mode with floating XY mode, with defined layout, with amount of cols and rows.
I can help on this
Use Case
Ability to move item on the defined grid
Ability to swap item on the grid, with optional callback validator to prevent the change
Ability to set amount of colonnes and rows
Ability to have dynamic amount of colonnes and rows

This should be doable already with the cdkDragConstrainPosition input.

authors: Identity-labs crisbeto


text:
bug(form-field): Floating Label is cut off

Is this a regression?

[X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
15 (sorry I can't backtrack when exactly)
Description
Floating label is cut off as it is not within the boundaries of the form field.

Boundaries:

Reproduction
StackBlitz link: https://stackblitz.com/edit/kz3sxm?file=src%2Fexample%2Fdialog-overview-example-dialog.html
Steps to reproduce:

Click the button "PickOne" Button
Type your favorite animal
See that the floating label is clipped.

Expected Behavior
The Label should not be cut off.
Actual Behavior
The label is cut off.
Environment

Angular: 16.2.5
CDK/Material: 16.2.12
Browser(s): Edge
Operating System (e.g. Windows, macOS, Ubuntu): Windows

There seems to be a bug which described the same behaviour but was closed without a reproduction: #26083

Found yet another bug stating this error: https://github.com/angular/components/issues/26352
Closing in favor for it.


text:
bug(Ripple): error "Cannot set properties of undefined (setting 'FADING_IN')"

Is this a regression?

[X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
17.3
Description
An error is thrown for production builds when following conditions are met:

The angular appplication makes uses of material (for example MatDialog) but does not make use of MatButton (or MatRipple directly)
The webpack builder is used (@angular-devkit/build-angular:browser)
It happens only when building in production mode (not in development mode)

The following error is thrown in JS console, and the app is broken:
TypeError: Cannot set properties of undefined (setting 'FADING_IN')

Note: since I could not reproduce this with the esbuild builder (@angular-devkit/build-angular:application), this could very well be an issue related to the angular-cli instead of material itself. Since I am not 100% sure, I am reporting it here.
Reproduction
StackBlitz link: https://stackblitz.com/edit/sjwtcm-g8jwcl?file=src%2Fexample%2Fdialog-data-example.ts
Steps to reproduce:

Open the StackBlitz link
Check JS console to see the error

Expected Behavior
No errors, app works.
Actual Behavior
App is broken, an error is visible in the JS console:
TypeError: Cannot set properties of undefined (setting 'FADING_IN')

Environment

Angular: 18.0.3
CDK/Material: 18.0.3
Browser(s): Google Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows

This is likely a tooling issue since we aren't doing anything complicated with that enum. Transferring into the Tooling repo.

authors: crisbeto kfrederix


text:
[Mat-Select] Custom Font-family not get applied to mat-option

Bug, feature request, or proposal: For Mat-Select, custom Font-family not get applied to mat-option using panelClass property. You have to explicitly add style to mat-option. Even ngClass don't work for mat-option.
What is the expected behavior? If other stylings are getting applied using panelClass, font-family should also get applied
What is the current behavior? For Mat-Select, custom Font-family not get applied to mat-option using panelClass property. You have to explicitly add style to mat-option. Even ngClass don't work for mat-option.
What are the steps to reproduce?
https://stackblitz.com/edit/select-dropdown-panel-font-family-issue?file=app%2Fapp.component.html
What is the use-case or motivation for changing an existing behavior?
This will help in customizing the fonts for mat-select.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular - v5.x
Is there anything else we should know?

.mySelectedPanel .mat-option {
   font-family: 'Times New Roman';
   font-size: 15px;
}

See this StackBlitz for a working example.

Closing since it seems to be working as expected.

Thanks @donroyco for the solution.

.mySelectedPanel .mat-option {
   font-family: 'Times New Roman';
   font-size: 15px;
}

See this StackBlitz for a working example.

Well, changing the font-family works but a change of the font-size doesn't !?

authors: crisbeto donroyco jamilraichouni vjpc


text:
Added protractor-typescript-cucumber example!

This PR includes examples of the configuration files, test scripts and support files needed to get started with protractor-cucumber and typescript. It closes https://github.com/angular/protractor-cookbook/issues/13

@igniteram Thanks! We'll have to get some e2e tests for these examples. This is a great addition!

@cnishina e2e tests for our angular1 calculator test app have been added actually, if you look at the feature files, i have covered various scenarios- addition, subtraction, multiplication etc. with page objects as well. All steps have been documented in readme file !

@igniteram Awesome! Looking back on my comment 7 days ago, my comment about e2e tests might have been about hooking up these examples to Travis or Circle CI.

authors: cnishina igniteram

repo: angular/protractor-cookbook


text:
Error when running protractor... node_modules/q/q.js:126

when running protractor test/protractor/protractor-conf.js i get:
[launcher] Process exited with error code 1

/usr/lib/node_modules/protractor/node_modules/q/q.js:126
                    throw e;
                          ^
SyntaxError: Unexpected token )
    at goog.loadModuleFromSource_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1123:19)
    at Object.goog.loadModule (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1085:46)
    at /usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1:6
    at Object.Context.closure.goog.retrieveAndExecModule_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/_base.js:135:8)
    at <anonymous>:1:6
    at Context.closure.closure.vm.createContext.CLOSURE_IMPORT_SCRIPT (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/_base.js:104:12)
    at Object.goog.importScript_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:879:9)
    at Object.goog.importModule_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:900:14)
    at Object.goog.writeScripts_ (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1323:16)
    at Object.goog.require (/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:663:14)

on Ubuntu 15.10 with protractor 3.0.0 (latest) and selenium 2.48 (latest), already cleared npm cache, instaled diferent versions of protractor.. but always the same thing. also checked permissions on node_modules folder.
any help? thanks

@Narven could you please also share your config file?

exports.config = {
    seleniumAddress: 'http://localhost:4444/wd/hub',
    directConnect: true,
    specs: [
        'spec/*-spec.js'
    ],
    baseUrl: 'http://localhost:9002',
    allScriptsTimeout: 100000,
    getPageTimeout: 1000000,
    seleniumPort: 4444,
    shardTestFiles: true,
    params: {
       config: {
           host: 'http://localhost:9002'
       }
    },
    multiCapabilities: [
        {
            'browserName': 'chrome'
        }
    ],
    jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 30000,
        isVerbose: true
    },

    framework: 'jasmine'
};

A few questions:

What version of node are you running?
Are you able to successfully clone down and run the protractor [example] (https://github.com/angular/protractor/tree/master/example)?

Same issue here and also occurs on clone of repo....

An update to latest Node (4.2.3) fixed this for me

What version of node were you using?

Currently i cannot say which version of npm im using, because im not in that machine right now.
im testing now on a mac with npm --version 2.14.7 and it runs ok.
only tomorrow i can check which version of npm im running on ubuntu.

node --version is v4.2.1

Can you run the  example?

I'm not 100 percent sure - is there anyway to look at an installed version history?  Or is there a way to rollback the dmg install?

Example is good now for me.

@Narven what about you?  Can you run the example?

Found it  -  v0.10.20 installed on 10/17/13

@sgrant613 Protractor 3 requires Node > 4 so this makes sense if you were previously using v0.10.20
@Narven it sounds like you might be experiencing a similar issue if it is working on your mac running node 4.x

it seams that i was running an old old old old oldie old oldie version of nodejs v0.10.37. Updated it to v4.2.3. Protractor now works. thanks

@Narven great, glad to hear it worked out. Would you mind closing the issue? Thanks!

I am facing the same error, using the latest node version - v5.4.1 and npm version - 3.5.3
> [plm@siplmapp01 INT static]$ node_modules/grunt-cli/bin/grunt e2e-test
> >> Local Npm module "grunt-contrib-qunit" not found. Is it installed?
>
> Running "protractor_webdriver:modules" (protractor_webdriver) task
> Starting Selenium server
> Shutting down Selenium server: http://localhost:4444
> Shut down Selenium server: http://localhost:4444 (OKOK)
> Restarting Selenium server
> Restarted Selenium server: http://127.0.0.1:4444
>
> Running "protractor:modules" (protractor) task
> [launcher] Process exited with error code 1
>
> /data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/q/q.js:155
>                 throw e;
>                       ^
> SyntaxError: Unexpected token )
>     at goog.loadModuleFromSource_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:1123:19)
>     at Object.goog.loadModule (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:1085:46)
>     at /data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/webdriver/promise.js:1:6
>     at Object.Context.closure.goog.retrieveAndExecModule_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/_base.js:135:8)
>     at <anonymous>:1:6
>     at Context.closure.closure.vm.createContext.CLOSURE_IMPORT_SCRIPT (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/_base.js:104:12)
>     at Object.goog.importScript_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:879:9)
>     at Object.goog.importModule_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:900:14)
>     at Object.goog.writeScripts_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:1323:16)
>     at Object.goog.require (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:663:14)
> >> /data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/q/q.js:155
> >>                 throw e;
> >>                       ^
> >> SyntaxError: Unexpected token )
> >>     at goog.loadModuleFromSource_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:1123:19)
> >>     at Object.goog.loadModule (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:1085:46)
> >>     at /data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/webdriver/promise.js:1:6
> >>     at Object.Context.closure.goog.retrieveAndExecModule_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/_base.js:135:8)
> >>     at <anonymous>:1:6
> >>     at Context.closure.closure.vm.createContext.CLOSURE_IMPORT_SCRIPT (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/_base.js:104:12)
> >>     at Object.goog.importScript_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:879:9)
> >>     at Object.goog.importModule_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:900:14)
> >>     at Object.goog.writeScripts_ (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:1323:16)
> >>     at Object.goog.require (/data/apps/bamboo/atlassian-bamboo-5.9.7/xml-data/build-dir/PA-PUT-JOB1/src/main/resources/static/node_modules/selenium-webdriver/lib/goog/base.js:663:14)
> Warning: Tests failed, protractor exited with code: 8 Use --force to continue.
>
> Aborted due to warnings.

The protractor configuration file
var AllureReporter = require('jasmine-allure-reporter');
//var HTMLReporter = require('protractor-jasmine2-screenshot-reporter');

exports.config = {
    seleniumAddress: 'http://localhost:4444/wd/hub',
//Specs to run individual tests.
    specs: ['../tests/unit/sandbox-spec.js'],
// To run tests as part of the suites.
    suites: {
        intro: ['../tests/unit/login-spec.js','../tests/unit/plm02TabChecks-spec.js','../tests/unit/sandbox-spec.js'],
        e2e: ['../tests/unit/checkBaseline-spec.js','../tests/unit/plm02-spec.js'],
        smoke: ['../tests/e2e/smoke-tests/baselineSchedule-spec.js','../tests/e2e/smoke-tests/validateBaseline-spec.js'],
        sandbox: ['../tests/e2e/smoke-tests/validateBaseline-spec.js']
    },

    capabilities: {
        'browserName': 'phantomjs',
        //For Server
        //'phantomjs.binary.path':'node_modules/phantomjs-prebuilt/bin/phantomjs'

        // For Local Use
        'phantomjs.binary.path':'C:/Users/taaupsa1/Downloads/phantomjs-2.1.1-windows/phantomjs-2.1.1-windows/bin/phantomjs.exe'
    },

    framework:'jasmine2',
    onPrepare: function() {
        // implicit and page load timeouts
        browser.manage().timeouts().pageLoadTimeout(40000);
        browser.manage().timeouts().implicitlyWait(25000);
        browser.manage().window().setSize(1600, 1000);
// for non-angular page
    browser.ignoreSynchronization = true;

//        jasmine.getEnv().addReporter(new HTMLReporter({
//            dest: '../screenshots',
//            filename: 'my-report.html'
//        }));

    jasmine.getEnv().addReporter(new AllureReporter({
      allureReport: {
        resultsDir: 'allure-results'
      }
    }));
    }
};

I am able to run this in my local machine but in my Build Server I am facing the error. I am using a local npm and node installation which was done through maven-front-end tools plugin.
Could any one help please?

@SaiUpadhyayula are you sure you are actually running node 5.x? If you are still experiencing an issue please open a new one.

authors: Narven NickTomlin SaiUpadhyayula Xotabu4 sgrant613 sjelin

repo: angular/protractor


text:
angular material not working

when I install npm install --save @angular/material
It gives me following response :
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
But this are just warnings , but when I try to actually import it in app.module.ts npm start breaks :
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! angular-quickstart@1.0.0 build: tsc -p src/
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the angular-quickstart@1.0.0 build script 'tsc -p src/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc -p src/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     E:\My Projects\angular-quickstart-master\npm-debug.log
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! angular-quickstart@1.0.0 prestart: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-quickstart@1.0.0 prestart script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     E:\My Projects\angular-quickstart-master\npm-debug.log
I am not sure what is the exact issue. Can any one please help.

Refer this if you want to use angular 4 with newest angular material https://stackoverflow.com/a/44557421/4465743

Hey,
The quick start is using an old version of typescript, to fix this problem you need to rock your application with a version of typescript  which is above 2.2, update it and you will be just fine.

Also you will probably be in need of @angular/animations, so you will need to install that too and then configure your systemjs.config.js file again with the new library and your typically done with the issue.

This repository is now deprecated. The Angular Quickstart project was a nice starting point for creating Angular applications. Now we recommend using the Angular CLI to create new Angular projects.
Starting from 1 November 2017, all the Angular documentation, at angular.io, is based on the Angular CLI.
Let's get started

authors: Foxandxss houssem-yahiaoui jineshmehta16 rajexp

repo: angular/quickstart


text:
Fix #546, #554, #555, the error should keep prototype chain and can be called without new

With the commit #547, the #546, error prototype issue was fixed, but a bigger issue occurs, that
Error object can be created with direct call.
let error = Error('message');
And the #547 PR will break it, cause a lot of errors, such as #554, #555
Sorry for the buggy commit in #547.
In this new PR, I checked the this exists or not and checked the this is global or not (non strict mode). So it should fix both #546 and #554, #555.
Please review, Thank you.

This was reverted on re-opened because one can call Error without the new operator. This PR breaks that.

@mhevery , Thank you for your review, I'll consider it again and reply to you soon.

And if we use typescript to write code, current logic is still ok, because typescript will compile 'extends' into
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};

var MyError = (function (_super) {
    __extends(MyError, _super);
    function MyError() {
        _super.apply(this, arguments);
    }
    return MyError;
}(Error));

But in browser, native implementation, I think the 'extends' may like
var MyError = (function (_super) {
    __extends(MyError, _super);
    function MyError() {
        this = new _super(...arguments);
    }
    return MyError;
}(Error));

So, in browser, when user call var myError = new MyError(); myError(this) will be the nativeError which was returned from ZoneAwareError, but in typescript version, this is MyError.
I'll continue to do more research.

@mhevery , I have changed my PR, please review it is correct or not, Thanks a lot.

Thanks for all of your hard work.

authors: JiaLiPassion mhevery


text:
Torch 1.50 for fixing issue in margipose_model

Torch 1.50 fixes issue of mid_in.split(size, -3) in line 91 and 93
Use of int in line 87 is not required.
Fixes the int not traceable warning.

I'm not ready to upgrade to PyTorch 1.5.0 yet for other reasons.

repo: anibali/margipose


text:
Consider adding a license

Hey, I was going to use this component but I couldn't find any licensing information.

MIT license has added to repo  https://github.com/anish2690/vue-draggable-next/pull/39


text:
Add NetflixMirror

Source name
NetflixMirror
Source link
m.netflixmirror.com
Source language
Multi
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a title with source name.
[X] I have checked that the extension does not already exist on the website extensions list or the app.
[X] I have checked that the extension does not already exist by searching the GitHub repository and verified it does not appear in the code base.
[X] I will fill out all of the requested information in this form.

Please add this website

No

No

repo: aniyomiorg/aniyomi-extensions


text:
Anitube error

Source information
Anitube 14.13
Source language
Português (Brasil)
Steps to reproduce
1 - Open an anime in the anitube extension
2 - Open an episode
Or
1 - Download an episode
Expected behavior
The episode should load and the episode should download.
Actual behavior
The episode does not load and an error occurs when downloading.
Aniyomi version
0.15.2.4
Android version
Android 11
Other details
(this is a new report, the previous ones have been closed)
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.15.2.4.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

The website has a problem, the administrators said that the data center motherboard burned out

This was fixed.

authors: Vhiniz edgardmessias kyhapi


text:
Mass flow, specific energy and some new units

Added mass flow and the following units:
Radians per second
Nautical miles
Knots
Meters per hour
Second of arc
Minute of arc

Sorry for the delay. Made changes according to your comments. I'll add some comments/questions to the commit.

Abbreviations min and sec ahould be fine as it does not conflict with any other Angle units. It is mainly for Angle.Parse() and .ToString () these are used. ToString () uses the first one in the list.

This looks good to me at first glance. Browsing on the phone.

I've gone through the entire diff now, if you go over these this should be ready to merge in.

On a side note, I recommend doing smaller pull requests, such as one per class of units. This way I'll be able to merge in the good parts faster.

Fixed the project file and the inverted conversion in MassFlow, couldn't find more errors (using Google to check was certainly easier than doing it manually).
We will try to do smaller pull requests in the future. We (mainly @ulflind ) have been working with the overloading without code generation (see discussion in #113), that will be quite big too I'm afraid.

Looks good. Thanks!

Nuget 3.22.0 out.

authors: anjdreas eriove

repo: anjdreas/UnitsNet