Feature/company future interest countries dataset 2

Description of change
Checklist

[x ] Has a new newsfragment been created? Check changelog/README.md for instructions
[x ] Do any added or updated endpoints appear in the API documentation? See docs/Maintaining the API documentation.md for more details
[ ] Have any relevant search models been updated?
[ ] Have any relevant fixtures (fixtures/test_data.yaml) been updated?
[ ] Have any relevant select-/prefetch-related field lists in the views and search apps been updated?
[ ] Has the admin site been updated (for new models, fields etc.)?
[ ] Has the README been updated (if needed)?

commit history in the branch in the following pull request, https://github.com/uktrade/data-hub-leeloo/pull/2210, ended up with superfluous commit messages messing up the commit history, so this new branch has been made to correct that

@dvoong Just need to update this following https://github.com/uktrade/data-hub-api/pull/2214 (to use the base class for the test) – should be able to undo the page size change as well then.

@dvoong Just need to update this following #2214 (to use the base class for the test) – should be able to undo the page size change as well then.

cool, how should I merge these changes in without ending up with lots of commits like last time?

I think in this case a rebase is warranted: git fetch && git rebase origin/develop followed by git push --force-with-lease (once any conflicts are resolved).

I think in this case a rebase is warranted: git fetch && git rebase origin/develop followed by git push --force-with-lease (once any conflicts are resolved).

changes made

@dvoong Unfortunately, there are a lot of commits from other branches on here:

Could you have a look?

@dvoong Unfortunately, there are a lot of commits from other branches on here:

Could you have a look?

not sure what to do about that, I did the git fetch and rebase you suggested, maybe we can sit down together in a bit @reupen ?

made the changes we discussed but the test pagination method is failing. Appears that the factory is not populating the future_interest_countries field so the paginated pages are empty.

@dvoong I think you will need to define another factory with Company.future_interest_countries.through as the model and use that for TestCompanyFutureinterestCountriesDatasetViewSet.factory to get the generic pagination test working. Let me know if you need any help.
There are some Flake8 errors too, could you have a look at those too?

@dvoong I think you will need to define another factory with Company.future_interest_countries.through as the model and use that for TestCompanyFutureinterestCountriesDatasetViewSet.factory to get the generic pagination test working. Let me know if you need any help.
There are some Flake8 errors too, could you have a look at those too?

changes made


Enable remote-debugging-port parameter

If this parameter is set, don't force it to be 0.

When user also sets remote-debugging-port, there are two remote-debugging-port passed to chrome, and chrome only take the later one, that's 0. debugging port can never be set.

Thanks. The builds are broken in master; that's unrelated to your change, which seems pretty safe and sensible to me.


Remove Redis dependencies

Description of the Change
Redis dependencies were removed from docker-compose files, configuration files and all the rest places where Redis was mentioned.

Benefits
Completely removes Redis from the project after https://github.com/hyperledger/iroha/pull/933

Github test

Comment review on upsource

For the sake of complete corrections maybe iroha-api modification is required.

Corrections suggested by @lebdron have been applied in 60b192b

please use feature prefix for new changes as stated here https://github.com/hyperledger/iroha/wiki/Iroha-working-agreement#243-feature

@neewy, thanks for the link! I have taken this into account. Since I have to rename the branch this PR will be automatically closed and another will be issued instead.
I have prepared complementary PR for iroha-api repository - https://github.com/hyperledger/iroha-api/pull/58


How can I use scss in vue templates

Hello,
I'm trying to use scss in my components.
It works fine if I import a scss file
<style lang="scss" scoped>
  @import "../../assets/app.scss"
</style>

But if I use the scss code directly webpack doesn't recognise it:
<style lang="scss" scoped>
nav {
  background-color: $nav-dark;
  color: $white;
  width: 15rem;
    a {
      color: $white;
      width: 100%;
    }
}
</style>

Invalid CSS after "nav": expected 1 selector or at-rule, was "{"
I installed node-sass and sass-loader
Did I miss anything?
Thanks for your help.

Happened the same to me once, I had some wrong configuration in webpack: I added a custom loader for Sass. To fix it I had to remove my custom loader and just rely on the provided one.
Hope it helps.

@ferllings did you install the dependencies as mentioned in the docs?
npm install sass-loader node-sass --save-dev

Yes

I installed node-sass and sass-loader

please provide the repository. This works without any issues for me.

Could it be that the variable doesn't exist?
background-color: $nav-dark;
Even if you import an .scss file in another .vue file that doesn't make your variables globally accessible. You have to import your .scss variables in every .vue file you want to use them as explained here:
https://github.com/vuejs/vue-loader/issues/328

Yes the variable exists and is imported from a scss file before this instruction.
I'll get back to you in few weeks (I'm on holiday), and provide a repository
Thanks for your help so far.

I'm getting the same issue. Inspecting the generated CSS in Chrome DevTools the output is just what I've written in my *.vue file, unprocessed. i.e. I'm doing nested styles and the nested structure is spat out to browser.
Should be able to reproduce with this app I'm playing around with and you can see in components/Home.vue I'm trying to do nesting in my styling like #options { a { ... } that isn't being compiled into proper CSS on front-end.
Help much appreciated :)

@benmccallum your problem is that you using 'type' instead of 'lang'.
<style type="scss" scoped>

Shoud be:
<style lang="scss" scoped>

Docs: https://vuejs.org/v2/guide/single-file-components.html

Oh wow, sorry. Huge fail on my part. Had read the docs and all but old habits I guess with typing "type". Thanks! Not sure if the OP would consider this closed though :p

But I want to use this style. Code below

Please help me.

But I want to use this style. Code below
"
<style type="text/css">
    body, html {
        overflow: hidden;
    }
</style>

....
""
Please help me.

But I want to use this style. Code below
template
<style type="text/css">
    body, html {
        overflow: hidden;
    }
</style>

....
template
Please help me.

For regular CSS you don't need to specify lang, and type is never used for the style tag in vue components.


Added string reference code

Completing the 'ref' usage in a procedure definition, it now works with strings.

Fixes #76


Exception from sub adminGetOne

Seem to be getting a lot of this.. on every Admin collection view
in this case here the collection is called.. "Company"
Exception from sub adminGetOne.company id JAhPQGFhDnxpTcsqz Error: Match error: Expected string, got object
I20150813-19:33:20.320(4)?     at checkSubtree (packages/check/match.js:159:1)
I20150813-19:33:20.320(4)?     at check (packages/check/match.js:32:1)
I20150813-19:33:20.320(4)?     at [object Object].Meteor.publish.is_auto (packages/orionjs:collections/publications.js:4:1)
I20150813-19:33:20.320(4)?     at packages/matb33:collection-hooks/collection-hooks.js:218:1
I20150813-19:33:20.320(4)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20150813-19:33:20.320(4)?     at [object Object].handler (packages/matb33:collection-hooks/collection-hooks.js:217:1)
I20150813-19:33:20.321(4)?     at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1617:1)
I20150813-19:33:20.322(4)?     at [object Object]..extend.runHandler (packages/ddp/livedata_server.js:950:1)
I20150813-19:33:20.323(4)?     at [object Object]..extend.startSubscription (packages/ddp/livedata_server.js:769:1)
I20150813-19:33:20.323(4)?     at [object Object]..extend.protocol_handlers.sub (packages/ddp/livedata_server.js:582:1)
I20150813-19:33:20.323(4)? Sanitized and reported to the client as: Match failed [400]

Me too, I'm getting this message with all of my relationship. Does your "Company" collection has any relationship with other collection?

Yep I also confirm gettting this error since updating orion versions. In my case its the relationship between image file and posts collection
I20150814-12:00:07.390(2)? Exception from sub adminGetOne.posts id kvSTRmq3xZyyEF5PL Error: Match error: Expected string, got object
I20150814-12:00:07.391(2)?     at checkSubtree (packages/check/match.js:159:1)
I20150814-12:00:07.391(2)?     at check (packages/check/match.js:32:1)
I20150814-12:00:07.391(2)?     at [object Object].Meteor.publish.is_auto (packages/orionjs:collections/publications.js:4:1)
I20150814-12:00:07.391(2)?     at packages/matb33:collection-hooks/collection-hooks.js:218:1
I20150814-12:00:07.391(2)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20150814-12:00:07.391(2)?     at [object Object]._handler (packages/matb33:collection-hooks/collection-hooks.js:217:1)
I20150814-12:00:07.391(2)?     at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1617:1)
I20150814-12:00:07.392(2)?     at [object Object]._.extend._runHandler (packages/ddp/livedata_server.js:950:1)
I20150814-12:00:07.392(2)?     at [object Object]._.extend._startSubscription (packages/ddp/livedata_server.js:769:1)
I20150814-12:00:07.392(2)?     at [object Object]._.extend.protocol_handlers.sub (packages/ddp/livedata_server.js:582:1)
I20150814-12:00:07.392(2)? Sanitized and reported to the client as: Match failed [400]

I'm having the same problem. Can't figure this one out. Seems to be breaking my post edit view, some of the field values are not being populated in the form even though they exist in the DB.

I dont understand why this is getting called on the collection view : adminGetOne should be called only on a collection item view, not on the main one no?
That is why adminGetOne check fails since the _id is null (object)
where does this get called @nicolaslopezj @timfam ?

It's called when it has relations, to show the title field instead of the id

Is this fixed with<EMAIL_ADDRESS>


i18n.t('', options) , options("language") seems does not work

hi
Describe your environment

React-Native version 0.56.0
Platform: iOS, Android, both? Android
Device (which one?), simulator? vivo y67A
OS version Android 6.0
react-native-languages version file:..
Devtools: Xcode? Android Studio version? Atom
(Android only: buildToolsVersion) 26.0.3

repeat issue
A complete code is here:  (https://github.com/sg552/react_native_lesson_demo)
Core code shown as below :
View code:
import React,  { Component} from 'react'
import {Platform, StyleSheet, Text, View, Button} from 'react-native'

import i18n from '../translation/i18n'

export default class I18nDemo extends React.Component{

  render(){
    return (
      <View>
        <Text>
        book: { i18n.t('book', {language: 'zh'}) }
        </Text>
        <Text>
        apple: {  i18n.t('apple', {language: 'en'}) }
        </Text>
      </View>
    )
  }
}

translations/i18n.js:
import RNLanguages from 'react-native-languages'
import i18n from 'i18n-js'

import en from './en.json'
import zh from './zh.json'

i18n.locale = RNLanguages.language;
i18n.fallbacks = true;
i18n.translations = {en, zh};

export default i18n;

translations/en.json:
{
  "book": "Book",
  "apple": "Apple"
}

translations/zh.json
{
  "book": "书籍",
  "apple": "苹果"
}

When the app running, I can see the text is:
book: Book
apple: Apple

My expected is:
book: 书籍
apple: Apple

So I think in the code
i18n.t('book', { language: 'zh'})

the options:  language doesn't take effect.

OK, I found the solution.  from : i18n-js official site: https://github.com/fnando/i18n-js
I18n.t("some.scoped.translation", {locale: "fr"});

it should be "locale" but not "language".


Added proposed changes to sysctl.conf

Added these changes to sysctl.conf as a placemark for testing these proposed security changes.

These items are commented (#) so no impact to build.


Bug in Emitter class

I ran into this issue, on Windows 10, in my codebase, which goes something like this:

The main exe loads a dll dynamically. There is an emitter instance in the exe.
The dll registers for event with the emitter class using Emitter.on() method.
...
The main exe prepares to unload the dll.
Prior to unloading, the dll unregisters the event using Emitter.erase() method.
The dll is unloaded by the main exe.
Upon exit, the program will crash.

The problem is that erase() does not reset() the unique_ptr that holds the handler object. When the program exits, it tries to remove that memory. I don't quite understand how it happens, but it seems the memory is associated with the dll that was unloaded and, at that point, is no longer valid.
Unfortunately for me, I found this problem while making a huge change to my codebase, so it took me all day to figure out, because I thought it was my code.
The following change fixes the problem.
template<typename Event>
void erase(Connection<Event> conn) ENTT_NOEXCEPT {
    handler<Event>().erase(std::move(conn));
    nullify<Event>();         // <---- Add this to erase().
}

template<typename Event>
void nullify() ENTT_NOEXCEPT {
    const std::size_t family = handler_family::type<Event>();

    if (family < handlers.size()) {
        handlers[family].reset();
    }
}

The change that I posted above does not work well. Specifically, it will cause problems if 2 clients connect to the same event and both try to erase the connection. The second one will core.

Unfortunately for me, I found this problem while making a huge change to my codebase, so it took me all day to figure out, because I thought it was my code.

I'm sorry, the bad news is that it was your code actually. This is a duplicate of #111 and #113 and would be solved by what has been discussed with #114 (yet to implement).
The emitter class, as well as the dispatcher and the registry, completely relies on type erasure and performs dynamic allocations under the hood to accommodate pools/wrappers for the given types. When you attach the listener within the DLL, a proper wrapper for the type of event doesn't exist yet and therefore it's created. Unfortunately, the memory is allocated across boundaries and it's released when you unload the DLL. However, the emitter is instantiated on the other side of the boundary and when it's destroyed it tries to release its memory. However, that memory is no longer owned by the process and it causes the crash.
The straightforward approach to solve it is probably to allow mixed compile-time/runtime classes and to introduce custom allocators (see the issues above mentioned). The good news is that a solution exists and EnTT is going towards it at least. In fact, both the things are in the backlog (TODO file) but I've not enough bandwidth to work on them right now (and I'm pretty sure you don't want to hire me to give them high priority, as it happened in the past for some other features).
They will be implemented sooner or later, but you have to find a workaround in the meantime as other users did.
I invite you to join the gitter chat (see the badge in the README file) if you want to go further with the discussion.

Thanks for replying.
If this issue has been reported before, and you're thinking up a solution for it, then this is obviously a problem. You shouldn't close the ticket because the problem hasn't been fixed. This would help others that might run into this same issue. The tickets that you mentioned could have saved me precious hours yesterday, for example. But, when I went look, there were no opened issues, so I missed it.
If the problem is only with the Family id being static then, for my personal code, I could probably fix my issue by making the event classes expose a static constexpr id method that returns a unique number.

Hold back your horses.
Put aside the fact that there is an useful search bar to look for issues by arguments, I'm not saying there is a problem anyway.
EnTT hasn't been designed with shared libraries in mind and it's tricky to make it work, but it's possible. The issues I linked discuss facilities to help users to use this library in such a case, mainly because today it requires a knowledge that is sometimes beyond the one of the game dev.
However, all of the features have (apparently) nothing to do with shared libraries: custom allocators, mixed compile-time/runtime tools, etc. All of them are also in the backlog from a lot of time, far before anyone even mentioned shared libraries at all.
I renew my invite to join the gitter chat if you have problems with shared libraries. There are people much more skilled than me that can help you. ;-)


Meta Coder should list the class hierarchy and make it selectable

The Coder from the Meta view of an object should offer the class hierarchy. Selecting a class should act as a filter over the displayed methods.


podman varlink unknown flag: --timeout

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description

podman varlink unknown flag: --timeout
Steps to reproduce the issue:

brew cask intall podman

sudo podman varlink --log-level debug --timeout 0 unix://run/podman/io.podman

Describe the results you received:
ERRO[0000] unknown flag: --timeout
Describe the results you expected:
Same to Podman node setup
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Client:
Version:            1.6.1-dev
RemoteAPI Version:  1
Go Version:         go1.12.9
OS/Arch:            darwin/amd64

Service:
Error: could not get runtime: dial unix /run/podman/io.podman: connect: no such file or directory

Output of podman info --debug:
Error: could not get runtime: dial unix /run/podman/io.podman: connect: no such file or directory

Package info (e.g. output of rpm -q podman or apt list podman):
> brew cask info podman
podman: 1.6.0-28-gdac7889d
https://github.com/containers/libpod/
/usr/local/Caskroom/podman/1.6.0-28-gdac7889d (2 files, 47.4MB)
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/podman.rb
==> Name
podman
==> Artifacts
podman-v1.6.0-28-gdac7889d/podman (Binary)

Additional environment details (AWS, VirtualBox, physical, etc.):

MacBook Pro 10.15.1
GNU bash, version 5.0.11(1)-release (x86_64-apple-darwin19.0.0)

you cannot run the varlink service with the mac remote client.  though i am surprised it didnt choke on the varlink command.  ill take a look at that.

Ok what you are seeing is an artifact of how the cobra package works.  it is processing the flag first, but in reality there is no podman varlink command for the mac client.  closing as this is not a bug.


Can't supply ADA / gas fee way too high

Hi, I was trying to top up my ADA deposit when I got an error:
Metamask claims there's something wrong and as you can see gas fees would be extremely high anyway.
Note: deposit less than about 76 ADA shows no errors and normal gas fees...

Hi, I was trying to top up my ADA deposit when I got an error:
Metamask claims there's something wrong and as you can see gas fees would be extremely high anyway.
Note: deposit less than about 76 ADA shows no errors and normal gas fees...

Contact the support center to chat with a live agent on a live chat to report this for further assistance via LIVE CHAT

Old ticket. ADA market is working as expected. If this error appears again we'll review it


feat: Star Wars API

Description
The PR adds support for the Star Wars API. It's free to use.
Screenshot

Checklist

[X] API used in this PR was not used in just-calling-random-api before.
[X] API used in this PR is Public or I have permission to use it.
[X] My contribution is working.
[X] My contribution doesn't expose any API keys.
[X] My changes don't generate any new warnings.
[X] My changes don't affect any work done by other developers.

To tick a box, replace [ ] with [x].

Great! Thanks for your contribution


move pvRestorer and tests to their own files

Signed-off-by: Steve Kriss<EMAIL_ADDRESS>I pulled the pvRestorer type and its associated tests out of restore.go and into their own files.  restore.go is a behemoth and I'm trying to do some cleanup to make it a little more manageable.

argh, always make update!! updated :)


SDK signatures are confusing as it passes compile time but will not work es expected at the runtime

func reduceHandle(_ context.Context, _ []string, _ <-chan functionsdk.Datum, _ functionsdk.Metadata) functionsdk.Messages  {
  return
}

func handle(_ context.Context, _ []string, _ functionsdk.Datum) functionsdk.Messages {
  return
}

func main() {
	server.New().RegisterReducer(functionsdk.ReduceFunc(reduceHandle)).RegisterMapper(functionsdk.MapFunc(handle)).Start(context.Background())
}

the above syntax will pass compile time but will not work. Please note that I have registered both map and reduce to the same server which is semantically wrong.
The bug part of the SDK is the fact that we allow registering of any number of map/reduce handlers even though we keep the last one for each type.

why won’t it work?… it can be considered as an image which can be used as either reduce or map
and whether we use it as map or a reduce depends on the pipeline.yaml file??.....

But a vertex cannot be both. It can only be a map or a reduce vertex. If a user passes it and it is accepted, they would imagine that that vertex is doing two things.
Our implementation can be confusing to users, it is not a bug.

in this case, is there any error that you see? curious as to whats the behaviour currently

this is not an error, just a confusing behavior. we (numa) will invoke the right handler.

The bug part of the SDK is the fact that we allow registering of any number of map/reduce handlers even though we keep the last one for each type.

closed by - https://github.com/numaproj/numaflow-go/pull/70


suggest:bootstrap 4 affix

bootstrap 4 Can affix be added?
t's very useful

Nop, we won't maintain functionality that is now built-in with modern browsers.


libgcc_s.so.1 must be installed for pthread_cancel to work

Hello,
I'm trying to back up my icloud photos to Ubuntu 18.04 system.
After running for 1-2 minutes gimme-iphotos crashes with the same error:
...
DEBUG:app:Downloading 'IMG_9845.HEIC' to '/srv/backup/icloud/photos/IMG_9845.HEIC.a4b6gyx1'
DEBUG:app:Downloading 'IMG_9844.HEIC' to '/srv/backup/icloud/photos/IMG_9844.HEIC.c3uzjdos'
DEBUG:app:Downloading 'IMG_9843.HEIC' to '/srv/backup/icloud/photos/IMG_9843.HEIC.62yqt8nf'
libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted (core dumped)

This library is installed:
/lib/x86_64-linux-gnu/libgcc_s.so.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=679f3ae11120ec7c483bc9295345d836f5c104f7, stripped

Program is installed from pip3:
$ pip3 list | grep gimme
gimme-iphotos (1.0.6)
$ python3 --version
Python 3.6.9

Is this a 32/64bit issue?
Should I install libgcc 32bit?

I'll check that later today. So far I tested it in python:3.6.9-buster docker container. There was no libgcc error, but it downloaded empty files, so apart from your particular issue there is something related to the python version. While developing I was using python 3.8.
Meanwhile, as a workaround you can use gimme-iphotos via docker, there are instructions in the readme. If something is not clear, don't hesitate to rise a question.

I do not have system where I can run docker at the moment
I've used strace to get more info:
epoll_create1(EPOLL_CLOEXEC)            = -1 EMFILE (Too many open files)

Looks like this crash is related to max open files limit, now running fine with ulimit -n 20000
I have ~20k photos in icloud, running with ulimit -n 10000 was unsuccessful
Here is backtrace collected from core dump:
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/python3 /usr/local/bin/gimme-iphotos -d /srv/backup/icloud/photos/ -u'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f681cff9700 (LWP 16039))]
(gdb) set substitute-path /build/glibc-2ORdQG/glibc-2.27/signal/ /opt/src/glibc-2.27/
(gdb) bt
#0  0x00007f687a88cf47 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007f687a88e8b1 in __GI_abort () at abort.c:79
#2  0x00007f687a8d7655 in __libc_message (action=action@entry=(do_abort | do_backtrace), fmt=fmt@entry=0x7f687aa049f6 "%s", fmt=0x7f687aa049f6 "%s", action=(do_abort | do_backtrace))
    at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007f687a8d799a in __GI___libc_fatal (message=message@entry=0x7f687a643c38 "libgcc_s.so.1 must be installed for pthread_cancel to work\n") at ../sysdeps/posix/libc_fatal.c:191
#4  0x00007f687a641edf in pthread_cancel_init () at ../sysdeps/nptl/unwind-forcedunwind.c:64
#5  0x00007f687a641fe4 in _Unwind_ForcedUnwind (exc=0x7f681cff9d70, stop=stop@entry=0x7f687a63fd90 <unwind_stop>, stop_argument=0x7f681cff8f10) at ../sysdeps/nptl/unwind-forcedunwind.c:126
#6  0x00007f687a63ff20 in __GI___pthread_unwind (buf=<optimized out>) at unwind.c:121
#7  0x00007f687a637ae5 in __do_cancel () at pthreadP.h:297
#8  0x00007f687a637ae5 in __pthread_exit (value=<optimized out>) at pthread_exit.c:28
#9  0x00007f687a97e6b4 in __pthread_exit (retval=<optimized out>) at forward.c:173
#10 0x0000000000631bb5 in  ()
#11 0x00000000005e1463 in  ()
#12 0x0000000000631af4 in  ()
#13 0x00007f687a6366db in start_thread (arg=0x7f681cff9700) at pthread_create.c:463
#14 0x00007f687a96fa3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

I do not know if it is related to this issue or not, but gimme-iphotos has memory issues.
It is consuming all available memory until OOM kicks in:


Adds singularity install support to ci

Addresses #642

Hello @JayjeetAtGithub! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file cli/popper/commands/cmd_ci.py:

Line 9:80: E501 line too long (93 > 79 characters)
Line 122:1: W293 blank line contains whitespace

@ivotron Please review ! Thanks


Update to net5 and support for the latest ASF version

Updated to net5 and latest version of ASF.
Reworked some code that was incompatible with net5 and some that was incompatible with the latest version of ASF.

Should fix #10 and #11

Should fix #10 and #11

Looking forward to the update as for now, I just downgraded to a earlier version of ASF!

Looking forward to the update as for now, I just downgraded to a earlier version of ASF!

This project uses tabs, not spaces. Your autoformatter also places braces on new lines instead of at the end of lines, and such things.

Good shout @Luckz, project could probably do with an .editorconfig to define the rules for future commitors, but I'll leave that to the maintainer as I don't want to assume the rules.
I've hopefully now corrected the tab/spaces issue as well as the braces formatting to new lines. Let me know if you think there's anything else I need to reformat 👍

This project uses tabs, not spaces. Your autoformatter also places braces on new lines instead of at the end of lines, and such things.

Good shout @Luckz, project could probably do with an .editorconfig to define the rules for future commitors, but I'll leave that to the maintainer as I don't want to assume the rules.
I've hopefully now corrected the tab/spaces issue as well as the braces formatting to new lines. Let me know if you think there's anything else I need to reformat 👍

@Ryzhehvost Once we are happy this is good - would you prefer if I rebase this down into a single commit?

@Ryzhehvost Once we are happy this is good - would you prefer if I rebase this down into a single commit?

Sorry, I can't create a .dll file, I run build.bat and it gives me an error, could you drop me the finished plugin?

I guess I'll take it from here. Sorry for taking so long, and thank you very much for all your work. With your contribution this will at last become a plugin of decent quality.

Is there an expected timeline for publishing the new release to go with this change?

How about now?
https://github.com/Ryzhehvost/ASF-Achievement-Manager/releases/tag/<IP_ADDRESS>

Works for me! Thank you!


Feature/query params

@ballad89 could you give us some details on what this achieves?

Closing due to inactivity.


Refactor file page controls

This is a suggested solution for #1272.
The controls were moved below the video horizontally. Also their style was altered to reflect the other buttons under the video.
There's an "eslint-disable react/prop-types" rule in one of the files, mainly because the object structure of some of the props was a bit complex to figure out for this PR.
Screenshots:

@nizuka3 let @seanyesmunt and I know when you are free to discuss these changes.

@miikkatu I haven't forgotten about this. We will probably end up merging this with some small changes. I will reach out to you soon

Going to close this. I implemented this (slightly different) in https://github.com/lbryio/lbry-app/pull/1490.
I used some of your changes, @tzarebczan will make sure you are still compensated for your time.


[stable/postgresql] permission denied to create extension "pgcrypto" on complex scenarios

Describe the bug
I need the use the complex scenarios, like a sub-chart, https://github.com/helm/charts/tree/master/stable/postgresql#use-of-global-variables. Deploy is working good, but  my other app need create a SQL EXTENSION.
I was passing postgresqlPostgresPassword (used when postgresqlUsername is not postgres), postgresqlUsername (PostgreSQL admin) and too postgresqlPassword.
Version of Helm and Kubernetes:
helm:v3
k8s:v1.15.2
Which chart:
stable/postgresql:v8.1.3
What happened:
Give permission error:
2020-01-14 21:27:46.244 GMT [380] STATEMENT:  CREATE EXTENSION IF NOT EXISTS pgcrypto SCHEMA public
2020-01-14 21:28:16.384 GMT [421] ERROR:  permission denied to create extension "pgcrypto"
2020-01-14 21:28:16.384 GMT [421] HINT:  Must be superuser to create this extension.

What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:

Hi ALL, Any one can help?

This is happening to me too. Upgraded to the most recent version of this chart Friday and suddenly I can't run my migrations which install several extensions. It looks like the 'admin' user created in the chart is never granted superuser permissions.


Problem with Split Tunnel on Warp

Product
Warp
Subject Matter
Hello. Often there are problems with the work of Split tunnel. For a reason unknown to me, the settings are reset and there is not a single ip address for exclusion. Restore button does not solve this problem. Due to the lack of ip addresses, the local network and airdrop do not work.
My friend have this problem too. MacOS

👋 Thanks for opening this issue but we only take care of documentation improvements for developers.cloudflare.com in this repo! Please reach out to community.cloudflare.com for assistance!


Settings + Houdini: Fix missing default settings value for houdini shelf definition

Brief description
This #3652 PR introduced a Houdini Shelf Manager - however the shelf_definition was missing in default values for the settings and thus OP would complain about it.
Description
Saved default settings for Houdini.
Testing notes:

Houdini Shelf manager?

Fixed with https://github.com/pypeclub/OpenPype/pull/3870 instead


error instantiating mcmc, works outside Jupyter

The following code works with rb at the command line, but fails in Jupyter with the error:
Error:	Cannot find node with name 'r' in the model but received a move working on it.
r ~ dnDirichlet([1,1])

for (i in 1:3) {
    for (j in 1:3) {
        rates[i][j] <- 0.0
    }
}

rates[1][2] := r[1]
rates[2][3] := r[1]
rates[2][1] := r[2]
rates[3][2] := r[2]

Q := fnFreeK(rates)

mymodel = model(Q)

monitors = [ mnModel(filename="test.log", printgen=10, separator=",") ]

moves = [
    mvBetaSimplex(r, weight=2.0),
    mvDirichletSimplex(r, weight=1.0)
]

mymcmc = mcmc(mymodel, monitors, moves, nruns=1)

Sorry, this seems to be a rb version issue, not a Jupyter kernel issue. The code works if run using:
RevBayes version (1.0.11)
Build from development (9e76ac) on Wed May 15 23:15:54 CDT 2019

but does not work with
RevBayes version (1.1.0)
Build from development (rapture-548-g1dbe44) on Wed Jan 27 20:02:30 CST 2021


Fix UI bugs for FindCommand

Closes #133.
This PR covers:

Implemented tracking of the Person whose note is displayed on the panel.
Modified the addnote command to check if the note being added belongs to the tracked Person.

Concerns:

Used a variable to track the Person in find command, and used get to retrieve the Person in addnote command

Not sure if this violates any rule (Single Responsibility Principle?)

Result after running find s1234567b:

From the previous screen, running addnote s1234567b n/Covid will show the screen below:

Updated this PR with refactors to how displayed person is tracked, and also added in Show Command which closes #102.
Here's a brief demonstration of the show command. (Also showing the auto update of addnote)
https://github.com/AY2324S2-CS2103T-F14-2/tp/assets/110999129/a32bd60e-df2c-4ded-91e0-5a104e88d730
Summary of updates:

Moved the tracking of Person from Find command to Model to enable updating of note
Added Show Command
Added Test Cases for Show


Focus to a space doesn't work

Everything else works well (e.g. create a space, move a window to a space). However, changing the focus to a different space doesn't work.
# Current in space 2
$ yabai -m space --focus 2
cannot focus an already focused space.

$ yabai -m space --focus 1
# no output

Environment:
Version: yabai-v5.0.1
MacBook Pro 14 inch, M1 Max.
Ventura 13.0 (Beta 10)
I've tried sudo yabai --load-saand I saw no error logs.

This works for me. Specifically next/prev.
Make sure you have some extra spaces created.

I've rebooted and have tried with extra spaces in both directions, but to no avail. @elido, are you on Ventura?

The scripting-addition won't inject on macOS Ventura because the code requires a versioning change to use the Mach API:
https://github.com/koekeishiya/yabai/blob/master/src/sa.m#L443. The code that is injected also needs to be updated.

https://github.com/koekeishiya/yabai/issues/1297#issuecomment-1170101565

Duplicate of https://github.com/koekeishiya/yabai/issues/1297#issuecomment-1170101565


the default value of HTTPSOnly

If we create a Web App on Azure portal, the settings "HTTPS Only" is set as True by default. Not sure is it possible to add this in the document to make it clear?
I also checked the document (https://docs.microsoft.com/en-us/azure/templates/microsoft.web/sites?tabs=bicep&pivots=deployment-language-arm-template) and there's nothing about default value of https only.
In addition, is there any update recently on HTTPs Only? My cx said the default value of HTTPs only was set to false before. There are no related document to mention this part.
--
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b2906753-7656-ef4d-0de9-7e238181e3e1
Version Independent ID: 66dcb903-38dd-858b-dfb4-8a8dafaa0930
Content: Secure a custom DNS with a TLS/SSL binding - Azure App Service
Content Source: articles/app-service/configure-ssl-bindings.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@racchen, Thanks for the feedback! We are taking a look into this and will get back to you soon.

racchen, since we're discussing on this offline, I'll close this thread for now.   Based on our outcome of the offline discussion, we will make appropriate changes (add clarity) to the doc as necessary. Thanks again for the feedback!


Upgrade TypeScript package to latest version

Category

[x] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

Expected or Desired Behavior
Upgrade Typescript package version to 3.1.6
Observed Behavior
I still see older version of TypeScript:
PS C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col\PApps> npm ls typescript
<EMAIL_ADDRESS>C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col\PApps
+--<EMAIL_ADDRESS>| +--<EMAIL_ADDRESS>| | +--<EMAIL_ADDRESS>| | | --<EMAIL_ADDRESS>| | --<EMAIL_ADDRESS>deduped
| --<EMAIL_ADDRESS>|   --<EMAIL_ADDRESS>deduped
+--<EMAIL_ADDRESS>| --<EMAIL_ADDRESS>|   --<EMAIL_ADDRESS>deduped
+--<EMAIL_ADDRESS>| --<EMAIL_ADDRESS>extraneous --<EMAIL_ADDRESS>npm ERR! extraneous<EMAIL_ADDRESS>C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col\PApps\node_modules\node-sppkg-deploy\node_modules\typescript
Steps to Reproduce
npm install -g<EMAIL_ADDRESS>npm ls typescript
Please let me know how I can get latest version of TypeScript in my project?
Thanks for your contribution! Sharing is caring.

I tried this also, with the same results. It looks like typescript version is hard coded in the Microsoft mode modules folder.
This is kind of a show stopper? In that almost all react based UI frameworks are using 2.8 of newer....  material-design ui is using 3.
To put things into perspective... If I try and find a version of material design ui that uses typescript 2.4 I literally have to go back to pre beta?

Install latest typescript locally:

npm install<EMAIL_ADDRESS>
Update gulpfile.js in SPFx project:
const typescriptBuild = require('@microsoft/gulp-core-build-typescript');
typescriptBuild.tscCmd.mergeConfig({
overridePackagePath: 'node_modules/typescript'
});

Potential typings conflicts might be resolved within “resolutions” attribute in package.json file.

@cebud Thanks! I tried your suggestion. On running gulp build after following your steps, I see additional errors as follows:
Error - [tslint] TypeError: Cannot read property 'clauses' of undefined
at NoSwitchCaseFallThroughWalker.visitSwitchStatement (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\rules\noSwitchCaseFallThroughRule.js:67:36)
at cb (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\rules\noSwitchCaseFallThroughRule.js:59:23)
at visitEachNode (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\typescript\lib\typescript.js:15956:30)
at Object.forEachChild (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\typescript\lib\typescript.js:16136:24)
at NoSwitchCaseFallThroughWalker.walk (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\rules\noSwitchCaseFallThroughRule.js:63:19)
at Rule.AbstractRule.applyWithWalker (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\language\rule\abstractRule.js:31:16)
at Rule.apply (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\rules\noSwitchCaseFallThroughRule.js:33:21)
at Linter.applyRule (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\linter.js:197:29)
at C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\linter.js:139:85
at Object.flatMap (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\utils.js:151:29)
[09:29:03] Error - [tslint] TypeError: Cannot read property 'kind' of undefined
at Object.isIdentifier (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules\tsutils\typeguard\node.js:306:17)
at cb (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\rules\preferConstRule.js:159:27)
at visitEachNode (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\typescript\lib\typescript.js:15956:30)
at Object.forEachChild (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\typescript\lib\typescript.js:16276:24)
at cb (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\rules\preferConstRule.js:172:27)
at visitEachNode (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\typescript\lib\typescript.js:15956:30)
at Object.forEachChild (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\typescript\lib\typescript.js:16215:21)
at cb (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\tslint\lib\rules\preferConstRule.js:172:27)
at visitEachNode (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\typescript\lib\typescript.js:15956:30)
at Object.forEachChild (C:\Users\xyz\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps\node_modules@microsoft\gulp-core-build-typescript\node_modules\typescript\lib\typescript.js:16136:24)

@cebud Thank you! I still see 2.4.2 version in microsoft modules:
<EMAIL_ADDRESS>C:\Users\lipalath\Desktop\spfx-upgrade\EUS-Col-ColPub-PublishApps\PublishApps
+--<EMAIL_ADDRESS>| +--<EMAIL_ADDRESS>| | +--<EMAIL_ADDRESS>| | | --<EMAIL_ADDRESS>| | --<EMAIL_ADDRESS>| --<EMAIL_ADDRESS>|   --<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>| --<EMAIL_ADDRESS>|   --<EMAIL_ADDRESS>--<EMAIL_ADDRESS> --<EMAIL_ADDRESS>extraneous
Also, I see [tsc] errors - TS2564: Property 'isReviewer' has no initializer and is not definitely assigned in the constructor. Are these introduced as a part of typescript version upgrade?

@xyz92
During the compilation of which file this error occurred?  It is in your custom code? [tsc] errors - TS2564: Property 'isReviewer' has no initializer and is not definitely assigned in the constructor.
The problem is most likely due to the strictPropertyInitialization  flag firstly introduced in TypeScript 2.7 (and beyond), which could cause these kind of errors.

@cebud It is in my custom code. I was able to fix that. I get a tslint error though Error - [tslint] no-unused-variable is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead. I tried setting the rule  "no-unused-variable": false in tslint.json. That didn't work though.

@xyz92 Where do you have tslint.json? in config folder? or on the same level as is tsconfig.json, package.json,...

@cebud Figured out the issue. I had 2 tslint.json files in my project - one on the same level of  tsconfig.json, package.json (where I made the updates), one within src folder. I had to update that as well. Thank you so much! Appreciate your help!

@Cebud.... this totally works, thank you.

Ola
I'm using on a project "@microsoft/sp-build-web": "1.5.1".
I accidentally installed Node.JS version:v10.14.0 on my maschine.
As I reallized that - and it worked - I also updated the typescript version to 3.2.1.
As I hacked @microsoft\gulp-core-build-typescript via
cd node_modules\@microsoft\gulp-core-build-typescript
yarn add typescript tslint-microsoft-contrib

I was also able to run gulp serve, gulp bundle, gulp package-solution.
I don't have installed any Typescript version globally.

@cebud, after updating gulp files, I ran gulp build and I still see my older version of TypeScript being listed:
[17:57:55] Starting subtask 'typescript'...
[17:57:55] [typescript] TypeScript version: 2.4.2
typeof-compare is deprecated. Starting from TypeScript 2.2 the compiler includes this check which makes this rule redundant.

@xyz92 What's the SPFx version in your project? The previous steps are valid only for version 1.6 and newer.

SPFx version is 1.7.0, NodeJS: 8.11.4, npm: 6.4.1

I also had to upgrade typescript in order to get Ant Design working.
The solution above wasn't working for me.
My workaround was the following:

npm install typescript --save-dev
Edit gulpfile so it looks lile this:

'use strict';

const typeScriptConfig = require('@microsoft/gulp-core-build-typescript/lib/TypeScriptConfiguration');

typeScriptConfig.TypeScriptConfiguration.setTypescriptCompiler(require('typescript'));

const gulp = require('gulp');
const build = require('@microsoft/sp-build-web');
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);

build.initialize(gulp);

@cebud Hi, when I try to run gulp build, it takes ~8 minutes to complete step "Finished subtask 'tsc'". Before typescript update, it usually gets completed in seconds. Could you please let me know if you have idea to resolve this?

What does the output of gulp serve --verbose look like?

@patmill Here is the output for gulp serve --verbose:
gulp serve --verbose
Build target: DEBUG
Found config file: copy-assets.json
Found config file: write-manifests.json
Found config file: serve.json
Found config file: deploy-azure-storage.json
Found config file: package-solution.json
[12:54:23] Using gulpfile ~_\EUS\PA\gulpfile.js
[12:54:23] Starting gulp
[12:54:23] Starting 'serve'...
[12:54:23] Starting subtask 'configure-sp-build-rig'...
[12:54:23] [configure-sp-build-rig] Found config file: config.json
[12:54:23] Finished subtask 'configure-sp-build-rig' after 19 ms
[12:54:23] Starting subtask 'spfx-serve'...
[12:54:23] Starting server...
Starting api server on port 5432.
Registring api: /workbench
Registring api: /
[12:54:24] Finished subtask 'spfx-serve' after 1.39 s
[12:54:25] Starting subtask 'pre-copy'...
[12:54:25] Finished subtask 'pre-copy' after 50 ms
[12:54:25] Starting subtask 'copy-static-assets'...
[12:54:25] Starting subtask 'sass'...
[12:54:25] Server started https://localhost:4321
[12:54:25] LiveReload started on port 35729
[12:54:25] Running server
[12:54:25] Opening https://localhost:5432/workbench using the default OS app
[12:54:26] Finished subtask 'sass' after 1.46 s
[12:54:26] Starting subtask 'tslint'...
[12:54:26] [tslint] tslint version: 5.11.0
[12:54:27] Starting subtask 'tsc'...
[12:54:27] [tsc] typescript version: 3.1.6
Request: [::1] '/workbench'
Request: '/temp/workbench.html'
[12:54:28] Finished subtask 'copy-static-assets' after 3.2 s
Request: '/temp/manifests.js'
Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>Request: '/temp/workbench-packages/react/umd/react.development.js'
Request: '/temp/workbench-packages/react-dom/umd/react-dom.development.js'
Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>[12:54:59] Finished subtask 'tslint' after 32 s
[13:03:05] Finished subtask 'tsc' after 8.63 min
[13:03:05] Starting subtask 'api-extractor'...
[13:03:05] Finished subtask 'api-extractor' after 2.21 ms
[13:03:05] Starting subtask 'post-copy'...
[13:03:05] Finished subtask 'post-copy' after 2.13 ms
[13:03:05] Starting subtask 'collectLocalizedResources'...
[13:03:05] [collectLocalizedResources] 1 localized resources defined.
[13:03:05] [collectLocalizedResources] Found file "lib/webparts/publishApps/loc/en-us.js", identified as locale "en-us"
[13:03:05] [collectLocalizedResources] Found file "lib/webparts/publishApps/loc/es-es.js", identified as locale "es-es"
[13:03:05] [collectLocalizedResources] Found file "lib/webparts/publishApps/loc/hi-in.js", identified as locale "hi-in"
[13:03:05] Finished subtask 'collectLocalizedResources' after 24 ms
[13:03:05] Starting subtask 'configure-webpack'...
[13:03:08] [configure-webpack] 1 entries specified.
[13:03:08] [configure-webpack] 20 externals specified.
[13:03:08] [configure-webpack] 1 localized resources specified.
[13:03:08] Finished subtask 'configure-webpack' after 3.14 s
[13:03:08] Starting subtask 'webpack'...
[13:03:17] Finished subtask 'webpack' after 8.88 s
[13:03:17] Starting subtask 'configure-webpack-external-bundling'...
[13:03:17] [configure-webpack-external-bundling] No localized resources specified, nothing to do.
[13:03:17] Finished subtask 'configure-webpack-external-bundling' after 2.84 ms
[13:03:17] Starting subtask 'copy-assets'...
[13:03:18] Finished subtask 'copy-assets' after 352 ms
[13:03:18] Starting subtask 'write-manifests'...

OK, that's seriously weird.  If you do the usual "what is my machine doing" things (look at perf monitor, network usage, disk usage, cpu usage, etc.) can you tell what subsystem is getting hammered?  I'd expect my machine to sound like a jet engine if it was spending 8 minutes on CPU.

It's the CPU I think:

I upgraded typescript to latest version 3.4.2 and now is taking only seconds :) Thank you!

I was reading this post but it is a pretty different approach as the solution mentioned on this thread.
@xyz92 Could you be so kind and explain how did you be able to do it?


Retrieve hidden states in LSTMs while training

I want to use an implementation of an attention mechanism by Yang et al.. I found a working implementation of a custom layer that uses this attention machanism here. Instead of using the output values of my LSTM:
my_lstm = LSTM(128, input_shape=(a, b), return_sequences=True)
my_lstm = AttentionWithContext()(my_lstm)
out = Dense(2, activation='softmax')(my_lstm)

I would like to use the hidden states of the LSTM:
my_lstm = LSTM(128, input_shape=(a, b), return_state=True)
my_lstm = AttentionWithContext()(my_lstm)
out = Dense(2, activation='softmax')(my_lstm)

But I get the error:

TypeError: can only concatenate tuple (not "int") to tuple

I think I interprete the returning value of return_state incorrectly but I can't find any examples on how to do this. Is this working? Do I have to use it in combination with return_sequences? I also don't understand whether it returns all of the hidden states or only the last hidden state.
Thanks!

LSTM with return_sequences=True returns the hidden state of the LSTM for every timestep in the input to the LSTM. For example, if the input batch is (samples, timesteps, dims), then the call LSTM(units, return_sequences=True) will generate output of dimensions (samples, timesteps, units).
However, if you also want the final internal cell state of LSTM, use LSTM(units, return_sequence=True, return_state=True) as in Recurrent Layers

@samre12 Thanks for your answer. return_sequences=True returns the output states for each time step, but not the hidden (cell) states as far as I know.
I want to have the hidden states of each time step, not only the internal one. As far as I understand it, in the paper they use the hidden states and these should refer to the internal states, not the output states.

@v1nc3nt27 , in the case of LSTM, there are two internal states, the hidden state, usually denoted by h, and the cell state usually denoted by c. There is as such no concept of output state for a LSTM. The hidden state h is output for every timestep the LSTM is unrolled.
return_sequences=True gives you the hidden state of the LSTM for every timestep.

@samre12 That is quite confusing now. In the wiki article for LSTMs they talk of h: output vector and c: cell state vector.
That would mean there is no unique terminology and I'd have to guess whether they use the cell or "output" vector whenever they talk about a hidden vector.
Also, did you see that here they write:

return_sequences: Boolean. Whether to return the last output in the output sequence, or the full sequence.

return_state: Boolean. Whether to return the last state in addition to the output.

@v1nc3nt27 , I agree with you that there is no unique terminology that is followed in the literature. However, in my opinion, it is the hidden vector that they consider whenever they mention output vector.

@samre12 It might be, since I actually don't see a reason (doesn't have to mean anything, though) why you would skip using one of the trained matrices and take the cell state instead. I was just confused by the terminology. Thanks for your help.

@v1nc3nt27 Please close the issue if you think it is resolved. :)

Hi, using return_states=True and return_sequences=False I am able to get the value of the c and h. But after that I am doing model.fit() and then I want to print the values of c and h. But I am not being able to do that. I am only seeing tf.Tensor objects. I need to store these c and h values. Please help.

@sharod please elaborate your use case for storing the values of c and h and please provide some code that you are using.

@samre12 I need to store the value of c and h after training and store the model. So when I again load the model I need to initialize the states with the stored c and h. I need to do this during prediction as well. I need to predict on some test data and then store the resulting c and h. Again when i get more test data I need to load the model initialize the c and h with the stored values and continue with the prediction. My model is as follows:
inputs = Input(shape=(None,124))
lstm=LSTM(150, W_regularizer=l2(0.001), return_state=True)(inputs)
dense1=Dense(2)(lstm[0])
predictions=Activation("softmax")(dense1)
model= Model(inputs=inputs, outputs=predictions)
After that I am compiling the model and fitting it. The fitting line is as follows:
model.fit(X_train,Y_train,nb_epoch=100,batch_size=10,callbacks=callbacks_list,validation_data=(X_val, Y_val), verbose=1)
After this I need to store the values of c and h.

Hi. I have the same question. I think using a custom loss function is the way to go, but I couldn't get this working yet. Here is my example code:
def mymse(Yv, Yp):
    return K.mean(K.square(Yv-Yp), axis=-1)

def get_model(seqlg,depth):
	x = Input(shape=(seqlg,))
	y = Embedding(input_length=seqlg, input_dim=depth, output_dim=2)(x)
	z, sh, sc = LSTM(units=128, return_state=True)(y)
	z = Dense(1, activation='relu')(z)

	model = Model([x],[z,sh,sc])
	model.compile(loss=mymse, optimizer='rmsprop')
	return model

Basically you specify a model that returns the states (sh and sc), but this variables are not used for calculating the loss. As I said, not working yet.

I think I found a solution. We can simply define two models that share variables. The 1st model only returns the target variable. The 2nd model returns the states in addition to target. See:
def get_model(seqlg,depth):
	x = Input(shape=(seqlg,))
	y = Embedding(input_length=seqlg, input_dim=depth, output_dim=2)(x)
	z, sh, sc = LSTM(units=128, return_state=True)(y)
	z = Dense(1, activation='relu')(z)

	model1 = Model(input=[x],output=[z])
	model2 = Model(input=[x],output=[z,sh,sc])
	model1.compile(loss='mse', optimizer='rmsprop')
	return model1, model2

So you can do: model.fit(X,Y) for training and Y, Sh, Sc = model.predict(X) to retrieve the states related to a particular input X. Not sure there is a best way to do that though.

@streamride, thanks for the smart solution! Do you think this approach can give all the 'hidden states' for each time step during the training? I need to store all hidden states in an hdf5 file for investigating the dynamics of state changes and was wondering if I can use this approach or any other alternative. Thanks in advance!


[FR] Add static DHCP mappings as host aliases

Would be great if static DHCP mappings would automatically generate host aliases that could be used in the rule base.

timeout due to inactivity


April Iteration Plan

Work in Progress
We are still watching the community testing of the 1.0 version that we plan to ship in mid April (see #3555) but as we always do, we will continue to ship monthly.
We arrived at the following themes for April:

Reduce engineering debt.
Ramp up the work on the next major version.
Do some explorations.

For more information about our development process please refer to the development process page.
The April Test Plan is in progress.
Schedule
The goal is to make the April update available by the following dates.
End game dates (we end an iteration with an endgame)

Monday April 25th evening (GMT+1): freeze
Tuesday: test day
Wednesday: fix day
Thursday: fix day
Friday: Done: documentation, release notes update, bugs verified

We will start to update the insiders channel on a weekly basis as soon as the 1.0 version has shipped.
Plan Items

Mark
Description

:runner:
work in progress

:hand:
task is blocked

:muscle:
stretch goal for this iteration

Debt Items
This section lists items to reduce our engineering debt:

[ ] :runner: Warnings produced by problem matchers disappear when the working file is closed  #2047 @dbaeumer
[x] Remove deprecated JS language service code @jrieken
[x] Revive support for JS and TS in the Monaco standalone editor #4640 @jrieken
[ ] Progress on simplifying consumption of the Monaco editor @alexandrudima
[ ] Push hard coded JSON schema support into extensions @aeschli
[ ] Add onDebug activation event #3059 @isidorn

Feedback
Issues to address feedback from the community:

[ ] Editor: Indent guides #2192 @alexandrudima
[x] UI: Add support for line and column numbers in the Go To File feature #4650 @bpasero
[x] I18N: Command palette match support for non-ascii characters #4691 @bpasero
[x] Provide an option to stop scrolling revealing active file in explorer #3062 @bpasero
[x] Emmet: support to disable expansion on TAB @egamma
[ ] I18N: Support to filter the Command Palette by keywords 4679 @bpasero
[ ] API: Expose path constants #4525 @jrieken
[ ] API: Virtual documents provide descriptive label #2351 @jrieken
[ ] API: LanguageClient does not handle IntelliSense correctly for PowerShell static class methods #3153 @jrieken
[ ] API: Provide API to open a new folder #58  @bpasero
[ ] Git: Commit in the command palette #4471 @joaomoreno
[ ] Linux: Install improvements add RPM, Debian packages @tyriar
[ ] Linux: Notify user when a new update is available @tyriar
[ ] Cannot define multiple commands in tasks.json #981 @dbaeumer

Engineering
This section lists several engineering/development items that the team identified:

[x] Debug - Paging support for stack frames #4792 @weinand @isidorn

[x] Debug - Data inspection support for ES6 objects (sets, maps, promises, generators) @weinand

[x] Debug - Data inspection for large objects, strings for Node v4.x and v5.x @Microsoft/winappdriver-admin

[ ] :runner: Adopt - new extension/Marketplace query support to filter extensions #4849 @joaomoreno

[ ] :runner: Adopt - Electron 0.37.x #4199  @bpasero

Adopt - TS 2.0 (Deferred to May)

Initial investigations/explorations

[ ] UI - Support for tabs @bpasero
[ ] UI - Evolve extension installation UI #637 @joaomoreno
[ ] Debug -  C++ debug scenario to enable additional debug views (e.g. memory view) @isidorn
[ ] File watching on OS X and Linux, investigate into selective file watching instead of full workspace watching @bpasero
[ ] API - Use web view for html preview part #2414 @jrieken

Bugs
This section includes bug queries for the vscode related repositories:

vscode

For more information about our development process please refer to the development process page.

I'm surprised to not see https://github.com/Microsoft/vscode/issues/1703 here, it has April milestone assigned, I consider it a pretty important bug and it's been around since December....

@felixfbecker #1703 is listed in the Bugs section.

@weinand My bad

Just for the sake of clarity, the April release referred to here would be after 1.0 is released, correct?

Just for the sake of clarity, the April release referred to here would be after 1.0 is released, correct?

Correct, the April release will be available early May and the 1.0 release really soon.

I'm just wondering if it doesn't make sense to refer to it as the May release, as it will be released in May and not April. I've seen some confusion around this before.

Thank you! thank you for all the hard work and efforts to make VSCode amazing and it really is amazing, it's by far my favorite editor now. <3

Has the new insider release been published?

@else yeah, I just got the 1.1.0 Insider release yesterday

Hmm, I tried downloading it from here but that version tells me its build date is 26th of April.

It would be nice if you could mention #4702 in the release notes :)

Closing - stable is updated


Error: Invalid or corrupt jarfile /app.jar

I have setup the following Dockerfile. Everything seems to build fine but getting the error that it is corrupt.  I did verify that java 8 is set in the POM and manually executed the jar so I know it is working.  The other change is that I moved the Dockerfile to the project root.  Docker complains about any type of ../ being used to get a path.
Should this work?
FROM dockerfile/java:oracle-java8
VOLUME /tmp
ADD target/core-0.1.0-RELEASE.jar app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=local","/app.jar"]

It depends on the pom (which you don't show). Dockerfile ADD works relative to the Dockerfile, so for yours to work you need to copy the jar file to a "target" directory in "target/docker". The maven plugin allows you to do that with a <resources/> element.

I am actually using the IntelliJ to build the Docker Image.  So maven is not being used to build the image.  Are you saying that this is how the ADD should look? ADD target/core-0.1.0-RELEASE.jar target/app.jar

ok, got it to work.
FROM dockerfile/java:oracle-java8
VOLUME /tmp
ADD target/core-0.1.0-RELEASE.jar target/app.jar
RUN bash -c 'touch target/app.jar'
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=local","target/app.jar"]

Thanks for the pointer on the target  I am still learning Docker.  Finding it important for working with Spring Cloud at the desktop level.

Did you find a solution? I have the same problem.

For me when I was having the issue, all I did was put the JAR_FILE in the pom without the forward slash "/" and it worked.
<buildArgs>
           <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
</buildArgs>

Also my Dockerfile is like below

FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

FROM ibmjava:8
MAINTAINER "ashish<EMAIL_ADDRESS>RUN mkdir -p /var/log/java-web-app
EXPOSE 8080 8081
COPY  myjar.jar /opt/aws/
WORKDIR /opt/aws/
CMD ["java", "-jar","myjar.jar"]
this is my dockerfile, it built successfully but when  i want to run executable JAR the error occurred which is  INVALID OR CURRUPT JAR file,
pls help me...

@ashish3016 ... I am facing the same issue. Found any solutions?

This is what worked for me:
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
MAINTAINER<EMAIL_ADDRESS>


Updating from 4.2.1 to 5.1.0 introduces issue with MessageReceiver

Query/Question
Upgrading the extension nuget package from 4.2.1 to 5.1.0 resulted in IMessageReceiver and MessageReceiver in my function / class becoming unknown. I use this in order to be able to Complete and Deadletter messages according to our logic as some failures will never succeed so there's no point retrying.
I tried to fix this by installing the deprecated Microsoft.Azure.ServiceBus nuget package 5.2.0. This allows for the code to be compiled but running the function gives me the error:
Microsoft.Azure.WebJobs.Host: Error indexing method 'XXX'. Microsoft.Azure.WebJobs.Host: Can't bind parameter 'messageReceiver' to type 'Microsoft.Azure.ServiceBus.Core.MessageReceiver'.
The reason I use IMessageReceiver is for moq unit test purposes so I can assert that a message was completed/deadlettered as expected.

Whilst there is documentation on how to instantiate a MessageReceiver - I can't seem to find any reference to accessing it within the ServiceBusTriggered Function.
It doesn't seem like MessageReceiver is part of the newer Azure.Messaging.ServiceBus package as I explored using that as well.
Environment:

Microsoft.Azure.WebJobs.Extensions.ServiceBus 5.1.0
Azure Function App (but also fails locally)
-Visual Studio 16.11.5

Hi @jenp-jb,
The MessageReceiver has been replaced with ServiceBusMessageActions in version 5.0.0. Please have a look at our samples to see how this type is used.

@JoshLove-msft  So I have an internal property on my function that I set in the test with a mock so that I can verify completed or deadlettered was called as expected:

I did make some progress with the ServiceBusMessageActions but am struggling to find how to add the retryOptions to my host.json file.  For some reason Visual Studio is reporting invalid values (even if I use the example on the microsoft page) https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus#additional-settings-for-version-5x
For version 4.2.1 I was using:

But trying to add the clientRetryOptions like so:

gives me this warning (and doesn't have the desired impact on running my function)

@JoshLove-msft - I am also facing similar issue with being able to mock ServiceBusMessageActions for unit-testing purposes as it doesn't contain public parameter-less constructor.
I see that all of the methods on this ServiceBusMessageActions are virtual but, trying to mock  ServiceBusMessageActions class would result in an exception because of the lack of parameter-less ctor.

Most of the other SDK classes like ServiceBusClient or ServiceBusMessageReceiver have a parameter-less ctor to aid in unit-testing. Any chance of adding a parameter-less ctor? If not, can you please help with any alternate options to mock this class?
Appreciate your help, this is blocking us from migrating to .net6.0 and v4 azure functions.

Yes, it looks like we are missing the mocking constructor for the actions types - we will get this added in an upcoming release.

Yes, it looks like we are missing the mocking constructor for the actions types - we will get this added in an upcoming release.

Thank you, would it be possible to give an ETA on the next release cycle?

Yes, it looks like we are missing the mocking constructor for the actions types - we will get this added in an upcoming release.

Thank you, would it be possible to give an ETA on the next release cycle?

Will have to get back to you on this. When do you need this by?

@JoshLove-msft any ideas on my config errors I was getting or should I create a different thread?
Keen on knowing the ETA for the next release cycle too as that's a blocker for us upgrading.

Hi @jenp-jb, I will try to repro this and get back to you.

A new release is available with the constructors required for mocking - https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.ServiceBus/5.2.0
Regarding the schema validation, I was able to reproduce this and will look into getting this fixed.

MessageReceiver provided APIs to manually renew the message lock token using RenewMessageLockAsync. These APIs are no longer available under ServiceBusMessageActions. In our scenario, we renew the locks using these APIs as we find the auto-renewal not reliable when the infrastructure is under stress. The documentation doesn't state anything about it. Can someone kindly provide me guidance on how we can manually renew the message lock?


Cross compiling pysnmp package

I have a target machine which uses 32 BIT python. My pc is having 64 BIT python. I want to cross compile the pysnmp or any other python package for the target machine on my pc. Is there a way to specify the HOST when installing pysnmp using PIP command or  when installing using 'python setup.py install' or some other method?

PySNMP is purely written in Python, so it never requires cross compilation. What exactly was the issue you observe?


Create admin file "guidelines-for-spec-writing-and-formatting.md"

Bill, this was a document I created for you back in Jan/Feb. I just came across it and thought it would be useful to add to the repo, so others can see it.

Note for meeting: I don't think there have been changes since the last meeting, so we may wish to skip this.

Assigned to @RexJaeschke to address comments; I'm happy to then provide final review.


Update Anki Deck

importing a deck with the same name as an existing one, should provide the required behavior.


intermittent edit break for specific users

Django CMS = 3.1.1, 3.1.2, 3.1.3
Django = 1.6.5, 1.6.11
I could use any insights for debugging that anyone can give.
The problem is:

a user with proper access rights, who previously successfully edited a page, returns to a page, and attempts to edit it.
he logs in
he selects the page - in no-edit view, it loads fine
he goes to edit view - there is absolutely no page content - static content is there, but all content relevant to that particular page is missing.

Reverting versions does no good - any version is blank.
A user who is not stuck in this state can view and edit the page just fine.
When the problem occurs, it is stuck there for many repetitions.
Things that don't fix the problem:

server restarts
dumping and reloading the database
logging out logging in
upgrading django cms across the 3.1.X space
removing reversion
flushing the mysql cache

We have the same basic installation in vagrant dev boxes, a test server emulating all settings of the live (but with older data), and the live server - all three installations have seen this problem across 3 different variants of our other code bases.
Our data dumps from a MUCH smaller database taken from 9/13 do not have this problem
We haven't been able to find a trigger or a root cause.
The problem IS coming in intermittently, but over longish time spans.  For example:

2 weeks ago, all privileged users could edit the page
4 days ago - several users experienced the problem.  It was repeatable on more than 1/2 the pages of the site, but 2 pages worked fine for those users.  Problem was repeatable for hours.
today - in the morning the problem persisted in the 4 day ago state.
6 hours later - the problem is gone on the live site, but persists elsewhere.

I feel like I'm chasing a phantom here.  Any help would be appreciated.  I'm glad to give data dumps or anything else requested to see what can be done or if there's a best way to turn on debug logging to trace this.

Any chance you can try this is 3.1.4 and/or 3.2.0?

@bethlakshmi Hi, did you have a chance to try upgrade to a more recent cms version?


ESP32-S3 Error 261. Failed to get PoP from NVS, Please perform Claiming (MEGH-3185)

ESP-IDF version: Release 4.4
ESP device: ESP32-S3
LED_Light example
There are errors after Assisted Claiming:
I (742) esp_claim: Initialising Assisted Claiming. This may take time.
W (752) esp_claim: Generating the private key. This may take time.
I (18292) esp_rmaker_node: Node ID ----- 7CDFA1E121C4
I (18302) esp_rmaker_ota: OTA state = 2
I (18302) esp_rmaker_ota_using_params: OTA enabled with Params
I (18302) esp_rmaker_time_service: Time service enabled
I (18302) esp_rmaker_time: Initializing SNTP. Using the SNTP server: pool.ntp.org
I (18322) app_insights: Enable CONFIG_ESP_INSIGHTS_ENABLED to get Insights.
I (18322) esp_rmaker_core: Starting RainMaker Work Queue task
I (18332) esp_rmaker_work_queue: RainMaker Work Queue task started.
W (18332) BT_INIT: esp_bt_mem_release not implemented, return OK
I (18332) esp_claim: Waiting for assisted claim to finish.
I (18342) wifi_prov_scheme_ble: BT memory released
I (18352) app_wifi: Starting provisioning
E (18362) app_wifi: Error: 261. Failed to get PoP from NVS, Please perform Claiming.
E (18362) app_main: Could not start Wifi. Aborting!!!

BTW, there are some warnings during compilation:
warning: 'portENTER_CRITICAL_NESTED' is deprecated
warning: 'portEXIT_CRITICAL_NESTED' is deprecated
warning: 'vPortCPUInitializeMutex' is deprecated
warning: passing argument 2 of 'esp_rmaker_post_event' discards 'const' qualifier from pointer target type

PS: Try using rainmaker.py claim to write claiming dat to the chip, it seems the data is ignored and problem is still the same.

@eos1d3 , I just tried this with esp idf v4.4 release and esp-rainmaker master branch on an esp32s3. Erased the flashed and then used idf.py flash monitor. I get this output
I (697) esp_claim: Initialising Assisted Claiming. This may take time.
I (1007) esp_claim: Private key already exists. No need to re-initialise it.
I (1057) esp_rmaker_node: Node ID ----- 84F7038005F4
I (1057) esp_rmaker_ota: OTA state = 2
I (1057) esp_rmaker_ota_using_params: OTA enabled with Params
I (1057) esp_rmaker_time_service: Time service enabled
I (1067) esp_rmaker_time: Initializing SNTP. Using the SNTP server: pool.ntp.org
I (1077) app_insights: Enable CONFIG_ESP_INSIGHTS_ENABLED to get Insights.
I (1077) esp_rmaker_core: Starting RainMaker Work Queue task
I (1087) esp_rmaker_work_queue: RainMaker Work Queue task started.
W (1087) BT_INIT: esp_bt_mem_release not implemented, return OK
I (1097) esp_claim: Waiting for assisted claim to finish.
I (1107) wifi_prov_scheme_ble: BT memory released
I (1107) app_wifi: Starting provisioning
I (1117) phy_init: phy_version 302,3ddfab3,Dec  3 2021,14:39:12
I (1167) wifi:mode : sta (84:f7:03:80:05:f4)
I (1177) wifi:enable tsf
W (1177) BT_INIT: esp_bt_controller_mem_release not implemented, return OK
I (1177) BT_INIT: BT controller compile version [6881869]
I (1177) BT_INIT: Bluetooth MAC: 84:f7:03:80:05:f6

I (1187) protocomm_nimble: BLE Host Task Started
I (1197) NimBLE: GAP procedure initiated: stop advertising.

I (1197) NimBLE: GAP procedure initiated: advertise;
I (1207) NimBLE: disc_mode=2
I (1207) NimBLE:  adv_channel_map=0 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=256 adv_itvl_max=256
I (1217) NimBLE:

I (1227) wifi_prov_mgr: Provisioning started with service name : PROV_77d8bb
I (1227) app_wifi: Provisioning started
I (1237) esp_rmaker_local: Event 1
I (1237) app_wifi: Scan this QR code from the ESP RainMaker phone app for Provisioning.

  █▀▀▀▀▀█ ▄▄█   ▄█▄▄█▀▄▄▀█▄ █▀▀▀▀▀█
  █ ███ █ ▀▄  ▄  ██▀█▄  ▀▄▄ █ ███ █
  █ ▀▀▀ █ █▀█ █▀███ █▄ █▀▀█ █ ▀▀▀ █
  ▀▀▀▀▀▀▀ █ █▄▀ ▀ ▀▄▀ █▄█ █ ▀▀▀▀▀▀▀
  █▀ ▀ ▄▀▀▄▄ ██▀▄▀█▄  ▄█ ▀ ▄█▀▀▄▀▀▄
  ▀██▀▄▀▀█▀▄▄██▄█▄ ▀██▀█ ▄▄ ▄█    █
   ▄▀ █ ▀█▄▄▀█ ▀▀  ▀█▄ █▄█▄▀█ ▄▄ ▀█
  █▄██▀ ▀ ▄▀▀█ █   █▀  █▀▀█▀  ▄█ █▄
   █▄▀▄█▀ ▄▄▄ █▄▄ █▀█▀██  ▄█▀ ▀▀▄ ▀
  ▀▄█▄██▀ █  ▀█▀▀ ▀█▄▄▀██ ▄ █▄▄▄ ▀█
   ▄▄█▀█▀▀▄ █▄ ▀▀▀█▄▀▀▀▀▀▄█ ▄▄ █ ▄▄
  ▀██▀▄▄▀ ▀▄▀  █▄▄▀▀▀▀█▄▀▄▀█  ▄▄ ▀▀
  ▀  ▀ ▀▀ ██ ▄█▀  ▀▀▀▄▀██ █▀▀▀█▀ ▄▄
  █▀▀▀▀▀█ ▀█▄ █▄█ ▀█ ▄ █▀▀█ ▀ ██ █
  █ ███ █ ▄█▄▀▀▄█ █▀▀▀ ██ ▀████▀ ▄█
  █ ▀▀▀ █ ▄█ ▄▄▀▀▄▀█▀▄▄▄█ ▀  ▄▀█▀▀▀
  ▀▀▀▀▀▀▀ ▀    ▀▀    ▀ ▀  ▀ ▀ ▀▀ ▀

I (1437) app_wifi: If QR code is not visible, copy paste the below URL in a browser.
https://rainmaker.espressif.com/qrcode.html?data={"ver":"v1","name":"PROV_77d8bb","pop":"4eaddc87","transport":"ble"}
I (1457) app_wifi: Provisioning Started. Name : PROV_77d8bb, POP : 4eaddc87

So, it is hard to tell what the problem  could be. Can you double check that your flash was erased before you flashed the firmware. Can you double check that your partition table is right? It is printed on boot-up
I (46) boot: Partition Table:
I (49) boot: ## Label            Usage          Type ST Offset   Length
I (57) boot:  0 sec_cert         unknown          3f 06 0000d000 00003000
I (64) boot:  1 nvs              WiFi data        01 02 00010000 00006000
I (72) boot:  2 otadata          OTA data         01 00 00016000 00002000
I (79) boot:  3 phy_init         RF data          01 01 00018000 00001000
I (87) boot:  4 ota_0            OTA app          00 10 00020000 00190000
I (94) boot:  5 ota_1            OTA app          00 11 001b0000 00190000
I (101) boot:  6 fctry            WiFi data        01 02 00340000 00006000
I (109) boot: End of partition table

The board I am using is ESP32-S3-DevKitC-1, ordered from Espressif China directly.
This is my partition table:
I (55) boot: Partition Table:
I (59) boot: ## Label            Usage          Type ST Offset   Length
I (66) boot:  0 sec_cert         unknown          3f 06 0000d000 00003000
I (74) boot:  1 nvs              WiFi data        01 02 00010000 00006000
I (81) boot:  2 otadata          OTA data         01 00 00016000 00002000
I (89) boot:  3 phy_init         RF data          01 01 00018000 00001000
I (96) boot:  4 ota_0            OTA app          00 10 00020000 00190000
I (104) boot:  5 ota_1            OTA app          00 11 001b0000 00190000
I (111) boot:  6 fctry            WiFi data        01 02 00340000 00006000
I (119) boot: End of partition table

I do erase-flash not just once, but the problem is the same. Just tried again with new setup and still got the same problem.
I (692) wifi_init: rx ba win: 6
I (702) wifi_init: tcpip mbox: 32
I (702) wifi_init: udp mbox: 6
I (702) wifi_init: tcp mbox: 6
I (712) wifi_init: tcp tx win: 5744
I (712) wifi_init: tcp rx win: 5744
I (722) wifi_init: tcp mss: 1440
I (722) wifi_init: WiFi IRAM OP enabled
I (722) wifi_init: WiFi RX IRAM OP enabled
I (742) esp_rmaker_work_queue: Work Queue created.
I (742) esp_claim: Initialising Assisted Claiming. This may take time.
W (752) esp_claim: Generating the private key. This may take time.
I (4772) esp_rmaker_node: Node ID ----- 7CDFA1E121C4
I (4782) esp_rmaker_ota: OTA state = 2
I (4782) esp_rmaker_ota_using_params: OTA enabled with Params
I (4782) esp_rmaker_time_service: Time service enabled
I (4782) esp_rmaker_time: Initializing SNTP. Using the SNTP server: pool.ntp.org
I (4792) app_insights: Enable CONFIG_ESP_INSIGHTS_ENABLED to get Insights.
I (4802) esp_rmaker_core: Starting RainMaker Work Queue task
I (4802) esp_rmaker_work_queue: RainMaker Work Queue task started.
W (4802) BT_INIT: esp_bt_mem_release not implemented, return OK
I (4812) esp_claim: Waiting for assisted claim to finish.
I (4822) wifi_prov_scheme_ble: BT memory released
I (4832) app_wifi: Starting provisioning
E (4842) app_wifi: Error: 261. Failed to get PoP from NVS, Please perform Claiming.
E (4842) app_main: Could not start Wifi. Aborting!!!

I found other has the same problem from ESP32.com:
https://www.esp32.com/viewtopic.php?f=25&t=25649

My board shall be  ESP32-S3-DevKitC-1-N32R8V (32MB Flash, 8MB PSRAM)
Can the large flash size cause the problem? See the two warnings below:
I (491) heap_init: Initializing. RAM available for dynamic allocation:
I (498) heap_init: At 3FCA1B38 len 0003E4C8 (249 KiB): D/IRAM
I (505) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (511) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (517) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (525) spi_flash: detected chip: mxic
W (528) spi_flash: Detected flash size > 16 MB, but access beyond 16 MB is not supported for this flash model yet.
I (539) spi_flash: flash io: dio
W (543) spi_flash: Detected size(32768k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
I (557) sleep: Configure to isolate all GPIO pins in sleep state
I (563) sleep: Enable automatic switching of GPIO sleep configuration``

@eos1d3 The flash related warning just says "access beyond 16 MB is not supported for this flash model" which I suppose should be fine since the partition table is for 4MB. Can you enable debug logs and see what additional information it gives? You can do so using: idf.py menuconfig -> Component config -> Log output -> Default log verbosity -> Debug

@eos1d3 , can you pull the latest esp-idf and esp-rainmaker and retry? This commit in esp-idf should help resolve this issue.

@shahpiyushv I just made clean installation of IDF master and esp-rainmaker. Tested with led_light example and erase flash before flashing new binary. It gives the same problem. But I am seeing other warnings:
W (460) flash HPM: Enter HPM by reconfiguring dummy has not been fully tested
E (460) flash HPM: Flash high performance mode hasn't been supported

Warning: checksum mismatch between flashed and built applications. Checksum of built application is 01496fd2958f649a7881bca3d5fbca78d4e441c08c3b99d397610b2bce5ec171

And the same HPM error happens in blink example too.  Does my board (ESP32-S3-DevKitC-1-N32R8V, 32MB Flash, 8MB PSRAM) has new EEPROM which is not yet supported?
The full log here:
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x18 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fcd0110,len:0x18d0
load:0x403b6000,len:0xb70
load:0x403b9000,len:0x319c
entry 0x403b6240
I (33) boot: ESP-IDF v5.0-dev-2046-g5963de1caf 2nd stage bootloader
I (33) boot: compile time 11:40:55
I (33) boot: chip revision: 0
I (36) boot.esp32s3: Boot SPI Speed : 80MHz
I (41) boot.esp32s3: SPI Mode       : SLOW READ
I (47) boot.esp32s3: SPI Flash Size : 4MB
I (51) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (68) boot:  0 sec_cert         unknown          3f 06 0000d000 00003000
I (75) boot:  1 nvs              WiFi data        01 02 00010000 00006000
I (82) boot:  2 otadata          OTA data         01 00 00016000 00002000
I (90) boot:  3 phy_init         RF data          01 01 00018000 00001000
I (97) boot:  4 ota_0            OTA app          00 10 00020000 00190000
I (105) boot:  5 ota_1            OTA app          00 11 001b0000 00190000
I (112) boot:  6 fctry            WiFi data        01 02 00340000 00006000
I (120) boot: End of partition table
I (124) boot: No factory image, trying OTA 0
I (129) esp_image: segment 0: paddr=00020020 vaddr=3c0e0020 size=3ed6ch (257388) map
I (198) esp_image: segment 1: paddr=0005ed94 vaddr=3fc979d0 size=01284h (  4740) load
I (200) esp_image: segment 2: paddr=00060020 vaddr=42000020 size=dce00h (904704) map
I (417) esp_image: segment 3: paddr=0013ce28 vaddr=3fc98c54 size=03b90h ( 15248) load
I (421) esp_image: segment 4: paddr=001409c0 vaddr=40374000 size=139c4h ( 80324) load
I (444) esp_image: segment 5: paddr=0015438c vaddr=50000000 size=00010h (    16) load
I (453) boot: Loaded app from partition at offset 0x20000
I (481) boot: Set actual ota_seq=1 in otadata[0]
I (481) boot: Disabling RNG early entropy source...
W (492) flash HPM: Enter HPM by reconfiguring dummy has not been fully tested
E (492) flash HPM: Flash high performance mode hasn't been supported
I (495) cpu_start: Pro cpu up.
I (499) cpu_start: Starting app cpu, entry point is 0x40375428
0x40375428: call_start_cpu1 at /Users/andy/esp/esp-idf/components/esp_system/port/cpu_start.c:152

I (0) cpu_start: App cpu up.
I (521) cpu_start: Pro cpu start user code
I (521) cpu_start: cpu freq: 160000000 Hz
I (521) cpu_start: Application information:
I (524) cpu_start: Project name:     led_light
I (529) cpu_start: App version:      1.0
I (534) cpu_start: Compile time:     Mar 17 2022 11:40:47
I (540) cpu_start: ELF file SHA256:  1a73b8f421cba5f9...
I (546) cpu_start: ESP-IDF:          v5.0-dev-2046-g5963de1caf
I (552) heap_init: Initializing. RAM available for dynamic allocation:
I (559) heap_init: At 3FCA2588 len 0003DA78 (246 KiB): D/IRAM
I (566) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (572) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (579) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (586) spi_flash: detected chip: mxic
W (589) spi_flash: Detected flash size > 16 MB, but access beyond 16 MB is not supported for this flash model yet.
I (601) spi_flash: flash io: dio
W (604) spi_flash: Detected size(32768k) larger than the size in the binary image header(4096k). Using the size in the binary image header.
I (618) sleep: Configure to isolate all GPIO pins in sleep state
I (625) sleep: Enable automatic switching of GPIO sleep configuration
I (632) coexist: coexist rom version e7ae62f
I (637) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (659) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (679) pp: pp rom version: e7ae62f
I (679) net80211: net80211 rom version: e7ae62f
I (699) wifi:wifi driver task: 3fce60b8, prio:23, stack:6656, core=0
I (699) system_api: Base MAC address is not set
I (699) system_api: read default base MAC address from EFUSE
I (709) wifi:wifi firmware version: 1948a1c
I (709) wifi:wifi certification version: v7.0
I (709) wifi:config NVS flash: enabled
I (709) wifi:config nano formating: disabled
I (719) wifi:Init data frame dynamic rx buffer num: 32
I (719) wifi:Init management frame dynamic rx buffer num: 32
I (729) wifi:Init management short buffer num: 32
I (729) wifi:Init dynamic tx buffer num: 32
I (739) wifi:Init static tx FG buffer num: 2
I (739) wifi:Init static rx buffer size: 1600
I (739) wifi:Init static rx buffer num: 10
I (749) wifi:Init dynamic rx buffer num: 32
I (749) wifi_init: rx ba win: 6
I (759) wifi_init: tcpip mbox: 32
I (759) wifi_init: udp mbox: 6
I (759) wifi_init: tcp mbox: 6
I (769) wifi_init: tcp tx win: 5744
I (769) wifi_init: tcp rx win: 5744
I (779) wifi_init: tcp mss: 1440
I (779) wifi_init: WiFi IRAM OP enabled
I (779) wifi_init: WiFi RX IRAM OP enabled
I (799) esp_rmaker_work_queue: Work Queue created.
I (799) esp_claim: Initialising Assisted Claiming. This may take time.
W (809) esp_claim: Generating the private key. This may take time.
I (10319) esp_rmaker_node: Node ID ----- 7CDFA1E121C4
I (10329) esp_rmaker_ota: OTA state = 2
I (10329) esp_rmaker_ota_using_params: OTA enabled with Params
I (10329) esp_rmaker_time_service: Time service enabled
I (10329) esp_rmaker_time: Initializing SNTP. Using the SNTP server: pool.ntp.org
I (10349) app_insights: Enable CONFIG_ESP_INSIGHTS_ENABLED to get Insights.
I (10349) esp_rmaker_core: Starting RainMaker Work Queue task
I (10359) esp_rmaker_work_queue: RainMaker Work Queue task started.
W (10359) BT_INIT: esp_bt_mem_release not implemented, return OK
I (10359) esp_claim: Waiting for assisted claim to finish.
I (10369) wifi_prov_scheme_ble: BT memory released
I (10379) app_wifi: Starting provisioning
E (10389) app_wifi: Error: 261. Failed to get PoP from NVS, Please perform Claiming.
E (10389) app_main: Could not start Wifi. Aborting!!!

abort() was called at PC 0x4200863c on core 0
0x4200863c: app_main at /Users/andy/esp/esp-rainmaker/examples/led_light/main/app_main.c:139 (discriminator 3)

Backtrace:0x40375d9a:0x3fcf39100x4037e245:0x3fcf3930 0x40385412:0x3fcf3950 0x4200863c:0x3fcf39c0 0x420dcaf9:0x3fcf3a00 0x40381cbe:0x3fcf3a20
0x40375d9a: panic_abort at /Users/andy/esp/esp-idf/components/esp_system/panic.c:403

0x4037e245: esp_system_abort at /Users/andy/esp/esp-idf/components/esp_system/esp_system.c:135

0x40385412: abort at /Users/andy/esp/esp-idf/components/newlib/abort.c:46

0x4200863c: app_main at /Users/andy/esp/esp-rainmaker/examples/led_light/main/app_main.c:139 (discriminator 3)

0x420dcaf9: main_task at /Users/andy/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/port_common.c:127 (discriminator 2)

0x40381cbe: vPortTaskWrapper at /Users/andy/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:141

ELF file SHA256: 1a73b8f421cba5f9

Rebooting...
?ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x18 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375a40
0x40375a40: esp_restart_noos at /Users/andy/esp/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:151 (discriminator 1)

SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fcd0110,len:0x18d0
load:0x403b6000,len:0xb70
load:0x403b9000,len:0x319c
entry 0x403b6240

@eos1d3 , have you checked if the nvs and wifi provisioning examples from esp-idf work fine on your board? Here are the pointers:
https://github.com/espressif/esp-idf/tree/master/examples/storage/nvs_rw_blob
https://github.com/espressif/esp-idf/tree/master/examples/storage/nvs_rw_value
https://github.com/espressif/esp-idf/tree/master/examples/provisioning/wifi_prov_mgr : try reboot after this and check if device reconnects.

For nvs_rw_blob, after pressing boot button, the restart counter is always 0.  Log is here:
I (33) boot: ESP-IDF v5.0-dev-2046-g5963de1caf 2nd stage bootloader
I (33) boot: compile time 15:27:14
I (33) boot: chip revision: 0
I (36) boot.esp32s3: Boot SPI Speed : 80MHz
I (41) boot.esp32s3: SPI Mode       : SLOW READ
I (47) boot.esp32s3: SPI Flash Size : 2MB
I (51) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (60) boot: ## Label            Usage          Type ST Offset   Length
I (68) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (75) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (82) boot:  2 factory          factory app      00 00 00010000 00100000
I (90) boot: End of partition table
I (94) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=0915ch ( 37212) map
I (111) esp_image: segment 1: paddr=00019184 vaddr=3fc90f00 size=02b60h ( 11104) load
I (115) esp_image: segment 2: paddr=0001bcec vaddr=40374000 size=0432ch ( 17196) load
I (124) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=1bd70h (114032) map
I (155) esp_image: segment 4: paddr=0003bd98 vaddr=4037832c size=08bcch ( 35788) load
I (165) esp_image: segment 5: paddr=0004496c vaddr=50000000 size=00010h (    16) load
I (170) boot: Loaded app from partition at offset 0x10000
I (171) boot: Disabling RNG early entropy source...
W (185) flash HPM: Enter HPM by reconfiguring dummy has not been fully tested
E (185) flash HPM: Flash high performance mode hasn't been supported
I (189) cpu_start: Pro cpu up.
I (192) cpu_start: Starting app cpu, entry point is 0x40375124
0x40375124: call_start_cpu1 at /Users/andy/esp/esp-idf/components/esp_system/port/cpu_start.c:152

I (0) cpu_start: App cpu up.
I (214) cpu_start: Pro cpu start user code
I (214) cpu_start: cpu freq: 160000000 Hz
I (214) cpu_start: Application information:
I (217) cpu_start: Project name:     nvs_rw_blob
I (222) cpu_start: App version:      v5.0-dev-2046-g5963de1caf
I (229) cpu_start: Compile time:     Mar 18 2022 15:27:06
I (235) cpu_start: ELF file SHA256:  7d24392957dd1ab8...
I (241) cpu_start: ESP-IDF:          v5.0-dev-2046-g5963de1caf
I (248) heap_init: Initializing. RAM available for dynamic allocation:
I (255) heap_init: At 3FC94480 len 0004BB80 (302 KiB): D/IRAM
I (261) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (268) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (274) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (281) spi_flash: detected chip: mxic
W (285) spi_flash: Detected flash size > 16 MB, but access beyond 16 MB is not supported for this flash model yet.
I (296) spi_flash: flash io: dio
W (300) spi_flash: Detected size(32768k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (314) sleep: Configure to isolate all GPIO pins in sleep state
I (320) sleep: Enable automatic switching of GPIO sleep configuration
I (327) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
Restart counter = 0
Run time:
Nothing saved yet!
I (390) gpio: GPIO[0]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0

For nvs_rw_value, it is the same.  The counter is not increased and I never see "Restart counter = 1".
For wifi_prov_mgr, after scanning QR Code, it failed at this screen:
https://i.postimg.cc/tRtVjDN7/2022-03-18-15-52-15.jpg

@shahpiyushv
Please see https://github.com/espressif/esp-idf/issues/8547#issuecomment-1072302537
My board is ESP32-S3 N32R8V, with a V which uses 1.8V SPI flash, compared to 3.3V SPI in other N8R8 SoC. This can be the compatibility problem. And I suspect the board has some other design issue as the RGB LED is not working as well.

Hi.. Guys
Hi.. @shahpiyushv
I'm also facing a similar issue As my board is ESP32-S3-DevKitC-1 N32R8V with 32MB Flash & 8MB of the PSRAM
For the instance, it's not generating the QRCode for the provisioning
I'm using a switch example from the rainmaker SDK
IDF version is V4.4
What will be the solution?
Thanks
Mahendra


Preferred label policy

From<EMAIL_ADDRESS>on January 13, 2012 14:07:31
See discussion in http://groups.google.com/group/bfo-owl-devel/browse_thread/thread/9527351b8a7e2d58/0b7617e1221c9a66 Proposal: The principle is that when reading a r b, we get an english sentence, which is what  motivates the verb "is".  Include alternative  terms, with the verb, and without verb but with underscores instead of spaces.
Original issue: http://code.google.com/p/bfo/issues/detail?id=17

From<EMAIL_ADDRESS>on January 13, 2012 11:14:16
Labels: -Type-Defect Type-BFO2-design

From<EMAIL_ADDRESS>on April 29, 2012 02:19:13
This is now resolved, using the label form that includes the verb as the preferred label, in the latest working group version of BFO 2 in OWL.
Is there any further action needed on this tracker?
Status: Started

From<EMAIL_ADDRESS>on April 29, 2012 15:10:57
Resolution is something that happens when the group makes a decision, not when an individual edits a particular version of a document.  As much as I like the proposal and this way of handling it, having proposed it, a review of the email trail shows there is not yet consensus about the matter. I suggest the issue be brought up at our upcoming meeting or subsequent one.
It is also misleading to suggest that there is a latest working group version of BFO2 in OWL. That is another unresolved issue, and the hope is that at our upcoming call we can work towards remedying that.

From<EMAIL_ADDRESS>on May 07, 2012 09:55:00
Compare to reference and fix reference if necessary
Labels: -Type-BFO2-design Type-BFO2-Reference


VSC 10.6 does not allow to attach debugger to running Electron app (working great with 10.3)

VSC 10.6 does not allow to attach the debugger to a running Electron (0.36.2) app.
I was able to downgrade VSC by downloading from here to version 10.3: https://github.com/Microsoft/vscode/wiki/Previous-Releases.
VSC 10.3 is allowing to attach the debugger to a running Electron app  with these simple settings:
{
"name": "Attach",
"request": "attach",
"type": "node",
// TCP/IP address. Default is "localhost".
//"address": "localhost",
// Port to attach to.
"port": 5858,
"sourceMaps": false
}
Thanks for your support.

CC @weinand

@rscharnetzki could you please try to use a different port than 5858. Does it make a difference?

I tested it now with Port 5859. Same issue as before, this does not fix it. VSC 10.6 will not complain when I am attaching the debugger to the running Electron app, it looks as if the debugger is properly attached but it will never stop at any break-point. VSC 10.5 is showing the same behavior as 10.6. Some change between 10.3 and 10.5 seems to be causing this.
Thanks again for looking into this.
{
"name": "Attach",
"request": "attach",
"type": "node",
// TCP/IP address. Default is "localhost".
//"address": "localhost",
// Port to attach to.
"port": 5859,
"sourceMaps": false
}

@rscharnetzki what is your Electron setup? Do you have reproducible steps?

@rscharnetzki I have working debugging of electron 0.36.0 and VSCode 0.10.6. My launch.json is
{
	"name": "Run App",
	"type": "node",
	"program": "./build/background.js",
	"stopOnEntry": false,
	"args": [],
	"cwd": ".",
	"runtimeExecutable": "./node_modules/electron-prebuilt/dist/electron.exe",
	"runtimeArgs": [],
	"env": {
		"NODE_ENV": "development"
	},
	"sourceMaps": false,
	"outDir": null
}

File background.js is file where i create "main process" Main window.
This will allow me to debug "Main process". BUT does not work for "renderer process". I dont know how to configure it (or if its possible) to be able to debug also "renderer process".

I'm having the same problem with my express app. Attach debugging stopped working when i updated to version 0.10.5. Launch debug seems to be working correctly.

I am also experiencing this problem with VSCode 0.10.6 & Electron 0.36.4 on Win7 x64.

+1

My current workaround is to debug the code under developer tools :-(

I've tried to reproduce the problem in VS Code 0.10.6 (but couldn't). Here is what worked for me (on OS X).
From a command line:
git clone https://github.com/atom/electron-quick-start
cd electron-quick-start
npm install
./node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron --debug-brk main.js

My VS Code launch config looks like this:
{
	"name": "Attach",
	"type": "node",
	"request": "attach",
	"port": 5858
}

Then I set a breakpoint in main.js:18 and and started the "Attach" session. I first stopped in init.js:1 and after a single "continue" I hit the breakpoint in main.js.
Please note: I'm starting electron with "--debug-brk" to make sure that breakpoints in startup code get properly registered. When starting electron with "--debug"only, it will run over the main.js code before VS Code has a chance to register the breakpoint in main.js.
BTW, here is the "launch" config for electron:
{
	"name": "Launch",
	"type": "node",
	"request": "launch",
	"program": "${workspaceRoot}/main.js",
	"stopOnEntry": false,
	"args": [],
	"cwd": "${workspaceRoot}",
	"runtimeExecutable": "${workspaceRoot}/node_modules/electron-prebuilt/dist/Electron.app/Contents/MacOS/Electron",
	"runtimeArgs": [
		"--nolazy"
	],
	"env": {
		"NODE_ENV": "development"
	}
}

Here it is not necessary to set stopOnEntry to true in order to get the breakpoint in main.js hit because VS Code behind the scenes always launches the debugger with "--debug-brk".

I did exactly what you said and it's still not working. The debugger stop on the first line but never stop on any breakpoint after hitting "Continue". The only difference with you that i can see is that i'm on Windows 7.

@lpproulx what exact command are you using to launch electron in debug mode?

I'm not using electron. I have a simple http server starting an express app. I'm using nodemon with this command: "nodemon --debug-brk".
I also tried with a more traditional "node local.js --debug-brk".
What is strange is that the same command was working fine is 0.10.3

@lpproulx what version of node are you using?

4.2.3

@lpproulx and if you try to "launch" your express app from VS Code instead of "attach" does it make a difference?

Yes it's working fine with the "launch" config

I reinstalled the 0.10.3 version and attach seem to be working fine

@lpproulx I can reproduce this problem on Windows 7. I don't know yet what the culprit is, but I've already verified that it will be fixed in the upcoming January drop.

thank you!