zipline line magic with no algofuncs raises misleading error

Dear Zipline Maintainers,
i have read the section about python notebook in the tutorial (https://github.com/quantopian/zipline/blob/master/docs/source/beginner-tutorial.rst) before running the example code on ipython notebook. However, i found the code failed when i executed. The error happened as follows:

first case:
code:

%load_ext zipline

%%zipline --start 2000-1-1 --end 2014-1-1

from zipline.api import symbol, order, record

def initialize(context):
    pass

def handle_data(context, data):
    order(symbol('AAPL'), 10)
    record(AAPL=data[symbol('AAPL')].price)

error:
  File "<ipython-input-8-393e2cb71ac3>", line 3
    %%zipline --start 2000-1-1 --end 2014-1-1
    ^
SyntaxError: invalid syntax

second case:
code:

%load_ext zipline

%zipline --start 2000-1-1 --end 2014-1-1
from zipline.api import symbol, order, record

def initialize(context):
    pass

def handle_data(context, data):
    order(symbol('AAPL'), 10)
    record(AAPL=data[symbol('AAPL')].price)

erroe:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-6-2fae70e957f0> in <module>()
      1 get_ipython().magic(u'load_ext zipline')
      2
----> 3 get_ipython().magic(u'zipline --start 2000-1-1 --end 2014-1-1 -o perf_dma')
      4
      5

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
   2161         magic_name, _, magic_arg_s = arg_s.partition(' ')
   2162         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2163         return self.run_line_magic(magic_name, magic_arg_s)
   2164
   2165     #-------------------------------------------------------------------------

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line)
   2082                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
   2083             with self.builtin_trap:
-> 2084                 result = fn(*args,**kwargs)
   2085             return result
   2086

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/zipline-1.0.0-py2.7-macosx-10.6-intel.egg/zipline/__main__.pyc in zipline_magic(line, cell)
    267             '%s%%zipline' % ((cell or '') and '%'),
    268             # don't use system exit and propogate errors to the caller
--> 269             standalone_mode=False,
    270         )
    271     except SystemExit as e:

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.pyc in main(self, args, prog_name, complete_var, standalone_mode, **extra)
    694             try:
    695                 with self.make_context(prog_name, args, **extra) as ctx:
--> 696                     rv = self.invoke(ctx)
    697                     if not standalone_mode:
    698                         return rv

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.pyc in invoke(self, ctx)
    887         """
    888         if self.callback is not None:
--> 889             return ctx.invoke(self.callback, **ctx.params)
    890
    891

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.pyc in invoke(*args, **kwargs)
    532         with augment_usage_errors(self):
    533             with ctx:
--> 534                 return callback(*args, **kwargs)
    535
    536     def forward(*args, **kwargs):

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/decorators.pyc in new_func(*args, **kwargs)
     15     """
     16     def new_func(*args, **kwargs):
---> 17         return f(get_current_context(), *args, **kwargs)
     18     return update_wrapper(new_func, f)
     19

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/zipline-1.0.0-py2.7-macosx-10.6-intel.egg/zipline/__main__.pyc in run(ctx, algofile, algotext, define, data_frequency, capital_base, bundle, bundle_timestamp, start, end, output, print_algo, local_namespace)
    238         print_algo=print_algo,
    239         local_namespace=local_namespace,
--> 240         environ=os.environ,
    241     )
    242

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/zipline-1.0.0-py2.7-macosx-10.6-intel.egg/zipline/utils/run_algo.pyc in _run(handle_data, initialize, before_trading_start, analyze, algofile, algotext, defines, data_frequency, capital_base, data, bundle, bundle_timestamp, start, end, output, print_algo, local_namespace, environ)
    146             'analyze': analyze,
    147         } if algotext is None else {
--> 148             'algo_filename': algofile.name,
    149             'script': algotext,
    150         }

AttributeError: 'NoneType' object has no attribute 'name'

coule you gei me some example with new version 1.0.0  in  ipython notebook?
thanks you!

The load_ext call and the zipline call should happen in different cells. Does that fix the issue?

The load_ext call and the zipline call i have put  in different cells, however,  the problem is "AttributeError: 'NoneType' object has no attribute 'name'".
so ,  how to send algorithm code to zipline。
in terminate, we can user 'zipline run -f'  with algofile .
but in ipython notebook,  What parameters should we attach %%zipline .
thanks you

you need to use a cell magic. you two percent (%) signs like:
%%zipline --start <start> --end <end>
def handle_data(context, data):
    ...
...

@llllllllll   in my first time ask the question which has  contine two percent(%)  signs case and  one percent(%) sign  case。
so i think  the problem "AttributeError: 'NoneType' object has no attribute 'name'".   is that in python notebook  %%zipline  only  --start and --end。
we did not have to specify an input file as above since the magic will use the contents of the cell and look for your algorithm functions there。  the new version 1.0.0 whether check the input file?

The behavior should not have changed between 0.9 and 1.0. In the first case, the syntax error is on line 3 which makes me think that you did not put the %%zipline in its own cell.

I will look into detecting this case and providing a better error message when the cell magic is used with no functions defined.

@llllllllll
AttributeError: 'NoneType' object has no attribute 'name'.
what shoud i do to fixed this problem?

Sorry for all the hassle, it looks like this is just broken. I just pushed a fix to master. You can either pull from master or apply the following diff in place:
diff --git a/zipline/utils/run_algo.py b/zipline/utils/run_algo.py
index fbe6459..ea4d1a2 100644
--- a/zipline/utils/run_algo.py
+++ b/zipline/utils/run_algo.py
@@ -145,7 +145,7 @@ def _run(handle_data,
             'before_trading_start': before_trading_start,
             'analyze': analyze,
         } if algotext is None else {
-            'algo_filename': algofile.name,
+            'algo_filename': getattr(algofile, 'name', '<algorithm>'),
             'script': algotext,
         }
     ).run(

I will try to get 1.0.1 pushed before I leave for PyCon this weekend.
Sorry for not just running this earlier.

Going to close this as it looks like this has been fixed. Feel free to re-open if you see this issue again 🙂


Compilation error on 'zephir_bitwise_xor_function'

I'm try to compile that code:
namespace Foo;
class App {
	public static function getInt(int num) { return num; }
	public static function bitwiseXorTest() {
		var i = self::getInt(123), j = self::getInt(321);
		return i ^ j;
	}
}

and after executing zephir compile i've got... nothing:

Preparing for PHP compilation...
Preparing configuration file...
Compiling...

... and that error in compile-errors.log:
NMAKE : fatal error U1077: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe" : returned code "0x460"
Stop.

Then i try to cd ext and nmake, then i've got that error:
Creating library D:\php\zephir\myext\ext\x64\Release_TS\php_myext.lib and object D:\php\zephir\myext\ext\x64\Release_TS\php_myext.exp
app.zep.obj : error LNK2001: unresolved external symbol "zephir_bitwise_xor_function"
D:\php\zephir\myext\ext\x64\Release_TS\php_myext.dll : fatal error LNK1120: unresolved external elements: 1
NMAKE : fatal error U1077: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\link.exe" : returned code "0x460"
Stop.

OS: Windows 7 x64
PHP: 7.1.6 x64
Zephir: 0.9.11 (git cloned 2017-09-21 from development branch)
Zephir parser: 1.0.3
VS: 2015 (cl.exe version 19.00.23918, link.exe version 14.00.23918.0)

Fixed in the latest stable release. Feel free to open a new issue if the problem appears again. Thank you for contributing.


Add options to variant advanced search

Can you add "is empty" as a possible search criteria for "Variant Alias"?

Note. Variant alias appears under a few search pages, update for each of these.

I believe this was done?  Or are there more that were still planned?

(backend support exists)

Yeah, this is done.


beginning of github action for benchmarking

The goal is to continuously benchmark lavinmq/main in order to discover regressions in performance

We have tested this before but GitHub CI has notably varied/poor performance. Maybe better luck with depot.dev?

We have tested this before but GitHub CI has notably varied/poor performance. Maybe better luck with depot.dev?

noted! will try out depot


[Sprint: 55] XD-3346 Fix Accessing step progress via REST fails with 403

Add additional authorization rule to application.yml
Add series of REST endpoint tests to verify

Jira: https://jira.spring.io/browse/XD-3346

Merged into 1.2.x as fb55315b48277dea99100ab83227c272450908b2 and master as 32b9cc9137a6e85ec9776dd544702fa4387dc8f2


basic_phone.lua error

http://prntscr.com/fnv0z1

I get this error on server startup.
This is a direct file copy so nothing has been tampered with.

You have config issues, please take your time before submitting issues.


Enforce file extensions in imports to comply with ESM standards

Type of Change:
Tool Source: JS
What issue does this relate to?
This PR resolves #454.
What should this PR do?

Removed all esm + extensionless usages from the project.
Updated ESLint configuration to enforce file extensions in import statements.
Ensured all imports in the project now include proper file extensions.
Updated the project’s package.json to set "type": "module".
Updated the year in the copyright header for all modified files.

What are the acceptance criteria?

No remaining extensionless imports.
ESLint configuration correctly enforces file extensions.
Copyright headers are updated.

Feedback:
Please review and let me know if any further adjustments are required. Thank you!

👋 Just as an FYI for the future, you don't need to create a new PR to make changes to it, you should just push to your existing PR. cc #485

👋 I've made the requested changes regarding the copyright headers and reverted unnecessary modifications. Please review when you have a chance. Thank you!


image: bpfman container image - bpfman fails to start

Loading the current quay.io/bpfman/bpfman:v0.5.3 image in a KIND cluster, the bpfman container fails to start:
$ kubectl logs -n bpfman bpfman-daemon-4pnk8 -c bpfman
./bpfman-rpc: /lib64/libc.so.6: version `GLIBC_2.39' not found (required by ./bpfman-rpc)

bpfman images are built in github actions. The binary is built using .github/wokflows/image-build.yml which is currently using ubuntu:latest. Then the image is build by copying the binary into a container. The base image for the container is redhat/ubi9-minimal, which used glibc 2.34. Recently, ubuntu:latest change from ubuntu 22.04 (glibc 2.34) to
ubuntu 24.04 (glibc 2.39). So now bpfman won't run in a redhat/ubi9-minimal base image.

Fixed by: #1314


Fix the timing-out problem in UsGov cloud

Fix Issue #13669

Azure Form Recognizer is not available in Azure China Cloud now, so we should not run form recognizer live tests in this cloud. Details

Change so far LGTM. You could always remove lines https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/tests.yml#L18-L20 and remove China from the SupportedClouds https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/tests.yml#L21

@maririos - Removed China cloud from tests.yml file.

/azp run net - formrecognizer - tests-weekly


JSON.parse

Hi,
I am noticing a weird effect in a docker setup. I am using mkdocs-material 9.5.28, and on my dev machine all works fine, I can see all diagrams with mkdocs serve, but as soon as I build the website on a container and run it, all diagrams return this error instead of being displayed:
JSON.parse: bad character in string literal at line 1 column 328 of the JSON data
column 328 is different at some others, +- 30
I tried versions 1.5.2, 1.5.3, 1.5.4, 1.5.5 and there all was working still (even in the docker setup). 1.5.6-1.5.9 don't exist (at least anymore), and starting 1.6.0 I can see this effect.
EDIT:
Maybe I'm missing some dependencies?
I currently have this installed on the container:
python = "^3.12"
aiofiles = "~24.1.0"
asyncio = "~3.4.3"
python-dotenv = "~1.0.1"
httpx = "~0.27.0"
mkdocs-material = "~9.5.28"
mkdocs-glightbox = "~0.4.0"
mkdocs-drawio = "~1.6.3"
mkdocs-minify-plugin = "~0.8.0"
mkdocs-redirects = "~1.2.1"
orjson = "~3.10.6"
pymdown-extensions = "~10.8.1"

Kind regards,
Alex

Hi @mvtab,
which base image do you use?

There never has been a version higher than 1.5.5. The next higher version is 1.6.0
I follow semver.org standards. Backwards compatible feature upgrade mean a minor version upgrade. The last digit is just the patch version for bug fixing.

I was able to reproduce the issue and already have the fixed merged. The automated release should be out in a couple of seconds.

Hehe so it was actually related to the previous issue. I wasn't sure, that's why I opened a new one.
I tested it now, it is working perfectly! Great job, thank you!

P.S. Do you have any idea why were we seeing those effects only on containers?

To be honest I have no idea how it was possible to be any different between the two


why n_tasks * alpha?

Hi,
I noticed that in the experiments, epo_train.py scales alpha (task weight) by the number of tasks but not for the other methods like pmtl_train.py and linscalar_train.py. epo_search.py in toy_experiments also uses a different multiplier x = x - 10. * max(lp.mu_rl, 0.1) * step_size * d_nd.
Is there any particular reason behind these choices?
Thanks.

Hi,
I noticed that in the experiments, epo_train.py scales alpha (task weight) by the number of tasks but not for the other methods like pmtl_train.py and linscalar_train.py. epo_search.py in toy_experiments also uses a different multiplier x = x - 10. * max(lp.mu_rl, 0.1) * step_size * d_nd.
Is there any particular reason behind these choices?
Thanks.

I also have this question, do you solve it now ?


added character limits

test
https://github.com/Nathan-Albino/Saaba-Story/blob/3f492a663583712976c8e7e1a22cdc522b1d199f/views/layouts/main.ejs#L33-L52


Add GiveMeBadge website

Still has #65 lingering in the code, along with the new gh-pages branch

Wait, I'm requesting to merge to the master branch. How do I try to make a new branch :/

I fixed it lol

lol, thanks!


Location of sites.yml

Telling site/src/scripts/takeScreenshots.js where to find the sites.yml file.

@trasherdk Thanks for this PR! Changing ../ to ${process.cwd()} wouldn't actually make the node scripts that much more robust. It only works when calling them from the project's root directory in which case the ${process.cwd()} is not needed as its equivalent to ''. I pushed a few more changes that should fix this.


Append the language code to the filename.

[ ] _index.md to _index.en.md.
[ ] index.md to index.en.md.

Hello, I have a simple question about the languages in the starter theme, I have created index.es.md, _index.es.md, menus.es.yaml and params.es.yaml where it needs to be, but I have this problem that text in "featured-posts-tab" and "recent-posts-tab" disapear.

Can you give me a hint? Thanks

@VM-137 Hmm, that's weird, it should use en as fallback, do you have a public repo for reproducing the issue?

@VM-137 Confirmed, it was caused by the missing translations, for now, you can preserve the defaultContentLanguage as en, and configure your langauge in languages.yaml, so that it will fallback to use en translations.
To support es language translations, see the i18n guide for details.

@VM-137 Should fixed in modules/sidebar/posts: v0.6.1.
hugo mod get<EMAIL_ADDRESS>
It use English as fallback translations, please feel free to change it in https://github.com/hbstack/blog/blob/main/modules/sidebar/posts/i18n/es.toml.

I will be waiting for the v0.6.1, and collaborate translating the i18n files to "es" , thanks.

@VM-137 Should fixed in modules/sidebar/posts: v0.6.1.
hugo mod get<EMAIL_ADDRESS>
It use English as fallback translations, please feel free to change it in https://github.com/hbstack/blog/blob/main/modules/sidebar/posts/i18n/es.toml.

Done.


CLI trying to access master state information on master/state-summary

On line 126 of mesos.py
However the URL seems to have been moved to mesos/state-summary? The same applies for line 99 for state.json? I imagine all of this is just in flux and you probably know, happy to submit a PR of course if it's just cleanup. Causes the following error when trying to dcos node ssh --mesos-id=SLAVE_ID :
Error while fetching [http://CORE_URL/master/state-summary]: HTTP 404: Not Found

@tamarrow Can you please investigate?
@nandanrao Which version of DCOS are you using?

@jsancio: 0.4.3

@nandanrao 0.4.3 is the dcos-cli version, can you also provide the version of your DCOS cluster please? Thanks!

v1.6.1

Did you set core.mesos_master_url? If you don't the "state-summary" we try to access is http://DCOS_URL/mesos/master/state-summary which I just tried, and worked for me: https://github.com/mesosphere/dcos-cli/blob/883d3bcd0290becdb767cf12c01b7b4a3f71c809/dcos/mesos.py#L57
Can you verify please? Thanks!

@tamarrow Damn, yep, that was it! Not sure how that was set, I must have set it accidentally when trying to set the core_url. Didn't notice that line, sorry about the Issue!


Unknown language: markdown is not registered

Error: Unknown language: `markdown` is not registered
    at b1e.yxt [as highlight] (http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:1150:253330)
    at http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:1151:8362
    at gR (http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:93:53252)
    at JG (http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:93:62788)
    at pae (http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:93:62114)
    at bX (http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:93:61697)
    at Nae (http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:97:12048)
    at Tae (http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:97:964)
    at DSe (http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:97:887)
    at Lw (http://peregrine:8080/apps/groups/assets/index.f67c0ed6.js:97:737)

from the ~ramlyx-sibdyt/guild group

Duplicate of #2121


[BEAM-4176] clean up artifacts per-job in portable VR tests

Uses the --clean-artifacts-per-job flag from #5958 in the portable VR tests
After this change, there is never more than one instance of the 260MB of staged artifacts under /tmp/beam-artifact-staging/ (without this change, ≈200 copies (the number of VR test-cases) of the same 260MB are put in that tmp dir)
R: @angoenka
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

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

Java

Python

---

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

Please resolve the conflits

resolved; running the VR tests with this flag on, looks to be working as intended

hmm:

Build timed out (after 30 minutes). Marking the build as aborted.
Build was aborted

Run Java PreCommit

Run Java PreCommit

> Task :beam-sdks-java-io-mqtt:test FAILED
org.apache.beam.sdk.io.mqtt.MqttIOTest > testReadNoClientId FAILED
org.junit.runners.model.TestTimedOutException: test timed out after 60000 milliseconds
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:467)
at org.apache.beam.runners.direct.ExecutorServiceParallelExecutor$QueueMessageReceiver.tryNext(ExecutorServiceParallelExecutor.java:397)
at org.apache.beam.runners.direct.ExecutorServiceParallelExecutor$QueueMessageReceiver.access$300(ExecutorServiceParallelExecutor.java:370)
at org.apache.beam.runners.direct.ExecutorServiceParallelExecutor.waitUntilFinish(ExecutorServiceParallelExecutor.java:247)
at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:327)
at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:302)
at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:197)
at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:64)
at org.apache.beam.sdk.Pipeline.run(Pipeline.java:313)
at org.apache.beam.sdk.testing.TestPipeline.run(TestPipeline.java:350)
at org.apache.beam.sdk.testing.TestPipeline.run(TestPipeline.java:331)
at org.apache.beam.sdk.io.mqtt.MqttIOTest.testReadNoClientId(MqttIOTest.java:133)

is this a flaky test?

Run Java PreCommit

Yes, This test seems to be flaky.

Ping for merge
cc: @lukecwik @mxm

Thank you @ryan-williams.


HMR not working for @fs imported modules, full reload used on every change

Description 📖
HMR is not working for any modules imported with @fs, such as files outside of the root.
This is often used in mono repos, or alternate project structures such as in Vite Rails.
Cause
The JS module for a @fs imported file is duplicated because it's:

Inserted first with a url with double slash in ensureEntryFromUrl
Updated with a url without a double slash in updateModuleInfo

The reason it doesn't have a double slash the second time, is that path.posix.join removes any double slash from the provided arguments, and it's used after calling ensureEntryFromUrl, and before calling updateModuleInfo.
Any change to a file causes a full-reload instead, because the JS module is duplicated, and only the second one gets isSelfAccepting set to true, but the first one is always returned when checking for HMR.
Reproduction 🐞
The issue can be replicated in this simple application, by going to the directory and running pnpm install and pnpm serve.
Try modifying HelloWorld.vue, the page is always reloaded instead of HMR taking place.
Logs 📜

Example with non-fs import:
  ModuleNode {
    id: '/Users/maximomussini/Projects/vite_rails/package/intro/src/components/HelloWorld.vue',
    file: '/Users/maximomussini/Projects/vite_rails/package/intro/src/components/HelloWorld.vue',
    importers: Set(1) { [ModuleNode] },
    importedModules: Set(2) { [ModuleNode], [ModuleNode] },
    acceptedHmrDeps: Set(0) {},
    isSelfAccepting: true,
    transformResult: null,
    ssrTransformResult: null,
    ssrModule: null,
    lastHMRTimestamp: 0,
    url: '/src/components/HelloWorld.vue',
    type: 'js'
  }

Example with fs import:
[
  ModuleNode {
    id: '/Users/maximomussini/Projects/vite_rails/package/intro/app/frontend/components/HelloWorld.vue',
    file: '/Users/maximomussini/Projects/vite_rails/package/intro/app/frontend/components/HelloWorld.vue',
    importers: Set(0) {},
    importedModules: Set(0) {},
    acceptedHmrDeps: Set(0) {},
    isSelfAccepting: false,
    transformResult: null,
    ssrTransformResult: null,
    ssrModule: null,
    lastHMRTimestamp: 0,
    url<EMAIL_ADDRESS>    type: 'js'
  },
  ModuleNode {
    id: '/Users/maximomussini/Projects/vite_rails/package/intro/app/frontend/components/HelloWorld.vue',
    file: '/Users/maximomussini/Projects/vite_rails/package/intro/app/frontend/components/HelloWorld.vue',
    importers: Set(1) { [ModuleNode] },
    importedModules: Set(2) { [ModuleNode], [ModuleNode] },
    acceptedHmrDeps: Set(0) {},
    isSelfAccepting: true,
    transformResult: null,
    ssrTransformResult: null,
    ssrModule: null,
    lastHMRTimestamp: 0,
    url<EMAIL_ADDRESS>    type: 'js'
  },
]

@yyx990803 Tested beta51, and HMR is still not working as expected for some @fs files.
Replicated for imported stylesheets that are not entries, which triggered a full page reload, and for Vue templates the problem seems to be different now, the HMR update is sent to the client but the template is not refreshed.
With the fix #1750 it was working as expected, so it might be related to a missing case where the double slash is still removed. It seems like refactoring to avoid using path.join for URLs would be worth it.

@yyx990803 Tested beta51, and HMR is still not working as expected for some @fs files.
Replicated for imported stylesheets that are not entries, which triggered a full page reload, and for Vue templates the problem seems to be different now, the HMR update is sent to the client but the template is not refreshed.
With the fix #1750 it was working as expected, so it might be related to a missing case where the double slash is still removed. It seems like refactoring to avoid using path.join for URLs would be worth it.

Ok, I added your fix in #1750 in 99e4edd468c5e27f66fd276b2ebf22d1c3424c31

Ok, I added your fix in #1750 in 99e4edd468c5e27f66fd276b2ebf22d1c3424c31


oldfiles not updated when saving buffer under certain conditions

Describe the bug
When Vim is opened, something is written in the editor and the buffer saved to a file by issuing the command ':w some-file-name.txt' and Vim is quit again
Then some-file-name.txt is not in oldfiles the next time Vim is opened.
To Reproduce
Open vim
Then press 'i' to start writing.
Then save the buffer and give the file a name by issuing the command ':w some-file-name.txt'
Then quit vim by :x
Then open vim again and observe oldfiles missing some-file-name.txt
Expected behavior
some-file-name.txt in oldfiles when vim is opened again
Environment (please complete the following information):
VIM - Vi IMproved 8.2 (2019 Dec 12, kompileret Nov 4 2020 11:27:02) macOS-version Rettelser som er med: 1-1950 Kompileret af Homebrew
And
MacVim, this version: Custom Version 8.2.1719 (166)
See also
https://vi.stackexchange.com/questions/28097/why-is-oldfiles-not-listing-last-edited-file

I created https://github.com/vim/vim/pull/7350 to fix this

Probably fixed by 8.2.2039.

Closing then.


Modify the InitPluginProtocol to interact with AppConfig.

This PR modifies InitPluginProtocol.on_app_init() to receive and return the AppConfig instance, as opposed to the application instance itself.
The Starlite.__init__() method is modified to call the on_app_init() method of all registered InitPluginProtocol plugins immediately after calling the on_app_init hooks.
This PR supersedes RFC PR #1381 which examined the effects of removing InitPluginProtocol in favor of on_app_init hooks. From discussion in that PR it was resolved that there is merit in having both on_app_init hooks and InitPluginProtocol, even if they essentially do the same thing, due to improved ergonomics of the application interface that this affords.
Pull Request Checklist

[ ] New code has 100% test coverage
[ ] (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
[ ] (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

By submitting this issue, you agree to:

follow Starlite's Code of Conduct
follow Starlite's Contribution Guidelines

Description
Close Issue(s)

I like it


Dynamic partial could not be found

Hey there,
I'm using a helper function to generate the name of a dynamic partial. In my test case the helper returns a simple string which is the path to a partial. I want to extend this to return a certain name based on the input for the helper.
The first line loads a normal partial, and the second one uses the helper function:
{{> ../img/icons/nav/icon_account }}
{{> ([helpers/iconnamehelper]) }}

This is my helper:
module.exports = (data, options) => {
	console.log(data);
	return "../img/icons/nav/icon_account";
};

When using the returned string from the helper, I get the following exception:
Error: The partial ../img/icons/nav/icon_account could not be found
Do you have any hint on how I might get this workin?
Thanks,
Stefan

Are you using pure Handlebars or a framework that is based on Handlebars? The partial name "../img/icons/nav/icon_account" looks like you are referencing a file, but Handlebars itself does not work with files.
If you are using Handlebars directly, you have to call "Handlebars.registerPartial(name, content)" before calling the partial.

Closing due to inactivity


qhub init should initialize digital ocean with the latest kubernetes version

Closed by #168

Closed by #168


kinput doesn't allow v-model

kinput needs to emit input and bind :value

Created bug: https://konghq.atlassian.net/browse/INTF-2495


Use Cases for Always Serve

Could we add use case examples for when Always Serve would be applicable, please?

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

ID: 9fed131c-15d3-3266-3570-08e445eda1b8
Version Independent ID: fe645535-673e-4c59-0163-be55107b0e58
Content: Azure Traffic Manager endpoint monitoring
Content Source: articles/traffic-manager/traffic-manager-monitoring.md
Service: traffic-manager
GitHub Login: @greg-lindsay
Microsoft Alias: greglin

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

This is being tracked as internal content issue: 96317
#please-close


no method 'setPrototypeOf' in Node 0.10

Getting this error in Node 0.10 with feathers-errors 1.1.3.
> testee --browsers firefox viewer/test/index.html author/test/index.html
/home/travis/build/<project>/js/node_modules/testee/node_modules/feathers/node_modules/feathers-errors/lib/index.js:77
  Object.setPrototypeOf(AbstractError, klass);
         ^
TypeError: Object function Object() { [native code] } has no method 'setPrototypeOf'
    at AbstractError (/home/travis/build/<project>/js/node_modules/testee/node_modules/feathers/node_modules/feathers-errors/lib/index.js:77:10)
    at Object.<anonymous> (/home/travis/build/<project>/js/node_modules/testee/node_modules/feathers/node_modules/feathers-errors/lib/index.js:82:21)

I see feathers-errors wants Node >= 0.12.

Ya, unfortunately extending the Error object using ES6 classes is pretty hacky. If you really need v0.10 support let me know and we can re-open this issue. I can make it work but don't really want to since v0.10 is so many versions old already.


🚀 - Support more languages like "shell"

Which @codeimage/* package(s) are relevant/releated to the feature request?
codeimage
Description
Would be great to see more language to be supported to have beautiful syntax highlight here 🎉

Hey @PeterDaveHello, since I'm using codemirror6 I don't have the full language support like the previous version.
Here's the list of the legacy languages which I can add to CodeImage
https://github.com/codemirror/legacy-modes
In case, shell is present so I will add it soon, but in case do you also need some other language present on the page?

Hi @riccardoperra, thanks for your prompt reply, currently, shell is the only language I'd like to have its support, but please feel free to take your time :D

No worries it's just a configuration 😄 he https://github.com/riccardoperra/codeimage/pull/455

Deployed with v1.1.4 release - https://github.com/riccardoperra/codeimage/actions/runs/4047006131

Good to see that Dockerfile is also supported! Thank you @riccardoperra!


Spectrogram canvas not redrawing on destroy->create->load cycle

(First time ever posting an issue; please let me know if I'm doing it badly)
I am trying to implement two slider controls to let users adjust the bar height of the waveform, and the max frequency of the spectrogram. The one adjusting the waveform works fine. The one adjusting the spectrogram will redraw the labels, but not the actual canvas.
Here is the code (a live version can be viewed here):
<!DOCTYPE HTML>

Waveform Height: <input id="heightInput" value="5" onchange="recreateWave()"/>

Max Frequency: <input id="frequencyInput" value="2" onchange="recreateWave()"/>

If I log the wavesurfer variable before and after it is recreated, the sample rate in the AudioContext does change to the value provided by the slider. It will redraw the labels on the spectrogram canvas, but the actual plot doesn't change. I'm not clear whether this is a bug or if I'm missing something.
If relevant, my intended next step is to add an option to change the colorMap, so any work around or instructions would ideally also account for that variable changing too.

can you simplify the code to reproduce the "Spectrogram canvas not redrawing on destroy->create->load cycle" issue? An html file that can be copy-pasted and tested without having to setup everything else. Thanks.

I updated the code in the original query to be self contained.
Note that the frequency shown on the spectrogram label will be twice what the handle label shows. The labels are twice what they should be; I think it's related to this issue: https://github.com/katspaugh/wavesurfer.js/issues/702. I have fixed it locally, but the code here is linking in the plugin.
Thanks!

I updated the code in the original query to be self contained.

Please don't provide code that uses third-party libarries that could be the cause of the issue:

		<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/base/jquery-ui.css" type="text/css" media="all" />
		<link<EMAIL_ADDRESS>rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">

	```

If you can reproduce the issue without any frameworks, it's much easier for others to track down the problem.

Edited again to be vanilla JS + wavesurfer related code. The "sliders" are now onchange text inputs

On further coding, I have some more information that might be helpful.
This code renders 3 wavesurfers with 3 different audios. On first load, each should have a different default max frequency (22, 11 and 4; recall that the labels are doubling these values). A frequency select should override all of them to a set max frequency (or return them to their defaults).
If you check the console for the array of wavesurfer objects on load, each has the correct sample rate in the audio context (88000, 44000, and 8000 respectively). If you select a different max frequency, the resulting objects also all have the correct new sample rate value.
If you look at what is actually rendering on the page, however, it is selecting the sample rate for the first audio context and using that for all of them. It continues to use this original audio context even when destroy and load cycles have been run. To see this in action, you may need to fiddle with the default frequencies or order of the entries; moving wave-2 to be the first will cause them all to render with 2kHz frequencies, for example.
The issue is almost surely in how I am declaring which wavesurfer the spectrogram should use in the plugin options. In experimenting to see if I had to pass it as wavesurfer: wavesurfer[id] or similar, I've determined that the line is actually doing nothing, and can be removed without error. So I assume the library must be rejecting the undefined or useless value I'm passing it and looking to the first audio context it can find?? Any advice on what it needs to be passed or how to connect each spectrogram to each wave?
	<html>
		<head>
			<meta charset="utf-8">
		<!-- wavesurfer -->

			<style>
				.resultCard{
					margin-bottom:30px;
				}
			</style>
			<title>Wavesurfer Test</title>
		</head>
		<body>
			<main id="main" role="main">
				<div id="optionPanel">
					<h4 class="center">Adjust Spectrograms</h4>
					<label>Frequency</label>
					<select id="frequency" onchange="recreateWavesurfers();">
						<option value="0">Default</option>
						<option value="2">2</option>
						<option value="5">5</option>
						<option value="12">12</option>
						<option value="22">22</option>
					</select>
					<label>Color</label>
					<select id="color" onchange="recreateWavesurfers();">
						<option>jet</option>
						<option>greys</option>
						<option>hot</option>
						<option>cool</option>
					</select>
				</div>
				<div id="searchResults">
					<div class="resultCard">
						<div id="wave-0" class="wave">
							<input type="hidden" id="audioFile-0" class="audioFile" value="media/demo.wav">
							<div id="waveform-0" class="waveform">
								<div id="wave-line-0" class="wavelineHolder"></div>
							</div>
							<div id="spectrogram-0" class="spectrogram">
								<input type="hidden" id="defaultFrequency-0" value="22">
								<div id="wave-spectrogram-0" class="spectrogramHolder"></div>
							</div>
							<div id="timeline-0" class="timeline">
								<div id="wave-timeline-0" class="timelineHolder"></div>
							</div>
						</div>

					</div>
					<div class="resultCard">
						<div id="wave-1" class="wave">
							<input type="hidden" id="audioFile-1" class="audioFile" value="panner/media.wav">
							<div id="waveform-1" class="waveform">
								<div id="wave-line-1" class="wavelineHolder"></div>
							</div>
							<div id="spectrogram-1" class="spectrogram">
								<input type="hidden" id="defaultFrequency-1" value="11">
								<div id="wave-spectrogram-1" class="spectrogramHolder"></div>
							</div>
							<div id="timeline-1" class="timeline">
								<div id="wave-timeline-1" class="timelineHolder"></div>
							</div>
						</div>

					</div>
					<div class="resultCard">
						<div id="wave-2" class="wave">
							<input type="hidden" id="audioFile-2" class="audioFile" value="elan/transcripts/001z.mp3">
							<div id="waveform-2" class="waveform">
								<div id="wave-line-2" class="wavelineHolder"></div>
							</div>
							<div id="spectrogram-2" class="spectrogram">
								<input type="hidden" id="defaultFrequency-2" value="2">
								<div id="wave-spectrogram-2" class="spectrogramHolder"></div>
							</div>
							<div id="timeline-2" class="timeline">
								<div id="wave-timeline-2" class="timelineHolder"></div>
							</div>
						</div>

					</div>
				</div>
			</main>
		</body>
	</html>`

If you look at what is actually rendering on the page, however, it is selecting the sample rate for the first audio context and using that for all of them.
audioContext: new AudioContext({sampleRate: params.sampleRate}),

I would store these audioContext instances in a proper variable so you can properly inspect them.

Digging into the logged objects, the audioContext in params on the wavesurfer object is correct. Always. The audioBuffer under buffer on the spectrogram subobject on each wavesurfer object, however will set the sampleRate once (based on whichever finishes loading first; often but not always the first on the page) and then treats that value as a constant for all subsequent runs, regardless of which wavesurfer object it is working with or whether the audio context for a single instance changes.
On params:
audioContext: AudioContext {

     audioWorklet: AudioWorklet {  },

     baseLatency: 0,

     currentTime: 238.688,

     destination: AudioDestinationNode { maxChannelCount: 2, numberOfInputs: 1, numberOfOutputs: 0, … }

    listener: AudioListener {  },

    onstatechange: null,

    outputLatency: 0.077875,

    sampleRate: 8000,    //Here!

    state: "running"

}

On spectrogram subobject (note that the duration and length values do change between instances):
buffer: AudioBuffer {

     duration: 87.51020454545454,

     length: 7700898,

     numberOfChannels: 1,

     sampleRate: 88000    //this should also be 8000 but isn't

}

Doing a quick and ill-informed search in the source code, I suspect the issue is here (line 237-247 of this):
static create(params) {

        return {

            name: 'spectrogram',

            deferInit: params && params.deferInit ? params.deferInit : false,

            params: params,

            staticProps: {

                FFT: FFT    // <-- this function sets the sample rate but is a constant and doesn't update it with new audio contexts

            },

            instance: SpectrogramPlugin

        };

    }

Thoughts?

// <-- this function sets the sample rate but is a constant and doesn't update it with new audio contexts

Where does it do that?

Lines 1 -8 of the same file
/**
 * Calculate FFT - Based on https://github.com/corbanbrook/dsp.js
 */
/* eslint-disable complexity, no-redeclare, no-var, one-var */
const FFT = function(bufferSize, sampleRate, windowFunc, alpha) {
    this.bufferSize = bufferSize;
    this.sampleRate = sampleRate;     //<-- here
    this.bandwidth = 2 / bufferSize * sampleRate / 2;

doesn't update it with new audio contexts

I see. Can you add a method that can update the audiocontext in FFT? Or maybe you have another suggestion?

This is as far as I got:
The getFrequencies function sets a buffer value, then uses that to set a sampleRate value
      var fftSamples = this.fftSamples;
      var buffer = this.buffer = this.wavesurfer.backend.buffer;
      var channelOne = buffer.getChannelData(0);
      var bufferLength = buffer.length;
      var sampleRate = buffer.sampleRate;```
I've not traced down `this.wavesurfer.backend.buffer` to figure out where it is going wrong, but the sampleRate it ends up with is incorrect. A change to
`var sampleRate = this.wavesurfer.backend.ac.sampleRate;` will set the correct value, but this variable only seems to be used for labelling, and once the FFT function to set a bandwidth function, but the bandwidth is then never referenced beyond this. So fixing this doesn't actually change anything.

While I can't find anywhere else the `buffer.sampleRate` value is being referenced, I have to conclude it is being used invisibly somewhere. From a quick trial and search, just setting the sample rate on the buffer after the fact isn't really possible (https://github.com/WebAudio/web-audio-api/issues/300)? So it would need to be corrected by figuring out why `this.wavesurfer.backend.buffer` isn't applying the provided `new AudioContext({sampleRate: sampleRate})` when it is being created.

I have changing priorities, and am not going to able to get back to this until mid-year, but someone with more information on how wavesurfer is building the buffers might be more more useful than I anyways.


making imgbot rescan and update the pr after adding .imbotconfig.

so i've have ignored some paths, but i couldn't find a a way to re-trigger imgbot?

this is a great idea!
over here: https://github.com/dabutvin/ImgBot/blob/master/WebHook/WebHookFunction.cs#L74-L89
We check all the modified and added files to see if there are any images.
We could do an extra check to see if the modified file is .imgbotconfig
Then just add a router message if this is the case. Awesome!

hacktoberfest is over, but this is something we should definitely still do!

I'm keen to have a go at this!

Hi @usmanatron
Go for it!
Comment if you run into any problems getting setup.
Have a look at the test setup at https://github.com/dabutvin/ImgBot/blob/master/Test/WebHookTests.cs
and the mock hooks : https://github.com/dabutvin/ImgBot/tree/master/Test/data/hooks

Thanks @dabutvin , all makes sense to me.  I've written something which I think will work, just need to run the tests now 🤞

👍  fixed in #272


Allow CloudFormation stack tags to be updated

Limitations:

does not update the tags of the resources in the stack. that can be
implemented later.
does not support the supposed feature of clearing tags by passing an
empty value that boto3 mentions in its documentation. I could not find
anything in the request body to indicate when an empty value was passed.

Coverage increased (+0.002%) to 93.489% when pulling 6f4cb512ac39daa659e1e56f0b5243ea878b8566 on 2rs2ts:allow-updating-cf-tags into a6e762340dc45fd8e91003d2728670676b1a7ca8 on spulec:master.

Awesome. Thank you!


it should auto delete the messages

Dood9123, as the comments and the README say, the prune command is simply commented out. If you want the bot to automatically delete sent messages, you must uncomment the prune command and the line that calls the prune command.
Closing as there is no issue with the project. Feel free to let me know if you have any more issues.


Mention that Dask is open source in landing page

We apparently forgot to mention this except in the header.
This integrates this message into a broader message about being part
of the PyData ecosystem.
cc @jorisvandenbossche @pitrou who noticed this last night.  If there is a way to put this more prominently without disrupting messaging I'm open to suggestions.

This looks fine on the principle. Let's see how it looks like on the landing page once this is pushed :-)

I think the first sentence """Dask grew out of the open source PyData ecosystem""" is superfluous.
So I would rephrase : """Dask is open source and freely available. It is developed in coordination with other community projects like Numpy, Pandas, and Scikit-Learn."""

Yes.  That sounds much better.  Thanks @pitrou .  Pushed.

Looks good (still not really prominent (I also don't know to what extent this is needed), but at least it is there)


explicit type annotations for implicit definitions (fixes #1387)

This fixes generated sources compilation for Scala 3
Fixes #1387

Thank you again for the contribution! If you are already on sbt-guardrail 0.70.0, you can add
libraryDependencies += "dev.guardrail" %% "guardrail-scala-support" % "0.69.1"

alongside addSbtPlugin("dev.guardrail" % "sbt-guardrail" % "0.70.0") in order to get this fix before the next sbt-guardrail is released. We're trying to move towards a semver-driven, bincompat model of component management. I'll probably be releasing https://github.com/guardrail-dev/sbt-guardrail/issues/166 either today or tomorrow, but if you need it sooner, you've got an option!


Kernels 2021-07-18

Things done

[x] Fits CONTRIBUTING.md.

@ofborg test kernel-lts latestKernel.hardened


tools/lsp: minor improvements

After discussing some of these settings with @yyoncho (thanks for the help), we as lsp-mode maintainers think that these changes could be a better default/performance for doom users.

Done @gagbo, thanks for the review

When running this with unpinned lsp-mode and lsp-ui with gopls master I end up with a broken LSP that says:
LSP :: There are no language servers supporting current mode `go-mode' registered with `lsp-mode'.
This issue might be caused by:
1. You haven't registered/loaded external language server package which doesn't ship with `lsp-mode'(e. g. `lsp-java', `lsp-metals').
2. The language server that you expect to run is not configured to run for major mode `go-mode'. You may check that by checking the `:major-modes' that are passed to `lsp-register-client'.
3. `lsp-mode' doesn't have any integration for the language behind `go-mode'. Refer to https://emacs-lsp.github.io/lsp-mode/page/languages and https://langserver.org/ .

When running this with unpinned lsp-mode and lsp-ui with gopls master I end up with a broken LSP that says:

Hello,
Thanks for the report but it's not related to this PR (unless this happens on the lsp-mode pin in the PR). It's better to track those separately

It doesn't happen when I run the same environment without this PR. It seems to be related to the removal of lsp.el L65, re-adding those lines fixes it for me.

This is odd as lsp-mode already have that code, are you sure you have re-byte-compiled your lsp-mode?

Sorry for the late reply; I've been burning through a massive backlog after returning from a long break. There's a lot to unpack here, but a little more needed to be done to accommodate some of these changes (which I've done in 22b6eae).
In a nutshell:

I've decided to do away with suppressing installation. At least lsp-mode is prompting for confirmation.

I've rewritten how the optimizations are applied (they were buffer-local in an attempt to isolate the change -- as I can't anticipate what side effects it could have elsewhere.

I've enabled file-watchers -- if this turns out to be as big a performance issue as I fear, I'll turn it off on a per-client basis later.

  (when lsp-auto-configure
    (mapc (lambda (package) (require package nil t))

These lines are no longer necessary after no.1 above.

That should address everything that's been brought up here. Let me know if I've missed something.

This is not working since months, also lsp-mode has lsp-checker-provider which user could change if he wants another checker.

I haven't looked into this yet. A quick search in lsp-mode's source produces no results for a lsp-checker-provider. Is there somewhere I can read up on this so I can update our documentation?

Thank you @hlissner!

I haven't looked into this yet. A quick search in lsp-mode's source produces no results for a lsp-checker-provider. Is there somewhere I can read up on this so I can update our documentation?

Sorry, the correct variable is lsp-diagnostics-provider from lsp-diagnostics.el

Sorry, the correct variable is lsp-diagnostics-provider from lsp-diagnostics.el.
We have this tutorial for enabling/disabling lsp features and you can find more info about lsp-diagnostics-provider here

Oh, but that's not what this advice was dealing with (the docstring was misleading though, my bad):
  (defadvice! +lsp--respect-user-defined-checkers-a (orig-fn &rest args)
    "Set up flycheck-mode or flymake-mode, depending on `lsp-diagnostic-package'."
    :around #'lsp-diagnostics--flycheck-enable
    (if flycheck-checker
        ;; Respect file/dir/explicit user-defined `flycheck-checker'.
        (let ((old-checker flycheck-checker))
          (apply orig-fn args)
          (setq-local flycheck-checker old-checker))
      (apply orig-fn args)))

The point of this is, if the user has an explicit flycheck-checker set for lsp-mode buffers, it wouldn't be overwritten with lsp.

I see, sorry, I think we can keep it so


How can I change the icon of the event?

Bug description / Feature request:
Link to minimally-working plunker that reproduces the issue (starter template: http://plnkr.co/edit/LE4F4U7AnnD3tjM9ZH4G?p=preview)
Versions
Angular:
Calendar directive:
Browser name and version:

As shown in the demo just add the icon html in the event title.

I sent you a snap shot of calendar. Please see that and give solution to
add event icon instead of circles and content of event cell.
On Thu, Oct 6, 2016 at 8:56 PM, Matt Lewis<EMAIL_ADDRESS>wrote:

Closed #459
https://github.com/mattlewis92/angular-bootstrap-calendar/issues/459.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mattlewis92/angular-bootstrap-calendar/issues/459#event-814941990,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQpOYT5oVPcHSNCgwK1kCNd9VjjauRceks5qxRMagaJpZM4KP8-f
.

Hi mishra, did you ever find a solution for this? Working on the same thing myself


[SPARK-43917][PS][INFRA] Upgrade pandas to 2.0.2

What changes were proposed in this pull request?
Upgrade pandas from 2.0.0 to 2.0.2
Why are the changes needed?
This fixes some regressions and bugs.
Whats new in 2.0.2
Whats new in 2.0.1
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA

It's pretty makes sense to me although we still need to discuss the potential behavior changes for future updates.

It looks pretty making sense to me since it's not introduce any extra test skipping or behavior changes.


RHEL-33208: Remove custom bootc-generic-growpart

Since this is already fixed upstream, we don't need to add this custom service to grow filesystem

LGTM


Fix home & keywords in Chart.yaml

Hi, I've noticed that there is the keywords: label missing.
This causes broken descriptions in pull-requests generated by renovate.

Also I would like to propose changing the home: URL the helm-chart one instead of the source repo of vaultwarden.

Another great catch :) "keywords" was missing since the new Vaultwarden name came in (https://github.com/gissilabs/charts/commit/31674264c4c3a907208cb9f4092230abe40a532f).
For the "home" change, I didn't give it much thought, but as far as I could research they are either a generic link to the project home (e.g. Prometheus, Grafana, NextCloud) or to the chart provider (all Bitnami charts points to bitnami.com). Does Renovate bot uses "home" when it opens PRs?
Thank you!

I assume renovate is using the url in home: as the broken yaml seems to have reflected in the broken link in my screenshot above.
home: https://github.com/gissilabs/charts/vaultwarden
  - bitwarden
  - bitwarden_rs
  - password
  - vaultwarden

Became:
https://github.com/gissilabs/charts/vaultwarden - bitwarden - bitwarden_rs - password - vaultwarden

(Maybe even with newlines before the - which did break the Markdown rendering)
But TBH I'm also not sure if home should point to the application repo or chart repo (in case not being the same). Also the official documentation is also not giving a clear answer:
https://helm.sh/docs/topics/charts/#the-chartyaml-file
Let me know if I should remove the change in home:.

Found something regarding renovate:

The source URL is determined from the home field or the sources field in the results.

Source: https://github.com/renovatebot/renovate/blob/e90a58163c25e537e13bc29edef98fda61005451/lib/modules/datasource/helm/index.ts#L32-L33

Thank you, this will go in the next chart release. I'll also add the chart repo in the sources, I hope this will help Renovate.

🙇 Thank you


Not able to Unregister a subscriber that implements the ISubscriberService

I have a Stateless subcriber that implements my IMySubscriber which inherits from ISubscriberService.  IMySubscriber has some of my custom methods So I am trying to locate this subscriber using IServiceProxyFactory using the IMySubscriber. I have an API gateway but proxyFactory.CreateServiceProxy<IMySubscriber >(serviceUri.ToUri()). I think it is able to locate the service instance but when I invoke a method in my IMySubsciber method it will get a ""Client is trying to connect to invalid address net.tcp..."

bottom line is i need to unregister a particular subscriber

I think the reason for this error is that you're trying to use SFRemoting to communicate with a service that is configured to use WCF communication (inside SubscriberCommunicationListener).

If you want to add remoting support:

return an additional ICommunicationListener of type FabricTransportServiceRemotingListener from CreateServiceInstanceListeners.
Example:
yield return new ServiceInstanceListener(p => new SubscriberCommunicationListener(this, p), "StatelessSubscriberCommunicationListener");
yield return new ServiceInstanceListener(context => new FabricTransportServiceRemotingListener(context, this), "StatelessFabricTransportServiceRemotingListener");

You can now communicate to it using both WCF and SFRemoting.
Example:
var subStateless = ServiceProxy.Create<ISubscribingStatelessService>(new
	Uri("fabric:/MyServiceFabricApp/SubscribingStatelessService"),
	listenerName: "StatelessFabricTransportServiceRemotingListener");
subStateless.UnregisterAsync().ConfigureAwait(false).GetAwaiter().GetResult();

(notice the listenerName)

If you want to use WCF to communicate, read this.

If you want to unsubscribe a service, from within the service, just use SubscriberServiceHelper.

For a complete example, check out the Demo  project.

Thanks @loekd ! I am using the ServiceFabric.PubSubActors nuget package for my pub/sub. So far it is working but at some point I need to add a way unregister a stateless subscriber. That's when I also realized the underlying communication listener is using WcfCommunicatonListener. What are the advantage/disadvantage of using one over the default FabricTransportServiceRemotingListener?

When I use multiple listeners as you have suggested, I am getting this errors below. Although I initialized the client proxy using the IServiceProxyFactory.
Client is trying to connect to invalid address net.tcp://localhost:49671/3d826454-fe5e-4e9e-a0a4-4caf7215047a/63c2b70b-3cb0-4592-bde3-1fe1eee8fece-131291297409015244.

Actually, it is working now. Again, I forgot this "listenerName" parameter. Thanks!


using clBLAS API (sgemm)

Hello,
I would like to use Isaac in OpenCL. After installing isaac and linking to libisaac.so, there is a link failure
undefined reference to `clblasSgemm'
From README

Link against libisaac.so instead of libcublas.so or libclblas.so, and you're good to go!

but grepping about the source file I can't find implementations of clBLAS.h functions. Isaac GEMM executes on my machine via the example bench/blas.cpp, but it is not clear in that example how an end user is supposed to use Isaac's GEMM (there are calls to function dot (?)).
So my question is : can I just link to libisaac.so and get sgemm working, or do I need to use a different API?
Thanks.

My bad @100%


TiVo arch

What happened?
can you guys make TiVo arch
ITSI Terraform Provider version
tivo
Environment information
No response
Relevant log output
No response

Absolutely


emacs: revert cab1ac6e6820

Revert cab1ac6e682038b2ceca9d16f8c458c0e79149ca
The change from the above commit breaks opening a new emacs frame if
there isn't a existing frame open.
When emacs is running in daemon mode, there will always be a frame
associated with the daemon, even if there are no visible frames.
The lisp function frame-list, will always return 1 frame.
emacsclient --eval '(frame-list)'
(#<frame F1 0xa3c680>)

When an real frame is open, two frames are reported by the frame-list
function.
emacsclient --eval '(frame-list)'
(#<frame F1 0xa3c680> #<frame emacs Prelude - ~/oh-my-zsh/plugins/emacs/emacsclient.sh 0xf50e10>)

See:
https://emacs.stackexchange.com/questions/44537/extra-frame-in-visible-frame-list-when-started-in-daemon-mode-is-causing-prob
https://emacs.stackexchange.com/questions/18859/dont-let-the-daemon-frame-make-a-file-visible

Is there any way we can detect if there is 1 visible frame?

I'm talking about solving #5779 and #5405 of course.

I would expect Emacs on OSX to behave in the same way: a single frame for the daemon and another frame is a window had been created. We would need more information from the original reporters from #5779 and #5405. I've asked for extra details on both tickets.


release checklist

Closes #868

Codecov Report

Merging #870 into master will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #870      +/-   ##
==========================================
+ Coverage   45.07%   45.11%   +0.03%
==========================================
  Files         140      140
  Lines       10862    10862
==========================================
+ Hits         4896     4900       +4
+ Misses       5333     5331       -2
+ Partials      633      631       -2

Impacted Files
Coverage Δ

catalog/cataloger_create_repository.go
66.66% <0.00%> (+7.40%)
: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 a8c06ae...0b4bb99. Read the comment docs.

Please review and comment on the release checklist for lakeFS


Kanban Project

Here is the link of Kanban project.
About our group:
Our group consists of 3 members:

@Olivier-Kango  --> Team_member 1
@DaveZag --> Team_member 2
@KareemWilson  --> Team_member 3

Hi @KareemWilson , @DaveZag , @Olivier-Kango
You did great. Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
m05e5

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Fixed visual shader editor not clearing colour regions

The visual shader editor was not clearing colour regions casing the error to be printed, missed it in #38440.

Thanks!


Single file debugging

Summary
Add notes about debugging single-file apps.

@agocke I updated the file to have the following fixes. You can view them with https://github.com/dotnet/docs/pull/20857/commits/a9d52de72505fc9b7649da5f6bde437c849c84bc

Use relative link to other article.
Change formatting for files to files as any file path should be italicized.

@adegeo Looks great, thanks!


Check GraalVM native-image tool compatibility with all the Std Libs

Description:

$Subject

Describe your task(s)

[ ] Come up with a strategy to find required arguments and configuration to run HTTP module with GraalVM native-image

[ ] Follow this to check all the Std Libs

Let's update the list once this compatibility check is done
Level 1

[ ] io
[x] java.arrays
[x] random
[x] regex
[x] time
[x] url
[x] xmldata
[x] constraint

Level 2

[x] crypto
[x] log
[x] os
[x] task
[x] xslt
[x] serdes
[x] protobuf

Level 3

[x] cache
[x] file
[x] ftp
[x] mime
[x] nats
[x] stan
[x] tcp
[x] udp
[x] uuid

Level 4

[x] auth
[x] email
[x] jwt
[x] oauth2

Level 5

[x] http

Level 6

[x] grpc
[ ] websocket
[ ] websub
[x] websubhub

Level 7

[ ] graphql
[ ] kafka
[ ] rabbitmq
[x] sql

Level 8

[x] java.jdbc
[x] mysql
[x] postgresql
[x] mssql
[x] oracledb


Add LODs for terrain chunks

Terrain still does not have level-of-details support, it should be added to improve performance on large terrains. This could be done by adding multiple index buffers to terrain chunks, each index buffer should describe a mesh with resolution 2 times less than previous level of detail.

I'll work on it.


feat: 2.7 conditional translations

Pull Request

Description

Related Issue

Checklist

[x] I have added commit messages that are descriptive and meaningful.
[x] I have tested the changes locally.
[x] I have reviewed the code changes.

Screenshots

Reminder to put a description in the PR so there's a log of what's changed for future reference


StrongLoop Arc: Can't load models

Hi all,
Strongloop Arc has a great tools for developer, should be used in this project also.
But, seems can't load models in arc?
Anyone has tried this?
The another project will loopback, has no this problem?
Error:
TypeError: Cannot read property 'dataSource' of undefined
at Array. (model.services.js:182)
at Object.forEach (angular.js:323)
at model.services.js:164
at angular-resource.js:627
at processQueue (angular.js:13248)
at angular.js:13264
at Scope.$get.Scope.$eval (angular.js:14466)
at Scope.$get.Scope.$digest (angular.js:14282)
at Scope.$get.Scope.$apply (angular.js:14571)
at done (angular.js:9698)
Thanks and Best Regards,
Hao Tran

Brand new project, detects models, try to save them...same error in the console. This seems kind of core to the functionality of Arc for it to be broken without comments for this long...


How to avoid training time getting longer

Hello!
I've been using cellpose for the past few days and training it using the human-in-the-loop approach. So far I've used 44 images, and I was wondering if there was a way to speed up the training time.
I'm using a GPU, and when I first started it was taking 5-6 minutes to train. Now my training time is 12 minutes, and I haven't changed any settings. It says it's still using the GPU, and I've checked to make sure there are no processes running in the background. Also, all of my images are in one folder.
I've attached a screenshot of the anaconda terminal after training!
Would training also work well if I annotate the cells first and saved the seg.np files all in the same folder, and then use "train on image + masks in folder", or would this change how effective it is?
Any ideas would be appreciated!
Thank you!

Training time is proportional to the number of images you have. When you first start with unlabeled images, there are very few images and training is quick. As you label more images using HITL, training time will increase.
Depending on your image size, 12 minutes is very reasonable for 44 images.


Add sniff and tests for concatenation operator spacing

This change adds the ConcatenationSpacingSniff, which checks that the concatenation operator is correctly surrounded by spaces. Tests are also included.
The relevant WordPress coding standard reads: "Always put spaces after commas, and on both sides of logical, comparison, string and assignment operators."
Both the sniff and test classes are simply extensions of the Squiz.Strings.ConcatenationSpacing code (which kindly already supported the functionality we require here).
Refs #535.

Humm. Looks like the tests fail only when the PHPCS_BRANCH is 2.2.0. Wonder why that is.

Yes, I was just looking into that. I'm a bit confused so far though. Any ideas?

Actually, scratch this whole thing. The right way to do this is perhaps to add the following to WordPress-Core/ruleset.xml —
<rule ref="Squiz.Strings.ConcatenationSpacing">
	<properties>
		<property name="spacing" value="1"/>
		<property name="ignoreNewlines" value="true"/>
	</properties>
</rule>

Ok, I've updated the PR. I don't think there's any need to have tests for this, because the spacing behaviour is already tested in PHP_CodeSniffer.

Perfect! :heart_eyes:

Thanks :)


Gtk.StyleContext.add_provider_for_screen don't works properly?

I think that I found a problem with this function. I have the following code:
Gui = Builder.objects
Styles = Gtk.CssProvider()
Styles:load_from_path("data/styles.css")

Gui.Window
  :get_style_context()
  :add_provider_for_screen(
    Gui.Window:get_screen(),
    Styles,
    Gtk.StyleProvider.PRIORITY_USER
  )

Then... add_provider_for_screen() takes the following arguments:

GdkScreen
GtkStyleProvider
guint

Right? Well... When I run the code, I have the following error:
lua5.1: ./src/Gui.lua:10: bad argument #1 to 'add_provider_for_screen' (Gdk.Screen expected, got userdata)
stack traceback:
	[C]: in function 'add_provider_for_screen'
	./src/Gui.lua:10: in main chunk
	[C]: in function 'require'
	main3.lua:2: in main chunk
	[C]: ?

But... Why? Technically, Gui.Window:get_screen() returns a Gdk.Screen (acording to the docs)... So... I think that is a problem of LGI, but I'm not sure. If isn't a problem of LGI, can anyone help me?

Well... do you happen to have a self-contained example I could play with?
However, I am not quite sure what you are doing. Let's assume that Gui.Window is a GtkWindow. Then :get_style_context() is gtk_widget_get_style_context() returning a GtkStyleContext. Next, you call :add_provider_for_screen(), which  would be this function:
void
gtk_style_context_add_provider_for_screen
                               (GdkScreen *screen,
                                GtkStyleProvider *provider,
                                guint priority);

This function does not expect a GtkStyleProvider as its first argument, but you are calling with one due to the : in :add_provider_for_screen().
Thus, a random guess would be that the following works:
Gui = Builder.objects
Styles = Gtk.CssProvider()
Styles:load_from_path("data/styles.css")

Gui.Window
  :get_style_context()
  .add_provider_for_screen(
    Gui.Window:get_screen(),
    Styles,
    Gtk.StyleProvider.PRIORITY_USER
  )

Sorry for the delay.
Answering the question you asked at the beginning, basically what I want to do is apply CSS to all the widgets that need it. According to the documentation I have in DevHelp, that method works for that.
Everything you assumed is correct, however I hadn't thought about that solution you mentioned.  I will try with that


Added default Uav actions

+GoTo
+Set ROI
+RTL
+Land
+StartMission
+TakeOff

To see the specific tasks where the Asana app for GitHub is being used, see below:

https://app.asana.com/0/0/1204099460291737


[Preference] Auto-enable gui qt when in IPython

Description
This PR adds a preference to start an interactive event loop (%gui qt) when creating a viewer in an IPython context capable of providing one.  The preference is currently True by default... which means that no one would need to use %gui qt anymore, and we could safely remove it from our docs and tutorials without losing the nice interactivity by default:
import napari

viewer = napari.Viewer()  # if you're in IPython, that's it!

Here's how the preference works:
napari.Viewer gains a new parameter: ipy_interactive which is None by default.  If True, napari starts the %gui qt event loop, and the viewer would immediately show, just as if the user had previously typed %gui qt.  If False, any active IPython event loops are stopped, and the user must manually use napari.run() (or run %gui qt again) in order to start the loop and see the viewer.  If ipy_interactive is None (the default) it will use whatever the preference is in SETTINGS.ipy_interactive...
cc @GenevieveBuckley, @jni, @sofroniewn ... curious to get your thoughts.
Type of change

[x] New feature (non-breaking change which adds functionality)

References

see previous discussions in #2233
How has this been tested?

[ ] example: the test suite for my feature covers cases x, y, and z
[ ] example: all tests pass with my change

Final checklist:

[ ] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works

Just gave this a look over. I'm not sure I love adding the ipy_interactive keyword on the Viewer, it's not that I have a specific objection beyond trying to keep the number of kwargs on the Viewer as low as possible (and as generally applicable as possible). How would you and others feel if we just left this as a setting without being a kwarg too? My objection is fairly weak though and I'm happy to defer to the group opinion.

I'm most curious to hear from @Carreau about this one. Personally I think it's convenient but a bit too magical. I also agree with @sofroniewn that adding a new keyword argument to the viewer for this feels like excessive API extension for a minor convenience — and one that can be set with IPython preferences I might add.
I'm also curious whether e.g. matplotlib does anything similar — I suspect they don't by default because there's so many backends, but perhaps there is a matplotlib setting? CC @tacaswell, is there a matplotlib configuration I can set that will automatically turn on IPython interactivity in mpl, or do you defer to IPython?
For reference, the matplotlib docs on interactive prompts/figures:
https://matplotlib.org/3.3.4/users/interactive.html

I agree on all points.  I don't have strong feelings about this one.  This was mostly in response to the last few comments of #2233, where @jni wondered aloud whether maybe we should warn people if they're in ipython and haven't used %gui qt and @GenevieveBuckley expressed support for doing it automatically.  Also, if we're going to put %gui qt in all of our tutorials as the canonical way to use napari, i thought maybe it could be a preference.
I'd be happy with:

removing the viewer parameters (definitely agree there)
turning it off by default (in which case we'd still have to put something in the beginning of each tutorial)
closing it altogether

Some (maybe redundant) thoughts in a semi-random order.

Matplotlib goes one step further and if we detect we are being imported inside of IPython will unconditionally enable the event loop integration https://github.com/matplotlib/matplotlib/blob/200ebe1dcb8c8adb9ed4d177f02a57686ffef085/lib/matplotlib/pyplot.py#L127-L151
which is called on matplotlib.pyplot import https://github.com/matplotlib/matplotlib/blob/200ebe1dcb8c8adb9ed4d177f02a57686ffef085/lib/matplotlib/pyplot.py#L2465
Off the top of my head (but would need to check!) I think that ip.enable_gui is idempotent if called with the same gui name.
Matplotlib's problem is a bit worse as we support several GUI toolkits (not just Qt).
It would also be good to look at https://matplotlib.org/stable/users/interactive_guide.html which goes into how the event loop integration works.  I don't think that the description in the initial post is not correct, in that with %gui qt the Qt event loop is never run in a blocking way, IPython runs it while it waits for the user to type, kills the loop as soon as it gets a keystroke, handles it, and then restarts the loop.  You should only have to set this integration up once per IPython session.  If you want to see what the inputhook for prompt toolkit that IPython ships for Qt is https://github.com/ipython/ipython/blob/master/IPython/terminal/pt_inputhooks/qt.py
I apologize for the uninformed question: where does napari currently call obj.show() to put the window on the screen?

I apologize for the uninformed question: where does napari currently call obj.show() to put the window on the screen?

well, we have a slightly challenging legacy situation, which is that the show parameter has been True by default.  So the viewer is immediately shown, and it was only the execution of the event loop that napari was waiting for to actually put the window on the screen.  Changing this (to decouple app.exec_() from obj.show()) would be a breaking change, requiring Viewer(show=False) by default, and requiring the user to call viewer.show().

@tacaswell

Matplotlib goes one step further and if we detect we are being imported inside of IPython will unconditionally enable the event loop integration<EMAIL_ADDRESS>
wow. LOL Well that removes any objections I had to this magic. When in Rome! :joy:

wow. LOL Well that removes any objections I had to this magic. When in Rome! 😂

Ok @tlambert03, sounds like @jni is good with the overall approach - maybe if you can drop the viewer parameters we can then wrap this up if the path forward is clear?

Thanks for looking into this Talley.
I think it will be good to smooth over some of these small points of friction (especially for new users). I'm more ok with "magical" behaviour, so long as that isn't likely to cause more confusion or problems elsewhere.
@jni I feel like magical behaviour that changes/affects the data is more the thing to focus on. I'd file this more under "napari chooses sensible defaults for us". (And uh, you already do some magic when napari imports dask, it seems)

Pyqt (at least used to) register the readline passed inputhook unconditionally on import.

I removed the ipy_interactive parameter from viewer and window.  So the main way to change this behavior now is to adjust it in SETTINGS.  By default, we'll now start a %gui qt when running in IPython (or notebook, etc)
@GenevieveBuckley, i think this should allow you to remove %gui qt from the tutorials, while still having the ipynb files work locally upon download.

Thanks for review! ... I thought that was working before my last commits removing the parameter... let me take another look tomorrow.

huh, I can't repeat this!
In [1]: ip = get_ipython()

In [2]: ip.active_eventloop is None
Out[2]: True

In [3]: import napari

In [4]: ip.active_eventloop is None
Out[4]: True

In [5]: napari.utils.settings.SETTINGS.application.ipy_interactive
Out[5]: False

In [6]: v = napari.Viewer()

In [7]: ip.active_eventloop

In [8]: napari.utils.settings.SETTINGS.application.ipy_interactive
Out[8]: False

In [9]: %gui qt

In [10]: ip.active_eventloop
Out[10]: 'qt'

@tlambert03 I can't reproduce on mac either! (my terminal yesterday was from linux) 🤷 Let's just go ahead with this, I expect ~100% of people want it on anyway, and Linux users are used to things being weird 😂

my terminal yesterday was from linux

ah, ok will try that too!

Thanks @tlambert03! I'm pleased this will let us remove an easy-to-make mistake for new users, and simplify the docs somewhat.

kinda late to the party but this is awesome @tlambert03! this was something I could not figure out for ages so I'm glad you were able to do it! this will be so much nicer for our users :)


missing files when running "python -m noserver --mode test"

It tells me ./data/harvestvm/models/app01_kmf.pkl is missing. I checked the entire project and many ".pkl" paths in the source code are not included in the project directory. Would you mind giving an example file? Thanks a lot!!

Hi @rexxy-sasori, thanks for reaching out. You're right — due to our NDA with @MicrosoftResearch, we cannot disclose our original traces and data. However, I will provide some example files with the same data format to facilitate your experimentation with the simulator.


How to suppress this error?

❯❯❯ rustup target add powerpc-unknown-eabi-1871534237463289148
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not contain component 'rust-std' for target 'powerpc-unknown-eabi-1871534237463289148'
note: not all platforms have the standard library pre-compiled: https://doc.rust-lang.org/nightly/rustc/platform-support.html

same issue adding the json

Fixed using the command provided on the ogc-rs repo, although that really should be added to the readme

Are you trying to use ogc-engine for your own repository? If so, you need following:

https://github.com/knarkzel/ogc-engine/blob/master/powerpc-unknown-eabi.json in <project>/powerpc-unknown-eabi.json.
https://github.com/knarkzel/ogc-engine/blob/master/.cargo/config.toml in <project>/.cargo/config.toml to specify that you use the .json target provided above. Alternatively you can use cargo +nightly build -Z build-std=core,alloc --target powerpc-unknown-eabi.json instead, but using config.toml is easier because you can just run cargo build.
When running the compiled binary, you need to add the .elf extension then open it in Dolphin. For audio to work inside Dolphin you need to enable LLE.

Thanks!


Lazy loading in Angular2 RC7 and angular-cli webpack

Please provide us with the following information:

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 7

Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.11-webpack.9-4
node: 6.5.0
os: win32 x64

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
Created a boilerplate app using "ng new" then added a basic home module manually.

The log given by the failure.  ; Zone: angular ; Task: Promise.then ; Value: Error: Cannot find module '/app/home.module'.(…) Error: Cannot find module '/app/home.module'.
at webpackEmptyContext (http://localhost:4200/main.bundle.js:41545:8)
at SystemJsNgModuleLoader.loadAndCompile (http://localhost:4200/main.bundle.js:50064:40)
at SystemJsNgModuleLoader.load (http://localhost:4200/main.bundle.js:50057:60)
at RouterConfigLoader.loadModuleFactory (http://localhost:4200/main.bundle.js:16894:128)
at RouterConfigLoader.load (http://localhost:4200/main.bundle.js:16886:81)
at MergeMapSubscriber.project (http://localhost:4200/main.bundle.js:52671:111)
at MergeMapSubscriber._tryNext (http://localhost:4200/main.bundle.js:25798:27)
at MergeMapSubscriber._next (http://localhost:4200/main.bundle.js:25788:18)
at MergeMapSubscriber.Subscriber.next (http://localhost:4200/main.bundle.js:5728:18)
at ScalarObservable._subscribe (http://localhost:4200/main.bundle.js:40540:24)consoleError @ zone.js:344_loop_1 @ zone.js:371drainMicroTaskQueue @ zone.js:375
zone.js:346Error: Uncaught (in promise): Error: Cannot find module '/app/home.module'.(…)

Mention any other details that might be useful.
Also a question raised on StackOverflow with more details:  http://stackoverflow.com/q/39493782/616304

Thanks! We'll be in touch soon.

Try killing and restarting ng serve. Worked for me, see https://github.com/angular/angular-cli/issues/2033

yep it works, gj!

@slubowsky @mjolk is there any way i can change the name of generated chunks that you know ? my chunks are named 0.chunk.js, 1.chunk.js and so on.

@ritz078 normally this is easy to do in webpack config but in this case this config is entirely managed by angular-cli... if needs must you could edit https://github.com/angular/angular-cli/blob/master/packages/angular-cli/models/webpack-build-development.ts#L10 and https://github.com/angular/angular-cli/blob/master/packages/angular-cli/models/webpack-build-production.ts#L14

that's definitely not a solution. will create a separate issue.

Nothing has worked for me.  Killing and restarting ng serve has no effect.  I've seen another post exactly the same as this on stack overflow so I'm not the only one getting this.  One person has suggested the below:
"The mechanism you are using is still systemjs based. I couldn't make it work with webpack using the "path#class" syntax. So we require the module directly:
First we'll need the es6-promise-loader:
npm i --save-dev es6-promise-loader
Then define your route like this:
{path:"lazy", loadChildren: () => require('es6-promise!./path/to/module')('ClassName')}"
I'm not sure about this though.  I would have thought the lazy loading that used to work with System JS should work the same in webpack with no extra config.  Am I wrong?

I just got it working. Restarting ng serve worked for me.
Make sure you are using the full path, so app/my-lazy-module/my-lazy-module.module#MyLazyModule instead of ./app/my-lazy-module/my-lazy-module.module#MyLazyModule. The relative syntax does not (yet?) work.

Isn't it possible to lazy load just a Component instead of a whole NgModule?

With the latest beta.14 and Angular 2.0.0 Final I used app/home/home.module without specifying the module class to load with #HomeModule.

Maby it better to follow the documentation style:
https://angular.io/docs/ts/latest/guide/router.html
const adminRoutes: Routes = [   {     path: 'admin',     loadChildren: 'app/admin/admin.module#AdminModule',   } ];

@chosroes That's how I was originally doing it but it could never find the module file. Removing the #HomeModule part got it working. Confusing!

One thing that failed me at first: make sure that the class inside your module is NOT exported as 'default', otherwise it will not be picked up by systemJS loader!

@reflog Thanks for pointing that out. After removing default from my exported class I was then able to use app/home/home.module#HomeModule method. Seems that's the documented way to do things now. But note that the other way appears to work as well if you export default and don't specify the module class in the path.

@andyrue Yeah, default means that there is only one export. So you have not to specify the module.

Are you guys seeing it actually create additional bundles?  Cuz although this appears to be working, in that I'm not getting any errors, it doesn't appear to be creating separate bundles.  Therefore, nothing is really being lazy loaded when you look at the network tab.

I'm having the same issue mostly because the children aren't relative to the the project. I have it in another package. Is there anyway to have loadChildren work like import somehow?
import { CoreModule } from '@blahblah/core-stuff';

Lazy loading Worked for me
https://twitter.com/ritz078/status/777057390487146497
On Wed, 21 Sep 2016 at 2:34 AM, David Jones<EMAIL_ADDRESS>wrote:

I'm having the same issue mostly because the children aren't relative to
the the project. I have it in another package. Is there anyway to have
loadChildren work like import somehow?
import { CoreModule } from '@blahblah/core-stuff';
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/2112#issuecomment-248433889,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFI6657BTMirVDZy-5hL6zmpEid6Ep46ks5qsEp0gaJpZM4J88bW
.

does anybody have a working plnkr example? I'm using angular-cli and can't figure it out

Lazy loading seems to be working for me.

I created a simple repo with two modules, one eager loaded and one lazy loaded, https://github.com/tianyangj/angular-cli.

@stephenwilson1984 are you still having problems? If you show me repo with the latest CLI, I can try to debug.

Hi,  Everything is fine now, we ditched angular-cli and stayed using SystemJs which works fine for now.
Thanks,
Stephen

@filipesilva I am trying to provide a repo to reproduce. I have one project with no issue and another with this issue.  Angular does not complain that it can't find the module but when running build no bundle is created.

@filipesilva I seem to be able to make this happen when I have a module with its own forRoot static method for providers

@filipesilva would using the same module in the root app and a lazy loaded module cause this? For example. I have a core module. In the root app I call forRoot to configure a provider. Then when I import that same module in a lazy loaded module I do not get multiple bundles

@filipesilva I think the issue is that it is not obvious how the cli decides to create bundles since it seems it is not just defined by defining a module to be lazy loaded.

Load children in webpack try to use SystemJS loader for resolve. But I don't want to use it

@tianyangj
ng build --prod --aot
 10% building modules 6/7 modules 1 active ...\index.js!C:\1\new-ng-app\src\main.tsError: AboutModule is not an NgModule

    at NgcWebpackPlugin.getNgModuleMetadata (C:\1\new-ng-app\node_modules\@ngtools\webpack\src\plugin.js:121:19)
    at NgcWebpackPlugin._processNgModule (C:\1\new-ng-app\node_modules\@ngtools\webpack\src\plugin.js:109:42)
    at C:\1\new-ng-app\node_modules\@ngtools\webpack\src\plugin.js:114:34
    at Array.reduce (native)
    at NgcWebpackPlugin._processNgModule (C:\1\new-ng-app\node_modules\@ngtools\webpack\src\plugin.js:111:29)
    at C:\1\new-ng-app\node_modules\@ngtools\webpack\src\plugin.js:96:37
 10% building modules 7/7 modules 0 active

but ng build --prod works

I have same issue here. using webpack without angular cli worked fine, but with cli it does not generate bundles

I was having the same issue as @Delagen. I was defining routes in this format from https://angular.io/docs/ts/latest/guide/router.html.
const routes: Routes = [
  {path: "", component: HomeComponent},
  {path: "lazy", loadChildren: "app/lazy-test/lazy.module#LazyModule"}
];
export const AppRoutes = RouterModule.forRoot(routes);

ng build --aot >> LazyModule is not an NgModule
Updating to the module format used in the angular-cli blueprints works fixes this error
const routes: Routes = [
  {path: "", component: HomeComponent},
  {path: "lazy", loadChildren: "app/lazy-test/lazy.module#LazyModule"}
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutesModule {}

Once you get past this issue you hit #2452 noted above.

@onedotover No I issue different issue

@filipesilva I encountered a lazy loading issue but it is unlike stephenwilson1984's. Instead of 'Cannot find module', the main bundle includes the lazily loaded module.
Per your request I have a repo that reproduces the issue, under this related issue:
https://github.com/angular/angular-cli/issues/2496#issuecomment-252273712

same for me, everything is packed into single module, instead having multiple generated bundles.

angular-cli beta 17 the same issue.
Even bundle broken due ngtools/webpack@latest resolved to 1.0.0 but needed 1.1.0 with only tagged as experimental. No testing at all. Sad (((

For issues related to AOT and lazy loaded modules, please use https://github.com/angular/angular-cli/issues/2452 instead of this issue.
We have a custom mechanism in the CLI to find and separately bundle lazy loaded routes that does not need SystemJS and instead uses Webpack2.
Regarding bundles not being generated. the cause is likely that you are importing that module elsewhere in the app, as mentioned in https://github.com/angular/angular-cli/issues/2112#issuecomment-247908683.
As long as there is at least one ES6 import statement in your code that requires that file it will never be factored out into a lazy loaded module. That makes sense though... if you have an import then it can't be lazily loaded, there's a part of your app that needs it right then and now.
I'm closing this issue because the exact reported issue doesn't exist anymore, it was originally for an older version, the original poster isn't part of the discussion anymore, and the thread is branching out to related but different issues.
Please open new issues for problems you're still having with lazy loaded modules.

I'm using angular-cli "version": "1.0.0-beta.16"
with first time I have config for lazy load
loadChildren: 'app/my-account/my-account.module#MyAccountModule'
it's not worked.
I try to close web server then run ng-serve again it's worked again
web pack has been generate 0.chunk.js & 0.map file

I confirm that the restarting of ng serve fixed the problem for me. I saw the additional chunk being generated in the network tab. I had to make sure as others have said that there were no imports in app.module.ts or app-routing.module.ts to the module the app was supposed to lazy load. It would be nice to mention this in the docs since it is probably an easy beginner mistake, especially since the () => ModuleName syntax exists out there. I saw that on a blog post and on another issue on this repo. After much searching I came across this issue, which solved the issue entirely for me.

"restarting ng serve" worked for me too

still not working for me... How does cli "automatically understand and find lazy routes"? Maybe I do something wrong that this automatic code cant find any matches in my project? I have AppRoutes  file that contains such code:
export const APP_ROUTES: Routes = [
    {
        path: "posts",
        loadChildren: "../modules/content-modules/post/PostModule#PostModule"
    },
];

make sure that you  included 'Routes' in the lazy module as described below:
import { Routes, RouterModule } from '@angular/router';

Felt this bug for the first time today. No issues locally (dev or production / Mac OS), but got hit with it after I pushed to my production server (Heroku / Ubuntu).
Here's how I fixed it: http://stackoverflow.com/a/41780310/923454

I just put the route in the app.module.ts file, if I add a new file called route.module.ts and try to import within the app.module.ts file, the app will crash, so if you just leave the code inline, it should work.
import { Routes, RouterModule } from '@angular/router';
...

const routes: Routes = [
  { path: '',  loadChildren: './home/home.module#HomeModule' },
  { path: 'contacts', component: ContactsComponent }
];

const routerModule = RouterModule.forRoot(routes);

@NgModule({
  declarations: [
    AppComponent,
    ContactsComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    routerModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})

References:
https://github.com/mauricedb/lazy-routes.git


Added remove rating option to list view of ScoreBottomSheet.kt

Description

Added remove rating option to list view of ScoreBottomSheet.kt

Issue Resolved
Fixes #104 .
Checklist
Please make sure to review the following before submitting your PR:

[x ] I have read the contribution guidelines.
[ x] I have read the code of conduct.
[ x] I have reviewed my submission in detail.

looks good

You mean ?
`statusList.setOnItemClickListener { adapterView, view, i, id ->
if (10 - i != listItem.personalScore) {
listViewModel.setItemScore(FirebaseAuth.getInstance().uid!!, listItem.id, 10-i)
   if (10 == i) {
      listViewModel.removeItem(FirebaseAuth.getInstance().uid!!, listItem)
     }
 }

 dismiss()

} `

Yes, just put the set item score line in else statement like this
if (10 == i) {
      listViewModel.removeItem(FirebaseAuth.getInstance().uid!!, listItem)
}
else {
     listViewModel.setItemScore(FirebaseAuth.getInstance().uid!!, listItem.id, 10-i)
}

Shouldn't it be else if as original code avoids updating the list if user choose existing rating? I assume below works
if (10 == i )  {
      listViewModel.removeItem(FirebaseAuth.getInstance().uid!!, listItem)
} else if (10 - i != listItem.personalScore) {
     listViewModel.setItemScore(FirebaseAuth.getInstance().uid!!, listItem.id, 10-i)
}

Yeah actually the whole if else was supposed to be inside that if condition, but this works too

@ken1000minus7 Pushed required changes. Please review it


Added McStats Information

Added McStats Information
Its basically pictures.

Ignore the other commits, its only the "Added McStats Information [Images]"


animate unity chan facemesh

Hi again,
More contextualzed question, is it possible to animate unity chan face with your repository ?
Cheers,
Luc Michalski

You have to implement a method converting a face mesh shape into blendshape parameters.

I'm closing this issue now. Please feel free to reopen it for further problems.


Re-enable t5 in pax arm64 build

LGTM. Did you manually verify that the build works and there isn't any glitch? Doing the install later vs here could trigger issues.

CI looks all good. Do you have any additional concerns?


Test wireguard between 3 archipel dappnodes

peers connecions done for 3 archipel nodes on remote dappnodes.

Using docker image luguslabs/archipel-with-wireguard:test : https://github.com/luguslabs/archipel/tree/master/deployer/archipel-with-wireguard

Using dappnode Package env :
https://github.com/luguslabs/DAppNodePackage-archipel/commit/13ea65d21940a2b99f37eed4614ff83fe29b37ca


Expose enableFastAnimation for CocoaPods integration

With CocoaPods white-box testing setup, enableFastAnimation is not exposed to be called, which made it impossible to speed up tests.
This PR add the missing GREYTestHelper category header into the public header list in podspec.

Patched this in! Thanks.

Was waiting for it. Awesome!