Impossible to install ghc-mod

When I entered this line in my terminal as indicated in the ReadMe :
stack install ghc-mod hoogle hasktags pointfree pointful cabal-install
I received this error :

Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for ghc-mod-<IP_ADDRESS>:
Cabal-<IP_ADDRESS> from stack configuration does not match >=1.18 && <1.25  (latest matching version
is <IP_ADDRESS>)
base-<IP_ADDRESS> from stack configuration does not match >=<IP_ADDRESS> && <4.10  (latest matching
version is <IP_ADDRESS>)
cabal-helper must match <0.8 && >=<IP_ADDRESS>, but the stack configuration has no specified version
(latest matching version is <IP_ADDRESS>)
extra-1.6.8 from stack configuration does not match <1.6 && >=1.4  (latest matching version
is 1.5.3)
ghc-8.2.2 from stack configuration does not match >=7.6 && <8.2
haskell-src-exts-1.20.2 from stack configuration does not match <1.20 && >=1.18  (latest
matching version is 1.19.1)
hlint-2.1.6 from stack configuration does not match <2.1 && >=2.0.8  (latest matching version
is 2.0.15)
monad-journal-0.8.1 from stack configuration does not match <0.8 && >=0.4  (latest matching
version is 0.7.2)
optparse-applicative-<IP_ADDRESS> from stack configuration does not match >=<IP_ADDRESS> && <0.14
(latest matching version is <IP_ADDRESS>)
needed since ghc-mod is a build target.
In the dependencies for pointfree-<IP_ADDRESS>:
base-<IP_ADDRESS> from stack configuration does not match >=4.5 && <4.10  (latest matching version
is <IP_ADDRESS>)
haskell-src-exts-1.20.2 from stack configuration does not match >=1.18 && <1.20  (latest
matching version is 1.19.1)
needed since pointfree is a build target.
In the dependencies for pointful-<IP_ADDRESS>:
haskell-src-exts-simple must match >=1.18 && <1.20 || ^>=1.20, but the stack configuration has
no specified version  (latest matching version is <IP_ADDRESS>)
needed since pointful is a build target.
Some different approaches to resolving this:

Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some
working build configuration. This can be convenient when dealing with many complicated
constraint errors, but results may be unpredictable.

Recommended action: try adding the following to your extra-deps
in C:\sr\global-project\stack.yaml:

Cabal-<IP_ADDRESS>
base-<IP_ADDRESS>
cabal-helper-<IP_ADDRESS>
extra-1.5.3
haskell-src-exts-1.19.1
haskell-src-exts-simple-<IP_ADDRESS>
hlint-2.0.15
monad-journal-0.7.2
optparse-applicative-<IP_ADDRESS>

Plan construction failed.

I found that the reason is that I had to put an older version of the resolver lts in stack.yaml :
resolver: lts-9.9
Maybe you should add it in your readme. It is also mentioned in here :
https://atom-haskell.github.io/core-packages/haskell-ghc-mod/#maintain-a-separate-ghc-mod-installation-for-each-stack-resolver

Later stack versions (and resolvers) install packages per-resolver globally, regardless of if you run stack build ghc-mod in stack project directory or not. Not sure which version changed that, but stack 1.0.2 with lts-5.6 resolver does that.

If you’re trying to get ghc-mod working with ghc 8.3, my advice would be to use the version of ghc-mod bundled with haskell-ide-engine. https://github.com/haskell/haskell-ide-engine

Indeed, this is just a bundle of packages to get quickly started.
Another way to keep ghc-mods per GHC is to use stack build --copy-compiler-tool ghc-mod with your resolver. This will not put the ghc-mod in your global bin, but put it in a compiler specific bin. Meaning stack exec ghc-mod in a project using GHC 8.2.2 will find the one built for 8.2.2 and stack exec ghc-mod in a project for 8.0.2 will find that one.
Of course, you'll have to build it for the GHC version the first time you use it, or just find a build them immediately with fitting resolvers.

It seems possible to install ghc-mod with
stack --resolver lts-9.21 install ghc-mod

Going with an explicit resolver is probably the best way forward.
I'll close this issue to do a little housekeeping. Also, the Haskell IDE landscape has changed significantly since this, and I would recommend people check out ghcide (or HIE) instead of using ghc-mod :)


Chat and chatrooms

I've started work on providing chat. I'm following this tutorial: https://gearheart.io/blog/creating-a-chat-with-django-channels/.
For now I've provided a websocket connection and a simply chat room model. Right now the chat room is displayed in the uniformed_view, which was modified(I've added
 tag to provide new line - it's a poor solution) as well as index in user view(to which i added  chat_rooms = ChatRoom.objects.order_by("room_name") line to provide a possibility to display all rooms).
I've updated the requirements so it passes the Travis build, however if you run it locally the below command may by found necessary:
sudo apt-get install redis-server

I've provided the next update on developing the chat feature. For now the most basic part of chat backend is completed. It's possible to join and leave rooms through websocket, by clicking the name of room on the main website.
If you check your browser log you will see information encoded in json about leaving or joining the room. Currently, very basic front end is provided by java script - however it should be changed. Sending and receiving message is possible, but to see message content you have to check browser log.
Still chat is only shown in the uniformed_view.html (it would be good to create a base template in which chat window is provided). New chats are appearing beetween these tags

TO DO:

Create the front-end
Create the Direct Messages
Create and deleting chat rooms by users
Create chatroom only for selected position or invited users

I've provided functionality allowing logged users to create chat rooms. Chat view is now based on .js file provided by @Pawlllosss and should be modified in future. We'll have to modify a ChatForm in forms.py to add functionality such as creating chatroom only for selected position etc. And of course, frontend.

Created basic fronted for chat-room. It displays author messages and information about joining and leaving room on the right and messages from other users on the left.
TO DO:

Hide java variables from HTML (now it's not injection proof)
Display chat in the new window
Modify css so messages about joining and leaving room will be displayed in different colour.

Good job!


Endless Loop

There is an Endless Loop at
lt_bla =  SELECT RIGHT( carrid,  4  )  FROM sflight;

Solved with this commit


[release-1.8] Fix image pull

- What I did
Fixed a nasty bug in resolving image names to use when pulling
- How I did it
vim
- How to verify it
run the unit tests
- Description for the changelog

This also bumps to v1.8.2

LGTM
@nalind PTAL

Welcome to the release of CRI-O v1.8.2!
This new CRI-O minor release fixes an issue in resolving image names when multiple
additional registries are configured.
Please try out the release binaries and report any issues at
https://github.com/kubernetes-incubator/cri-o/issues.
Contributors

Antonio Murdaca
Daniel J Walsh
Mrunal Patel
Wei Wei

Changes

666f34d77 version: bump to v1.8.2
da2e1351d image_pull: fix image resolver
b9ddd2559 Merge pull request #1169 from mrunalp/pid_ns
d6ebe5d48 Merge pull request #1174 from runcom/fix-cve-1.8
fc18f2ba3 version: bump v1.8.2-dev
3ad5a156b share pid namespace for Pod container

Dependency Changes
Previous release can be found at v1.8.1

-> v1.0.0 github.com/pmezard/go-difflib
-> 4d4bfba8f1d1027c4fdbe371823030df51419987 github.com/stretchr/testify

/test all
/test ami

/test e2e_fedora
/test ami_fedora

/test e2e_fedora


Feature Request: Sync with active document

The new F# side project explorer button is great :) Would you be able to add a button/keyboard shortcut that acts like the "Sync with Active Document" in VS2017 and highlights the active file in the project explorer?

Something like that, and code for it is already merged. Unfortunatly due to some bugs on Code side we can't enable feature yet.


User authentification

Find a way to authenticate the user on a device.

First we have to discuss with David Maimon, if we will allow multiple users on one device.

Done.


Spotify Controller

control Spotify by applescripts hooks and has search options with Spotify api for tracks, artists, albums and playlists.
also get information, share link and status about song that is playing.

There's some test of Spotify Controller

Spotify Basic Controls

Spotify Extra options

Awesome! Seems to be working great for me.

Dear @mahi97, it's come to our attention that the code that was contributed to this pull-request may be heavily inspired (maybe lifted) by @hnarayanan who has a Spotify via command line tool called shpotify (compare the two).
The main concern is that if this was copied, we violated the copyright request in the original code. I'm working with @hnarayanan to sort out a good solution.
My assumption, @mahi97, is that you misunderstood the copyright/copy usage in the spirit of it being open source.

Yes, the origin of this code is from @hnarayanan, that I just made a small change in it, at first I create a pull request for the shpotify repo but I guess the project was in the middle of a change here, and in the other hand after I saw Itunes plug-in in oh-my-zsh I've thought that moving my pull request from shpotify to this repo will be good help for a great amount of developers that currently using oh-my-zsh.
I'm really sorry for violating copyright, it was my very first contribution and I don't have enough knowledge to do it right.
Please tell me, If is there anything that I can/should do to help this situation.

Thank you for acknowledging this. I understand that you were new to this process and weren’t aware of the specific copyright terms of the original project. 😊
You do not need to do anything, I have independently submitted a PR to this project that both updates the source code to a recent version and adds the relevant copyright permission notice.
Now that I know that this fork exists in the oh-my-zsh project, I will do my best to keep it up to date with the parent project. But you can definitely help with that in the future if you would like to!

Thank you very much, I'll be so glad 😀


Redact secrets in Misk config admin dashboard

Misk has since 2018 been missing Secret class redaction for the Config tab, which resulted in the Config tab being disabled in real environments given secrets leaking concerns. This change adds proper redaction of the class and makes it safe to include by default going forward.
Notably any Secret within a service config will be redacted in addition to any named passphrase or password as was previously implemented. Additionally, services can bind their own redaction keys as needed.

[x] Add tests
[x] Get review from security
[ ] Add tests that new redaction annotations don't change access within code

Am I understanding correctly that you've changed direction now and are using an annotation to opt into redaction of fields as oppose to applying a regex match to yaml keys?
I like the approach of building the primitives to perform redaction more effectively.

@cconroy want to do a final review? I think it's ready to merge and test with a few services before eventually changing the default config tab mode to SHOW_REDACTED_EFFECTIVE_CONFIG.


Update sbt, scripted-plugin to 1.10.3

About this PR
📦 Updates

org.scala-sbt:sbt
org.scala-sbt:scripted-plugin

from 1.10.2 to 1.10.3
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-sbt" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-sbt" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, version-scheme:early-semver, commit-count:1

Superseded by #562.


ض is repeated twice

ض is repeated twice in Arabic - for /ṣ/ and /ḍ/. The former should be ص.
This leads to  /ص/ not being transliterated at all.
V

I've made a pull-request that fixes this; meantime https://github.com/pseudomonas/gimeltra should work.


CHtmlEditCtrl documentation is unprecise

The CHtmlEditCtrl provides Web Browser functionality for MFC applications.
Can the documentation be specified, which browser is used technicaly?
Is it the old Internet Expolorer, or the new Edge (on Chromium basis)?
Thanks for your time!

@WowItsDoge
Good question. I haven't heard from the product team about this, but I'd recommend you consider all the existing MFC HTML classes to be deprecated. I wouldn't recommend using the native MFC web controls unless you're rendering HTML 3 or possibly HTML 4. The best way to create modern web controls is through the WebView2 runtime interface. We have some content on Getting started with WebView2 that you might find useful.
Speaking directly to your question, it's difficult to document the existing MFC HTML classes as corresponding to a particular browser. Technically, the web controls aren't loaded from an installed browser. The MFC classes instead use COM interfaces supplied by the Windows MSHTML.DLL and SHDOCVW.DLL system components. On a recent copy of Windows 10, the CHtmlView-loaded web browser control sends a user agent string that makes it look like Internet Explorer 7, with no JS support to speak of. Far too much code relies on these interfaces for them to go away, but the underlying technology may change in the future. That's why I'm hesitant to add anything about the technology in these docs - it relies on Windows components that are subject to change without notice, and aren't part of the MFC library. So, I'm closing the issue.

Thank you for your answer!


onboarding - failing to complete activation on an @sign with a capital letter

Describe the bug
There are some atsigns that people got before we stopped allowing them to enter capital letters into the atsign generator. While looking into something, I found that I am not able to activate @Shava.
To Reproduce
Steps to reproduce the behavior:

In the dashboard, click activate on the atsign with a capital letter in it
In any of the apps, enter the atsign into the onboarding widget (the widget won't allow you to enter a capital letter) and click submit
The app will say it's fetching the @ sign then you  will see an error message saying "Oops, that @ sign is invalid"
If you close this message, you will then be asked to enter your OTP
After you've enter it, the app will say that "hmm, that code is invalid or expired. Try again?" and then it will say Getting your @ sign ready. Please wait... and stay in this state until you close the app (I waited about 2 minutes)

Expected behavior
All atsigns should activate the same.
Video
https://user-images.githubusercontent.com/69275762/153429617-2b6eb6b1-7f2b-4064-a9f4-5cafdc8f70ee.MP4
Were you using an @application when the bug was found?

@mospherePro on mobile

@tinashe404  I took care of this at API level, please check and share your feedback

@athandle It's working on the dev environment. I'm assuming you haven't pushed it out to prod yet? @Shava still says it's invalid.

@tinashe404  deployed to prod just now

@athandle This is working as expected. @Shava has successfully update and is up and running. I also checked regular atsign activation and this is still working fine.


Intellisense not excluding definitions from node_modules

VSCode Version:

Version: 1.44.2
Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd
Date: 2020-04-16T17:07:18.473Z (2 wks ago)
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.3.0

OS Version: macOS Catalina 10.15.3 (19D76)

Steps to Reproduce:

Open VSCode.
Create a file src/constants.js exporting foo
Import foo as import { foo } from 'constants'
Hover over the constants file path.
See the following.

module "constants"
@deprecated — since v6.3.0 - use constants property exposed by the relevant module instead.

⌘ + click on constants file path.
See there are 2 definitions – constants.d.ts and index.d.ts but no src/constants.js

Expected result:

see the definition of foo from src/constants

The same issue occurs when using foo for the first time in a module, no import suggestion is shown.
My jsconfig.json file
{
  "compilerOptions": {
    "baseUrl": "./src",
    "jsx": "preserve",
    "module": "es6",
    "moduleResolution": "node",
    "target": "es6"
  },
  "exclude": [
    "**/node_modules/*",
    "coverage",
    "dist",
    "node_modules"
  ],
  "typeAcquisition": {
    "include": [
      "cypress",
      "jest"
    ]
  }
}

Does this issue occur when all extensions are disabled?: Yes/No

With "moduleResolution": "node" you must use import { foo } from "./constants" to reference relative modules.
Change your import to be relative or use  "moduleResolution": "classic" to get browser style module resolution algorithm.

Hey @yume-chan! Thank you for the reply! I believe I tried this but to no avail. 😭 I’ve seen this issue in a TypeScript project as well but I haven’t tried your suggestion there yet


.Net - Open AI File Service Support

Motivation and Context

Add support for Open AI File Service:

https://platform.openai.com/docs/api-reference/files
https://api.openai.com/v1/files

Description

ADR: https://github.com/microsoft/semantic-kernel/pull/4803
Contribution Checklist

[x] The code builds clean without any errors or warnings
[x] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
[x] All unit tests pass, and I have added new tests where possible
[x] I didn't break anyone :smile:

Needs coverage


DateTime import fix

Fixes namespace issue regarding import:
from oandapyV20.types import DateTime

Coverage remained the same at 99.062% when pulling c9bbe0303396603c19b59d08912ab579ad8774b3 on types-datetime-fix into<PHONE_NUMBER>f3237cd1d9d4601dd0f947dd1a8e1f on master.


TimeSeries Query for last 5 Minutes not Last 5 Minutes

The usage docs say
query = client.query(METRIC, minutes=5)

will give you stats for the last five minutes. But since the code replaces seconds and microseconds with 0, it's not actually the last 5 minutes since you won't be querying any time interval between the end of the previous minute and the current second.
The reason this came up is in the system tests, I write a point, then try to query it back, but I never get the time series even if they are there, since I
write_point: 2016-09-28T19:29:57.726637
query end_time:  2016-09-28T19:29:00.000000Z
so even though write_point happened first, it's end_time is after the end_time of the query.
Maybe people think second granularity doesn't matter? I'm curious why replacing the second/microseconds with 0 was done in the first place. I think at a minimum the docs are slightly misleading, since it's not the last 5 minutes in the colloquial sense (doesn't include the seconds up until now in the current minute).
cc @rimey @supriyagarg

@waprin: To get the data for a time period ending exactly now, it is recommended to use select_interval. Given that you can write up to one point per minute, this could miss the latest data point.
The end time of the query determines the exact timestamps when using alignment, so zeroing out seconds and microseconds makes the results look nicer, and easier to understand.

Ok, that's what I did in #2460 so we could leave it at that. However I still think the behavior is a bit surprising so I'm curious if you

Can explain the motivation for replacing the seconds
Agree we should at least call this out more explicitly in the docs, rather than just say "the last 5 minutes"

The motivation is as I mentioned in the previous comment:

The end time of the query determines the exact timestamps when using alignment, so zeroing out seconds and microseconds makes the results look nicer, and easier to understand.

Agreed that the top level docs should be updated. Something like the following would work:
Display CPU utilization across your GCE instances over a five minute duration ending at the start of  the current minute.

It's good to know that this pitfall exists, but we have to focus on normal end-user use-cases. Using a round minute as the default end time makes aligned data much prettier. I found the library annoying to use with the exact current time as the default.

Yeah it makes sense to me, writing a time series and immediately reading it back is probably only something we'll do in the system test, and I'm sure on charts and graphs having round minutes is cleaner. I think the doc change is still a good idea just in case, so after that gets merged I think we can close the issue.


Deal with match threshold

What if there are multiple matches with similar/the same similarity score?
What should the threshold be?
Label a few to find threshold

@india-kerle I think we can close this?

let's close!!


IP update

Could you please help with my question? Will the IP holder receive notification email after listed? Thanks.


Document about required node version

Should be node >= 4.2 (LTS)

Can add it to package.json too
  "engines": {
    "node": ">=4.2.0",
    "npm": "^3.0.0"
  },

That can probably work on node 0.12 with babel-node?
Why 4.2 ?

We use some method that isn't compat with 0.12.
Like string.endsWith

babel-polyfill might help

Yup. But we'll need to run tests against 0.12


Figure out how important OVERRIDE is in ScalaSignatures

SemanticDB doesn't have the OVERRIDE property (because source-level override is not in bijection with metadata-level overriding), so we can't easily emit the OVERRIDE flag in ScalaSignatures. Is this going to be a problem? /cc @olafurpg

The OVERRIDE flag is well-known for being unreliable for the purpose of detecting overrides. The thing is that one can override methods even without declaring them as override, and the keyword is there to help prevent accidental overrides, not to be in the way of the programmer.
Analysis of the Scalac codebase shows that OVERRIDE is read in three places:

Prettyprinter.
Namer, to make sure we don't say override class or override def this (why namer though?).
RefChecks, to make sure that override modifiers written in the current program are correct.

We don't care about the first usage, and the last two only affect the current program, i.e. won't take information from mjars into account anyway. I'll be closing this ticket as wontfix.

The analysis above was incorrect. Turns out that we can't ignore OVERRIDE because of https://github.com/twitter/rsc/issues/277. I've opened a ticket in Scalameta (https://github.com/scalameta/scalameta/issues/1809) and, in the meanwhile, used one of the available bits in SymbolInformation.properties to encode OVERRIDE.


OpenXR: No viewport was marked with use_xr, there is no rendered output!

I got that error message when running on the editor (works fine after exporting), and getting black VR screen output, most likely due to this addon, even after disabling it, the issue persists, only after I removed it from autoload, the issue resolves. I assume this is unintended behaviour, and would be pretty annoying to debug without warning/disclaimer.

To use a VR headset while also using the simulator, go to addons/xr-simulator/XRSimulator.tscn and disable "Disable XR in Editor"

I added that option in case you forget your headset connecting while trying to use the simulator. Now I think of making that option disabled by default.


Repository source listing API does not respect node and path parameters

Client Version: 2.1.1
API service: \Bitbucket\Api\Repositories\Users\Src
Method: list
Problem
According to the documentation Bitbucket API provides an ability to list repository source, but API Client lists top-level objects only.
This method allows to pass additional parameters to fetch content inside the folder/commit, but action method does not pass parameters to build right path

You are calling the wrong method. You need to call show, not list. :)


init scripts

It would be nice to have a way of configuring a script/command to run before starting a site.
For example, one could do git pull && rebuild so that the site is always the latest version?

.. I think we will delay this for now. It's already possible to just create a custom script that does init logic and then runs the binary, and use that as the entrypoint instead.


<EMAIL_ADDRESS>Cannot create webserver: TypeError: WebServer is not a constructor

Adapter Version 2.6.0
`host.rockpro64
2024-04-22 08:10:11.362	info	Do not restart adapter system.adapter.ws.0 because desired by instance
host.rockpro64
2024-04-22 08:10:11.361	info	instance system.adapter.ws.0 terminated by request of the instance itself and will not be restarted, before user restarts it.
ws.0
2024-04-22 08:10:11.091	info	terminating http server on port 8084
ws.0
2024-04-22 08:10:10.432	info	Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
ws.0
2024-04-22 08:10:10.428	error	Cannot create webserver: TypeError: WebServer is not a constructor
ws.0
2024-04-22 08:10:10.378	info	starting. Version 2.6.0 in /opt/iobroker/node_modules/iobroker.ws, node: v20.12.2, js-controller: 5.0.19
host.rockpro64
2024-04-22 08:10:06.337	info	instance system.adapter.ws.0 started with pid 683055`

Similar with nodejs@18:
2024-04-22 07:24:11.194  - info: ws.0 (1655) Got terminate signal TERMINATE_YOURSELF
2024-04-22 07:24:11.205  - info: ws.0 (1655) terminating http server on port 8084
2024-04-22 07:24:11.206  - info: ws.0 (1655) terminating
2024-04-22 07:24:11.209  - info: ws.0 (1655) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2024-04-22 07:24:22.944  - error: cloud.0 (1069) Instance web.0 not enabled. Please enable this instance for cloud
2024-04-22 07:24:22.956  - info: cloud.0 (1069) Reconnect because web instance stopped
2024-04-22 07:24:22.985  - info: cloud.0 (1069) Reconnect because web instance started
2024-04-22 07:24:23.003  - info: cloud.0 (1069) Trying to connect as system.user.admin to cloud
2024-04-22 07:24:23.006  - info: cloud.0 (1069) Trying to connect as system.user.admin to cloud
2024-04-22 07:24:22.967  - info: web.0 (20567) Got terminate signal TERMINATE_YOURSELF
2024-04-22 07:24:23.098  - warn: web.0 (20567) setTimeout called, but adapter is shutting down
2024-04-22 07:24:23.104  - info: web.0 (20567) Got terminate signal TERMINATE_YOURSELF
2024-04-22 07:24:23.599  - info: web.0 (20567) terminating
2024-04-22 07:24:23.602  - info: web.0 (20567) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2024-04-22 07:24:27.043  - info: ws.0 (53908) starting. Version 2.6.0 in /opt/iobroker/node_modules/iobroker.ws, node: v18.20.2, js-controller: 5.0.19
2024-04-22 07:24:27.110  - error: ws.0 (53908) Cannot create webserver: TypeError: WebServer is not a constructor
2024-04-22 07:24:27.115  - info: ws.0 (53908) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2024-04-22 07:24:27.646  - info: ws.0 (53908) terminating http server on port 8084
2024-04-22 07:24:29.210  - info: web.0 (53919) starting. Version 6.2.5 in /opt/iobroker/node_modules/iobroker.web, node: v18.20.2, js-controller: 5.0.19
2024-04-22 07:24:29.424  - info: web.0 (53919) socket.io server listening on port 8082
2024-04-22 07:24:29.431  - info: web.0 (53919) http server listening on port 8082
2024-04-22 08:17:33.106  - info: ws.0 (55876) starting. Version 2.6.0 in /opt/iobroker/node_modules/iobroker.ws, node: v18.20.2, js-controller: 5.0.19
2024-04-22 08:17:33.159  - error: ws.0 (55876) Cannot create webserver: TypeError: WebServer is not a constructor
2024-04-22 08:17:33.164  - info: ws.0 (55876) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2024-04-22 08:17:33.700  - info: ws.0 (55876) terminating http server on port 8084

Same for me:
2024-04-22 08:05:06.626  - info: ws.0 (265147) starting. Version 2.6.0 in /opt/iobroker/node_modules/iobroker.ws, node: v18.20.2, js-controller: 5.0.19
2024-04-22 08:05:06.644  - error: ws.0 (265147) Cannot create webserver: TypeError: WebServer is not a constructor
2024-04-22 08:05:06.645  - info: ws.0 (265147) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason

Strangely enough I cannot seem to downgrade to 2.5.11 at the moment because I receive a different error now after installing 2.5.11 and trying to start it accordingly:
2024-04-22 08:26:51.958  - info: ws.0 (266333) starting. Version 2.5.11 in /opt/iobroker/node_modules/iobroker.ws, node: v18.20.2, js-controller: 5.0.19
2024-04-22 08:26:51.988  - error: ws.0 (266333) Cannot create webserver: TypeError: Cannot read properties of undefined (reading 'createServerAsync')
2024-04-22 08:26:51.989  - info: ws.0 (266333) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason

So what's wrong here ATM @foxriver76 ?

Ok, after some quick further investigation I found the issue with 2.6.0:
--- iobroker.ws/main.js.orig	2024-04-22 08:33:51.582029471 +0200
+++ iobroker.ws/main.js	2024-04-22 08:34:00.666201200 +0200
@@ -6,7 +6,7 @@
 const adapterName = require('./package.json').name.split('.').pop();
 const utils = require('@iobroker/adapter-core'); // Get common adapter utils
 const SocketWS = require('./lib/socketWS.js');
-const { WebServer } = '@iobroker/webserver';
+const { WebServer } = require('@iobroker/webserver');
 const ws = require('@iobroker/ws-server');

 let webServer = null;

Quite a simple issue, isn't it? ;-)

Ok, after some quick further investigation I found the issue with 2.6.0:
--- iobroker.ws/main.js.orig	2024-04-22 08:33:51.582029471 +0200
+++ iobroker.ws/main.js	2024-04-22 08:34:00.666201200 +0200
@@ -6,7 +6,7 @@
 const adapterName = require('./package.json').name.split('.').pop();
 const utils = require('@iobroker/adapter-core'); // Get common adapter utils
 const SocketWS = require('./lib/socketWS.js');
-const { WebServer } = '@iobroker/webserver';
+const { WebServer } = require('@iobroker/webserver');
 const ws = require('@iobroker/ws-server');

 let webServer = null;

Quite a simple issue, isn't it? ;-)

Lol yeah, fixed. gotta hate non-typescript code .. or my blindness

(and mine ... i did the review :-( )

Why hasn't any linter revealed that issue before checkin?

Not sure which Lint rule would tbh if not using typescript.
As this gets any


$push({new:'record'}) to child of $firebase reference?

I have a $firebase ref to 'a/b' and wish to push a new record to 'a/b/c' (i.e. have firebase create new key with value {new:'record'}), such that it will result in: a/b/c/-Joi2392d09 with {new:'record'} as its value.
How do I go about doing this?
// Setup
var db = new Firebase('https://example.firebaseio.com/');
$scope.remote = $firebase(db.child('a/b')).$asObject();

// How do we push to a/b/c?
$scope.remote.c.$push({new:'record'}); // error - $push is not a function.

I can try using $inst(), but i can only push to 'a/b'; I do not know how to $push a record to a child of the reference. Any ideas?
Thank you! Love the changes to the API in the latest release.

data (1).zip
@katowulf @irfaan hey thanks for your suggestions, had a clarification, if you could please guide me,
i have a table with 2 root nodes
1)Parent
2)Child
So when i do a post information to parent a key is added along with the values i pass,
Now in the child root i would want to reference the corresponding parent and then generate a specific key to the child and then the values that i have passed, so this is how i would want, will attach an example


Request for integration with Dolibarr ERP CRM

Dolibarr is major open source erp and crm software.
It has Api, hooks and triggers.
It would be great to have a dolibarr module that implement trigger so each time an event occurs in dolibarr (a new quite has been sent, a new order has been received, a new invoice has been sent), an avent appears in zulip...

@eldy thanks. Can you link to the documentation for the Dolibarr outgoing webhook system? I suspect that'll make it a lot easier for a contributor to pick this up.


[graph] Graph core cleanup

[graph] Make adjacency list lazily
Update graph to make adjacenct list lazily when required
during the topological sort.
Until then, keep the node_list which contains simply all the nodes.

[graph] Update node_names to unordered_set
Update node_names storing all the names of the nodes
in the graph for uniqueness to use unordered_set.

[graph] Graph iterator for sorted and unsorted
Updated graph iteartor to run over unsorted list of nodes
if the graph is not yet sorted. If the graph is sorted,
the iterator iterates over sorted nodes.

[graph] Remove getNodes for the graph
Remove getNodes() which provided direct access to the data structure
holding the graph. Now, all access is done using the iterators.

[graph] Remove non-const iterators
Remove non-const iterators for the graph.
Update the corresponding usages for the graph.

Note: the pattern for (auto const &node : graph) has been
removed as this can begin()/end() in the background.
Workaround for this is to use std::as_const(graph) but this
is only available from c++17, so this patch uses
the basic const iterator for loop pattern.
See Also #986
Self evaluation:

Build test: [x]Passed [ ]Failed [ ]Skipped
Run test: [x]Passed [ ]Failed [ ]Skipped

Signed-off-by: Parichay Kapoor<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #1271. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.

rebasing for layer_v2 as it is needed for layer_v2 changes.


Make Style/AccessModifierDeclarations disabled by default

Follow up of #5953, #6032
I think it is too difficult to enforce group (default) style by default because it doesn't work for some methods.
For example, def_delegator doesn't work when using group style:
require 'forwardable'

class Cat
  def meow
    puts "Meow!"
  end
end

class CatCage
  extend Forwardable

  def initialize(cat)
    @cat = cat
  end

  private

  def_delegator :@cat, :meow
end

[8] pry(main)> CatCage.new(Cat.new).meow
Meow!
=> nil

This is because def_delegator defines a method by self.module_eval. Forcing group styles by default may be misleading for the above problems.
Maybe it is needed to add such methods to the whitelist and exclude them from inspection, but it seems to be difficult for me.
First of all, I think it should make this cop disabled by default and help users confused by this cop. WDYT? @brandonweiss

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

I think it’s probably best to improve the cop, not disable it by default. The RuboCop team has expressed a dislike of cops that are disabled by default (which I agree with) as practically no one goes through and enables them, effectively meaning they might as well not exist.
I think the improvement of adding a whitelist of tokens that accessors can be inlined before while using group configuration probably makes the most sense.

Thanks for your opinion. This approach seems unacceptable to the team, so I will close it once.


client side syntax/processing error in sprites.less

been testing with client-side less and found an error in sprites.less. haven't been able to get to the bottom of it.  has anyone else seen an issue?  seems like a similar issue was closed.  https://github.com/twitter/bootstrap/issues/2139

Yup, fixed in 2.0.2-wip—check that branch for the fix.


Snow Leopard compatibility (old version of GCC)

I have a very old Mac Mini which has been employed as my home media server for the past 8 years. Unfortunately, I cannot upgrade the OS past Snow Leopard, however it still does it's job as a webserver and iTunes server perfectly fine.
I was really hoping to run homebridge on it, however homebridge relies on node_mdns and I cannot get node_mdns to install.
I should mention that I have the command line developer tools from Lion 10.7 installed (which makes GCC available).
Here's what happens:
npm -g install mdns

><EMAIL_ADDRESS>install /usr/local/lib/node_modules/mdns
> node-gyp rebuild

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

  CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
In file included from ../src/dns_sd.cpp:1:
In file included from ../src/mdns.hpp:12:
../node_modules/nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
# error This version of node/NAN/v8 requires a C++11 compiler
  ^
1 error generated.
make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/mdns
gyp ERR! node -v v4.2.3
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Darwin 10.8.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "install" "mdns"
npm ERR! node v4.2.3
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mdns package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls mdns
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/local/lib/node_modules/npm-debug.log

the line:
../node_modules/nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler

indicates to me that the problem is with the version of GCC that I have available on my machine. Is there any way to get mdns to compile with an older version of GCC?
Here's the output of gcc --version:
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)

I have a very old Mac Mini which has been employed as my home media server for the past 8 years.

Awesome. Let's see...

[...] indicates to me that the problem is with the version of GCC that I have available on my machine.

That's right. However, it is not node_mdns or NAN that requires a modern compiler, but upstream packages, notably v8 itself.
I see a couple of options. None is totally straight forward. So your milage may vary.

Use an older version of node that does not require C++11. Node v0.12 should work out of the box.
Compile node_mdns on a modern Mac and copy the binary. This is drastic and might just not work. But node_mdns does not link to anything except libc and it's worth a try.
Compile on a modern Mac but use the old runtime environment. This requires fiddling with the taps, possibly by hacking the generated Makefiles
If brew or macports is an option you might just install a more modern compiler. If it is not you still could compile a modern compiler from scratch.

Hope this helps.

@agnat Thanks a ton for the suggestions.
Option 2 seems really straight forward so I gave it a go. I compiled on my OSX 10.9 laptop then copied the node_modules/mdns directory to my mac mini.
Here's what happens when I try the test script:
mini:bonjourjs paul$ node test.js
/Users/paul/Desktop/bonjourjs/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
    ^

Error: Module version mismatch. Expected 46, got 47.
    at Error (native)
    at Object.Module._extensions..node (module.js:460:18)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/paul/Desktop/bonjourjs/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)

Hehe... You need to use the same node version (major.minor) on host and target.
;)

Ahhh! Thats the first time ive seen that one. Thanks for being gentle in pointing out my n00bness ;)

No worries. Like I said...

None is totally straight forward.

Success with option 2!
Thanks again. My mac mini zombie lives on...

Any chance that you could share your snow leopard binary and some insight on installation?

@amiblau I would love to help. Bear in mind I'm not a nodeJS or NPM expert, but I will do my best to explain how I got mdns to run on Snow Leopard. These instructions will explain how to do a global install of the module.
If you have a modern mac, you can compile mdns on it and then copy the compiled binary to your snow leopard machine. As I found out, this only works if you have the exact same version of NodeJS installed on both machines!
If you have two macs:

Open a terminal window on both macs and and run node --version. Verify that the NodeJS version  on both machines are the same. If they are not the same you will get the ``Error: Module version mismatch. Expected ##, got ##.``` error when you try to use the manually copied module on the snow leopard machine. If your versions are not the same, go to NodeJS.org and download the installer for the later of the two versions you have (at this writing I am able to use NodeJS version 5.2.0 on Snow Leopard.
Next install & compile mdns on your modern mac: npm -g install mdns. This should create a folder /usr/local/lib/node_modules/mdns/ which contains the compiled mnds module.
Now copy /usr/local/lib/node_modules/mdns/ from your modern mac to the same directory on your snow leopard mac. You can do this from the command line on your modern mac with scp -r /usr/local/lib/node_modules/mdns/ youruser@snowleopard_machine_address:/usr/local/lib/node_modules/
Switch over to your Snow Leopard Mac and check to make sure the mdns folder (and it's contents) are in /usr/local/lib/node_modules/

If all you have is a Snow Leopard Mac

Install NodeJS [version 5.2.0] (https://nodejs.org/dist/v5.2.0/node-v5.2.0.pkg)
Download my precompiled binary:
mdns-2.2.11_node-5.2.0_snow_leopard.tar.gz
Unzip it in your /usr/local/lib/node_modules directory.

I hope this helps!

@fahrvergnuugen Thanks so much for this info I will not have any time to look into this until this coming weekend.  I did successfully get homebridge working on my laptop so I know it can be done.  I will attempt to do either method soon.  This gives me hope that my Xserve 1,1 still has some life left  It rocks as a Plex server,  print server, Music dock, as well as many other little things around the house.  If it can be a "HomeKit bridge" as well now we are talking

@amiblau no problem. Your mac zombie is way cooler than mine! ;)

I got it working! thanks so much for your help @fahrvergnuugen.  I didn't even have to take down the server while my wife was using Plex.


Freeze all kerbalstuff mods - Closes #3106

This will alleviate the immediate problem of Netkan trying to index KerbalStuff mods.

My concern is a purely selfish one.. My process for editing netkans makes renaming files a PITA.. but if there's a technical reason to change the extension I'll merge this in a second.

Just saw https://github.com/KSP-CKAN/NetKAN/issues/3106, that changes things. =)

Haha :-)


Cannot connect to the tmate session with ssh

When my workflow gets to this action, it runs and I get continuous stream of SSH connection messages like this (same as #163):
SSH: ssh<EMAIL_ADDRESS>or: ssh -i <path-to-private-SSH-key><EMAIL_ADDRESS>SSH: ssh<EMAIL_ADDRESS>or: ssh -i <path-to-private-SSH-key><EMAIL_ADDRESS>
I'm doing this on a minimal test workflow.
When I try to connect, it fails like this:
$ ssh<EMAIL_ADDRESS>Invalid command
Shared connection to nyc1.tmate.io closed.

If I use ssh with verbosity on, I get this:

ssh -v -F none<EMAIL_ADDRESS>OpenSSH_9.0p1, OpenSSL 3.0.9 30 May 2023
debug1: auto-mux: Trying existing master
debug1: Control socket "/run/user/1000/kssh-2211167-12b3298cfc2b2b25ae5251503a64b4c9e8608968" does not exist
debug1: Connecting to sfo2.tmate.io [<IP_ADDRESS>] port 22.
debug1: Connection established.
debug1: identity file /home/username/.ssh/id_rsa type 0
debug1: identity file /home/username/.ssh/id_rsa-cert type -1
debug1: identity file /home/username/.ssh/id_ecdsa type -1
debug1: identity file /home/username/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/username/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/username/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/username/.ssh/id_ed25519 type -1
debug1: identity file /home/username/.ssh/id_ed25519-cert type -1
debug1: identity file /home/username/.ssh/id_ed25519_sk type -1
debug1: identity file /home/username/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/username/.ssh/id_xmss type -1
debug1: identity file /home/username/.ssh/id_xmss-cert type -1
debug1: identity file /home/username/.ssh/id_dsa type -1
debug1: identity file /home/username/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.0
debug1: Remote protocol version 2.0, remote software version tmate
debug1: compat_banner: no match: tmate
debug1: Authenticating to sfo2.tmate.io:22 as '2yQGWxG7ssGh4d7PR6RzTtZ3k'
debug1: load_hostkeys: fopen /home/username/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: aes128-ctr MAC<EMAIL_ADDRESS>compression<EMAIL_ADDRESS>debug1: kex: client->server cipher: aes128-ctr MAC<EMAIL_ADDRESS>compression<EMAIL_ADDRESS>debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-rsa SHA256:Hthk2T/M/Ivqfk1YYUn5ijC2Att3+UPzD7Rn72P5VWs
debug1: load_hostkeys: fopen /home/username/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: hostkeys_find_by_key_cb: found matching key in ~/.ssh/known_hosts:86
debug1: hostkeys_find_by_key_cb: found matching key in ~/.ssh/known_hosts:87
debug1: hostkeys_find_by_key_hostfile: hostkeys file /home/username/.ssh/known_hosts2 does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts does not exist
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts2 does not exist
The authenticity of host 'sfo2.tmate.io (<IP_ADDRESS>)' can't be established.
RSA key fingerprint is SHA256:Hthk2T/M/Ivqfk1YYUn5ijC2Att3+UPzD7Rn72P5VWs.
This host key is known by the following other names/addresses:
    ~/.ssh/known_hosts:86: lon1.tmate.io
    ~/.ssh/known_hosts:87: nyc1.tmate.io
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Please type 'yes', 'no' or the fingerprint:
Warning: Permanently added 'sfo2.tmate.io' (RSA) to the list of known hosts.
debug1: rekey out after<PHONE_NUMBER> blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after<PHONE_NUMBER> blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: /home/username/.ssh/id_rsa RSA SHA256:ukqzwZ/2KwEhEgH89m/VGxJNALjzwPyxV6j+lSp9Bmc agent
debug1: Will attempt key: /home/username/.ssh/id_ecdsa
debug1: Will attempt key: /home/username/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/username/.ssh/id_ed25519
debug1: Will attempt key: /home/username/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/username/.ssh/id_xmss
debug1: Will attempt key: /home/username/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/username/.ssh/id_rsa RSA SHA256:ukqzwZ/2KwEhEgH89m/VGxJNALjzwPyxV6j+lSp9Bmc agent
debug1: Server accepts key: /home/username/.ssh/id_rsa RSA SHA256:ukqzwZ/2KwEhEgH89m/VGxJNALjzwPyxV6j+lSp9Bmc agent
debug1: Enabling compression at level 6.
Authenticated to sfo2.tmate.io ([<IP_ADDRESS>]:22) using "publickey".
debug1: pkcs11_del_provider: called, provider_id = (null)
debug1: setting up multiplex master socket
debug1: channel 0: new [/run/user/1000/kssh-2211167-12b3298cfc2b2b25ae5251503a64b4c9e8608968]
debug1: control_persist_detach: backgrounding master process
debug1: forking to background
debug1: Entering interactive session.
debug1: pledge: id
debug1: multiplexing control connection
debug1: channel 1: new [mux-control]
debug1: channel 2: new [client-session]
    if [ -z "$python" -o ython=$(command -v python))*" > /dev/stderr; cleanup_on_bootstrap_exit; exit 1; }4\\\\\\n\\\\\\041)"'  '/bin/sh
debug1: mux_client_request_session: master session id: 2
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
Invalid command
debug1: channel 2: free: client-session, nchannels 3
debug1: channel 1: free: mux-control, nchannels 2
Shared connection to sfo2.tmate.io closed.
debug1: channel 0: free: /run/user/1000/kssh-2211167-12b3298cfc2b2b25ae5251503a64b4c9e8608968, nchannels 1
Connection to sfo2.tmate.io closed by remote host.
Transferred: sent 5364, received 2672 bytes, in 0.6 seconds
Bytes per second: sent 9092.9, received 4529.5
debug1: Exit status -1
debug1: compress outgoing: raw data 5589, compressed 2218, factor 0.40
debug1: compress incoming: raw data 88, compressed 83, factor 0.94

If you look towards the end of the ssh output, it does authenticate correctly: Authenticated to sfo2.tmate.io ([<IP_ADDRESS>]:22) using "publickey"., but then it gets disconnected by the remote.  I'm not sure why.

Set limit-access-to-actor to false.

Set limit-access-to-actor to false.

I get the same behaviour.
In any case, as I reported above it's not an authentication problem.

Set limit-access-to-actor to false and it will provide you a public tmate link to connect SSH. However, when opened, there is only a black screen.
And connection via ssh command will fail directly.

Use bash instead of zsh and ...... it's working! 😅
After connecting, some information was displayed. Press q and ignore it.

What's wrong with it? 😒

This seems to be working now (both with/without limit-access-to-actor set to false).  I didn't change anything on my side.  Maybe there was an update on the server side?


chore(copybara): sync commits from Aspect-internal silo

Commit range https://github.com/aspect-build/silo/compare/6443c45c65b3be669d0e1e769217ebf17fd97c28..24d3fac8bd1eee44810d4f4d4c916e39b670cecc

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


training pages

Ready for first look at these pages.
Added link to training page from "About Us" menu and support page.
Will be staged at https://snoopycrimecop.github.io/www.openmicroscopy.org/training/
once build is run.
cc @jburel @pwalczysko

Link to events:
From the discussion we had. We said we will reformat presentation.md and point to that page
so they can info about length of workshop
Length is not captured.
Probably easier to sit and discuss

Added a paragraph about workshop length.
We have links to the training-repos which now lists length of past workshops.

WE do not have any mention of the workshops in ELMI and TOPIM here ?

No
The workshops are listed here https://github.com/ome/training-repos

Fixed @jrswedlow's comments at https://trello.com/c/2VSqMQmj/18-website-training-page-update#comment-5b8ad68d3b1ac4550b13fd68
Typo fixed in title, removed outreach server URL and added Support > Users/Training links.

@will-moore I will add the events to https://github.com/openmicroscopy/www.openmicroscopy.org/pull/253
otherwise it will conflict

As discussed in slack, having menu top-links to pages can be confusing (and they don't work on mobile layout). Would be nice to move the landing page links to the first item in the submenus, e.g. 'Overview' in another PR.

Merging and redeploying website


Better error handling and more lenient on the imported values

Love the collaboration between @bennycornelissen and @gzsombor, great going guys.
Will get this merged asap!


Update wm-measureitem.md

WParam description in https://docs.microsoft.com/en-us/windows/win32/controls/wm-drawitem#parameters is accurate, it says  If the message was sent by a menu, this parameter is zero. WParam in WM_MEASUREITEM is used in the same way, however description says the reverse - If the value is zero, the message was sent by a menu. This is not correct. WParam value will also be set to zero if the combo or list box'control's resource ID is zero.

@Tanya-Solyanik : Thanks for your contribution! The author(s) have been notified to review your proposed change.


New blog post - nim vs crystal part 1

Blog article & assets added.  Built & Tested locally.

Also, added myself into the Authors section!

Great job @rbnpercy !
This has landed as https://github.com/embark-framework/embark/commit/41e351b961c41a8ad637884622eba75a0d8cf0b5


A912343845581673 update streams view

This change is

Coverage decreased (-0.2%) to 77.88% when pulling c84e23df4c5ac98a2c0eb44a2731d03e2bf27d9d on Scandie:a912343845581673_update_streams_view into cabe575d40be1db99ccdf4c86ab3ed537b9f0ba3 on openprocurement:ea_core.


Try to solve some Project Euler problems with Calc

https://projecteuler.net/
In the past I have gotten some insights into language design trying to solve some of these.

Note that although sharing of solutions is generally not allowed outside the forums, the first 100 are exceptions for learning purposes.

Now that we have some solutions, it would be nice to go back and spiff them up to include a single function to solve the problem and report the results, but also to solve the example problem as verification of the method.


add id_orig_h and id_resp_h to log4j.log

It is very handy when hunting and doing IR to have the id_orig_h and id_resp_h (actually even the id_orig_p and id_resp_p) in the log4j.log as fields . This is in addition to the uid which exists there already.

I went through a triage exercise yesterday and can confirm that if we had these fields in log4j.log, it would make triage and hunting easier, missing them slowed me down.

Roger that. The ports too I take it? Let's figure out the best way to fix the target_host nonsense and take care of both at once? Happy to put this on the docket for tomorrow (or feel free to open up a PR if someone responds to me question on the Zeek slack in #development)


Need decent way to specify PG schema than error-prone PGOPTIONS

Ideally we shouldn't use binaries like psql, createdb at all. But even as we continue to use those, there is probably a better way to the unreliable and cumbersome PGOPTIONS=-c search_path=xyz.

Duplicate of #504


Include module in exclusions so they are included in generated pom

This change fixes the generated pom and gets the Spring IO checks passing again

Thank you @wilkinsona !
Nothing to complain about. Merging...

Merged as https://github.com/spring-projects/spring-amqp/commit/59710724e5df4414139f67145152fc943d45baf7.
Note: I made the same even for testCompile excludes. Just to be consistent.


Problem with tslint.json rules

Describe the bug
Hi, from a time to here @angular/cli adds to tslint.json "tslint: recommended", because of this all the rules are not deleted.
To Reproduce
Create a new angular app with @angular/cli
Expected behavior
Maybe add tslint-config-prettier?
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. macOS] Windows 10 64 bits
Node Version [e.g. 22] 8.12.0
Angular & Angular/CLI Version 7.3.4

Additional context
Add any other context about the problem here.

Yes if you set prettier to singleQuote: true the corresponding setting in tslint.json "quotemark": [true, "single"], shouldn't be removed, because it make tslint default to use double quotes and throw linting errors should be "" and not '' all over the codebase after running npm run prettier. Readding "quotemark": [true, "single"], fixed the problem.

Thanks for reporting and debugging. The latest release (3.0.0) should resolve this issue as the schematic now relies on the tslint-config-prettier package from Prettier.


Expose type declarations

Typescript types don't seem to be exposed properly yet and there is no DefinitelyTyped module.

No entry point was yet defined for the package. This is done now, so the class and types should be resolveable now.
Patched in 0.1.2.


refreshing db not working

Any idea why this is preventing me from refreshing?

I've had this issue in past and fixed renaming anaconda directory, reinstalling anaconda, and copying env to c:\anaconda\envs, but seeing this has happened a few time now I'd be interested in understanding what is causing.

One thing to check is whether restarting VS clears the button. I've seen an intermittent issue where the button remains visible even when it shouldn't, but restarting VS gets rid of it.

So far, have tried restarting VS, restarting computer, reinstalling Anaconda or doing Visual Studio repair.

Can you copy the info from Tools, Python Tools, Diagnostic Info into a gist or email it to<EMAIL_ADDRESS>

Done to email.

Got it. While there are clearly some issues there (to do with Anaconda not behaving like regular Python wrt virtual environments), they aren't affecting the one shown in the screenshot.
Can you also send through C:\Users\<username>\AppData\Local\Python Tools\CompletionDB\14.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\3.5\AnalysisLog.txt? It should have been included in the log, but maybe it was cut off somehow.

Alright sent to email in zip.  I had just finished uninstall python/ptvs from vs when I saw your reply (wasn't expecting a reply), so did a system restore which might have been reason why stuff maybe off.

Okay, so there's one issue here that's our fault:
Traceback (most recent call last):
  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\PythonScraper.py", line 385, in generate_member
    return 'method', generate_builtin_function(obj, True)
  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\PythonScraper.py", line 270, in generate_builtin_function
    function_table['overloads'] = BuiltinScraper.get_overloads(function, is_method)
  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\BuiltinScraper.py", line 514, in get_overloads
    extra_args,
  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\BuiltinScraper.py", line 471, in get_overloads_from_doc_string
    res = parse_doc_str(doc_str, mod, decl_mod, func_name, extra_args, obj_class)
  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\BuiltinScraper.py", line 262, in parse_doc_str
    ret_types = get_ret_type(ret_type, obj_class, mod)
  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\BuiltinScraper.py", line 181, in get_ret_type
    return [type_name_to_typeref(ret_type, mod, RETURN_TYPE_OVERRIDES)]
  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\BuiltinScraper.py", line 139, in type_name_to_typeref
    for mod_name, mod in sys.modules.items():
RuntimeError: dictionary changed size during iteration

But it looks like your real problem is that Python won't run at all:
System.InvalidOperationException: Cannot obtain search paths ---> System.InvalidOperationException: Cannot obtain list of paths
Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'

This probably means you've got a corrupted registry (Anaconda and CPython share the same registry keys here, so installing/uninstalling either can break the other) or missing files on disk. Either way, doing a repair install on Anaconda should resolve it, and the long-term fix is for Python to generally stop using the registry like this (which hopefully Python 3.6 will achieve, but 3.5 and 2.7 cannot at this stage).

Any suggestions on registry keys to remove because reinstall of Anaconda did not do the trick.

Python Tools for Visual Studio 2013 CompletionDB never refreshes
import sys

I get the error message
The completion DB needs to be refreshed.
Open Python Environments for more information.

When I open Python Environments I see the message
Completion DB needs refresh

When I press "Refresh DB" the "Refreshing DB" status bar starts but never completes.
PTVS Diagnostic Info
Projects:
    Project: HelloWorld.pyproj
        Kind: Python
        InterpreterVersion: 2.7
        StartupFile: C:\Users\Kevin\dev\python\HelloWorld\HelloWorld.py
        WorkingDirectory: .
        PublishUrl: <undefined>
        SearchPath:
        CommandLineArguments: <undefined>
        InterpreterPath: <undefined>

Environments:
    Microsoft.PythonTools.Interpreter.ConfigurablePythonInterpreterFactoryProvider
    Microsoft.PythonTools.Interpreter.CPythonInterpreterFactoryProvider
        Id: 9a7a9026-48c1-4688-9d5d-e5699d47d074
        Factory: Python 64-bit 2.7
        Version: 2.7
        Arch: Amd64
        Prefix Path: C:\Anaconda2
        Path: C:\Anaconda2\python.exe
        Windows Path: C:\Anaconda2\pythonw.exe
        Lib Path: C:\Anaconda2\lib
        Path Env: PYTHONPATH

    Microsoft.IronPythonTools.Interpreter.IronPythonInterpreterFactoryProvider
Launchers:
    Launcher: Microsoft.PythonTools.Project.Web.PythonWebLauncherProvider
        Launches web sites using the Python debugger. This enables launching and starting a web browser automatically, using the commands specified in the project file.
        Web launcher

    Launcher: Microsoft.PythonTools.Project.DefaultLauncherProvider
        Launches and debugs Python programs. This is the default.
        Standard Python launcher

    Launcher: Microsoft.PythonTools.Django.Debugger.DjangoLauncherProvider
        Launches Django web sites using the Python debugger. This enables launching and starting a web browser automatically. It launches using manage.py and passes the runserver flag as well as additional options to configure the port and other settings.
        Django launcher

    Launcher: Microsoft.IronPythonTools.Debugger.IronPythonLauncherProvider
        Launches IronPython scripts using the .NET debugger.  This enables debugging both IronPython code as well as other .NET code such as C# or VB.NET.
        IronPython (.NET) launcher

Logged events/stats:
Installed Interpreters: 1
Configured Interpreters: 0
Debug Launches: 0
Normal Launches: 0

System events:
Time: 2016-07-15T16:36:20
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.InvalidComObjectException
   at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(System.Object, IntPtr, IntPtr ByRef, Boolean ByRef)
   at Microsoft.VisualStudio.Shell.Interop.IVsHierarchy.UnadviseHierarchyEvents(UInt32)
   at Microsoft.VisualStudio.Progression.CodeProviderNativeProjectHelper+ProjectOutputMap.Close()
   at Microsoft.VisualStudio.Progression.CodeProviderNativeProjectHelper.Complete()
   at Microsoft.VisualStudio.Progression.CodeProvider.Dispose(Boolean)
   at Microsoft.VisualStudio.Progression.CodeProvider.Dispose()
   at Microsoft.VisualStudio.Progression.ProviderCreator.Dispose(Boolean)
   at Microsoft.VisualStudio.Progression.ProviderCreator.Finalize()

Loaded assemblies:
...

Global Analysis:
2016-07-14T15:44:27 START_STDLIB "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
FAIL_STDLIB: (-3) "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
This interpreter is already being analyzed.
FAIL_STDLIB: (-3) "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
This interpreter is already being analyzed.
2016-07-14T16:38:30 START_STDLIB "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
2016-07-15T09:48:26 START_STDLIB "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
2016-07-15T12:05:09 START_STDLIB "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
2016-07-18T13:32:01 START_STDLIB "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
2016-07-19T10:51:28 START_STDLIB "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
FAIL_STDLIB: (-3) "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
This interpreter is already being analyzed.
FAIL_STDLIB: (-3) "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""
This interpreter is already being analyzed.
2016-07-19T11:07:17 START_STDLIB "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\Microsoft.PythonTools.Analyzer.exe" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\Anaconda2\python.exe /library C:\Anaconda2\lib /outdir "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7" /basedb "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.1\CompletionDB" /log "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt" /glog "C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\AnalysisLog.txt" /wait ""

Environment Analysis Logs:
Python 64-bit 2.7
Error reading: System.IO.IOException: The process cannot access the file 'C:\Users\Kevin\AppData\Local\Python Tools\CompletionDB\12.0\9a7a9026-48c1-4688-9d5d-e5699d47d074\2.7\AnalysisLog.txt' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
   at System.IO.File.ReadAllText(String path)
   at Microsoft.PythonTools.Interpreter.PythonInterpreterFactoryWithDatabase.GetAnalysisLogContent(IFormatProvider culture)

PyCharm works just fine on the same configuration that PTVS chokes on above.

@KevinLucidyne It looks like you had an analysis running when you grabbed that log - can you wait for it to finish and get the diagnostic info again? I'd expect it to be too long to reasonably post in an issue (hence my usual gist recommendation).

@ryan413 Probably HKEY_CURRENT_USER\Software\Python\PythonCore\3.5, but have a poke around and see if you can definitively identify it as pointing at the wrong place. Simply deleting the keys won't fix anything - you'll need to reinstall just one Python 3.5 interpreter.

@zooba It says I'm running an analysis even after I restart the machine and open the Python environment as the first thing I do.

@zooba Here's what the complete diagnostic dump looks like after I run "Refresh DB" and it stops analyzing and goes back to the "Completion DB needs refresh" prompt.
Bug1439.txt

Thanks! It looks like something in the version of astropy you have is causing us to overflow the call stack. Can you get me the exact version so I can reproduce it on my own machine?

astropy 1.2.1.  The same as what is packaged with the latest version of Anaconda2.

just installed vs 15 enterprise 5 and refresh not working again...

I think we know about one issue here where the button visibility doesn't update properly, but restarting VS should fix that.
If you change that "Overview" dropdown to "Intellisense" it will show you the actual status. If everything has a tick next to it then you're probably hitting this problem.

Well.. it was either that or deleting appdata\Python Tools folder that did trick.  Works now.

In my case, I created a new python environment and pointed to the existing python set up and then refreshed the intellisence and that worked. I think the problem in my case was that I had upgraded visual studio to a newer version and existing intellisense db was thinking of it as older version of the visual studio. Try deleting the current environment and creating a new one with exact settings.

@Nilster You may be right on that one. We did change how we identify that a db is out of date, and while it shouldn't be a problem for normal environments it may still be an issue with older virtual environments. I'll check that out

The workaround of clearing the DB entirely seems to work well enough for now, and we hope to remove the completion DB entirely in the near future.


Failed to run on macos

environment: macos m1
python 3.9
python3 run_app_gui.py
/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py:24845: UserWarning: You are running a VERY old version of tkinter 8.5.9. You cannot use PNG formatted images for example.  Please upgrade to 8.6.x
  warnings.warn('You are running a VERY old version of tkinter {}. You cannot use PNG formatted images for example.  Please upgrade to 8.6.x'.format(tclversion_detailed), UserWarning)
Mac OS Version is 13.2 and patch enabled so applying the patch
Applyting Mac OS 12.3+ Alpha Channel fix.  Your default Alpha Channel is now 0.99
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
Traceback (most recent call last):
  File "/Users/songkeys/Downloads/convertor/run_app_gui.py", line 309, in <module>
    main()
  File "/Users/songkeys/Downloads/convertor/run_app_gui.py", line 93, in main
    window = sg.Window(APP_TITLE,layout,finalize=True, resizable=True,enable_close_attempted_event=False,background_color=color.GRAY_9900)
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 9614, in __init__
    self.Finalize()
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 10300, in finalize
    self.Read(timeout=1)
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 10075, in read
    results = self._read(timeout=timeout, timeout_key=timeout_key)
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 10146, in _read
    self._Show()
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 9886, in _Show
    StartupTK(self)
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 16866, in StartupTK
    _convert_window_to_tk(window)
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 16753, in _convert_window_to_tk
    PackFormIntoFrame(window, master, window)
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 15991, in PackFormIntoFrame
    PackFormIntoFrame(element, labeled_frame, toplevel_form)
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 15991, in PackFormIntoFrame
    PackFormIntoFrame(element, labeled_frame, toplevel_form)
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 15216, in PackFormIntoFrame
    photo = tk.PhotoImage(data=element.ImageData)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 4064, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 4009, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize image data

I tried python3.9 run_app_gui.py, it's another error:
python3.9 run_app_gui.py
Traceback (most recent call last):
  File "/Users/songkeys/Downloads/convertor/run_app_gui.py", line 1, in <module>
    import PySimpleGUI as sg
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/__init__.py", line 2, in <module>
    from .PySimpleGUI import *
  File "/Users/songkeys/Library/Python/3.9/lib/python/site-packages/PySimpleGUI/PySimpleGUI.py", line 136, in <module>
    import tkinter as tk
  File<EMAIL_ADDRESS>line 37, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

I have run both pip install -r requirements.txt and pip3 install -r requirements.txt.

I was able to get this by doing brew install python-tk

After installing the necessary dependencies I just ran this on mac 12.6
Open terminal, Cd into the folder, then python3 "filename", after a few seconds the GUI popped up.

this is the error I am getting on MacOS Sequoia 15, M3. "numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject" going to try to see if I can find the numpy version it needs, assuming it is being imported by pandas?

On MacOS 15, M3, Not sure which of the changes I made got it to work, but I switched to Python3.10.5 and this is my requirements.txt file:
torch
pytorch-lightning==1.8.3.post1
torchsde==0.2.5
safetensors==0.2.5
pysimplegui==4.60.5
numpy<=1.26.4
pandas==1.3.5
nothing else was working, so the changes I made to this file may or may not be required


Sample game project

On the flappy bird game sample I have the loop playback off/unchecked but it still plays it twice in a row, then stops.
[edit - using version 2018.2.18 and some bugs that might be the problem:
[Singleton] An instance of GetSocialSdk.Scripts.Internal.Util.MainThreadExecutor is needed in the scene, so '(singleton) GetSocialSdk.Scripts.Internal.Util.MainThreadExecutor (UnityEngine.GameObject)' was created with DontDestroyOnLoad.
UnityEngine.Debug:Log(Object)
GetSocialSdk.Scripts.Internal.Util.Singleton1:get_Instance() (at Assets/GetSocialCapture/Scripts/Internal/Util/Singleton.cs:54) GetSocialSdk.Scripts.Internal.Util.Singleton1:LoadInstance() (at Assets/GetSocialCapture/Scripts/Internal/Util/Singleton.cs:18)
GetSocialSdk.Scripts.Internal.Util.MainThreadExecutor:Init() (at Assets/GetSocialCapture/Scripts/Internal/Util/MainThreadExecutor.cs:16) ]
On adjusting speed- I would like to only vary the speed in the preview box (like normal, slow, or 2x speed) which could obviously be done using the playback frame Rate, but the 'get social capture' is what would determine the initial speed and quality of the playback, so say for a game with a 2 minute timer to complete the level, what would the optimal 'capture frame rate' be to have the best capture of animations etc to represent exactly 2 minutes when played back at normal speed?
Also, is there a way to sync the preview box size to the camera viewing size, to minimize distortion or just doing it manually (ex using a 16:9 aspect ratio calculator to find the size of the box).
edit- and where can we find the filesize  of the generated video?

Added this code to the GameControl.cs inside the flappy bird 'sampleapp', replacing the BirdDied() function, so that the death animation would fully complete before the recording stopped and playback started:
`public void BirdDied()
{
// pause for death animation to finish
StartCoroutine(WaitforFinish());
}
 IEnumerator WaitforFinish()
{
    // wait for 2 seconds
    yield return new WaitForSeconds(2);
    //Activate the game over text.
    gameOvertext.SetActive(true);
    //Set the game to be over.
    gameOver = true;
    // stop recording
    _capture.StopCapture();
    capturePreview.Play();
}`


Saving equations throughout runtime

Hey, thank you so much for all your work in this package.
I'm interesting in evaluating the performance of this algorithm overtime (i.e. saving the hallOfFame object after each iteration). Is there any way that I've missed of achieving this without modifying the source code?
Thanks!

Awesome to hear you are liking it! There is the recorder::Bool option in Options, which you can also turn on by setting the environment variable PYSR_RECORDER=1. Then, recorder_file::String is the filename for this (a JSON file; default is pysr_recorder.json). This JSON file records everything, even each individual mutation, which is maybe too much info, but it's helpful for debugging the performance. Does that work?
Cheers,
Miles

Thanks! (btw those options are undocumented I don't know if you were aware)
Hmm... I assume that'd be quite a bit of overhead (?). But I could benchmark in different runs how the loss function evolves over time vs the actual time. Great.
However, I've done a few test runs with recorder = true (with and without recorder_file = ...) but I can't find the .json file in my filesystem. Using  [8254be44] SymbolicRegression v0.6.9. I can reproduce this in a clean environment.
Thanks again.

No problem. That functionality is still experimental since I wrote it for myself to debug specific use-cases of the software in a project I'm using it on, but I can see now that others would find this useful too!

However, I've done a few test runs with recorder = true (with and without recorder_file = ...) but I can't find the .json file in my filesystem. Using [8254be44] SymbolicRegression v0.6.9. I can reproduce this in a clean environment.

Sorry, I see the bug. Just pushed a fix to master. It should work now.

Thanks!
I see that the program is trying to save the record now. However, all runs are failing at some point with ERROR: Inf not allowed to be written in JSON spec. Si I assume the program is trying to save an equation before checking if it produces proper results. I am not familiar enough with the code base to know what's the best workaround, but I assume you must have encountered the same issue in your own testing (?)
I've tested with current master and bc7b81ff80681b469bac55394c03ec56831e48e1

I’ve never seen that before. How are you running it? Do you have a MWE?

I've created this repository that reproduces the error with current master, all packages updated and  Julia 1.6.1. I can reproduce the error instantiating the Manifest.toml and including the .jl file. I'm runing Linux and I've tested with 1 thread and with multiple threads, but I don't think that should be relevant in this case.
I've noticed that it always fails when the progress meter is at 60%.

Thanks! Just pushed a fix in https://github.com/MilesCranmer/SymbolicRegression.jl/commit/124020d79db1c766e6e35863b68bcc2608312a3d; want to try it? (set --project=[path_to_repo] to use the non-versioned one)


Failed reloads are not exposed through web API

I reloaded via the web API and got:
foo@bar ~ % curl -X POST http://localhost:9090/-/reload
Reloading configuration file...%
foo@bar ~ %

While I saw an actual error on CLI:
    INFO[842745] Loading configuration file prometheus.yml     source=main.go:196
    ERRO[842745] Couldn't load configuration (-config.file=prometheus.yml): yaml: unmarshal errors:
  line 362: cannot unmarshal !!map into string  source=main.go:208

Exposing the error via the web API would help quite a bit.

Dupe of #1425


Export condensed distance matrix to a pandas object #1397

I've implemented to_series to create a Pandas series for DissimilarityMatrix in stats.distance _base.py.  I've also created 3 tests in test_base.py.  All tests pass.

Just realized that this may not be ready to review.  Let us know when you are ready.  Thanks!

Jamie,
The build passed.  Should be ready for review.
Thanks,
Virginia
On Jul 27, 2016, at 4:34 PM, Jamie Morton <notifications<EMAIL_ADDRESS>wrote:
Just realized that this may not be ready to review. Let us know when you are ready. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/biocore/scikit-bio/pull/1406#issuecomment-235728429, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQS4keGt8DTz8AE2Av0moqIzXAcVxZBaks5qZ87cgaJpZM4JVaX9.

Thanks for working on this @virginiasaulnier!
Fixes #1397
As a heads up, we will want to squash these commits, but that can be left until this is ready for merge, that way you don't have to do it a bunch of times.

This looks really good @virginiasaulnier! Couple of minor comments, and we will need to add a changelog note under Features describing this change (that can be found in the root of the repo).

Evan,
I’m not sure about this.  I couldn’t pass the df directly into pd.Series, because it would only accept a 1D object.  You may have guessed from the number of commits this is my first attempt at contribution.  I’d be happy to adjust it if you have suggestions.
Thanks,
Virginia
On Jul 28, 2016, at 11:11 AM, Evan Bolyen <notifications<EMAIL_ADDRESS>wrote:
This looks really good @virginiasaulnierhttps://github.com/virginiasaulnier! Couple of minor comments, and we will need to add a changelog note under Features describing this change (that can be found in the root of the repo).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/biocore/scikit-bio/pull/1406#issuecomment-235943989, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQS4kbr54sFTtD7RIUf9CDRxPW8quE92ks5qaNSggaJpZM4JVaX9.

@virginiasaulnier No worries, the comment was actually that you already had a series after calling stack, so passing the result into pd.Series again is unnecessary. Your use of stack is already correct.

So the final line should just say return stacked?
On Jul 28, 2016, at 2:44 PM, Evan Bolyen <notifications<EMAIL_ADDRESS>wrote:
@virginiasaulnierhttps://github.com/virginiasaulnier No worries, the comment was actually that you already had a series after calling stack, so passing the result into pd.Series again is unnecessary. Your use of stack is already correct.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/biocore/scikit-bio/pull/1406#issuecomment-236003822, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQS4kSR743JhaOoXRmNP3iwQQ59Cd-Efks5qaQa5gaJpZM4JVaX9.

I believe so.

Thanks @virginiasaulnier, now all that is missing is a changelog, please see my comment above. Once that is done we will want to collapse all of these commits into a single one with a descriptive name (see our commit history for examples). To accomplish that you will want to read this resource: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History

Thanks for working on this @virginiasaulnier! There's some uncertainty on what the output should be, see my comment here. Let's hold off on merging this until we sort that out.

@jairideout I updated the code to create the series without 0 values.  I'm having a hard time squashing all the commits though.

Thanks @virginiasaulnier, I'll take a pass through your pull request now. Don't worry about squashing yet as there may be more comments to address. We can help you with squashing when this is ready for merge, or we can merge and squash manually for you.

@virginiasaulnier I'm done reviewing. The code, docs, and tests are really nice; most of my comments centered around using a condensed form series, which requires the method to exist on DistanceMatrix but not DissimilarityMatrix.
Let me know if you have any questions about the requested changes and thanks again for working on this!

@virginiasaulnier I believe I've answered your question about the failing tests here, please let me know if you have any further questions and when this is ready for review again.

Thanks for your work on this @virginiasaulnier! I'm closing this in favor of https://github.com/biocore/scikit-bio/pull/1453, which contains your work here (I addressed my comments from the previous review).