text:
Add setting to activate comments toggle by default

Is your proposal related to a problem?
Our customer makes intensive use of the new commenting feature and they would like to avoid the repetitive task of always having to click on the comments toggle after starting to edit a Page.
Describe the solution you'd like
It would be helpful to have a global setting flag (similar to WAGTAILADMIN_COMMENTS_ENABLED, e.g. WAGTAILADMIN_COMMENTS_TOGGLE_ACTIVE) that activates the commenting by default on editing page load.
Describe alternatives you've considered
Another option could be to remember the toggle status for the current user session.
Additional context
--

Hi @ralphdelfs, thank you for the suggestion. We’re about to revisit how comments are displayed in the page editing UI so I’ll make sure we take this into account as part of this.

Since we've also got a customer request for auto-enabling the comments, I wanted to place some additional thoughts:
A global setting could be a first start, and if that setting is used by a method in wagtail's page model, a subclass could also modify the decision based on custom logic (e.g. enabling comments automatically if unresolved comments exist).

I believe this will be solved by #9269, where we will remember which of the side panels is opened by default. Users who prefer to always comment can then move from page to page with comments still active.

authors: ralphdelfs th3hamm0r thibaudcolas


text:
Fix typo advantage in docs/deploy/under_the_hood.md

Fix typo in docs

Thanks @smark-1!

source: gharchive/pull-request

repo: wagtail/wagtail

license_type: permissive

license_source: github-api


text:
Support non-block validation errors on ListBlock

Ref #5300 - allow non-field errors to be attached to ListBlock validation errors, as we do for StreamBlock. As it stands Wagtail will not generate any of these (but the next step will be to use this for min_num / max_num validation as per #3914). Tested against bakerydemo with this block definition:
from django.forms.utils import ErrorList
from wagtail.core.blocks import (
    CharBlock, StreamBlock,
    ListBlock, ListBlockValidationError
)

class FooListBlock(ListBlock):
    error = 'At least one block must say "foo"'

    def clean(self, value):
        value = super().clean(value)
        if not any(child == 'foo' for child in value):
            raise ListBlockValidationError(non_block_errors=ErrorList([self.error]))
        return value

class BaseStreamBlock(StreamBlock):
    # ...
    foo_list = FooListBlock(CharBlock())

Merged in e0ac8ae73ddba34bcfcc995c1e5ebb24de0a0e26


text:
🛑 Gitlab is down

In 25e5a93, Gitlab (https://$GITLAB_HOST) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Gitlab is back up in 6f6b9ce.

source: gharchive/issue

repo: waja/cyconet-upptime

license: MIT


text:
预训练模型

大佬，非常感谢您的项目，我学习到了很多，麻烦能不能再提供一些您的预训练模型，上面的百度网盘链接过期了。十分感谢

你好，链接已更新

作者你好，网盘链接过期了

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
N8Brooks, @albertaleksieiev, @momo-AUX1, @sureindia-in, @LivXue, @chuang0310, @ytbryan, @oluizfabio, @erichocean, @andywer, @ahmetbarisdurak, @ZZfive, @colorpeach, @SergeyRyskin, @enestaylan, @yvonwin, @iCGY96, @artony4444, @nuts3745, @1-ashraful-islam

repo: wakafengfan/CDial-GPT-NEZHA


text:
chore: testing pipelines

junk PR

why am I a reviewer? :D

@fryorcraken you are the only reviewer we need :D

authors: fryorcraken weboko

repo: waku-org/js-waku


text:
fix: occasional failure to check published message for RLN tests

Message propagation delay was increased for check_published_message_reaches_relay_peer() call. It helped to stabilize occasional failures during test_valid_payloads_at_slow_rate() execution.

here's an example of the failures https://waku-org.github.io/waku-interop-tests/nim/215/#suites/3f978221bfa54c34ecfd0579d0bb4839/d460cf1b20691f9d/

Problems with registration. Let me check these too.

@fbarbu15  The only recent problems with registration I have is when balance on the registering wallet drops bellow 0.5 SepETH. Usual cost of one registration is about 0.012 SepETH. This could give us 80 registrations (daily runs) per 1 SepETH. https://sepolia.etherscan.io/tx/0xd083f177330acfd0ef079fd68ab803da18f33200f60514463223e3d71072ef8d
Faucet I use to mine the SepETH has limit for 2.5 SepETH per mining session. Requesting address also has to have personal credit linked to it. Github in my case. It is a semi manual process. Ony suggestions how to improve it ?

I don't see any solution to fully automate this. I can help you mine also if you want so we can have > 10 ETH that should give us more than a year of runtime. I used https://sepolia-faucet.pk910.de/ to mine, which doesn't require personal credit info

Thanks. I will handle it. Set weekly reminder for myself.

repo: waku-org/waku-interop-tests


text:
Does this look more concise ？

The signalHandler method in the Worker class, the original code:
if($signal === \SIGQUIT) {
   static::$_gracefulStop = true;
} else {
   static::$_gracefulStop = false;
}
More concise code:
static::$_gracefulStop = ($signal === \SIGQUIT);
This code looks more concise and beautiful! ! !

Yes, you are right.

authors: twomiao walkor

repo: walkor/Workerman

license: mit

license_source: bigquery


text:
Icon

Type
No response
Info
Here are some icons some are for web page. Feel free to keep or discard.
Microsoft Hyper-V: Hypervisor Software
Icon(s)

Hey, Microsoft Hyper-V doesn't really have any particular icon, so I'm going to refer you to just using the Windows icon for this one.

authors: Kilthor walkxcode

repo: walkxcode/Dashboard-Icons


text:
fix: Condition to create kms.aws_kms_grant.clickhouse was incorrect

Fixes the conditional expression that controls whether we create aws_kms_grant.clickhouse

This PR is included in version 4.21.2 :tada:

authors: jsbroks nickpenaranda

repo: wandb/terraform-aws-wandb


text:
[Feature]:  please add data type for 3D voxel visualization like https://github.com/K3D-tools/K3D-jupyter

Description
please add data type for 3D voxel visualization like https://github.com/K3D-tools/K3D-jupyter
3D voxel data type (not 3D point data type) are not included in current supported data types
example1
example2
Suggested Solution
add features that support visualize 3D voxel data (move, change view, change intensity,
compare predictions and ground truth in one 3d voxel object ➡https://k3d-jupyter.org/gallery/showcase/segmentation.html)
Alternatives
No response
Additional Context
No response

more example please refer to https://k3d-jupyter.org/gallery/index.html

Hi @dirtycomputer I wanted to follow up with you regarding this request, would this work for you and do you have any further questions regarding this that I could help with?

Hi @dirtycomputer since we haven't heard back from you, I will close this ticket for now. If the above won't work for you, please let us know here and we will keep investigating.

authors: dirtycomputer thanos-wandb

repo: wandb/wandb


text:
Rusty 3

Fixes
Fixes WB-NNNN
Fixes #NNNN
Description
What does the PR do?
Testing
How was this PR tested?
Checklist

[ ] Include reference to internal ticket "Fixes WB-NNNN" and/or GitHub issue "Fixes #NNNN" (if applicable)
[ ] Ensure PR title compliance with the conventional commits standards

🤖 Generated by Copilot at 09bf7a0

Table of Contents
A blank line for clarity
Autumn leaves the page

closing as stale


text:
ci: avoid rebuilding ecosystem in docker when frontend changes

This PR simplifies the way we build our dockerfile, consolidating everything into a single stage to produce an image that can be used for unit tests (which now also run ecosystem unit tests), linting, and frontend tests. I moved the ecosystem install to the beginning of the dockerfile (before the JS steps) instead of the end, which means we can avoid having to rebuild layers when javascript changes (which happens more frequently than ecosystem deps change). This should improve overall CI performance.

Closing as this is not actually needed I think

repo: wandb/weave


text:
关于多语言包的支持

因为项目使用在国际项目中，需要项目本身支持多语言的封装，我们现在的方案是自定义数组，去把几个ui上的文字遍历掉，希望项目本身能支持，这样有利于这个开源项目国际化的发展

多语言支持可以增加，其实就是需要开发者传入一个语言包。我已经记录下来了这个功能，近期将会增加上去。
注意群里的动态，增加完了，会再群里说。

多语言配置已经支持：http://www.wangeditor.com/wangEditor/docs/index.html#langs


text:
多图上传顺序被打断，没有按返回的顺序显示

editor.customConfig.uploadImgHooks = {
    customInsert: function (insertImg, result, editor) {
        if(result.data && result.data.length > 0){
          for(var i=0, j=result.data.length; i<j; i++){
             editor.cmd.do("insertHTML", '<img src="' + result.data[i] + '" style="max-width:100%;"/>');
          }
        }
    }
};

要这样改一下才行， 搞不懂为什么插入返回的图片还要写一个 onload， 顺序打乱了，而且效果也很差， 大图的话编辑框半天没反应

OK，你先这样修改。我记录下这个问题了，下次升级就修改。感谢你的反馈！

最新发布的版本已经修改了这个问题


text:
数据表迁移报错

$ php artisan migrate
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Illuminate\Database\QueryException  : SQLSTATE[42000]: Syntax error or access violation:
1071 Unknown error 1071 (SQL: alter table lara_users add unique lara_users_email_unique(
email))
at E:\WWW\cms\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664
660|         // If an exception occurs when attempting to run a query, we'll format the
error
661|         // message to include the bindings with SQL, which will make this exception
a
662|         // lot more helpful to the developer instead of just the database's errors.
663|         catch (Exception $e) {

664|             throw new QueryException(
665|                 $query, $this->prepareBindings($bindings), $e
666|             );
667|         }
668|

Exception trace:
1   Doctrine\DBAL\Driver\PDOException::("SQLSTATE[42000]: Syntax error or access violation
: 1071 Unknown error 1071")
E:\WWW\cms\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php:119
2   PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Unknown error
1071")
E:\WWW\cms\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php:117
Please use the argument -v to see more details.

解决了，是数据库编码的问题

😯

repo: wanglelecc/laracms


text:
快速左右滑動 Scroll to top 會失效

快速左右滑動Controller
點擊 status bar 發現 Scroll to top 會沒反應

Fixed, try it and tell me whether it works!
Thx!~ :smiley:

authors: wangmchn xjimi

repo: wangmchn/WMPageController


text:
Can it be used to handle other types of data?

Can NAguideR be used to process other types of data? For example, RNAseq gene expression matrix, metabolome matrix, etc.

Yes, the classic criteria can be used for RNAseq gene expression matrix, metabolome matrix, etc. So you can stop there. And the proteomic criteria are only for the proteomics matrix.

Yes, the classic criteria can be used for RNAseq gene expression matrix, metabolome matrix, etc. So you can stop there. And the proteomic criteria are only for the proteomics matrix.

Great tool!
Thank you.

Great tool!
Thank you.

authors: ShuaiNIEgithub wangshisheng

repo: wangshisheng/NAguideR


text:
持久化和命令行那节编译报错

java -jar blockchain-java-jar-with-dependencies.jar -h 这一行执行没问题。
执行如下命令 java -jar blockchain-java-jar-with-dependencies.jar -add "Send 1.5 BTC to wangwei"
发生如下错误
E:\Android\blockchain-java>java -jar target\blockchain-java-jar-with-dependencies.jar  -print
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.rocksdb.RocksDB
at one.wangwei.blockchain.store.RocksDBUtils.openDB(RocksDBUtils.java:62)
at one.wangwei.blockchain.store.RocksDBUtils.(RocksDBUtils.java:53)
at one.wangwei.blockchain.store.RocksDBUtils.getInstance(RocksDBUtils.java:38)
at one.wangwei.blockchain.cli.CLI.parse(CLI.java:49)
at one.wangwei.blockchain.cli.Main.main(Main.java:7)

Hi,  jiyilanzhou，你好。
使用 BlockchainTest 执行命令 [Send 1.5 BTC to wangwei] 是否正常？

authors: jiyilanzhou wangweiX

repo: wangweiX/blockchain-java


text:
🛑 shiftopie.org is down

In 5662880, shiftopie.org (https://shiftopie.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: shiftopie.org is back up in c2eecde after 6 minutes.

repo: warielon/upptime


text:
91 toobig

rejects transfers if the target directory doesn't appear to have enough free disk space
will close #91

Current coverage is 85.63% (diff: 88.23%)

Merging #96 into master will increase coverage by 0.07%

@@             master        #96   diff @@
==========================================
  Files            20         20
  Lines          2840       2854    +14
  Methods           0          0
  Messages          0          0
  Branches        400        402     +2
==========================================
+ Hits           2430       2444    +14
- Misses          309        310     +1
+ Partials        101        100     -1

Powered by Codecov. Last update 123073a...f592854

authors: codecov-io warner

repo: warner/magic-wormhole


text:
[BUG] Unable to retrieve tx. 404. undefined

For a lot of contracts, I'm getting the above error.
At first I was seeing it and it made sense, for example with -xpuaVILHnSxMgYX3Oq1l0WKU1QBZjRT5LNmALZd7iA since the associated Contract-Src seems to be missing from the chain. This other interaction vLxXRooPhRxz4FGp0ZWihT3sGubDxEN0BysLHf0Y40I also appeared normal to fail given this time the contract itself was absent.
However, I am getting the same error for a lot of contracts like the following:

K3YIONC0GOHu-9FRWNILpLJvJ1egMTxeJhKJwNTEo2U
XIutiOKujGI21_ywULlBeyy-L9d8goHxt0ZyUayGaDg

Which do not appear to have any issue. I also computed the state of the later (Xluti) locally, and it worked fine so I'm guessing it might be due to a rate limiting of some kind.
Specs:

OS: Amazon Linux 2
Node.js version: 18
warp-contracts SDK version: 1.4.9
plugins: warp-contracts-plugin-vm2@1.0.2 warp-contracts-sqlite@1.0.1

Possibly related to https://github.com/warp-contracts/warp/issues/251

Pasting answer from Discord here as well, for transparency ;-)
Two things here:
it's weird that you can't download the data from the Warp GW itself - this indeed might be due to rate limitting, which we've had to turn on since we've been spammed with a LOT of requests. The default Contract loader in the SDK tries to first hit the Warp GW - if that fails (and it probably does due to 429 in this case), it fallbacks to default Arweave Gateway  Loader - but this one works currently only for the direct L1 deployments.
Can you please retry 1, 2 or 5 of those contracts that failed and see how it goes?
The mapping for the 'old' format (the one, that was used before the nested bundles were introduced - it basically wraps the original Arweave tx, signed by the client - in a data item - hence the 'double' ids - one of the original arweave transaction, one of the data-item, that wraps the Arweave transaction) is kept in the Uploader-Tx-Id  tag of the data-item, eg:
Contract source with original tx id -Cww_UP4oRKriqLg9vaPbEFZFIT7T8Y2NnpxxhHlgUg and data item id: fxh9baiB30OUzFFLHYvC5bHVhDx-L1epbg3EF7-B3Wg: https://sonar.warp.cc/#/app/source/-Cww_UP4oRKriqLg9vaPbEFZFIT7T8Y2NnpxxhHlgUg
has the tags Uploader-Tx-Id set to -Cww_UP4oRKriqLg9vaPbEFZFIT7T8Y2NnpxxhHlgUg. This tag allows to find such transaction by its 'original' tx id.
The 'new' (introduced 2 or 3 months ago) nested bundle format removes the need for this double id mapping and all the data items can be easilly retrieved by their original ids.
The full documentation for the old format can be found here: https://academy.warp.cc/docs/sdk/legacy/bundled-contract-format-legacy#resulting-transaction-structure
Possible solutions:

We can turn off rate limtting for now - all those contract loading-related requests are posted to the replica instance - worst case scenario the replica will die 🤷♂
We can add another fallback in the contrcts loading mechanism - basically add ability to use the Uploader-Tx-Id in certain scenarios.

authors: balthazar ppedziwiatr

repo: warp-contracts/warp


text:
Added getItemId

Fixed the getItemId() to return the nested adapter item id

@gabrielemariotti
Thank you :shipit:

authors: gabrielemariotti wasabeef

repo: wasabeef/recyclerview-animators


text:
Extend documentation on NATS connections to provide comprehensive recommendations

We have one documentation page on our RPC/CTL connections https://wasmcloud.com/docs/deployment/security/nats, but it does not include examples on how to create a lattice with stronger security boundaries. As per https://github.com/wasmCloud/wasmCloud/issues/1119, we depend on our NATS connection security to protect the lattice from bad actors.
We should offer recommendations and pointers to NATS documentation on how to set up a secure NATS server environment.

@brooksmtownsend do you think https://wasmcloud.com/docs/category/provisioning-nats and/or https://wasmcloud.com/docs/category/lattice-security covers what you wanted to see here?

I do! Specifically https://wasmcloud.com/docs/deployment/security/nats-segmentation


text:
🛑 Waspito Lab is down

In b1b8d6b, Waspito Lab (https://lab.waspito.com) was down:

HTTP code: 404
Response time: 796 ms

Resolved: Waspito Lab is back up in 5e9104e.

repo: waspito/waspito-status


text:
Dockerhub image link is missing

This tool is super awesome! I just wanted to mention that the README should link to the full Dockerhub image:
wasserth/totalsegmentator_container:master

Thank you for this hint. I updated the readme.

authors: swederik wasserth

repo: wasserth/TotalSegmentator


text:
[Question] Applying custom CSS to HtmlViewer?

I'm not a fan of the default CSS. But there's no option to add some CSS rules to the generated html. I tried to attach them in my html string using a <style></style> container. But the rules in it won't be applied because it's deleted by the JavaScript. Is there a hidden feature to add custom CSS rules?

Please read this thread #21

Duplicated with #21

authors: javitosanchez jlnostr

repo: wasteam/waslibs


text:
Team Folder Upload

Question about: Uploading a file / folder

[ ] Specific command: file sync up []

Hi, I was wondering if it is possible to upload to a Team Folder? I have tried a few options, and it seems that I can list files/folder in the Team space, using the Business commands. But I cannot find anywhere how to upload to a team folder? Where do you define the root folder? I'm referring to this DBX guide: https://developers.dropbox.com/dbx-team-files-guide
Tnx
K

It's possible if you have access to the team folder.
The command file sync up uploads file into any path (including team folders) of you have mounted on your account.
In other words, it's not possible to upload if you don't have write access to the team folder.

authors: KoenWindey watermint

repo: watermint/toolbox


text:
Watir::Capabilities doesn't support camel case anymore, only supports snake case.

Meta -
Watir Version: 7.1
Selenium Version: 4.1
Browser Version: Chrome 96.0.4664.93
Browser Driver Version: ChromeDriver 96.0.4664.45
OS Version: OSX Monterey
Expected Behavior - Watir::Capabilities use to support selenium capabilities like browserVersion in camel case when passed in capabilities: but with new options: it only supports snake case i.e. browser_version.
Actual Behavior - It should support both camel and snake case
Steps to reproduce -
Define browser options hash with camel case selenium capability and then try to instantiate a browser instance by passing these capabilities as options: as shown below:
require 'watir'

browser_options = {
  browserName: "Chrome",
  browserVersion: "96",
  acceptInsecureCerts: true
}

browser = Watir::Browser.new :chrome , options: browser_options, url: <grid_hub_url>

browser.quit

Watir throws following error for above:
/.rvm/gems/ruby-2.6.3/gems/selenium-webdriver-4.1.0/lib/selenium/webdriver/remote/response.rb:56:in `assert_ok': The property '#/alwaysMatch/goog:chromeOptions' contains additional properties ["browserName", "browserVersion", "acceptInsecureCerts"] outside of the schema when none are allowed in the payload. (Selenium::WebDriver::Error::WebDriverError)

Sorry I missed this issue. This is by design. Ruby projects should require snake cased symbols as keys for these things.
Selenium has had a lot of bugs and unintended consequences over the years by trying to support Strings, Symbols, Snake Case, Camel Case, and adding things via constructor, methods, and faking Hash syntax

authors: sandeep-mm titusfortner

repo: watir/watir


text:
feat: implemented simplify_consecutive_duplicates() and export_to_png()

use simplify_consecutive_duplicates to remove duplicate consecutive nodes from the graph
export to PNG button can export and download the flow graph SVG to a file

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

authors: CLAassistant ayaeli


text:
Rank Status Failed

Hi ,
I am developing the demo application of retrieve and rank for my organization and i am facing an interesting issue while i am creating a rank with the cranfield data csv file. Th rank is getting created and after some time ..its failing due to some data problem . I am using a java client to do so and i am completely using the cranfield data as my input to create a rank and i am using cranfield json data to post to my cluster. I am successful in each step except rank status is failing for some reason , can you please throw up any suggestions or any snippet where you can create a rank with the cranfield.
Here is the error
{
  "created": "2016-05-27T16:19:48.114-0500",
  "ranker_id": "3b140ax15-rank-2496",
  "name": "ranker2",
  "status": "Failed",
  "status_description": "Error encountered during training: Training data quality standards not met: invalid header (duplicate feature names). Row 1 of input data.",
  "url": "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/rankers/3b140ax15-rank-2496"
}

Thanks,
Pranitha.

I have tried again today by starting all teh way from beginning and i have the same issue :+1:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
{
"created": "2016-05-30T05:23:49.521-0500",
"ranker_id": "3b140ax15-rank-2557",
"name": "ranker2",
"status": "Training",
"status_description": "The ranker instance is in its training phase, not yet ready to accept rank requests",
"url": "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/rankers/3b140ax15-rank-2557"
}
ranker status: TRAINING
ranker status: TRAINING
ranker status: TRAINING
ranker status: TRAINING
ranker status: TRAINING
ranker status: TRAINING
ranker status: TRAINING
ranker status: TRAINING
ranker status: FAILED

This is not a problem of this repository. Seems that the service was having issues


text:
Audio keeps playing after calling seekTo(1)

Wavesurfer.js version(s):
6.4.0
Browser and operating system version(s):
Chrome 107.0.5304.110
macOS  12.6
Code needed to reproduce the issue:
https://codesandbox.io/s/dazzling-varahamihira-3lpn86?file=/src/_app.js
Use behaviour needed to reproduce the issue:
I have this issue where user clicks on progress bar at the very end of it and audio is still playing for a few more seconds. Current time starts exceeding audio duration. This only happens with long audios. It's hard to reproduce it by clicking, so I've added button which calls seekTo(1), which results in same behavior.

Load a long audio file (1h+ in my case)
Start playing audio by clicking Play/Pause button
Anytime when audio plays click seekTo(1) button

Expected behavior: audio is seeked to the end - stops playing
Actual result: audio current time exceeds its duration and continues playing for a few more seconds.

@armiiis I used the latest version and not able to replicate the issue. Can you provide a link to the actual audio file you are using instead, it might be the issue?
Have a look here:
https://www.entonbiba.com/lab/wavesurfer/2619.html
Config:

	<button onclick="wavesurfer.play()">Play</button>
	<button onclick="wavesurfer.pause()">Pause</button>
	<button onclick="wavesurfer.seekTo(1)">Seek to (1)</button>

Progress:

        0
        /
        0

    var wavesurfer = WaveSurfer.create({
	container: '#wavesurfer',
	backend: 'WebAudio',
	waveColor: '#000',
	progressColor: '#46B54D',
	forceDecode: true,
	responsive: true,
        barMinHeight: 3,
        barWidth: 10
    });

    var audioFile = "linktoaudiofilhere";
    wavesurfer.load(audioFile);

    wavesurfer.on("ready", () => {
        var currentTimeElement = document.getElementById("current-time");
        var duration = document.getElementById("duration");

        setInterval(() => {
          currentTimeElement.innerText = Math.floor(
            wavesurfer.getCurrentTime()
          );
        }, 500);

        duration.innerText = Math.floor(wavesurfer.getDuration());
    });

@entonbiba Thanks for your reply. As I have mentioned before it only happens with long audio files (1h+). Example audio file could be found in codesandbox link. Have you tried using 1h+ audio file?

@armiiis the audio file there can't be downloaded can you upload it somewhere where to download it as it doesn't load in the codesandbox. I'll test that audio file, but yes I've tested with long audio files and seems to be fine.

Here's the audio download link: https://file.io/uYPyUu6a7rKU
Also I think you can download codesandobx project zip:

just tested it here seems fine with the audio file you provided:
https://www.entonbiba.com/lab/wavesurfer/2619.html

@armiiis can you test it outside of codesandbox and confirm? Also test the link I provided above for the test result working.

I also couldn't reproduce the bug in the codesandbox, it always jumps to 4225. But theoretically it's plausible that some rounding error might accumulate over time, especially for long files, and result in this behavior.
@armiiis does it actually continue playing, as in with the sound coming out, or just moves the cursor on the waveform?
Could you record a video maybe?

@entonbiba I've tried using configuration you provided. Issue is gone when using backend: 'WebAudio'. I've also tried running it locally. Having same issues when using backend: "MediaElement".
I tried playing multiple different 1h+ long audios and none of them had this issue. So I can't reproduce it always. Don't know what is so specific to this exact audio file.
@katspaugh Audio I'm testing is really quite at the end, but I think sound is coming out.
https://user-images.githubusercontent.com/12126557/227454169-9a8b2d8d-c8cf-42ef-943d-26a65f83c0ac.mov

There's a similar issue – #2738
There we thought it might be a problem with the rendering (wrong width), but since you're programmatically setting the position and still have issues, it might actually be MediaElement-related.
Could you test the same files with the new alpha version? https://github.com/katspaugh/wavesurfer.ts

@armiiis any luck with the alpha version?

authors: armiiis entonbiba katspaugh


text:
applictions/new 信息配置

https://github.com/settings/applications/new 页面的配置, homepageurl 和 authorizationcallbackurl分别是？

homepageurl ： 应用的主页
authorizationcallbackurl ： 认证后，回调的URL

authorizationcallbackurl  :这个地址我试了很多回  都是报错  url mismatch ...，填写的效果怎么和您不一样，
我看您是跳转到了https://github.com 页面进行授权确认

@ninuxGithub   已经上传了截图，你看下~

authors: ninuxGithub waylau

repo: waylau/spring-security-tutorial


text:
Can we find ego poses in motion dataset?

Having read the website and tutorials of the latest released Motion Dataset, I can obtain the state information of other tracking objects. However, I didn't find any Field storing the pose of ego vehicle, which is quite important to my usage. Can someone tell me if it is available or not? Thanks!
Fixed. Use .tracks[.sdc_track_index], where  is your own scenario instance.

Fixed. Use .tracks[.sdc_track_index].

Sorry for the late reply.  As mentioned now in the original post, the sdc_track_index field in the Scenario proto indicates which object is the ego vehicle.  If you are using the tf.Example format data the 'state/is_sdc' is a mask that indicates which object is the ego vehicle.  See also: https://waymo.com/open/data/motion/tfexample.

authors: ruixuanisuzu ruixuanz scott-ettinger

repo: waymo-research/waymo-open-dataset


text:
Finding tensorflow-gpu in configure.sh

Configure.sh fails to find tensorflow if the gpu version is the one installed

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.
What to do if you already signed the CLA
Individual signers

It's possible we don't have your GitHub username or you're using a different email address on your commit. Check your existing CLA data and verify that your email is set on your git commits.

Corporate signers

Your company has a Point of Contact who decides which employees are authorized to participate. Ask your POC to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the Google project maintainer to go/cla#troubleshoot (Public version).
The email used to register you as an authorized contributor must be the email used for the Git commit. Check your existing CLA data and verify that your email is set on your git commits.
The email used to register you as an authorized contributor must also be attached to your GitHub account.

Googlers: Go here for more info.

@googlebot I signed it!

LGTM


text:
v1.1.10

Modify Schemas:

tmz:ovp:node:video patch revision 1-0-3

Add xumo_enabled boolean field.

@efjacobson it angers me but i accept it. you sure default false is good? prepare the kracken if so

@gdbrown ready to go, i confirmed with Brent that the default should be false

repo: wb-apps/tmz-schemas


text:
Allow copy and paste nodes / edges

Its possible allow copy and paste on dashboard the elements selected by shift? would be nice

To copy a node with it's edges:

Get the selected node's data
Find the edge(s) that has the the node's ID as target or source
Add the node again (with a new ID) and the edges again (with the new ID)

To select nodes:
https://reactflow.dev/examples/provider/
To add nodes / edges:
https://reactflow.dev/examples/save-and-restore/

As @DovahBrownies pointed out you need to implement this by yourself. I am not sure if this is a feature we should add to the core. Maybe we can use the Discussions section to find out which features are needed most.

I close this in favour of #1020

Can anyone share how to handle the copy paste nodes/edges (May be with sample POC)

@sasimarudhuri see comment in this below video
https://m.youtube.com/watch?v=juRkDY8lEyE

authors: CamboimGabriel DovahBrownies imvetri moklick sasimarudhuri

repo: wbkd/react-flow


text:
Jest encountered unexpected token or SyntaxError: Cannot use import statement outside a module

Describe the Bug
I have issue when running simple test on my App component.
It appeared when I added ReactFlow to the project, take a look on received error:
Jest encountered an unexpected token

    This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.

    By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".

    Here's what you can do:
     • If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/en/ecmascript-modules for how to enable it.
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/en/configuration.html

    Details:

    /Users/xxx/xxx/node_modules/react-flow-renderer/dist/esm/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import { _ as _slicedToArray, a as _defineProperty, P as Position, C as ConnectionMode, g as getHostForElement, u as useStoreApi, b as useStore, c as addEdge, d as getMarkerId, r as rectToBox, e as getConnectedEdges, f as getDimensions, h as PanOnScrollMode, i as clamp, j as getNodesInside, k as getSelectionChanges, l as getRectOfNodes, m as ConnectionLineType, M as MarkerType, n as isNumeric, o as Provider$1, p as createStore, q as applyEdgeChanges, s as applyNodeChanges } from './index-fdcea71e.js';
                                                                                ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      1 | import React, { useRef, Suspense, useCallback, useMemo } from "react";
    > 2 | import ReactFlow, {
        | ^
      3 |   Background,
      4 |   Controls,
      5 |   ControlButton,

      at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1350:14)

Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Add ReactFlow to your app and run npm t
Expected behavior
Tests passes without errors
Screenshots or Videos
No response
Platform

OS: [macOS]

Additional context
No response

We are only exporting an ESM package and you need to configure jest so that it can deal with it: https://jestjs.io/docs/ecmascript-modules. See also https://github.com/wbkd/react-flow/issues/2020#issuecomment-1077945360. I think we will re-introduce the CJS package again..

I'm afraid I tried all of the solutions described on https://github.com/wbkd/react-flow/issues/2019, https://github.com/wbkd/react-flow/issues/2020 and here, but none of them worked for me. I think going back to CJS would be ideal since ESM on Jest is still experimental and looks like people are having issues with it.

I solved this issue by adding:
  "moduleNameMapper": {
      "react-flow-renderer": "jest-esm-transformer"
   }

into my jest config

I solved this issue by adding:
  "moduleNameMapper": {
      "react-flow-renderer": "jest-esm-transformer"
   }

into my jest config

Thanks for the reply. I tried your solution and the test suite ran for a longer period of time but failed with the same error at the end. Still looking for a workaround.

@lisandro-jofre We will add a CJS build again. This isn't a good experience at all.

authors: lisandro-jofre moklick pkawula


text:
when I want to clear cache by bust function, but the cache show more picture

I want to clear the picture in cache, but show double number of picture in the cache .seens like copyed again the source in the path

@firstBird-1 bust only re-downloads the image for the cache entry. It doesn't remove any files. Were you expecting a different behaviour?

So there is any function to clear cache or remove the image from cache?

@wcandillon I see the explain "The lifetime of this cache is the one of the running application".If I turn off the App, the Cache will be done with all the image deleted?

@firstBird-1 Not at the moment because I find this feature orthogonal. Image are stored in the iOS/Android cache folder and they have a lifecycle on their own.
@firstBird-1 yes for images cached with the mutable attribute.

@wcandillon Thanx~~

@firstBird-1 you're welcome, feel free to reopen if you have more questions.

repo: wcandillon/react-native-img-cache


text:
Program stuck while running the following code

package main

import (
	"fmt"
	"os"

	"github.com/wcharczuk/go-chart"
)

func drawChart() {
	sbc := chart.BarChart{
		Height:   512,
		BarWidth: 60,
		XAxis: chart.Style{
			Show: true,
		},
		YAxis: chart.YAxis{
			Style: chart.Style{
				Show: true,
			},
		},
		Bars: []chart.Value{
			{Value: 0, Label: "Blue"},
			{Value: 0, Label: "Green"},
			{Value: 0, Label: "Gray"},
			{Value: 0, Label: "Orange"},
			{Value: 0, Label: "Test"},
			{Value: 0, Label: "??"},
			{Value: 0, Label: "!!"},
		},
	}

	println("rendering")
	err := sbc.Render(chart.PNG, os.Stdout)
	if err != nil {
		fmt.Printf("Error rendering chart: %v\n", err)
	}
}

func main() {
	drawChart()
}

is there a reason you are setting the values all to zero? the chart is probably having trouble figuring out how to proportion the pie slices. try setting the values to 1

this is just an example to reproduce the issue, my problem is in a program that gets values from an external source and sometimes those values are 0.
It should not fail if the values are 0.

i can have the chart remove entries that are zero, but in general what you're describing is effectively bad data and should produce an error

i've updated the pie chart to handle zero values, and error if there are no valid values to draw.

thanks, can you update the bar chart as well?

sure

authors: dcu wcharczuk

repo: wcharczuk/go-chart


text:
wp-cli Issue

Hi, @pedrovp123 when does this warning show?

When i open the my Atom with the WordPress Suite: https://atom.io/packages/wordpress-suite

I'm not familiar with the Atom WordPress Suite. I think WordPress Suite was finding WP-CLI from your host machine (Mac or Windows). However, when you are using Wocker, WP-CLI is not installed on your host machine. It's installed on the Docker container. WordPress Suite may not be able to find it, so you got the warning. To use WP-CLI on Wocker, please vagrant ssh then run wocker wp commands. See: https://wckr.github.io/commands/#h3-8

Alright, thanks!

repo: wckr/wocker


text:
Medals

Contains all commits for medal subscriptions and medal tables

Cherry-picking went wrong

repo: wdr-data/sportsfreund


text:
Avoid registering same gossip twice

Fixes crasher bug in alertmanager.
During local testing, I came across a condition where we could crash the alertmanager.  What would happen is that we'd create a NewAlertmanager, which creates a nflog, which creates a mesh.Gossip on the Router.
If that alertmanager creation process failed for any reason, then we'd abandon it.
However, when we tried to create that alertmanager again (i.e. once every config poll loop), then we'd create the nflog again, which tries to create a mesh.Gossip on the same Router, but fails, due to https://github.com/weaveworks/mesh/blob/2534f734d9a18501c3b155cd24877fca0696fb18/router.go#L136 (see also https://github.com/weaveworks/mesh/issues/69)
To work around this, I've created a gossipFactory class which keeps track of which IDs have been used.
In the process, while figuring out how the code worked, I did a few small refactorings:

extracted setConfig out of addNewConfigs, to have a method that operates on a single config
extracted newAlertmanager out of setConfig, to help me distinguish between the book-keeping for MultitenantAlertmanager and the process of creating a new, valid Alertmanager.
created a new Router interface, to give me some idea of how we're using mesh.Router

:+1: otherwise

authors: jml juliusv

repo: weaveworks/cortex


text:
Release Jobs are not recoverable

In some circumstances a release job will never be marked as complete. We do report back if we see a failure, so a person can retry; however, we do not see all failures, and possibly worse, we do not see all successes.
Here are some of the things that can go wrong during a release, and the outcome.
1. Error at any point up to pushing a commit to the config repo
The failure is reported back to the user (or to the logs and history, if an automated release). No lasting effects.
2. The service is restarted during a regrade
The goroutine waiting on the regrade result is running in the service; when the service pod is terminated, the result of the regrade is lost. The user, or the client, may retry CheckRelease, but it will never be updated. No history or notification is recorded.
3. The daemon terminates or loses the connection during the regrade
In this case we don't know the result of the regrade. An error is reported back to the user, who can e.g., restart the daemon, etc., then review the state of the system to reconstruct what happened. The release is recorded as failed, though it may actually have succeeded.

The first is basically business as usual.
To mitigate 2) and to some extent 3), we can make the regrade operation non-blocking -- calling Regrade kicks a regrade off (i.e., calls only kubectl apply) and returns only any immediate problems (e.g., malformed yamel). The history and notifications are recorded at this point.
Subsequent invocations of CheckRelease look at the "rollout state" of the service by asking the daemon, rather than simply reporting on what's in the release job record, since there is no process actively updating it. (The staleness criteria for release jobs would need to be changed.)
We'd also need to try and make the release workers shut down gracefully, i.e., not leave incomplete records, although this will never be perfect of course.
The main problem with 3) is that successes can look like failures. With the mitigation above, the window for this to happen is smaller, but it can still happen. Possibly we can report this to the user in such a way as to make it clear that the outcome is unknown, and please check later.

Note transplanted from #261: the worker can become a worker pool, managing its own goroutines. This would help tidy up main.go.

This (combined with: https://github.com/weaveworks/flux/pull/311) would fix long-running deploys (e.g. cortex)

Another problematic scenario: if a job panics, it will not be completed, and our rate limiting will mean no further jobs for that instance will be attempted.

Need to take another look at this after the move to git-sync. We will probably have similar issues, but they might be different.
Also, this issue is too vague to take any action. Needs some refining.

Yes, this is no longer an issue in the same way, now that jobs are done in the daemon. In general, the successful outcome of any job is that commits were pushed. If it simply fails to get to that point, the failure is reported to the user (if they are still watching); there is no partial success. If a job panics, the daemon will restart, and any pending jobs will be forgotten and be treated as failures.

authors: paulbellamy philwinder squaremo

repo: weaveworks/flux


text:
Upload the image from tag automatically

To make things simpler, we should probably push our docker images automatically when tagging the repository.
See also https://github.com/weaveworks/kured/pull/241

This was done in https://github.com/weaveworks/kured/pull/258

This was done in https://github.com/weaveworks/kured/pull/258

repo: weaveworks/kured


text:
Remove unused field in LocalConnection

weaveworks/weave still builds fine with this, so I guess it was truly unused...

LGTM

authors: peterbourgon rade

repo: weaveworks/mesh


text:
Scope slow: improve error messages for debugging

I often have the following error messages:
Host reporter took longer than 1s
Endpoint reporter took longer than 1s
Process reporter took longer than 1s
Docker reporter took longer than 1s

With this patch, the messages are more descriptive. Examples:
Process reporter took 1.399966061s (longer than 1s)
Endpoint reporter took 4.100178596s (longer than 1s)
Topology tagger took 1.897464894s (longer than 1s)

I also repeatedly have the following, sometimes flooding the output:
docker container: dropping stats.
docker container: dropping stats.
docker container: dropping stats.

I increased the buffer.
Finally, I use another mirror than dl-4.alpinelinux.org because the server is down and this breaks my builds on circleci.
/cc @alepuccetti

LGTM; although I'd be keen to find out why everything is so slow on your machine - we seldom see these messages.

Thanks!
I don't know why this is slow. I'm also interested to find out why. This was on my laptop (Fedora, Thinkpad X220, i7 processor). I am running Docker & Scope inside an OpenShift VM  with Vagrant (libvirt, qemu). Docker uses the dm storage backend with the option dm.blkdiscard=false (workaround for https://github.com/kinvolk/demo/issues/11).

Related: https://github.com/weaveworks/scope/issues/1379

authors: 2opremio alban tomwilkie

repo: weaveworks/scope


text:
Fix all the npm library versions

As @davkal proposed, we decided to not use ^ or ~ version selectors for any of our package.json libraries, but keep all the versions fixed instead:

"react-tooltip": "~3.2.2" -> bad
"react-tooltip": "^3.2.2" -> bad
"react-tooltip": "3.2.2" -> good

LGTM

authors: davkal fbarl


text:
Specify docker file in release job

The gitops-server dockerfile name has been changed, and the release job didn't get changed to reflect that

Looks like this will fix up #1812 nicely.

authors: dhwthompson jpellizzari

repo: weaveworks/weave-gitops


text:
FE: Hotswap models in In-Game Preview

Currently it looks like the rendering context is completely reset when a new card is selected. It would be much faster to retain the rendering context and environment, and hotswap the model.

This is true, and probably a good idea.
However, the problem is that old NFT state can linger unless we do a reset, so resetting the context here is the safe option.
I'd like to explore ways to speed up engine load, which would solve a lot of this concern, and which I'm convinced can be massively improved (possibly with caching, building to tree shake, or getting rid of dependencies, none of which have been tried yet).

Ok, we can explore that avenue first, that's low hanging fruit

authors: avaer soulofmischief

repo: webaverse/app


text:
[TASK] Update Chain selection menu dropdown

Description
Update the UI for the Chain Selection Dropdown based on the Figma design

just FYI this chain selection list is pertaining to chain selection modal, which I believe has already been added in the UI kit here: https://webb-tools.github.io/webb-dapp/?path=/docs/design-system-v2-wip-templates-chainlistcard--docs

repo: webb-tools/webb-dapp


text:
Add support for android builds

The emoji in the github action name exposed as a env variable through docker was causing a gradle crash 😢.
This PR depends on #105, DO NOT MERGE until after #105 is landed.

This one now has conflicts because of last merge.

@webbertakken rebased and addressed the feedback. Thanks for taking the time to reviews these!

authors: benoitdion webbertakken

repo: webbertakken/unity-builder


text:
Post-run actions on multi-usage

First of all, thanks for this GH-Action :-)
I'm using this action twice in my workflow because using a ssh-agent with multiple keys doesn't seem to work with the Gradle-plugin I'm using to push some data to Git-Repositories over ssh.
[...]
      - uses: webfactory/ssh-agent@v0.3.0
        with:
          ssh-private-key: ${{ secrets.WORKFLOW_SSH_KEY }}
        continue-on-error: true
      - name: Push data, if there are any changes
        run: ./gradlew gitPublishPush --info

      - uses: webfactory/ssh-agent@v0.3.0
        with:
          ssh-private-key: ${{ secrets.WORKFLOW_SSH_KEY_ARCHIV_REPO }}
        continue-on-error: true
      - name: Archive the PDFs in a private repo
        run: ./gradlew -b archive.gradle.kts gitPublishPush --info

This works fine, but I have to use continue-on-error because otherwise, the second post-run-action (which belongs to the first ssh-agent) fails:

Can I somehow trigger the post-run action manually at an earlier step?
Otherwise, I suggest to check in cleanup.js, if the process is already killed.
https://github.com/webfactory/ssh-agent/blob/8789658b02527d79b3939a5bfc202ea55f91ab32/cleanup.js#L7

We could make the cleanup.js ignore errors in case the process to be killed is already gone.
Additionally, you might need to kill the first agent before you start the second one.

@chkpnt Please try to use webfactory/ssh-agent@ignore-kill-agent-failure.
When you're done with the first agent, run: kill $SSH_AGENT_PID before you use the action a second time.

Thank you for the quick response :-) I've just given your branch a try:
https://github.com/chkpnt/1und1-Servicedienste/blob/bf64285aeec1f1d1175ed503a682aa94ddc188ef/.github/workflows/update-data.yml#L30-L41
And it's working fine:

(I'm wondering that some log entries are shown multiple times.... but as the line numbers are the same, that seems to be a GitHub-visualization-issue)

Ok, I will release that shortly.
Any chance you could find out what the underlying issue with Gradle was? Maybe understanding it would help others in the future?

The Gradle plugin I use is using @ajoberstar's grgit  internally which is using jgit which relies on JSch. I tried to reproduced this issue locally by adding both a wrong and a correct key to ssh-agent, but on my Mac, it's working fine. Don't know, why it behaves different within a GitHub workflow :-/

authors: chkpnt mpdude

repo: webfactory/ssh-agent


text:
Project does not compile

This project does not compile. I can debug and try to get this to work if you would like?

This is only a template project, but if you want to dig into why it does not compile you can

PR with fix here: https://github.com/webgoprojects/go-gin-template/pull/2

Thank you

authors: Linesmerrill webgoproject

repo: webgoprojects/go-gin-template


text:
Improve README.md

Suggest improving README.md as a jumping in point and lite documentation for the context
Things that may be included

[ ] Badges
[ ] Introduction
[ ] Status of work
[ ] Vocabs used
[ ] Terms used in each vocab
[ ] Links to spec, community group and mailing list etc.

Add links to the following existing works:

W3C Verifiable Credentials: https://www.w3.org/TR/vc-data-model/#json-ld

W3C Web Annotations:
https://www.w3.org/TR/annotation-model/#serialization-of-the-model

W3C Activity Streams 2.0:
https://www.w3.org/TR/activitystreams-core/#jsonld

AS context: https://github.com/jasnell/activitystreams-context/blob/master/context.json

repo: webidcg/webid-context


text:
CSS source code and build instructions for MIN files

from https://forum.virtualmin.com/t/location-of-css-source-code-and-how-to-rebuild-min-css-files/119253
I have found many xxxx.min.css and xxx.min.js files in various folders – is it possible to view and download the source of these for analysis and education, as well as obtaining the build instructions – so I can roll my own custom version? While it is possible to read the MIN versions, its hard.
Sorry if its here in github and I simply missed it  😄

I haven't had the chance to work on and release the source version of the Authentic Theme yet. Initially, I aimed to do this once it reached 1k stars on GitHub, but we're not there yet. 😄
Releasing the full source is indeed time-consuming. It involves adding numerous comments and making additional refactors for clarity. Additionally, the build scripts are quite complicated and would require further explanation. It's essentially a whole project on its own.

Would it not be better to make the source code available and then refine it and make it easier to contribute to?

Thanks, I will look into it in the future.

Some parts do have .src files available - e.g. /extensions/stats/stats.src.js - what is the downside to making these available for all parts?

Stats are relatively new, just like Mail, and have been open for contributions for the past six years. However, I haven't seen anyone making any contributions.

If anything, this should be the other way around. The source files should be in git and the minified versions excluded from git, as artifacts of a build process.

Well, historically, we supported upgrading from the Authentic theme Git repository.

authors: iliajie verne-work

repo: webmin/authentic-theme


text:
TypeError: Object.observe is not a function

TypeError: Object.observe is not a function
at d:\Project\webofthings.js-master\plugins\corePlugin.js:68:12
at arrayEach (d:\Project\webofthings.js-master\node_modules\lodash\internal\arrayEach.js:15:9)
at Object. (d:\Project\webofthings.js-master\node_modules\lodash\internal\createForEach.js:15:9)
at exports.LedsPlugin.CorePlugin.observeActions (d:\Project\webofthings.js-master\plugins\corePlugin.js:67:5)
at exports.LedsPlugin.CorePlugin.start (d:\Project\webofthings.js-master\plugins\corePlugin.js:30:26)
at initPlugins (d:\Project\webofthings.js-master\wot-server.js:50:14)
at createServer (d:\Project\webofthings.js-master\wot-server.js:12:3)
at Object. (d:\Project\webofthings.js-master\wot.js:2:1)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webofthings@0.1.0 start: node wot.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webofthings@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Duplicate of #3 the current fix is to make sure you use version 4.X of Node.


text:
PHP 8.1 Return Type Inheritance Warnings

Hey there, please add the mixed return type hint to the following so as to not generate a warning in PHP 8.1 (either that or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice).

\GraphQL\Error\Error::jsonSerialize
\GraphQL\Executor\ExecutionResult::jsonSerialize
\GraphQL\Language\SourceLocation::jsonSerialize
\GraphQL\Type\Definition\Type::jsonSerialize
\GraphQL\Language\AST\NodeList::offsetGet
\GraphQL\Utils\MixedStore::offsetGet

I used mixed since that seemed to be the most backwards compatible.
Thank you!!

We are targeting PHP 8.0 for the next release. Can you add a PR to fix this?

Looks like dev-master is using more specific return type declarations and generates no 8.1 warnings. Feel free to close this!

We are targeting PHP 8.0 for the next release.

Is that so? In that case, it would be good to drop PHP 7.4 on master and start benefiting from PHP 8 features like native unions immediately.

That came out wrong. We are actually targeting 7.4, perhaps we can go for 8.0 in the next major version.

authors: rhift spawnia vhenzl

repo: webonyx/graphql-php


text:
ExtractTextPlugin : No css file generated, no error

Hello,
I start out a stackoverflow post with this issue : http://stackoverflow.com/questions/43857784/webpack-extracttextplugin-no-css-file-generated-no-error . I found out it is a issue because I got no error when I start the build.
Here is a basic copy of the post :

Here are my files (just think to change extension since github blocks upload of json and js file) :

package.json
webpack.config.js

My app.js :
require('admin-lte/dist/css/skins/skin-blue.min.css');
require('admin-lte/dist/css/AdminLTE.min.css');
require('jquery-confirm/dist/jquery-confirm.min.css');
require('bootstrap-table/dist/bootstrap-table.min.css');
require('bootstrap-daterangepicker/daterangepicker.css');
require('eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css');
require('admin-lte/plugins/select2/select2.min.css');
require('lobibox/dist/css/lobibox.min.css');
require('ionicons/dist/css/ionicons.min.css');
require('font-awesome/css/font-awesome.min.css');
require('admin-lte/bootstrap/css/bootstrap.min.css');

Do you see what is the reason of this issue ?
Tested env :
Node.js v6.10.3
Windows 10 1703
PS: I know I can also use ES6 import. I prefer to do the old school way :)

Could you please copy&&paste the package.json && webpack.config.js  as code block? 😛

As you wish, I put them as file just to make people become mad with a issue of 200 lines ^^
package.json :
{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "webpack-dev-server --env=dev --progress --watch --content-base src/app"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "babel-cli": "^6.24.1",
    "babel-core": "^6.24.1",
    "babel-loader": "^7.0.0",
    "babel-polyfill": "^6.23.0",
    "babel-preset-env": "^1.4.0",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-es2016": "^6.24.1",
    "css-loader": "^0.28.1",
    "extract-text-webpack-plugin": "^2.1.0",
    "file-loader": "^0.11.1",
    "json-loader": "^0.5.4",
    "postcss-cssnext": "^2.10.0",
    "postcss-loader": "^2.0.1",
    "postcss-modules-values": "^1.2.2",
    "raw-loader": "^0.5.1",
    "sass-loader": "^6.0.3",
    "style-loader": "^0.17.0",
    "url-loader": "^0.5.8",
    "webpack": "^2.5.1",
    "webpack-dev-server": "^2.4.5"
  },
  "dependencies": {
    "admin-lte": "git://github.com/almasaeed2010/AdminLTE.git#37c8bbb01998db487382e9d62cfb398511167f3a",
    "bootstrap-daterangepicker": "git://github.com/dangrossman/bootstrap-daterangepicker.git#29bbf5a04df69fda363cedb534272ac344524e57",
    "bootstrap-table": "^1.11.2",
    "eonasdan-bootstrap-datetimepicker": "git://github.com/Eonasdan/bootstrap-datetimepicker.git#4.17.47",
    "font-awesome": "^4.7.0",
    "ionicons": "^3.0.0",
    "jquery": "^3.2.1",
    "jquery-confirm": "git://github.com/craftpip/jquery-confirm.git",
    "lobibox": "git://github.com/arboshiki/lobibox.git",
    "lodash": "^4.17.4",
    "moment-timezone": "^0.5.13",
    "parsleyjs": "^2.7.1",
    "push.js": "0.0.13",
    "socket.io-client": "^1.7.4",
    "tableexport.jquery.plugin": "git://github.com/hhurz/tableExport.jquery.plugin.git"
  }
}

webpack.config.js :
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

const postcssPlugins = [
  require('postcss-cssnext')(),
  require('postcss-modules-values')
];

const scssLoader = [
  { loader: 'style-loader' },
  { loader: 'css-loader' },
  { loader: 'sass-loader' }
];

const postcssLoader = [
  { loader: 'style-loader' },
  { loader: 'css-loader', options: { modules: true } },
  { loader: 'postcss-loader', options: { plugins: () => [...postcssPlugins] } }
];

// you'll need to npm install the following: [raw-loader, html-minifier-loader, json-loader, css-loader,style-loader, url-loader, file-loader ]
// in your index.html you should have two script tags, one for app.js(or bundle.js) and vendor.js
// no need for babelify with webpack. just, npm install --save-dev babel-cli babel-preset-es2016
// in .babelrc file change the preset of 2015 to ["es2016"]
module.exports = {
  entry: {
    app: './app.js',
    // if any on these are just for css remove them from here and require(with absolute path) them from app.js
    vendor: [
      'babel-polyfill',
      'admin-lte',
	  'admin-lte/bootstrap/js/bootstrap.min.js',
	  'lobibox/dist/js/notifications.min.js',
	  'admin-lte/plugins/fastclick/fastclick.js',
	  'moment',
	  'moment/locale/fr.js',
      'moment-timezone',
      'eonasdan-bootstrap-datetimepicker',
      'bootstrap-table',
	  'bootstrap-table/dist/locale/bootstrap-table-fr-BE.min.js',
      'parsleyjs',
	  'parsleyjs/dist/i18n/fr.js',
      'bootstrap-daterangepicker',
      'socket.io-client',
      'jquery-confirm',
      'push.js',
      'lodash',
	  'bootstrap-table/dist/extensions/export/bootstrap-table-export.min.js',
      'tableexport.jquery.plugin'
    ]
  },
  //devtool: 'eval', // for test in the browser
  output: {
    filename: '[name].js',
    path: path.resolve(__dirname, 'dist')//,
    //pathinfo: true
  },
  module: {
    rules: [{
      test: /\.js$/,
      use: 'babel-loader',
      exclude: /node_modules/
    }, {
      test: /\.html$/,
      use: ['raw-loader', 'html-minifier-loader'],
      exclude: /node_modules/
    }, {
      test: /\.json$/,
      use: 'json-loader',
      exclude: /node_modules/
    }, {
      test: /\.(scss|sass)$/,
	  loader: ExtractTextPlugin.extract(scssLoader),
      include: [__dirname]
    },{
	  test: /\.css$/,
      loader: postcssLoader,
      include: [__dirname]
    }, {
      test: /\.(jpg|png|gif)$/,
      use: 'file-loader'
    }, {
	  test: /\.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
      loader: 'file-loader?name=fonts/[name].[ext]'
    }],
  },
  plugins: [
	new ExtractTextPlugin({
		filename: 'app.bundle.css',
		allChunks: true
	}),
	new webpack.ProvidePlugin({
            $: "jquery",
            jQuery: "jquery"
    })
  ],
};

"postcss-loader": "^2.0.1",

Please update to v2.0.3 I had two bugs in there :)
- { loader: 'postcss-loader', options: { plugins: () => [...postcssPlugins] } }
+ { loader: 'postcss-loader', options: { plugins: [...postcssPlugins] } } // no {Function}

const scssLoader = [
  { loader: 'style-loader' },
  { loader: 'css-loader' },
  { loader: 'sass-loader' }
];

...

- loader: ExtractTextPlugin.extract(scssLoader),
+ use: ExtractTextPlugin.extract({
+   fallback: scssLoaders[0]
+   use: scssLoaders.slice(1)
+  })

Reopen if still regressions 😛

You will joke, The only way I made this thing works is with this change :
{
      test: /\.(scss|sass)$/,
	  loader: ExtractTextPlugin.extract(scssLoader)
    },{
	  test: /\.css$/,
          use: ExtractTextPlugin.extract({
                 fallback: "style-loader",
                 0use: "css-loader"
	  })
    }

I wonder if scssLoader will work for .(scss|sass) extraction, bc of style-loaderapplied in use && not in fallback :D

No idea, you are free to test by yourself ^^

@michael-ciniawsky already in v2.0.5 ? Good thing I didn't have tested it yet


text:
fix: exitCodes, reporters and bail, better error logging

This PR contains a:

[x] bugfix
[ ] new feature
[ ] code refactor
[ ] test update
[ ] typo fix
[ ] metadata update

Motivation / Use-Case
It's been reported that #35 didn't do enough to address exit codes in the event of a build failure or error. During discovery, it was also found that the --bail flag will cause errors in the reporters as well, as they were not anticipating stats being undefined in the event that --bail was used.
Additionally, the logic for how an error is displayed when one occurs at the program level (outside of reporters) has been improved greatly and gives users more options to display additional info.
Breaking Changes
None
Additional Info
/cc @ankurk91 @MrMamen

Thanks for covering the --bail issue. I was about to report that.
This  PR also might fix -https://github.com/webpack-contrib/webpack-command/issues/31

repo: webpack-contrib/webpack-command


text:
how to set tree-shaking config

A.js
export function fa() {
     ...
}

export function fb() {
     ...
}

export function fc() {
     ...
}
....

*.worker.js
import { fa } from 'A.js';
....

In *.worker.js，i import some function or method that i need, but when i build it, it include some other useless code (example: fb, fc) in builded file

webpack already do this

webpack already do this

It doesn't work in *.work.js!

Answer here https://github.com/webpack-contrib/worker-loader/issues/132#issuecomment-415721860, we need to document it

repo: webpack-contrib/worker-loader


text:
0.8.2 breaks my tests running in the PhantomJS

Hi, just a little bug i found:
I'm using the style-loader (since 0.8.1) in the following manner (just this one line):
require('!style!css!sass!./someFile.scss');
The version 0.8.2 seems to work under IE11, latest FF and latest Chrome, but it breaks execution of several tests in the PhantomJS. For the moment I'm keeping "0.8.1" in my list of depenencies....
Cheers,
rb

Looks like you could use this as an alternative and load it into your karma.conf.

@nmccready Thanks. I just include this polyfill in my test runner page, and it resolved my problem.

Works for me! Thanks @nmccready

Thanks @nmccready, worked like a charm

Closing for reasons stated in the PR #33.

authors: Ridermansb SpaceK33z That-David-Guy nmccready rbtbar sorrycc

repo: webpack/style-loader


text:
ts-node docs tweaks

Feature to document
I noticed that the recommendations for using ts-node to load webpack.config.ts can be simplified:
https://webpack.js.org/configuration/configuration-languages/
First, TS_NODE_PROJECT environment variable is supported natively by ts-node; no need to install tsconfig-paths
Second, the recommended configuration should be updated to recommend using moduleTypes instead of compilerOptions
https://typestrong.org/ts-node/docs/module-type-overrides
moduleTypes is better because it not only modifies the emitted code to be CommonJS, it also tells node to execute the files as CommonJS.  This avoids node errors about attempting to require() ESM modules.
Note that I've also merged support for CJS and CTS file extensions, to be published in our next release in a week or two.  So if webpack supports webpack.config.cts, then that is an even simpler option.  With a webpack.config.cts, moduleTypes is not necessary unless the config tries to import other files that are ESM TS.
Author(s)

Additional information
[x] I am willing to work on this issue and submit a pull request.

I ran into this problem today as well and noticed the docs we're outdated.
You can specify a loader by using the NODE_OPTIONS environment variable:
{
  ...
  "scripts": {
    ...
    "build": "cross-env NODE_OPTIONS=\"--loader ts-node/esm\" webpack ..."
  }
}

This also allows TS_NODE_PROJECT to be passed in as well to config ts-node.
In the current version of Node (18) this throws a warning but it can be hidden by passing the cli arguments: --no-warnings --experimental-specifier-resolution=node.
I agree with @cspotcode points and this section needs to be tweaked or re-written as there are better ways of using ts-node now.

Makes sense, currently we have this information mentioned here https://webpack.js.org/api/cli/#troubleshooting

authors: cspotcode olyop snitin315


text:
docs(guides): update npx introduction

I think npx is introduced in npm 5.2.0.

I just double checked the changelog from npm:

v5.2.0 (2017-07-05):

It's only been a couple of days but we've got some bug fixes we wanted to get out to you all. We also believe that npx is ready to be bundled with npm, which we're really excited about!
npx!!!

It seems to be 5.2.0

@chenxsan Correct, don't remove Node version, keep both.

@montogeek Updated.

Thanks!

authors: chenxsan montogeek


text:
Replace whitespaces with tabs in split-chunks-plugin.md

This fixes incorrect indentation in code example in https://webpack.js.org/plugins/split-chunks-plugin/.

I recommend using whitespaces instead of tabs for code example, because tab's indentation is invisible and fragile.
And if possible, I think better to use tool like Prettier and format markdown file automatically.
In this PR, avoiding large diffs, I fixes only corresponding place.

I guess linter scripts have to be revised since it's not the first time formatting is broken in the examples.

Duplicate of #2144

Duplicate of #2144

Oh, sorry. I will close this. 🙏

authors: byzyk ybiquitous


text:
docs(Configuration): document new devServer.overlay options

[x] Read and sign the CLA. PRs that haven't signed it won't be accepted.
[x] Make sure your PR complies with the writer's guide.
[x] Review the diff carefully as sometimes this can reveal issues.
[x] Do not abandon your Pull Request: Stale Pull Requests.

Resolves

#6808

@snitin315  Who should I tag to merge this?

@chenxsan whats this authorization check I'm happy to force merge but unsure if this is okay?

We need to ask @sokra to invite more team members to vercel so that we can also autherize deploy previews.

This is good to merge.

See
https://github.com/webpack/webpack.js.org/pull/6776#issuecomment-1531404049
On Thursday, May 11, 2023, Sean Larkin @.***> wrote:

@chenxsan https://github.com/chenxsan whats this authorization check
I'm happy to force merge but unsure if this is okay?
—
Reply to this email directly, view it on GitHub
https://github.com/webpack/webpack.js.org/pull/6809#issuecomment-1542949742,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIKPEBFQGHW3UGY7OBLCPLXFQTU5ANCNFSM6AAAAAAXY37DUE
.
You are receiving this because you were mentioned.Message ID:
@.***>

authors: TheLarkInn chenxsan malcolm-kee snitin315


text:
Cannot resolve module

I've just gotten started with webpack and have trouble figuring out how to include a library called alloyeditor to use in one of my components. Here is my webpack config file.
I set the main in my package.json to be the path to the alloy-editor core as well. Whenever I use require ("alloyeditor") it says it cannot find module CKEDITOR, which are the other files in the directory that it depends on.
I used a alias after looking at the documentation but it still didn't work. I was hoping for some insight on how to go about this.
What i'm trying to do is include the directory of alloyeditor when using the alloy-editor.core.js
var path = require("path");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var webpack = require("webpack");

var assetsPath = path.join(__dirname, "public", "assets");
var publicPath = "assets/";

var commonLoaders = [
  {
    /*
     * TC39 categorises proposals for babel in 4 stages
     * Read more http://babeljs.io/docs/usage/experimental/
     */
    test: /\.jsx$/, loader: "babel-loader?stage=0"
  },
  {
    test: /\.js$/,
    loader: "babel-loader?stage=0",
    include: path.join(__dirname, "app")
  },
  { test: /\.png$/, loader: "url-loader" },
  { test: /\.jpg$/, loader: "file-loader" },
  { test: /\.html$/, loader: "html-loader" }
];

module.exports = [
  {
    // The configuration for the client
    name: "browser",
    /* The entry point of the bundle
     * Entry points for multi page app could be more complex
     * A good example of entry points would be:
     * entry: {
     *   pageA: "./pageA",
     *   pageB: "./pageB",
     *   pageC: "./pageC",
     *   adminPageA: "./adminPageA",
     *   adminPageB: "./adminPageB",
     *   adminPageC: "./adminPageC"
     * }
     *
     * We can then proceed to optimize what are the common chunks
     * plugins: [
     *  new CommonsChunkPlugin("admin-commons.js", ["adminPageA", "adminPageB"]),
     *  new CommonsChunkPlugin("common.js", ["pageA", "pageB", "admin-commons.js"], 2),
     *  new CommonsChunkPlugin("c-commons.js", ["pageC", "adminPageC"]);
     * ]
     */
    context: path.join(__dirname, "app"),
    entry: {
      app: "./app"
    },
    output: {
      // The output directory as absolute path
      path: assetsPath,
      // The filename of the entry chunk as relative path inside the output.path directory
      filename: "[name].js",
      // The output path from the view of the Javascript
      publicPath: publicPath

    },
    module: {
      preLoaders: [{
        test: /\.js$|.jsx$/,
        exclude: /node_modules/,
        loaders: ["eslint"]
      }],
      loaders: commonLoaders.concat([
        { test: /\.css$/, loader: "style!css" },
        { test: /\.scss$/,
          loader: ExtractTextPlugin.extract("css?sourceMap!sass?sourceMap&outputStyle=expanded" +
            "&includePaths[]=" + (path.resolve(__dirname, "./bower_components")) +
            "&includePaths[]=" + (path.resolve(__dirname, "./node_modules")) +
            '&includePaths[]=' + (path.resolve(__dirname, './node_modules/alloy-editor/assets')))
        }
      ])
    },
    resolve: {
      extensions: ['', '.react.js', '.js', '.jsx', '.scss', '.css'],
      modulesDirectories: [
        "app", "node_modules"
      ],
      alias: {
      alloyeditor : './node_modules/alloy-editor/alloy-editor-core.js'
      }
    },
    plugins: [
        // extract inline css from modules into separate files
        new ExtractTextPlugin("styles/main.css")
    ]
  }, {
    // The configuration for the server-side rendering
    name: "server-side rendering",
    context: path.join(__dirname, "app"),
    entry: {
      app: "./app",
      header: "./elements/Header.react"
    },
    target: "node",
    output: {
      // The output directory as absolute path
      path: assetsPath,
      // The filename of the entry chunk as relative path inside the output.path directory
      filename: "[name].server.js",
      // The output path from the view of the Javascript
      publicPath: publicPath,
      libraryTarget: "commonjs2"
    },
    externals: /^[a-z\-0-9]+$/,
    module: {
      loaders: commonLoaders
    },
    resolve: {
      extensions: ['', '.react.js', '.js', '.jsx', '.scss'],
      modulesDirectories: [
        "app", "node_modules"
      ]
    },
    plugins: [
      new webpack.NormalModuleReplacementPlugin(/\.(css|scss)$/, "node-noop")
    ]
  }
];

If it is saying "cannot find module CKEDITOR" it sounds like alloy-editor requires CKEDITOR to be loaded first. I'm not familiar with alloy-editor though so you may need to check with their support channels: https://github.com/liferay/alloy-editor

Can you re-open at Stack Overflow? Thanks.

authors: bebraw kkotwal94 shama

repo: webpack/webpack


text:
Webpack fails to build ES6 in external packages

I'm trying to use an ES6 npm package (in this case one called gamesystem) in a project and build with webpack (and babel) it fails to build any ES6 code inside the external dependency, why is that? If I have the same code as a dependency with a relative path it works fine.
App code:
'use strict';

import World from 'gamesystem'; // Breaks
//import World from '../node_modules/gamesystem'; // Also breaks
//import World from '../gamesystem'; // Works (copied the same directory gamesystem outside the node_modules directory)

let world = new World();

Error:
ERROR in ./~/gamesystem/World.js
Module parse failed: /home/user/project/node_modules/gamesystem/World.js Line 3: Unexpected token
You may need an appropriate loader to handle this file type.
| 'use strict';
|
| import System from './System';
|
| export default class World {
 @ ./src/app.js 3:18-39

Webpack config:
'use strict';

// Modules
let WebpackNotifierPlugin = require('webpack-notifier');
let HtmlWebpackPlugin = require('html-webpack-plugin');

let config = {
  entry: {
    app: __dirname + '/../src/app.js'
  },
  devtool: 'source-map',
  devServer: {
    stats: {
      modules: false,
      cached: false,
      colors: true,
      chunk: false
    },
    proxy: require('./devProxy')
  },
  module: {
    loaders: [{
      test: /\.js$/,
      loader: 'babel',
      exclude: /node_modules/,
      query: {
        presets: ['es2015', 'stage-0']
      }
    },
    {
      test: /\.css$/,
      loader: 'style!css'
    },
    {
      test: /\.html$/,
      loader: 'raw'
    }]
  },
  plugins: [
    new WebpackNotifierPlugin(),
    new HtmlWebpackPlugin({
      template: __dirname + '/../src/index.html',
      inject: 'body',
      minify: false
    })
  ]
};

module.exports = config;

I asked on stackoverflow as well: https://stackoverflow.com/questions/35273956/webpack-fails-to-build-es6-in-external-packages

My fault, I was excluding the node_modules directory in the webpack config, thanks for a great software, but lets hope that we soon can peal off more and more of the layers of tools needed to run ES2015+

Oh, actually the source of the error is right here...
exclude: /node_modules/

Exclude has preceedence over include as far as I know. So maybe you want to use an array of paths to include instead? It’s the preferred way.
include: [
    /node_modules\/(gameworkd|someOtherModule|...)/,
    path.join(__dirname, "./app") // assuming that your config and app are in the same folder.
]

Am 08.02.2016 um 19:16 schrieb Fredrik Söderström notifications@github.com:
I'm trying to use an ES6 npm package (in this case one called gamesystem) in a project and build with webpack (and babel) it fails to build any ES6 code inside the external dependency, why is that? If I have the same code as a dependency with a relative path it works fine.
App code:
'use strict';
import World from 'gamesystem'; // Breaks
//import World from '../node_modules/gamesystem'; // Also breaks
//import World from '../gamesystem'; // Works (copied the same directory gamesystem outside the node_modules directory)
let world = new World();
Error:
ERROR in ./~/gamesystem/World.js
Module parse failed: /home/user/project/node_modules/gamesystem/World.js Line 3: Unexpected token
You may need an appropriate loader to handle this file type.
| 'use strict';
|
| import System from './System';
|
| export default class World {
@ ./src/app.js 3:18-39
Webpack config:
'use strict';
// Modules
let WebpackNotifierPlugin = require('webpack-notifier');
let HtmlWebpackPlugin = require('html-webpack-plugin');
let config = {
entry: {
app: __dirname + '/../src/app.js'
},
devtool: 'source-map',
devServer: {
stats: {
modules: false,
cached: false,
colors: true,
chunk: false
},
proxy: require('./devProxy')
},
module: {
loaders: [{
test: /.js$/,
loader: 'babel',
exclude: /node_modules/,
query: {
presets: ['es2015', 'stage-0']
}
},
{
test: /.css$/,
loader: 'style!css'
},
{
test: /.html$/,
loader: 'raw'
}]
},
plugins: [
new WebpackNotifierPlugin(),
new HtmlWebpackPlugin({
template: __dirname + '/../src/index.html',
inject: 'body',
minify: false
})
]
};
module.exports = config;
I asked on stackoverflow as well: https://stackoverflow.com/questions/35273956/webpack-fails-to-build-es6-in-external-packages https://stackoverflow.com/questions/35273956/webpack-fails-to-build-es6-in-external-packages
—
Reply to this email directly or view it on GitHub https://github.com/webpack/webpack/issues/2017.

Even by putting my module in the include I get the same error.
{
  test: /\.(js|jsx)$/,
  include: [
     path.resolve(__dirname, './app'),
     /node_modules\/(c360-structured-tree-component)/
  ],
  loaders: [
    require.resolve('react-hot-loader'),
    require.resolve('babel-loader')
 ]
},

Here is the error.
/Users/rparent/Documents/CTSProjects/arsenal/cms/node_modules/c360-structured-tree-component/src/component/TreeContainer.js:3
import { connectToStores } from 'fluxible-addons-react'
^^^^^^

SyntaxError: Unexpected reserved word
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:414:25)
    at Module._extensions..js (module.js:442:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/rparent/Documents/CTSProjects/arsenal/cms/node_modules/babel-register/lib/node.js:134:7)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (AssetsPage.js:5:1)
    at Module._compile (module.js:435:26)

Any clue on this, other solutions or something I might have done wrong?

@raphaelparent try this:
      include: [
        path.resolve(__dirname, './app'),
        /c360-structured-tree-component/
      ],

@raphaelparent were you able to figure this one out?

@ThariqS Unfortunately I don't remember exactly what I did since this has been more than a year ago, but I think I just compiled my module into ES5 and used it that way. I hope that helps and that you find a solution to your problem!

Hi @raphaelparent, @ThariqS -
I'm having a similar problem.
I have two node_module packages that are written in ES6. One of them imports the other.
I'm trying to figure out how to have webpack transpile the files. I've added the directory for each to the include: [] array in the webpack config, but I still get SyntaxError: Unexpected token export:
export function loadScript(src, cb) {
^^^^^^
SyntaxError: Unexpected token export
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)

any ideas?

I also have this issue
trace:
/home/sh_eldeeb_2010/@eng-dibo/dibo/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:17
export default function _asyncToGenerator(fn) {
^^^^^^

SyntaxError: Unexpected token 'export'
    at Module._compile (internal/modules/cjs/loader.js:891:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
    at Module.load (internal/modules/cjs/loader.js:811:32)
    at Function.Module._load (internal/modules/cjs/loader.js:723:14)
    at Module.require (internal/modules/cjs/loader.js:848:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.4023 (/home/sh_eldeeb_2010/@eng-dibo/dibo/dist/ngx-cms/core/server/main.js:3374:18)
    at __webpack_require__ (/home/sh_eldeeb_2010/@eng-dibo/dibo/dist/ngx-cms/core/server/main.js:3758:41)
    at Object.3344 (/home/sh_eldeeb_2010/@eng-dibo/dibo/dist/ngx-cms/core/server/main.js:1988:148)
    at __webpack_require__ (/home/sh_eldeeb_2010/@eng-dibo/dibo/dist/ngx-cms/core/server/main.js:3758:41)
The terminal process "bash '-c', 'npm run serve'" terminated with exit code: 1.

authors: IngwiePhoenix ThariqS eng-dibo ndelvalle raphaelparent tconroy tirithen


text:
Class comparison only works when NODE_ENV = production

I would like to report a bug.
React type/class comparison only seems to work when the NODE_ENV is set to production.
I have created a repo to illustrate the bug here.
I expect the type/class comparison to work regardless of what NODE_ENV is set to.
I'm not sure if this is a react, webpack, or babel bug so i thought i'd try here first.

Apparently this is because of react hot loader.
http://stackoverflow.com/a/43901033/728241


text:
Webpack PublicPath to be a function

Feature request
The documentation says that __webpack_public_path__ can be overwritten at runtime, something like __webpack_public_path__ = '/www.something.com/.
We could extend this feature by allowing it to be a function:
__webpack_public_path__ = chunk => `www.something.com/${chunk}`

What is the expected behavior?
this would allow webpack to load files from different public paths, depending on the requested chunk.
What is motivation or use case for adding/changing the behavior?
Avoiding unnecessarily client's cache invalidation, further information: https://stackoverflow.com/questions/57337716/webpack-publicpath-use-different-urls-to-reuse-bundles
How should this be implemented in your opinion?
__webpack_public_path__ as a function. It would retrieve the requested chunk as argument and return its absolute path.
Are you willing to work on this yourself?
yes

Actually,
the doc also says that a function is allowed for output.publicPath:

The function interface is not documented.

https://github.com/webpack/webpack/issues/2776#issuecomment-299009032

A similar use case is covered by this plugin: https://github.com/agoldis/webpack-require-from

A different implementation could just be exposing this function:
/******/ 	function jsonpScriptSrc(chunkId) {
/******/ 		return __webpack_require__.p + "" + ({...}[chunkId]||chunkId) + ".js"
/******/ 	}

https://github.com/webpack/webpack/issues/8115

Can be implemented for webpack@5

I just found an implementation from @sokra
https://github.com/webpack/webpack/pull/8462

Bump

Mistake, done here https://github.com/webpack/webpack/pull/8462/

authors: evilebottnawi hitmands


text:
Problem with Chrome 64.0.3282.123

Browsers and versions affected
Good Afternoon i have a problem with Google Chrome (64.0.3282.123)
Description
the video stream does not work. Since I have updated chrome I have this problem.
In the example on-line => https://serratus.github.io/quaggaJS/examples/live_w_locator.html appear black screen.
Steps to reproduce
Expected results
Actual results

Hi! Windows 10 here,it appears all the samples that try to capture video from my webacom do not function except in Firefox. The error is basically NotReadableError, here's a screenshot from the chat:

I tried to troubleshoot using https://webrtc.github.io/samples/src/content/getusermedia/gum/ and use the debugger to find the root cause, but didn't find anything (for the time being). Save for the NotReadableError that surfaces.

i am also facing a similar problem. In latest version of chrome in Android back camera is not opening. always front camera coming out. FireFox and safari is ok. Is there any luck with anyone?

@tajulsdream have you tried using an web page that has enumerateDevices capabilites to select the camera? Like https://webrtc.github.io/samples/src/content/devices/input-output/ ?
Also please always state the version of the browser, latest does not mean much at a later time and everyone has to look up which version.

I can report that at least in different machine Edge, Firefox and Chrome appear to be functioning correctly (I omit the version numbers as of now).
I also note that if there is a steam on already in some browser, the others fail to open the device. I do not know if this was the situation when I tried (at least it was acceidental if it was so) and if this situation should be coverered somehow.

@veikkoeeva FWIW, on Windows only a single consumer (program, app, tab, etc) can read the stream from a video device. This is intended behaviour as far as I know.

authors: CarmineScala92 KaptenJansson karls tajulsdream veikkoeeva

repo: webrtc/adapter


text:
「评论」使用Effect Hook

页面：https://websmallrabbit.github.io/pages/72710d/

very nice!?


text:
🛑 OGS is down

In 8d7d6ee, OGS (https://organicgardeningsecrets.net) was down:

HTTP code: 403
Response time: 99 ms

Resolved: OGS is back up in a4cf67e.

repo: webworldview/uptime


text:
refactor: 单元测试中避免使用 assert

顺带修复 #556 中的 import 问题

Codecov Report

Merging #559 into master will not change coverage by %.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #559   +/-   ##
=======================================
  Coverage   71.77%   71.77%
=======================================
  Files          80       80
  Lines        3164     3164
=======================================
  Hits         2271     2271
  Misses        893      893

Flag
Coverage Δ

#unittests
71.77% <100.00%> (ø)

Impacted Files
Coverage Δ

wechatpy/pay/api/jsapi.py
50.00% <100.00%> (ø)

wechatpy/schemes.py
96.49% <100.00%> (ø)

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 44c359f...282460c. Read the comment docs.

authors: LKI codecov-io

repo: wechatpy/wechatpy


text:
Google Drive API Search for files and folders

Query string examples

What you want to query
Example

Files with the name "hello"
name = 'hello'

Files with a name containing the words "hello" and "goodbye"
name contains 'hello' and name contains 'goodbye'

Files with a name that does not contain the word "hello"
not name contains 'hello'

Folders that are Google apps or have the folder MIME type
mimeType = 'application/vnd.google-apps.folder'

Files that are not folders
mimeType != 'application/vnd.google-apps.folder'

Files that contain the text "important" and in the trash
fullText contains 'important' and trashed = true

Files that contain the word "hello"
fullText contains 'hello'

Files that do not have the word "hello"
not fullText contains 'hello'

Files that contain the exact phrase "hello world"
fullText contains '"hello world"'

Files with a query that contains the "" character (e.g., "\authors")
fullText contains '\authors'

Files with ID within a collection, e.g. parents collection
'1234567' in parents

Files in an Application data folder in a collection
'appDataFolder' in parents

Files for which user "test@example.org" has write permission
'test@example.org' in writers

Files for which members of the group "group@example.org" have write permission
'group@example.org' in writers

Files modified after a given date
modifiedTime > '2012-06-04T12:00:00' // default time zone is UTC

Files shared with the authorized user with "hello" in the name
sharedWithMe and name contains 'hello'

Files that have not been shared with anyone or domains (only private, or shared with specific users or groups)
visibility = 'limited'

Image or video files modified after a specific date
modifiedTime > '2012-06-04T12:00:00' and (mimeType contains 'image/' or mimeType contains 'video/')

Learn more about the search terms from:

Search for files and folders
Search for Files
Search query terms

Search in folder: ${id} in parents
const query = '\'' + parentMeta.id + '\' in parents' + ' and trashed != true' +
                ' and mimeType != \'application/vnd.google-apps.folder\'';

See: https://github.com/rainabba/node-cloudfs-drive/blob/master/lib/index.js#L355

repo: wechaty/chat-drive


text:
Add memory_card

The simple implementation of memory-card can not be as complicated as the TS version at present. The goal is to run the go wechaty demo first, and then iterate as needed later.
Question 1: which directory is suitable for such a toolkit?

The MemoryCard plays a very important part of the Wechaty bot system, and it will be enhanced to be more fit on our cloud service in the near future.
Your PR is a very good start of the Go version of MemoryCard.
Answer your question

Question 1: which directory is suitable for such a toolkit?

Answer: The current path where you put the memory-card.go (wechaty-puppet/memory-card/memory_card.go) is good.
All modules that were dependencied by Wechaty can be put into the wechaty-puppet/ submodule, and we can split it out in the future.

BTW: Thank you for accepting my invitation and joined the GitHub Wechaty Org!
Please add my WeChat 918999 so that we can talk on WeChat. Cheers!

great

Congratulations on having our Go version or MemoryCard component! (and the tests!)

authors: dchaofei dingdayu huan

repo: wechaty/go-wechaty


text:
[BUG]WorkPro: 个人微信修改昵称后，机器人再采集好友以及群聊信息好友昵称都没有更新最新的昵称

在企业微信的外部群中，个人微信好友昵称修改后，机器人重新采集好友信息，以及群聊信息都不会采集到最新修改的昵称，还请尽快排查原因，和解决方案

无反馈，问题关闭。

repo: wechaty/puppet-supports


text:
how is accuracy the  friend relationship

xiaoli delete the robot from his friendship list，but when i run the robot，data shows that xiaoli is still a friend

It's hard to make it accuracy.
For example, your case is also a problem on WeChat phone app: you can not get to know when others delete you from their friend list.

authors: huan xidiancanghai

repo: wechaty/wechaty


text:
no MIME Type found on mediaMessage: voice.slk  or no MIME Type found on mediaMessage: voice.silk

As shown in the error report, my silk voice file is correct and can be sent through other social software, but I can’t send it in Wechaty. What is the specific problem?

+1

authors: ghost zouhuigang


text:
fix_function_room.member_#173

#173
#104

change parseNickMap, add remark value
add contact.ready() to get full contact, and get contact's remark

Sorry， I found I fix what I need, but bring in other bug, so please wait until I fix all

this commit can help to find member in room by nick/display/remark

add following type:

type MemberQueryFilter = {
  nick?: string
  remark?: string
  display?: string
}

add following Map:

nickMap,
remarkMap,
displayMap,

add following Functions：

parseNickMap()
parseRemarkMap()
parseDisplayMap()

change the parameter in function room.member(name: string) from public member(quaryArg: MemberQueryFilter)
we can find member by nick, display, remark, code as follows:

room.member({nick: '李佳芮'})
room.member({remark: '哈哈哈'})
room.member({display: '土'})

@zixia
I have tested it, it works well with the following function:
async function RoomTest() {
  let room = await Room.find({topic: 'test'})
  await room.ready()
  console.log('member1: ===========')
  console.log(room.member({nick: '李佳芮'}))
  console.log('member2: ')
  console.log(room.member({remark: '哈哈哈'}))
  console.log('member3: ')
  console.log(room.member({display: '土'}))
}

I didn't modify getContact and related functions, but test shows:

test » room » Room smoking test Error: Cannot read property 'getContact' of undefined

Could you help me to fix? Thanks.

@zixia  done for what you request

@zixia  done as what you said.
function room.member() use the order : remark> display>nick

@zixia  Thanks for you advice, and I have done what you said.
I'm sorry for not passing  CI tests, I didn't use function getContact and I found it is used in function room.ready() in the following function:
    if (!contactGetter) {
      contactGetter = Config.puppetInstance()
                            .getContact.bind(Config.puppetInstance())
    }

Could you help me? Thanks!

the following bug is caused by room.nick(contact: Contact), you have defined its return value is displayName before, but after I changed the code, its return value is nickName.
 1. test » room » Room smoking test
  AssertionError: should get nick1 from DisplayName
    ""              "田美坤"
        test/room.spec.ts:104:5

And I changed as you designed before,  function room.nick() return displayName, although I think it looks a bit weird。。。。

it still has an error:
✖ test › room › Room smoking test should get nick2 from NickName because there is no DisplayName,
  t.is(nick2, EXPECTED.memberNick2, 'should get nick2 from NickName because there is no DisplayName, ')
       |               |
       ""              "李竹～英诺天使（此号已满）"

Actually, I have tested, using function room.nick() if one doesn't have a displayName in the room, it will return nickName correctly. But it failed this test.
I thought maybe I changed some structure of the member obj, so the test data maybe outdated...
@zixia  need your help, thanks.

After you fixed this, I believe this PR could be ready for merging.

Finally, I found the reason for not passing the test....
I added contact.ready() in new PR, because the contact data in Class Contact is not the same as the the member in room, so contact.ready() cannot get the full contact data, then it cannot get the correct nickMap and remarkMap...
Maybe you should mock some contact data corresponding the room member,  then it can get the full contact data, and get the nickMap, then pass the test...

Great. Could you modify the mock data in the unit test to add support for your new code?

Done as what you said, but I'm a little bit confused by the following code:
  const mockContactGetter = function (id) {
    return new Promise((resolve, reject) => {
      // if (id !== EXPECTED.id && !(id in CONTACT_LIST)) return resolve({})
      if (id === EXPECTED.id) {
        setTimeout(() => {
          return resolve(RAW_OBJ)
        }, 10)
      }
      if (id in CONTACT_LIST) {
        setTimeout(() => {
          return resolve(CONTACT_LIST[id])
        }, 10)
      }
      return resolve({})
    })
  }

it gets the following error:
✖ Room smoking test Error: Cannot read property 'Symbol(Symbol.iterator)' of undefined

But when I change the code to the following:
  const mockContactGetter = function (id) {
    return new Promise((resolve, reject) => {
      if (id !== EXPECTED.id && !(id in CONTACT_LIST)) return resolve({})
      if (id === EXPECTED.id) {
        setTimeout(() => {
          return resolve(RAW_OBJ)
        }, 10)
      }
      if (id in CONTACT_LIST) {
        setTimeout(() => {
          return resolve(CONTACT_LIST[id])
        }, 10)
      }
    })
  }

all works well.
What I change is just adjust  return resolve({}) order.
I googled the error and find this: this

Initialize items to an empty array.

But I still fell confused..

Great work!
It is not perfect, but I think it mergeable now.
BTW:

You will only feel confusing when you know you do not know.
You will never feel confusing when you do not know you do not know.

authors: lijiarui zixia


text:
add next-auth

next-authを追加した。
https://next-auth.js.org/

env.development.localファイルを作成して以下を設定する
GITHUB_ID=xxxxx
GITHUB_SECRET=xxxxx
NEXTAUTH_SECRET=xxxxx

repo: wedinc/hydrangea


text:
Fix the event handler code with function invocation (fix #8)

Fix the #8 .
@zwwill place review it.

This solution works

repo: weexteam/weex-vue-precompiler


text:
Setup the app entry point

[ ]  add a simple html with libp2p available
[ ] try create 3000 instances of libp2p in the page #1

The founded peers and connected peers are increasing along the time:

done :)


text:
BluetoothCentralManagerCallback#onConnected not called for BluetootheCentralManager autoConnect methods

Hi,
we are encountering an issue with the auto connect methods, specifically related to the BluetoothCentralManagerCallback#onConnected callback not being triggered as expected when a connection is being automatically established.
From our application logs, we observe the following entry:
BluetoothPeripheral - connected to 'BLEDevice' (BONDED) in 16.2 seconds
However, despite this successful connection message, the registered BluetoothCentralManagerCallback does not seem to be invoked.
Could you please help in investigating this issue? Additionally, if anyone else has experienced similar challenges, we would appreciate any insights or suggestions.
Thank you for your assistance.

Please share a log so I can see what is happening

authors: mobamipari weliem

repo: weliem/blessed-kotlin