text:
Jekyll build error, Wrong Argument Type, Expected String

Configuration file: /Users/ziluweng/Documents/gitHub/kasper/_config.yml
Deprecation: You appear to have pagination turned on, but you haven't included the jekyll-paginate gem. Ensure you have gems: [jekyll-paginate] in your configuration file.
Source: /Users/ziluweng/Documents/gitHub/kasper
Destination: /Users/ziluweng/Documents/gitHub/kasper/_site
Incremental build: disabled. Enable with --incremental
Generating...
Deprecation: Collection#map should be called on the #docs array directly.
Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:46:in block in generate'.        Deprecation: Collection#count should be called on the #docs array directly.                     Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:49:in rescue in block in generate'.
Deprecation: Collection#reverse should be called on the #docs array directly.
Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:51:in block in generate'.        Deprecation: Document#title is now a key in the #data hash.                     Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:53:in block (3 levels) in generate'.
Deprecation: Document#excerpt is now a key in the #data hash.
Called by /Users/ziluweng/Documents/gitHub/kasper/_plugins/rssgenerator.rb:55:in `block (3 levels) in generate'.
jekyll 3.0.1 | Error:  wrong argument type Jekyll::Excerpt (expected String)
Zilus-MacBook-Pro:kasper ziluweng$ gem

I cloned the repo and ran jekyll serve, and ran into this issue that I'm stuck on. I solved the paginate problem by adding
gems:

jekyll-paginate

But still gives the last error

Hey, It could be related to a newer version of Ruby/Jekyll you might be using.
Patches welcome ;)

Facing the same problem, with a fresh clone of Kasper.

Facing the same problem, with a fresh clone of Kasper.

With a simple jekyll-server:
$ jekyll serve
Configuration file: /private/tmp/kasper/_config.yml
            Source: /private/tmp/kasper
       Destination: /private/tmp/kasper/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
       Deprecation: Collection#map should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:46:in `block in generate'.
       Deprecation: Collection#count should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:49:in `rescue in block in generate'.
       Deprecation: Collection#reverse should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:51:in `block in generate'.
       Deprecation: Document#title is now a key in the #data hash.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:53:in `block (3 levels) in generate'.
       Deprecation: Document#excerpt is now a key in the #data hash.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:55:in `block (3 levels) in generate'.
jekyll 3.0.1 | Error:  wrong argument type Jekyll::Excerpt (expected String)

I've tried changing line 55 from:
item.description = parser.convert(post.excerpt)

To:
item.description = 'Whatever' #parser.convert(post.excerpt)

And then I get:
 $ jekyll serve
Configuration file: /private/tmp/kasper/_config.yml
            Source: /private/tmp/kasper
       Destination: /private/tmp/kasper/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
       Deprecation: Collection#map should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:46:in `block in generate'.
       Deprecation: Collection#count should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:49:in `rescue in block in generate'.
       Deprecation: Collection#reverse should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:51:in `block in generate'.
       Deprecation: Document#title is now a key in the #data hash.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:53:in `block (3 levels) in generate'.
  Dependency Error: Yikes! It looks like you don't have pygments or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- pygments' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
  Liquid Exception: pygments in /private/tmp/kasper/_posts/2013-11-10-welcome-to-jekyll.markdown
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    pygments

I've tried both gem install jekyll-pygments and gem install pygments, with no luck.

With a simple jekyll-server:
$ jekyll serve
Configuration file: /private/tmp/kasper/_config.yml
            Source: /private/tmp/kasper
       Destination: /private/tmp/kasper/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
       Deprecation: Collection#map should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:46:in `block in generate'.
       Deprecation: Collection#count should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:49:in `rescue in block in generate'.
       Deprecation: Collection#reverse should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:51:in `block in generate'.
       Deprecation: Document#title is now a key in the #data hash.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:53:in `block (3 levels) in generate'.
       Deprecation: Document#excerpt is now a key in the #data hash.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:55:in `block (3 levels) in generate'.
jekyll 3.0.1 | Error:  wrong argument type Jekyll::Excerpt (expected String)

I've tried changing line 55 from:
item.description = parser.convert(post.excerpt)

To:
item.description = 'Whatever' #parser.convert(post.excerpt)

And then I get:
 $ jekyll serve
Configuration file: /private/tmp/kasper/_config.yml
            Source: /private/tmp/kasper
       Destination: /private/tmp/kasper/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
       Deprecation: Collection#map should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:46:in `block in generate'.
       Deprecation: Collection#count should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:49:in `rescue in block in generate'.
       Deprecation: Collection#reverse should be called on the #docs array directly.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:51:in `block in generate'.
       Deprecation: Document#title is now a key in the #data hash.
                    Called by /private/tmp/kasper/_plugins/rssgenerator.rb:53:in `block (3 levels) in generate'.
  Dependency Error: Yikes! It looks like you don't have pygments or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- pygments' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
  Liquid Exception: pygments in /private/tmp/kasper/_posts/2013-11-10-welcome-to-jekyll.markdown
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    pygments

I've tried both gem install jekyll-pygments and gem install pygments, with no luck.

I managed to solve this error by removing _plugins/rssgenerator.rb and using the default feed.xml which comes by default when you do a jekyll new ...

Simply run: "jekyll s --safe". This should ignore broken dependencies.

The error was indeed coming from _plugins/rssgenerator.rb. Looking at the author's comment: https://github.com/agelber/jekyll-rss the new Jekyll comes with a feed.xml and they suggest to use the default one.
I've included the default  feed.xml which comes with the standard jekyll new template and removed the old rssgenerator.rb.

authors: adamatan iamsebastian kweng2 rosario stephentu

repo: rosario/kasper


text:
Fix 202

Here are a few fixes from flight testing on Friday, and fixing unit test issues.

I don't know why it is failing on Travis.  It works on my machine.  I'll work on that later.

This should be ready to go!

source: gharchive/pull-request

repo: rosflight/firmware

license_type: permissive

license_source: bigquery


text:
Added config node source nodelet indication

Config file now specifies if the node is a "normal" node or a "nodelet".

Note that we could make kind optional and default to NORMAL.

Note that we could make kind optional and default to NORMAL.

Made this change - default is now NODE.

repo: rosqual/rosdiscover

license_source: github-api


text:
[ISSUE] 405 Method Not Allowed - AskNavidrome -> Navidrome

Describe the issue
I have managed to create the Alexa skill, set up the asknavidrome service and expose it via Tailscale Funnel + nginx, but I get this log when I look at my systemctl status for the asknavidrome podman service.
Operating System
NixOS
To Reproduce
Using the Test Skill interface in Alexa Skills. It connects to the skill service okay, but when I request a specific song I get these logs:
Logs
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,784 - asknavidrome.subsonic_api - DEBUG - In function search_artist()
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,803 - root - DEBUG - In GeneralExceptionHandler
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,803 - root - ERROR - General Exception: HTTP Error 405: Method Not Allowed
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,803 - root - ERROR - Request Type Was: IntentRequest
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,803 - root - ERROR - Intent Name Was: NaviSonicPlaySongByArtist
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,805 - werkzeug - INFO - 10.88.0.1 - - [15/Aug/2024 12:24:16] "POST / HTTP/1.0" 200 -
aug 15 14:24:19 nixos asknavidrome[202111]: 2024-08-15 12:24:19,717 - werkzeug - INFO - 10.88.0.1 - - [15/Aug/2024 12:24:19] "GET /queue HTTP/1.0" 200 -
aug 15 14:24:23 nixos asknavidrome[202111]: 2024-08-15 12:24:23,911 - werkzeug - INFO - 10.88.0.1 - - [15/Aug/2024 12:24:23] "GET /buffer HTTP/1.0" 200 -
aug 15 14:24:27 nixos asknavidrome[202111]: 2024-08-15 12:24:27,482 - werkzeug - INFO - 10.88.0.1 - - [15/Aug/2024 12:24:27] "GET /history HTTP/1.0" 200 -

Hi Jack,
Can you confirm that the skill is connecting to navidrome, it would have
been included earlier and if it is can you confirm which version of
Navidrome you are using?
On Thu, 15 Aug 2024, 13:27 Jack Oliver, @.***> wrote:

Describe the issue
I have managed to create the Alexa skill, set up the asknavidrome service
and expose it via Tailscale Funnel + nginx, but I get this log when I look
at my systemctl status for the asknavidrome podman service.
Operating System
NixOS
To Reproduce
Using the Test Skill interface in Alexa Skills. It connects to the skill
service okay, but when I request a specific song I get these logs:
Logs
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,784 - asknavidrome.subsonic_api - DEBUG - In function search_artist()
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,803 - root - DEBUG - In GeneralExceptionHandler
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,803 - root - ERROR - General Exception: HTTP Error 405: Method Not Allowed
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,803 - root - ERROR - Request Type Was: IntentRequest
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,803 - root - ERROR - Intent Name Was: NaviSonicPlaySongByArtist
aug 15 14:24:16 nixos asknavidrome[202111]: 2024-08-15 12:24:16,805 - werkzeug - INFO - 10.88.0.1 - - [15/Aug/2024 12:24:16] "POST / HTTP/1.0" 200 -
aug 15 14:24:19 nixos asknavidrome[202111]: 2024-08-15 12:24:19,717 - werkzeug - INFO - 10.88.0.1 - - [15/Aug/2024 12:24:19] "GET /queue HTTP/1.0" 200 -
aug 15 14:24:23 nixos asknavidrome[202111]: 2024-08-15 12:24:23,911 - werkzeug - INFO - 10.88.0.1 - - [15/Aug/2024 12:24:23] "GET /buffer HTTP/1.0" 200 -
aug 15 14:24:27 nixos asknavidrome[202111]: 2024-08-15 12:24:27,482 - werkzeug - INFO - 10.88.0.1 - - [15/Aug/2024 12:24:27] "GET /history HTTP/1.0" 200 -
—
Reply to this email directly, view it on GitHub
https://github.com/rosskouk/asknavidrome/issues/47, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALZJF3TMQODS6YZAWYMMMMTZRSNBNAVCNFSM6AAAAABMSDR6MWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3DOOJVGM3TQMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hey! I'm having a hard time accessing those logs. I'm using systemctl status podman-asknavidrome at the moment to get a log of what's happening.
Navidrome version is [0.49.3](https://github.com/navidrome/navidrome/releases/tag/v0.49.3)

Here is my NixOS configuration also:
{ config, pkgs, ... }:

{
        config.virtualisation.oci-containers.containers."asknavidrome" = {
                autoStart = true;
                image = "ghcr.io/rosskouk/asknavidrome";
                ports = [ "5000:5000" ];
                environment = {
                        NAVI_SKILL_ID = "REDACTED";
                        NAVI_SONG_COUNT = "50";
                        NAVI_URL = "https://REDACTED.ts.net/navidrome";
                        NAVI_USER = "REDACTED";
                        NAVI_PASS = "REDACTED";
                        NAVI_PORT = "443";
                        NAVI_API_PATH = "/rest";
                        NAVI_API_VER = "1.16.1";
                        NAVI_DEBUG = "3";
                };
        };
}

Ah, I found it through journalctl.
I am getting a 'Failed to connect to Navidrome'. All the details are correct, and I can /rest/ping it no problem from Postman.

Ok, that's definitely the problem.  I'd recommend you triple check the
config.  And if possible see if you can perform the ping API call from
within the container
On Thu, 15 Aug 2024, 13:57 Jack Oliver, @.***> wrote:

Ah, I found it through journalctl.
I am getting a 'Failed to connect to Navidrome'. All the details are
correct, and I can /rest/ping it no problem from Postman.
—
Reply to this email directly, view it on GitHub
https://github.com/rosskouk/asknavidrome/issues/47#issuecomment-2291219330,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALZJF3VUPA3FXYPA4WCSXBDZRSQTZAVCNFSM6AAAAABMSDR6MWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJRGIYTSMZTGA
.
You are receiving this because you commented.Message ID:
@.***>

I've taken it out of systemctl for now and just doing docker run instead. It's very confusing because it says connected, and then not.
2024-08-15 13:41:29,088 - asknavidrome.subsonic_api - DEBUG - Connected to Navidrome
2024-08-15 13:41:29,088 - asknavidrome.subsonic_api - DEBUG - In function ping()
2024-08-15 13:41:29,112 - asknavidrome.subsonic_api - ERROR - Failed to connect to Navidrome

If I ping the URL from Postman, with the credentials I have in the Docker run env variables, i get a <subsonic-response> back, but it still says failed to connect when i boot the container. Very odd.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   155    0   155    0     0   8403      0 --:--:-- --:--:-- --:--:--  8611
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.16.1" type="navidrome" serverVersion="0.49.3 (8b93962f)"></subsonic-response>

Looks like I can ping it from inside the container, so I'm not sure what's up at this point lol.

Got it working. Couple things I noticed / tried;

Works well with the demo navidrome instance, so I don't think it's anything wrong with the code.
Didn't like it being on a /navidrome proxy pass on nginx - for some reason.
Set it to the root /, and had to add /navidrome/rest in the API path, and then it worked.

Thanks for being a great rubber duck! 😆 🦆

source: gharchive/issue

authors: jackoliver rosskouk

repo: rosskouk/asknavidrome

license: MIT


text:
Brave instead of Chrome?

Is it possible to use Brave browser instead of Chrome?
It's supposedly build off of Chromium, if that helps?
Sorry I don't know much so I'm not even sure if this is a valid question to ask.
Thanks!

@hebron-george Sure if it's built on Chrome then it should work. Check out https://github.com/route/ferrum#customization and Ferrum::Browser.new(browser_path: "/path/to/browser") option and put a path to your browser bin there. Let me know if it works we can add it to README.

@route Looks like that worked.
I haven't done any thorough testing though so I'm not sure if there are some features that won't work but at the least - the browser loads up with the page I requested.
Thanks!

authors: hebron-george route

repo: route/ferrum


text:
[pgadmin4] Bump appVersion to v8.4

What this PR does / why we need it:
This update of pgAdmin4 fixes CVE-2024-2044.
Which issue this PR fixes
none
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[ ] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [pgadmin4])

Note: it turns out that dpage/pgadmin4 does not have v8.5 available yet.

Note: it turns out that dpage/pgadmin4 does not have v8.5 available yet.

that is correct, cause 8.4 got pushed 4 days ago. So most likely in a month 8.5 will be released.

authors: jstsddg rowanruseler

repo: rowanruseler/helm-charts


text:
🛑 Umiya Agro Solvex is down

In aea62c5, Umiya Agro Solvex (https://umiyaagrosolvex.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Umiya Agro Solvex is back up in f4ddc26 after 5 minutes.

repo: rpharaniya/websites-uptime-monitor


text:
🛑 Breze Cleaning is down

In 8ad4373, Breze Cleaning (https://brezecleaning.com/) was down:

HTTP code: 504
Response time: 6313 ms

Resolved: Breze Cleaning is back up in 29e6f76.


text:
Support for arm64

Addresses #13
This PR modifies build tags for ws2811_sim.go and ws2811_arm.go (also renamed to ws2811_hw.go) to support building for arm64 targets like the Raspberry Pi 4B
This has been tested, and works directly compiling on a Raspberry Pi 4B running Ubuntu 20.10 server for arm64.

Thank you @onnenon for your contribution.

Thank you! Happy I could contribute.

authors: onnenon supcik


text:
updates readme

Issue that this pull request solves
Solves: updates readme
Proposed changes
Updates readme -  added new commands details, added wiki link
Types of changes
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation update (Documentation content changed)
[ ] Other (please describe):

Checklist
Put an x in the boxes that apply

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Screenshots
changes link: https://github.com/rpotter12/whatsapp-play/blob/pull/README.md

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 9

See the complete overview on Codacy


text:
🛑 Tu Empleo Ideal is down

In 65c937e, Tu Empleo Ideal (http://www.vacantestei.com/home) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tu Empleo Ideal is back up in 32e73cd.


text:
Multiple errors on creation

In the part where the images are chosen, an error appears, which I attach, and after that part where all the parameters that were configured are confirmed, when creating the files, more errors also appear, which I also attach.
Last Version Version [e.g. 1.0.0.0-alpha-8]

It was a problem with my permissions, thank you, issue closed


text:
ProviderOrFamily not exposed

Could you please expose ProviderOrFamily so we can reference it?
We need it in some implementation of writing custom state notifier provider builder, the generics can get too long so we are writing these helper to shorten that, but then we cannot  declare the type of '  List? dependencies'.

Could you expand on the reason why you need it?

Let's say that we have a StateNotifier<Some<Really<Nested>>> that is used super frequently.
When creating provider with:
StateNotifierProvider<Notifier, State>, it's kind of unnecessary to repeat it if the state type and notifier are unified through out some major functionalities of the app. We do understand the Dart limitation of type inference and the need of two generics. But It's not possible instantiate a StateNotifierProvider fully if you can't add dependencies when needed to conform with riverpod API.
I believe exposing this will allow more flexibility according to the user's architecture and needs.

But how does this relate to ProviderOrFamily?

Oh I see. I forgot that it's used by "dependencies". Fair enough then, it not being exposed is a mistake.

authors: erabti rrousselGit

license: mit


text:
Project doesn't compile if the type of certain providers is not explicitly specified

To Reproduce
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

final progressProvider = Provider((ref) {
  return 0.5.clamp(0.0, 1.0);
});

void main() {
  runApp(
    const MaterialApp(
      home: Scaffold(),
    ),
  );
}

The type is inferred correctly as you can see here:

There are no errors or warnings, but when you try to compile it fails with this message:
Unhandled exception:
Crash when compiling null,
at character offset null:
Null check operator used on a null value
#0      TypeInferrerImpl._inferInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:2531:28)
#1      TypeInferrerImpl.inferInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:2155:12)
#2      TypeInferrerImpl._inferInstanceMethodInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:3295:40)
#3      TypeInferrerImpl.inferMethodInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:3832:20)
#4      InferenceVisitor.visitMethodInvocation (package:front_end/src/fasta/kernel/inference_visitor.dart:2909:21)
#5      MethodInvocation.acceptInference (package:front_end/src/fasta/kernel/internal_ast.dart:4644:20)
#6      TypeInferrerImpl._inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2030:27)
#7      TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2067:40)
#8      InferenceVisitor.visitReturnStatement (package:front_end/src/fasta/kernel/inference_visitor.dart:5947:61)
#9      ReturnStatement.accept (package:kernel/ast.dart:9864:43)
#10     TypeInferrerImpl.inferStatement (package:front_end/src/fasta/type_inference/type_inferrer.dart:4115:24)
#11     InferenceVisitor._visitStatements (package:front_end/src/fasta/kernel/inference_visitor.dart:542:20)
#12     InferenceVisitor.visitBlock (package:front_end/src/fasta/kernel/inference_visitor.dart:563:31)
#13     Block.accept (package:kernel/ast.dart:8885:43)
#14     TypeInferrerImpl.inferStatement (package:front_end/src/fasta/type_inference/type_inferrer.dart:4115:24)
#15     TypeInferrerImpl.inferLocalFunction (package:front_end/src/fasta/type_inference/type_inferrer.dart:2861:43)
#16     InferenceVisitor.visitFunctionNode (package:front_end/src/fasta/kernel/inference_visitor.dart:1380:21)
#17     InferenceVisitor.visitFunctionExpression (package:front_end/src/fasta/kernel/inference_visitor.dart:1411:9)
#18     FunctionExpression.accept1 (package:kernel/ast.dart:8283:9)
#19     TypeInferrerImpl._inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2032:27)

#20     TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2067:40)
#21     TypeInferrerImpl._inferInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:2428:46)
#22     TypeInferrerImpl.inferInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:2155:12)
#23     InferenceVisitor.visitConstructorInvocation (package:front_end/src/fasta/kernel/inference_visitor.dart:700:49)
#24     ConstructorInvocation.accept1 (package:kernel/ast.dart:6383:9)
#25     TypeInferrerImpl._inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2032:27)
#26     TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2067:40)
#27     _ImplicitFieldTypeRoot.computeType (package:front_end/src/fasta/kernel/implicit_field_type.dart:162:55)
#28     SourceFieldBuilder.inferType (package:front_end/src/fasta/source/source_field_builder.dart:456:47)
#29     SourceLoader.performTopLevelInference (package:front_end/src/fasta/source/source_loader.dart:2292:35)
#30     KernelTarget.buildOutlines.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:531:14)
<asynchronous suspension>
#31     withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
<asynchronous suspension>
#32     IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:400:33)
<asynchronous suspension>
#33     IncrementalCompiler.compile (package:vm/incremental_compiler.dart:68:50)
<asynchronous suspension>
#34     FrontendCompiler.compile (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/lib/frontend_server.dart:562:11)
<asynchronous suspension>
#35     listenAndCompile.<anonymous closure> (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/lib/frontend_server.dart:1199:11)
<asynchronous suspension>

#0      TypeInferrerImpl._inferInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:2531:28)
#1      TypeInferrerImpl.inferInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:2155:12)
#2      TypeInferrerImpl._inferInstanceMethodInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:3295:40)
#3      TypeInferrerImpl.inferMethodInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:3832:20)
#4      InferenceVisitor.visitMethodInvocation (package:front_end/src/fasta/kernel/inference_visitor.dart:2909:21)
#5      MethodInvocation.acceptInference (package:front_end/src/fasta/kernel/internal_ast.dart:4644:20)
#6      TypeInferrerImpl._inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2030:27)
#7      TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2067:40)
#8      InferenceVisitor.visitReturnStatement (package:front_end/src/fasta/kernel/inference_visitor.dart:5947:61)
#9      ReturnStatement.accept (package:kernel/ast.dart:9864:43)
#10     TypeInferrerImpl.inferStatement (package:front_end/src/fasta/type_inference/type_inferrer.dart:4115:24)
#11     InferenceVisitor._visitStatements (package:front_end/src/fasta/kernel/inference_visitor.dart:542:20)
#12     InferenceVisitor.visitBlock (package:front_end/src/fasta/kernel/inference_visitor.dart:563:31)
#13     Block.accept (package:kernel/ast.dart:8885:43)
#14     TypeInferrerImpl.inferStatement (package:front_end/src/fasta/type_inference/type_inferrer.dart:4115:24)
#15     TypeInferrerImpl.inferLocalFunction (package:front_end/src/fasta/type_inference/type_inferrer.dart:2861:43)
#16     InferenceVisitor.visitFunctionNode (package:front_end/src/fasta/kernel/inference_visitor.dart:1380:21)
#17     InferenceVisitor.visitFunctionExpression (package:front_end/src/fasta/kernel/inference_visitor.dart:1411:9)
#18     FunctionExpression.accept1 (package:kernel/ast.dart:8283:9)
#19     TypeInferrerImpl._inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2032:27)
#20     TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2067:40)
#21     TypeInferrerImpl._inferInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:2428:46)
#22     TypeInferrerImpl.inferInvocation (package:front_end/src/fasta/type_inference/type_inferrer.dart:2155:12)
#23     InferenceVisitor.visitConstructorInvocation (package:front_end/src/fasta/kernel/inference_visitor.dart:700:49)
#24     ConstructorInvocation.accept1 (package:kernel/ast.dart:6383:9)
#25     TypeInferrerImpl._inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2032:27)
#26     TypeInferrerImpl.inferExpression (package:front_end/src/fasta/type_inference/type_inferrer.dart:2067:40)
#27     _ImplicitFieldTypeRoot.computeType (package:front_end/src/fasta/kernel/implicit_field_type.dart:162:55)

#28     SourceFieldBuilder.inferType (package:front_end/src/fasta/source/source_field_builder.dart:456:47)
#29     SourceLoader.performTopLevelInference (package:front_end/src/fasta/source/source_loader.dart:2292:35)
#30     KernelTarget.buildOutlines.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:531:14)
<asynchronous suspension>
#31     withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
<asynchronous suspension>
#32     IncrementalCompiler.computeDelta.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:400:33)
<asynchronous suspension>
#33     IncrementalCompiler.compile (package:vm/incremental_compiler.dart:68:50)
<asynchronous suspension>
#34     FrontendCompiler.compile (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/lib/frontend_server.dart:562:11)
<asynchronous suspension>
#35     listenAndCompile.<anonymous closure> (file:///opt/s/w/ir/x/w/sdk/pkg/frontend_server/lib/frontend_server.dart:1199:11)
<asynchronous suspension>

the Dart compiler exited unexpectedly.
the Dart compiler exited unexpectedly.
Exited (1)

Specifying the type solves the problem:
final progressProvider = Provider<double>((ref) {
  return 0.5.clamp(0.0, 1.0);
});

In this case it has to do with clamp but I don't know why exactly.

That's a Dart bug. Nothing I can't do
Try raising an issue on the Dart SDK instead

repo: rrousselGit/riverpod


text:
Update README.md

Updated installation instructions for GPU support.

This definitely looks like an improvement to me. I approved the CI run and can merge when it completes.

Codecov Report

Merging #121 (a392641) into main (2ebe147) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #121   +/-   ##
=======================================
  Coverage   78.82%   78.82%
=======================================
  Files          49       49
  Lines        2135     2135
=======================================
  Hits         1683     1683
  Misses        452      452

Flag
Coverage Δ

unittests
78.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

authors: DorisMai codecov-commenter kmdalton

repo: rs-station/careless


text:
My application crash in Iphone4s & IOS8.3

Filtered syslog:
2015-06-25 23:54:58.769 Meet[390]: <Error> objc[390]: Class SDImageCache is implemented in both /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Frameworks/SDWebImage.framework/SDWebImage and /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Meet. One of the two will be used. Which one is undefined.
2015-06-25 23:54:58.769 Meet[390]: <Error> objc[390]: Class SDWebImageDownloaderOperation is implemented in both /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Frameworks/SDWebImage.framework/SDWebImage and /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Meet. One of the two will be used. Which one is undefined.
2015-06-25 23:54:58.770 Meet[390]: <Error> objc[390]: Class SDWebImageManager is implemented in both /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Frameworks/SDWebImage.framework/SDWebImage and /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Meet. One of the two will be used. Which one is undefined.
2015-06-25 23:54:58.771 Meet[390]: <Error> objc[390]: Class SDWebImageCombinedOperation is implemented in both /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Frameworks/SDWebImage.framework/SDWebImage and /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Meet. One of the two will be used. Which one is undefined.
2015-06-25 23:54:58.771 Meet[390]: <Error> objc[390]: Class SDWebImagePrefetcher is implemented in both /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Frameworks/SDWebImage.framework/SDWebImage and /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Meet. One of the two will be used. Which one is undefined.
2015-06-25 23:54:58.771 Meet[390]: <Error> objc[390]: Class SDWebImageDownloader is implemented in both /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Frameworks/SDWebImage.framework/SDWebImage and /private/var/mobile/Containers/Bundle/Application/302D9935-E381-46AE-8D03-B58829D2CD24/Meet.app/Meet. One of the two will be used. Which one is undefined.
2015-06-25 23:54:59.184 Meet[390]: <Error> assertion failed: 12F70: libxpc.dylib + 51923 [89A85F22-6D73-33D8-9D7A-FCF58D58C58E]: 0x7d
2015-06-25 23:54:59.942 Meet[390]: <Error>  SecTrustEvaluate  [leaf AnchorTrusted]
2015-06-25 23:55:00.218 Meet[390]: <Warning> Could not load the " " image referenced from a nib in the bundle with identifier "com.yktx.Meets"
2015-06-25 23:55:05.282 Meet[390]: <Error> *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]:

Does the app run fine on the simulator or an iPhone 5/6/6P ?
Is it a swift project?
How did you add the SDWebImage.framework in your project?
Can you check if you have added it twice?

Hello, I'm using swift, actually, I'm here is to run everything possible, but submit appStore, feedback to me is on the iphone 4 collapse, then, I saw the show my log is SwWeb have a problem.
I am using CocoaPods added，I didn't add twice... I am also very upset

So you only face this problem in the iPhone 4S device?

I think it should be.
At least I hand the 5S, touch, 6plus, 6 real machine running no problem. Here I no 4S, only the virtual machine, virtual machines running if no problem, so I think is not only real 4S will appear in this issue.
I don't know why this is a problem, and I don't know what 4S is like.
I intend to file a, have a look will not have this problem.

Your app is directly linking SDWebImage as a static library, and using iOS 8's dynamic frameworks to link it at runtime. You'll want to remove one of those two.

@wodetian any updates on this?

@wodetian I'm going to close the issue. Please reopen when you can bring updates.

authors: bpoplauschi cbowns mythodeia wodetian

repo: rs/SDWebImage


text:
adjust aqua and blue in the light variant

Aqua and blue are not distinguishable enough in the light variant, I'm tring to make them more distinguishable.

Hmmm, I think it can be a little bit difficult to distinguish them in the light variant, but I think the original is decent enough as is. The new version seems a little bit harder to distinguish and I think the contrast looks good enough already. So, my vote is to stick to the original.

Sorry for bothering, but I need other people's help.

And don't worry, I don't mind helping out. It's not a bother at all! 😄

Thanks for your help!
I decided to use the original color palette instead, but slightly increased the contrast of black(used in the Normal highlight group). I'm personally satisfied with this. What do you think?

Sure, I think this looks good! I'll go ahead and merge.

authors: rsaihe sainnhe

repo: rsaihe/gruvbox-material-kitty


text:
point bower "main" at the build wad.js file

From the current bower.json:
"main": "wad.js",

wad.js is inside build/ though, so tools like wiredep and bowerRequirejs can't find it.  I suggest pointing it at build/wad.js.  I could be missing something though!  Thoughts?

Thanks for contributing!

authors: mwcz rserota

repo: rserota/wad


text:
#4 update video display

キャプチャしたフレーム数を表示するようにした
エンコード動画ファイル名にfpsを追加した

手元の環境で動作確認した

マージするぜ


text:
Let! shadowing

Here's the behaviour in question, this test fails.
describe do
  let!(:foo) { 1 }

  context do
    let(:foo) { raise "boom" }

    it {}
  end
end

The inner foo overrides the outer foo's behaviour, but it doesn't turn foo into a let from a let!. This isn't what I would expect although I understand why it happens.

What is your question?

@benoittgt, do you consider this a bug?

I don't see this as a bug. 😊
So I am closing the issue. We can re-open it if needed.

I'd say the example code's behavior is somewhat surprising. One might expect lets and let!s to be completely independent and not interact with each other. Perhaps a documentation adjustment is warranted?

What do you think about it @JonRowe ?

From:  https://relishapp.com/rspec/rspec-core/v/3-8/docs/helper-methods/let-and-let

Use let to define a memoized helper method. The value will be cached across
multiple calls in the same example but not across examples.
Note that let is lazy-evaluated: it is not evaluated until the first time
the method it defines is invoked. You can use let! to force the method's
invocation before each example.

It should therefore be clear this is expected Ruby semantics for methods that have been defined.
If we add to this I think it should be in the form of adding a note to the second paragraph that "This can not be undone and will apply to any future conflicting method definition". Or some such.

I'd also support highlighting the fact that methods are defined, maybe we just add helper *method*

authors: JonRowe benoittgt danielwaterworth mikegee

repo: rspec/rspec-core


text:
Modules included in example groups aren't visible in Ruby 1.9.3

In Ruby 1.9.3, when including a module in an example group, constants defined in the module aren't in scope:
module X
  module Y
    def self.a_method
      5
    end
  end
end

describe X::Y do
  include X

  it "can access Y" do
    Y.a_method.should == 5
  end
end

This fails with "NameError: uninitialized constant Y".
This worked fine in 1.9.2, so it seemed like a Ruby change caused the regression. It happens both with rspec-core 2.6.0 and 2.7.1.

Looks like a Ruby bug:
module X
  module Y
    def self.a
      puts 'a'
    end
  end
end

class Foo

end

a = Class.new(Foo) do
  include X

  def self.b
    Y.a
  end
end

puts a.b # => uninitialized constant Y (NameError)

Looks like 1.9.3 has a bug with "block evaluation" (Class.new, module_eval, etc.)

I just tried it with 1.9.3-head, still no fix :(
@garybernhardt - I'll let you upsert this bug to ruby core.

Done: http://redmine.ruby-lang.org/issues/5657

Apparently this was never supposed to work in the first place; the fact that it worked on 1.9.2 was a bug. Shame. :/ http://redmine.ruby-lang.org/issues/5657

authors: garybernhardt justinko


text:
https://relishapp.com/rspec shows application error

Currently https://relishapp.com/rspec shows application error.

Could you investigate it?
Related issue: https://github.com/rspec/rspec-metagem/issues/70 , https://github.com/rspec/doc-site/issues/5

👋 There is an issue with relishapp at the moment, you can find our website at https://rspec.info which has our API documentation, or read the cucumber scenarios directly from repos.
See: https://github.com/rspec/doc-site/issues/5#issuecomment-1446152910
Closing because this is not an rspec issue.

authors: JonRowe JunichiIto

repo: rspec/rspec-metagem


text:
Only load example group modules when they're used

Currently the example group modules for all spec types are always loaded, regardless of which type of spec is being run. Some of those modules force parts of the user's application to load; for example, RSpec::Rails::HelperExampleGroup includes ActionView::TestCase::Behavior, and loading ActionView::TestCase loads all of the application's helpers.
By autoloading these modules and including them lazily the first time the corresponding spec type is defined, we can avoid loading parts of the user's application unnecessarily.
Co-authored by @ilianah 🍐

Anything we can do to load things only when needed gets a plus from me, however I'm slightly concerned the build is failing because our snippets are exposing the change in whats loaded by default (in the case of 3.2 its just minitest being missing) which makes me wonder if this is a breaking change from a users perspective but I'm willing to be convinced its not if its easy to fix the build.
The suggested improvement to rspec-core is also fine, I think the helpers you are using were actually invented for rspec-rails ironically (for the define derived types options)

Previously ActiveSupport::TestCase was always loaded, so minitest would be required here: https://github.com/rails/rails/blob/v7.1.3.2/activesupport/lib/active_support/test_case.rb#L3
The most straightforward fix for that is to continue to load minitest by requiring it explicitly; I've pushed a commit to do that.

authors: JonRowe eugeneius

repo: rspec/rspec-rails


text:
Any clue how to implement zio2 FiberRef?

Expression type:
FiberRef[Map[String, Any]]
Symbol signature:
def await[F[$1], T, G[$2]](f: F[T])(using am: CpsAwaitable[F], ctx: CpsMonadContext[G]): T
Pseudofunction, which can be used inside async block, to 'await' (i.e. receive value of t:T from ft:F[T]).
Can't find cps.CpsMonadConversion[[A >: scala.Nothing <: scala.Any] => zio.ZIO[zio.Scope, scala.Nothing, A], zio.Task]: given instance zioToZio in package cps.monads.zio does not match type cps.CpsMonadConversion[[A] =>> zio.ZIO[zio.Scope, Nothing, A], zio.Task]sbt

import zio.{given, *}
import cps.monads.zio.{given, *}
import cps.{given, *}

object ctx:
  private val ref = zio.FiberRef.make(Map.empty[String, Any])

  def withCtx[R](body: => Task[R]) = async[Task] {
    val ctx = await(ref)
  }

Let-s try to deduce types by hand:
We have zioToZio with the next signature:
given zioToZio[R1,R2<:R1,E1,E2>:E1]: CpsMonadConversion[[T] =>> ZIO[R1,E1,T], [T]=>>ZIO[R2,E2,T]]

Our failed conversion:
// zio[Scope,Nothing,A] => zio.Task[A]
//                                            zio[Any, Throwable, A]
//
// .   R1 = Scope, E1 = Nothing
//     R2 = Any    E1 = Throwable
// .   R2 <: R1 = (Any <:  Scope) - false.

So,  resolution is correct - this should not be compiled,  because environment of Task (Any) is not a subset of Scope.
For rechecking we can emulate same logic without async:
 def withCtxNoAwait[R](body:  => Task[R]):Task[Unit] = {
    ref.map(_ => ())
  }

To have Scope in task we should have something like:
  def withCtx[R](body: => Task[R]) = async[[T]=>>ZIO[Scope,Throwable,T]] {
    val ctx = ref
    body
  }

Btw, let's think,  are R2<:R1  requirement is correct(?)
R - is a set of requirements.  Any - no requirements, buf FiberRef introduce Scope requirement,  so I think it's necessory.

Great, thanks very much.

authors: rssh wiltonlazary

repo: rssh/cps-async-connect


text:
License

Hello @rssh and @alisa-rend,
I wasn't able to find a license in the project.
scala-gopher was supposed to be open source or is it a proprietary software?
What are the restriction in using and expanding it?

Yes, it's open source.
License default is Apache [http://www.apache.org/licenses/LICENSE-2.0].
If you prefer other OSS-compatible license, tell me.
Thanks for notice, I will add reference to docs.

Thanks @rssh

authors: JoaoGFarias rssh

repo: rssh/scala-gopher


text:
Error while connecting with spark with sparkly using RStudio with Kerberos enabled machines

I have 2 machine clustor. I am trying to connect to spark. When I try to connect using R shell, It is working fine.
Getting following error from Rstudio.
Connection:
sc <- spark_connect(master="yarn-client",spark_home = "/usr/hdp/2.5.3.0-37/spark",
config = list(
default = list(
spark.submit.deployMode= "client",
spark.yarn.keytab= "path/keytab",
spark.yarn.principal= "user",
spark.executor.instances= 1,
spark.executor.memory= "250M",
spark.executor.cores= 4,
spark.driver.memory= "250M")))
Error:
Failed during initialize_connection: org.apache.hadoop.service.ServiceStateException: java.io.IOException: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "host1"; destination host is: "host2":8020;

@GitanjaliThete are you using RStudio Server PRO? Kerberized sessions are only supported in the RStudio Server PRO. If that's the case, you would have to configure:

/etc/pam.d/rstudio-original
/etc/pam.d/rstudio-session
/etc/rstudio/rserver.conf

For details, see http://docs.rstudio.com/ide/server-pro/r-sessions.html#kerberos - Has this been configured already?

Thank javierluraschi!
Yes, I installed RStudio Server Pro 1.0.136 on CentOS. Also configured following files for PAM
Still not able to connect. Please let me know in case made some mistake.
/etc/pam.d/rstudio
#%PAM-1.0
auth sufficient pam_rootok.so
session required pam_env.so readenv=1
session required pam_env.so readenv=1 envfile=/etc/default/locale
session required pam_limits.so
@include common-auth
@include common-account
@include common-session
auth include system-auth
auth optional pam_mount.so use_first_pass
account required pam_unix.so
/etc/pam.d/rstudio-session
auth       sufficient pam_rootok.so
session    required   pam_env.so readenv=1
session    required   pam_env.so readenv=1 envfile=/etc/default/locale
session    required   pam_limits.so
@include common-auth
@include common-account
@include common-session
auth     include    system-auth
auth     optional   pam_mount.so use_first_pass
account  required   pam_unix.so
/etc/rstudio/rserver.conf
Server Configuration File
auth-pam-sessions-profile=rstudio-session
auth-pam-sessions-use-password=1

Try opening up a terminal from within the browser (tools -> shell?) and run kinit

It is working after kinit. Thanks :)

authors: GitanjaliThete javierluraschi kevinykuo

repo: rstudio/sparklyr


text:
Working with YARN cluster in client mode

How to connect to yarn cluster in yarn-client mode?
With SparkR my connection looks like:
spark_env = list('spark.executor.memory' = '8g',
                 'spark.executor.instances' = '32',
                 'spark.executor.cores' = '4',
                 'spark.driver.memory' = '4g',
                 'spark.kryoserializer.buffer.max' = '1g',
                 'spark.yarn.executor.memoryOverhead' ='1000')
sc <- sparkR.init(master = "yarn-client", appName = "sparkr", sparkEnvir = spark_env)

sc <- spark_connect(master = "yarn-client")
with the SPARK_HOME pointing to the right spark directory?
To pass the config values you can use the config parameter in spark_connect or the config.yaml file based on the template included in inst/config

Indeed, it works. When I tried to connect first time, for some reason it get stuck for several minutes. spark_log also  showed nothing, so I decided to ask...
But now it works fine. Thank you, closing.

authors: dselivanov javierluraschi


text:
Support sign in and sign up with GH/GL/BB

While this was technically supported if you knew the URLs, this adds formal support for logging in and signing up with our providers (currently GitHub, BitBucket, and GitLab).

How this works
Let's say your user account already is connected to GitHub because you actually use Read the Docs with your GitHub account. The "Sign in with GitHub" button will just work for you. You can still use your old username and password if you like.
If your GitHub account is not connected to anything and you click the "Sign in with GitHub", you will authenticate with GitHub, and then you will get a confirmation screen where you tie your GitHub account and email to a new Read the Docs username (see screenshot below). After confirming, you'll be logged in. The first and last name may be populated from the provider if available.

BitBucket works exactly the same as GitHub. I didn't actually test GitLab but I assume it does.
Note: There is no technical difference between the "Sign in with.." and "Sign up with.." buttons. If your social account is already connected to a user account, you will be logged in. If it isn't, you will be asked to confirm a new sign up.
Weird edge cases

Say your social account isn't connected, you click "Sign in with..." and go to the confirm new user screen. The email address already exists and you try to submit it again. You will see an error An account already exists with this e-mail address. Please sign in to that account first, then connect your Bitbucket account. This is strange a little bit at first but I believe it is correct functionality. It also won't let you create a duplicate username but that seems standard.
Say a brand new user signs up with their GitHub account and then disconnects GitHub from their account (on https://readthedocs.org/accounts/social/connections/). The user won't be able to login with GitHub any longer (the accounts aren't connected) but they also can't login with a username and password (their account has no password). The only way to retrieve the account in this case is with a password reset to the email on file.

I just tested the email reset and it worked. 👍

I don't believe I got an verification email though, which might make things not work in the future. I wonder if there's a setting or something about email verification that we need to turn on?

The setting is SOCIALACCOUNT_EMAIL_VERIFICATION and it takes the same values as ACCOUNT_EMAIL_VERIFICATION. For some reason it is set to 'none' in development.
I'll make the settings match in dev and open a PR for the production settings.

👍 looks good to me. I imagine we might get some support requests around this for edge cases, but we can take those as they come.

authors: davidfischer ericholscher


text:
Can't modif

Hello
When I do the following to bypass network check, get error "unable to execute script Applescript"

Download/install the app, browse the package contents, and copy "installer_build_components.tgz" into a temporary directory somewhere. Extract the contents of "installer_build_components.tgz"

Edit "private/user/firstbootpackageinstall_noswupdates.sh". Comment out or delete lines 84-114 (the section that checks for a network connection)

Recompress that directory (e.g. "tar -cvzf installer_build_components.tgz installer_build_components")

Replace the "installer_build_components.tgz" file in the package contents with the one you just created.

Do you have an other way to bypass this check action ?
Tx

Nope. If you want to modify how this application works, the responsibility for making it work afterwards is on you as the person making the modifications.

authors: chillus rtrouton


text:
modify become-spongy.sh to apply changes for working mail package for android

This changes the become-spongy.sh script to get mail packages working in android see #20 for the result after appying the script

nice..

repo: rtyley/spongycastle


text:
run problem and main file

how to run this project..where is the main file of this program

In the test path
src/test/java/com/github/ruananswer/


text:
Store current workspaceId into hash

Description

Issues Resolved

Screenshot

Testing the changes

Check List

[ ] All tests pass

[ ] yarn test:jest
[ ] yarn test:jest_integration
[ ] yarn test:ftr

[ ] New functionality includes testing.
[ ] New functionality has been documented.
[ ] Update CHANGELOG.md
[ ] Commits are signed per the DCO using --signoff

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@9c192a3). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head ce64684 differs from pull request most recent head 05fda74. Consider uploading reports for the commit 05fda74 to get more accurate results

@@           Coverage Diff           @@
##             main     #209   +/-   ##
=======================================
  Coverage        ?   35.35%
=======================================
  Files           ?     1864
  Lines           ?    35774
  Branches        ?     6482
=======================================
  Hits            ?    12649
  Misses          ?    22300
  Partials        ?      825

Flag
Coverage Δ

Linux_4
35.35% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

authors: SuZhou-Joe codecov-commenter

repo: ruanyl/OpenSearch-Dashboards


text:
Make most constants private

Constants for node.rb are left as is (other cops depend on them)
Constants for node_pattern.rb are left as is (whole class is @api private)

repo: rubocop-hq/rubocop-ast


text:
FactoryBot/AttributeDefinedStatically doesn't work well

When processing the following code:
# spec/lib/application/configuration_spec.rb

describe '.ignore' do
  context 'when the block is given' do
    it 'changes the count of the registered regex' do
      expect do
        described_class.ignore do |ignore|
          ignore << /(a|b)/
          ignore.push(/.*/)
        end
      end.to change(described_class.ignore, :count).by(2)
    end
  end
end

I have the next recommendation:
spec/lib/application/configuration_spec.rb:33:13: C: FactoryBot/AttributeDefinedStatically: Use a block to declare attribute values.
            ignore.push(/.*/)
            ^^^^^^^^^^^^

Also, I have the same recommendation in another file:
# spec/dummy/config/initializers/seo.rb

config.ignore do |ignore|
  ignore.push(%r{\A/admin.*}.freeze)
  ignore.push(%r{\A/\z}.freeze)
end

spec/dummy/config/initializers/seo.rb:28:5: C: FactoryBot/AttributeDefinedStatically: Use a block to declare attribute values.
    ignore.push(%r{\A/admin.*}.freeze)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/dummy/config/initializers/seo.rb:29:5: C: FactoryBot/AttributeDefinedStatically: Use a block to declare attribute values.
    ignore.push(%r{\A/\z}.freeze)
    ^^^^^^^^^^^^^^^^^^^^^^

rubocop -V
0.93.1 (using Parser 2.7.2.0, rubocop-ast 0.8.0, running on ruby 2.6.5 x86_64-darwin20)

bundle info rubocop-rspec

* rubocop-rspec (1.43.2)
	Summary: Code style checking for RSpec files
	Homepage: https://github.com/rubocop-hq/rubocop-rspec
	Path: /Users/chubchenko/.rvm/gems/ruby-2.6.5/gems/rubocop-rspec-1.43.2

Wondering why this https://github.com/rubocop-hq/rubocop-rspec/blob/e11f6e3c4a539203185e0e11089c8fe2e8f05393/config/default.yml#L8 doesn't work for you.
FactoryBot cops should only scan their directories.
Would you like to debug this a little further, say, by running rubocop with --debug flag, or setting a breakpoint somewhere here https://github.com/rubocop-hq/rubocop-rspec/blob/0d5e03d686d569f9e6f2c00ddce0b04d6463cb3c/lib/rubocop/cop/rspec/base.rb#L39 ?

Regarding the
AllCops:
  RSpec/FactoryBot:
    Patterns:
    - spec/factories/**/*.rb

this was the first thing I tried, but my attempt failed - the same behavior as before 😞 .
Here is an example of output with the --debug option:
bundle exec --gemfile gemfiles/rubocop.gemfile rubocop spec/dummy/config/initializers/seo.rb --debug

For /Users/chubchenko/applications/seo: configuration from /Users/chubchenko/applications/seo/.rubocop.yml
configuration from /Users/chubchenko/.rvm/gems/ruby-2.6.5/gems/rubocop-performance-1.8.1/config/default.yml
configuration from /Users/chubchenko/.rvm/gems/ruby-2.6.5/gems/rubocop-performance-1.8.1/config/default.yml
Default configuration from /Users/chubchenko/.rvm/gems/ruby-2.6.5/gems/rubocop-0.93.1/config/default.yml
configuration from /Users/chubchenko/.rvm/gems/ruby-2.6.5/gems/rubocop-rails-2.8.1/config/default.yml
configuration from /Users/chubchenko/.rvm/gems/ruby-2.6.5/gems/rubocop-rails-2.8.1/config/default.yml
configuration from /Users/chubchenko/.rvm/gems/ruby-2.6.5/gems/rubocop-rspec-1.43.2/config/default.yml
configuration from /Users/chubchenko/.rvm/gems/ruby-2.6.5/gems/rubocop-rspec-1.43.2/config/default.yml
Inspecting 1 file
Scanning /Users/chubchenko/Applications/private/cms-seo/spec/dummy/config/initializers/seo.rb
Loading cache from /Users/chubchenko/.cache/rubocop_cache/6655e55d54761e1e00b5da5b9a104451067030e3/6d7a3b621ca1730e04accd938619e4bdab66cfb1/48dc38c32c72316fef6fe5bddb16f10a6b0fd8cc
C

Offenses:

spec/dummy/config/initializers/seo.rb:28:5: C: FactoryBot/AttributeDefinedStatically: Use a block to declare attribute values.
    ignore.push(%r{\A/admin.*}.freeze)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/dummy/config/initializers/seo.rb:29:5: C: FactoryBot/AttributeDefinedStatically: Use a block to declare attribute values.
    ignore.push(%r{\A/\z}.freeze)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

1 file inspected, 2 offenses detected, 2 offenses auto-correctable
Finished in 0.7074670000001788 seconds

Do you mind sharing the /Users/chubchenko/applications/seo/.rubocop.yml config?

@bquorning Do you think we need to make some changes to the relevant_rubocop_rspec_file? in order to support RSpec/FactoryBot/Patterns setting? It seems that the Patterns setting is one of our own, not supported by the RuboCop config itself. And our logic on top of it it only respects RSpec/Patterns, not RSpec/FactoryBot/Patterns.

Yes, no problem. Here is the configuration file:
require:
  - "rubocop-performance"
  - "rubocop-rails"
  - "rubocop-rspec"

AllCops:
  Exclude:
    - "bin/*"
    - "spec/dummy/bin/*"
    - "spec/dummy/db/**/*"
  TargetRubyVersion: 2.5
  NewCops: enable

############### Layout ###############

Layout/LineLength:
  Max: 120

############### Naming ###############

Naming/PredicateName:
  AllowedMethods:
    - "is_a?"
    - "have_redirect"

############### Style ###############

Style/Documentation:
  Enabled: false

############### Metrics ###############

Metrics/AbcSize:
  IgnoredMethods:
    - "change"
    - "redirectable"

Metrics/BlockLength:
  ExcludedMethods:
    - "register"
    - "describe"
    - "shared_examples"

Metrics/MethodLength:
  ExcludedMethods:
    - "change"

############### Rails ###############

Rails/SkipsModelValidations:
  Exclude:
    - "app/models/seo_module/redirect.rb"
    - "app/services/seo_module/redirect/kill_cycling.rb"
    - "lib/seo_module/admin/redirect.rb"

Rails/DynamicFindBy:
  Whitelist:
    - "find_by_page_type_and_slug"

############### RSpec ###############

RSpec/DescribeClass:
  Exclude:
    - "spec/system/**/*"

RSpec/ExampleLength:
  Exclude:
    - "spec/system/**/*"
  Max: 10

RSpec/MultipleExpectations:
  Exclude:
    - "spec/system/**/*"
  Max: 2

Do you think we need to make some changes to the relevant_rubocop_rspec_file? in order to support RSpec/FactoryBot/Patterns setting?

Actually, I started thinking maybe it’s time to move the FactoryBot code into a separate gem (e.g. RuboCop-FactoryBot). Do the three FactoryBot cops rely on any RSpec cop specific code (the Language module, etc.) at all?

I support the idea. Reasoning:

no common code (that I could find with RSpec cops)
do not overlap on scanned files (FactoryClassName, AttributeDefinedStatically)
it's probably the best moment to extract at about the moment when RuboCop hits 1.0
it makes it possible to find misuses when using FactoryBot with Minitest as well
... I have a number of FactoryBot-related cop ideas based on my recent projects code assession

Cons:

CreateList really should watch both spec files and factories, since both may call create in a loop, or create_list. We'll probably have to keep it here

Side note: we will still have to use über-departments since the whole problem was due to Rails/HttpStatus and RSpec/FilePath. But we can opt-out of this in rspec-factory_bot.
Concerning file locations, as per FactoryBot doc, we should be looking in:
test/factories.rb
spec/factories.rb
test/factories/*.rb
spec/factories/*.rb

Another wild idea would be to submit those cops directly to FactoryBot itself, but according to my recent experience, their maintainers are not too responsive.

This should be fixed in #1063 that is released in 2.0.
Please feel free to reopen if it still doesn't work properly.

authors: bquorning chubchenko pirj

repo: rubocop-hq/rubocop-rspec


text:
todo file is not taken in to account if cop is in the configuration

When regenerating the todo file, if there is a configuration in .rubocop.yml is duplicated and when running rubocop having a cop in both .rubocop.yml and .rubocop_todo.yml the cop only exclude the ones in .rubocop.yml. This affect Rails/SkipsModelValidations. I didn't try it with other cops.

Steps to reproduce the problem & Actual behavior
.rubocop.yml:
Rails/SkipsModelValidations:
  Exclude:
    - 'src/api/db/migrate/*'
    - 'src/api/app/jobs/*'
    - 'src/api/spec/models/bs_request_action_spec.rb'
    - 'src/api/spec/models/review_spec.rb'

I move the offenses from src/api/app/jobs/* to the file src/api/lib/tasks/project_log_rotate_manually.rake. If I regenerate the todo file, all this is added:
    - 'src/api/db/migrate/*'
    - 'src/api/app/jobs/*'
    - 'src/api/lib/tasks/project_log_rotate_manually.rake'
    - 'src/api/spec/models/bs_request_action_spec.rb'
    - 'src/api/spec/models/review_spec.rb'

That's mean that the configuration in .rubocop.yml is somehow taken into account, but it is also being added to the .todo file. There are currently no even offenses in src/api/app/jobs/*, it appears because it is in .rubocop.yml.
Also if with this you run rubocop, I get the following offense:
src/api/lib/tasks/project_log_rotate_manually.rake:26:83: C: Rails/SkipsModelValidations: Avoid using update_all because it skips validations.
  Event::Base.where(project_logged: false).where(["created_at < ?", oldest_date]).update_all(project_logged: true)

So it seems that the todo file is ignored if there is already a configuration in .rubocop.yml. This affect Rails/SkipsModelValidations. I didn't try it with other cops.
Expected behavior

When regenerating the todo file, if there is a configuration in .rubocop.yml, it is taking into account, in the way that only new offenses are excluded in the todo file.

When running rubocop having a cop in both .rubocop.yml and .rubocop_todo.yml the cop exclude the files that appear in both files.

RuboCop version
$ rubocop -V
0.51.0 (using Parser 2.4.0.0, running on ruby 2.4.2 x86_64-linux-gnu)

It happens also for other cops, for example  Style/DateTime so it seems unrelated from the cop.

I think this is important and shouldn't be closed (not sure if it still happen in the current master version but it would be worthwhile to doble check)

repo: rubocop-hq/rubocop


text:
Ignore Rubocop Errors

How can I ignore certain Rubocop errors? I am trying to ignore this one for example:
Method has too many lines. [11/10]

Is there a way to reference that error in some dot file? Note that I am running it in Emacs using Flycheck.
Thanks,

For further reference, the new link for "Disabling Cops Within Source Code" in @jonas054's post is here

For reference, if anyone else stumbles upon this, the name of the cop is MethodLength.
You can disable it in the code with:
# rubocop:disable MethodLength
def foo
  # ...
end

In the end of method we also need to add comment # rubocop:enable MethodLength

authors: georgemillo natakina nayefc


text:
Disallow method names with send and public_send

Is your feature request related to a problem? Please describe.

every so often ruby programmers need to write code that sends data somewhere
Then they add a method that they name send
another developer adds a TODO comment "don't overwrite that ruby method"

Even though send is not exactly a keyword with methods named send one could the control for metaprogramming that relies on using this method
Describe the solution you'd like

a cop in the Lint namespace

Describe alternatives you've considered
None
Additional context

https://ruby-doc.org/core-3.1.2/Object.html#method-i-send

Ruby provides __send__ considering that send is overridden. In other words, __send__ should not be overridden.
I think metaprogramming like using send is used only in limited cases. Disabled by default, but Style/Send cop will already be there for that.
Of course, I don't recommend overriding send, but I think Lint warning is too strict.

Sorry, I didn't know that this cop existed already and didn't know that a standard library has a send method :) https://docs.rubocop.org/rubocop/cops_style.html#stylesend

authors: klyonrad koic

repo: rubocop/rubocop


text:
[Fix #11549] Fix an error for third party cops

Fixes #11549.
This PR fixes an error for third party cops when inheriting RuboCop::Cop::Cop. It makes the same changes to RuboCop::Cop::Cop as RuboCop::Cop::Base in #10839. Confirmed that rubocop-i18n tests pass again.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[x] 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] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

@bbatsov This seems to be a critical path for upgrading to RuboCop 1.45. It looks good that 1.45.1 will be released ASAP after the merge.

Sure. I'll cut a new release right away.

Thank you for the quick release!

authors: bbatsov koic


text:
Export-RubrikDatabasejob pass json file in SQL Server Agent Job

When I use the following script in a SQL Agent job as a cmdshell script type
powershell.exe  D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile Export-RubrikDatabaseJobFile.json Nothing happens and I get the following message in the job history
The step did not generate any output.  Process Exit Code 0.  The step succeeded.
If I trying the script as a Powershell type
D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile Export-RubrikDatabaseJobFile.json
I get the following message
A job step received an error at line 177 in a PowerShell script. The corresponding line is '    } while ($RubrikRequestInfo.status -notin $ExitList) 	'. Correct the script and reschedule the job. The error information returned by PowerShell is: 'You must provide a value expression on the right-hand side of the '-' operator.  '.  Process Exit Code -1.  The step failed.
The only way it will run is not passing the json file as a parm.   Do you know what I am doing wrong

Are you using the Powershell run type or the Operating system run type?

From: rwyoung01 notifications@github.com
Sent: Thursday, May 30, 2019 5:28 PM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Subscribed
Subject: [rubrikinc/rubrik-scripts-for-powershell] Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
When I use the following script in a SQL Agent job as a cmdshell script type
powershell.exe D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile Export-RubrikDatabaseJobFile.json Nothing happens and I get the following message in the job history
The step did not generate any output. Process Exit Code 0. The step succeeded.
If I trying the script as a Powershell type
D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile Export-RubrikDatabaseJobFile.json
I get the following message
A job step received an error at line 177 in a PowerShell script. The corresponding line is ' } while ($RubrikRequestInfo.status -notin $ExitList) '. Correct the script and reschedule the job. The error information returned by PowerShell is: 'You must provide a value expression on the right-hand side of the '-' operator. '. Process Exit Code -1. The step failed.
The only way it will run is not passing the json file as a parm. Do you know what I am doing wrong
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSBJYXFMME3V3WYT67DPYBBJFA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GW2J6QA&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324617384&sdata=2N3GHn3rOKqfuPObP%2FW1Ed0yrjw4ay0lKDk0F3JcK4U%3D&reserved=0, or mute the threadhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSG45G3PG6LW6J5OJSDPYBBJFANCNFSM4HRL2OWQ&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324627395&sdata=uqrLTp%2FotYCmTVLFSqtB3FSX%2BcloTd1pMw8ANWL4wPs%3D&reserved=0.

i have tried both.  the first example is with the cmdexe and the second
example is with the powershell type.
Russell Young
On Mon, Jun 3, 2019 at 7:44 AM Chris Lumnah notifications@github.com
wrote:

Are you using the Powershell run type or the Operating system run type?

From: rwyoung01 notifications@github.com
Sent: Thursday, May 30, 2019 5:28 PM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Subscribed
Subject: [rubrikinc/rubrik-scripts-for-powershell]
Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
When I use the following script in a SQL Agent job as a cmdshell script
type
powershell.exe D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile
Export-RubrikDatabaseJobFile.json Nothing happens and I get the following
message in the job history
The step did not generate any output. Process Exit Code 0. The step
succeeded.
If I trying the script as a Powershell type
D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile
Export-RubrikDatabaseJobFile.json
I get the following message
A job step received an error at line 177 in a PowerShell script. The
corresponding line is ' } while ($RubrikRequestInfo.status -notin
$ExitList) '. Correct the script and reschedule the job. The error
information returned by PowerShell is: 'You must provide a value expression
on the right-hand side of the '-' operator. '. Process Exit Code -1. The
step failed.
The only way it will run is not passing the json file as a parm. Do you
know what I am doing wrong
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSBJYXFMME3V3WYT67DPYBBJFA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GW2J6QA&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324617384&sdata=2N3GHn3rOKqfuPObP%2FW1Ed0yrjw4ay0lKDk0F3JcK4U%3D&reserved=0>,
or mute the thread<
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSG45G3PG6LW6J5OJSDPYBBJFANCNFSM4HRL2OWQ&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324627395&sdata=uqrLTp%2FotYCmTVLFSqtB3FSX%2BcloTd1pMw8ANWL4wPs%3D&reserved=0

.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUHV5XWNRIQT2RNJELTPYUG3RA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZI3GQ#issuecomment-498240922,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFZFZUHVFK67A73U7VFY6ZTPYUG3RANCNFSM4HRL2OWQ
.

I am setting up a lab to test this and fix another unrelated problem with this script. I will work on both at the same time and provide a solution.

From: rwyoung01 notifications@github.com
Sent: Monday, June 3, 2019 9:14 AM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Chris Lumnah; Comment
Subject: Re: [rubrikinc/rubrik-scripts-for-powershell] Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
i have tried both. the first example is with the cmdexe and the second
example is with the powershell type.
Russell Young
On Mon, Jun 3, 2019 at 7:44 AM Chris Lumnah notifications@github.com
wrote:

Are you using the Powershell run type or the Operating system run type?

From: rwyoung01 notifications@github.com
Sent: Thursday, May 30, 2019 5:28 PM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Subscribed
Subject: [rubrikinc/rubrik-scripts-for-powershell]
Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
When I use the following script in a SQL Agent job as a cmdshell script
type
powershell.exe D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile
Export-RubrikDatabaseJobFile.json Nothing happens and I get the following
message in the job history
The step did not generate any output. Process Exit Code 0. The step
succeeded.
If I trying the script as a Powershell type
D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile
Export-RubrikDatabaseJobFile.json
I get the following message
A job step received an error at line 177 in a PowerShell script. The
corresponding line is ' } while ($RubrikRequestInfo.status -notin
$ExitList) '. Correct the script and reschedule the job. The error
information returned by PowerShell is: 'You must provide a value expression
on the right-hand side of the '-' operator. '. Process Exit Code -1. The
step failed.
The only way it will run is not passing the json file as a parm. Do you
know what I am doing wrong
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSBJYXFMME3V3WYT67DPYBBJFA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GW2J6QA&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324617384&sdata=2N3GHn3rOKqfuPObP%2FW1Ed0yrjw4ay0lKDk0F3JcK4U%3D&reserved=0>,
or mute the thread<
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSG45G3PG6LW6J5OJSDPYBBJFANCNFSM4HRL2OWQ&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324627395&sdata=uqrLTp%2FotYCmTVLFSqtB3FSX%2BcloTd1pMw8ANWL4wPs%3D&reserved=0

.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUHV5XWNRIQT2RNJELTPYUG3RA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZI3GQ#issuecomment-498240922,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFZFZUHVFK67A73U7VFY6ZTPYUG3RANCNFSM4HRL2OWQ
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSGOA4KZ42GUETTJDCLPYUKMPA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZLNPQ%23issuecomment-498251454&data=02|01||d47c3165bee546b463de08d6e82573b5|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636951644880050253&sdata=L4G5TwBI8qLtSfCx2HErfmtGRsc0z9h%2F%2FsUvd0KeyZI%3D&reserved=0, or mute the threadhttps://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSDKKAE6UJC4RNF23ADPYUKMPANCNFSM4HRL2OWQ&data=02|01||d47c3165bee546b463de08d6e82573b5|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636951644880060258&sdata=gHo%2BueqF7rArhb%2B9LhXPJCXcyl%2FIPHh3X1VgQ8jVSOw%3D&reserved=0.

I have learned that the Powershell type is running version 2.0 which does
not support the 'notin' command because I am running SQL server 2012 R2.
The cmdexe version is using powershell 3.0 but doesn't work.  Hope this
helps.
Russell Young
On Tue, Jun 4, 2019 at 8:22 AM Chris Lumnah notifications@github.com
wrote:

I am setting up a lab to test this and fix another unrelated problem with
this script. I will work on both at the same time and provide a solution.

From: rwyoung01 notifications@github.com
Sent: Monday, June 3, 2019 9:14 AM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Chris Lumnah; Comment
Subject: Re: [rubrikinc/rubrik-scripts-for-powershell]
Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
i have tried both. the first example is with the cmdexe and the second
example is with the powershell type.
Russell Young
On Mon, Jun 3, 2019 at 7:44 AM Chris Lumnah notifications@github.com
wrote:

Are you using the Powershell run type or the Operating system run type?

From: rwyoung01 notifications@github.com
Sent: Thursday, May 30, 2019 5:28 PM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Subscribed
Subject: [rubrikinc/rubrik-scripts-for-powershell]
Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
When I use the following script in a SQL Agent job as a cmdshell script
type
powershell.exe D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile
Export-RubrikDatabaseJobFile.json Nothing happens and I get the following
message in the job history
The step did not generate any output. Process Exit Code 0. The step
succeeded.
If I trying the script as a Powershell type
D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile
Export-RubrikDatabaseJobFile.json
I get the following message
A job step received an error at line 177 in a PowerShell script. The
corresponding line is ' } while ($RubrikRequestInfo.status -notin
$ExitList) '. Correct the script and reschedule the job. The error
information returned by PowerShell is: 'You must provide a value
expression
on the right-hand side of the '-' operator. '. Process Exit Code -1. The
step failed.
The only way it will run is not passing the json file as a parm. Do you
know what I am doing wrong
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<

https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSBJYXFMME3V3WYT67DPYBBJFA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GW2J6QA&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324617384&sdata=2N3GHn3rOKqfuPObP%2FW1Ed0yrjw4ay0lKDk0F3JcK4U%3D&reserved=0

,
or mute the thread<

https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSG45G3PG6LW6J5OJSDPYBBJFANCNFSM4HRL2OWQ&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324627395&sdata=uqrLTp%2FotYCmTVLFSqtB3FSX%2BcloTd1pMw8ANWL4wPs%3D&reserved=0

.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUHV5XWNRIQT2RNJELTPYUG3RA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZI3GQ#issuecomment-498240922
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AFZFZUHVFK67A73U7VFY6ZTPYUG3RANCNFSM4HRL2OWQ
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSGOA4KZ42GUETTJDCLPYUKMPA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZLNPQ%23issuecomment-498251454&data=02|01||d47c3165bee546b463de08d6e82573b5|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636951644880050253&sdata=L4G5TwBI8qLtSfCx2HErfmtGRsc0z9h%2F%2FsUvd0KeyZI%3D&reserved=0>,
or mute the thread<
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSDKKAE6UJC4RNF23ADPYUKMPANCNFSM4HRL2OWQ&data=02|01||d47c3165bee546b463de08d6e82573b5|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636951644880060258&sdata=gHo%2BueqF7rArhb%2B9LhXPJCXcyl%2FIPHh3X1VgQ8jVSOw%3D&reserved=0

.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUDYG7S7MOMPTGLXZW3PYZUBRA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW4ROIY#issuecomment-498669347,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFZFZUG7MLWVFFJ37MOGWLTPYZUBRANCNFSM4HRL2OWQ
.

ok, I moved the script to a SQL Server 2014 and have the SQL Agent job run
as a Powershell Type and am passing the json file.  So the issue is with
SQL 2012 which runs Powershell 2.0.
Russell Young
On Tue, Jun 4, 2019 at 8:22 AM Chris Lumnah notifications@github.com
wrote:

I am setting up a lab to test this and fix another unrelated problem with
this script. I will work on both at the same time and provide a solution.

From: rwyoung01 notifications@github.com
Sent: Monday, June 3, 2019 9:14 AM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Chris Lumnah; Comment
Subject: Re: [rubrikinc/rubrik-scripts-for-powershell]
Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
i have tried both. the first example is with the cmdexe and the second
example is with the powershell type.
Russell Young
On Mon, Jun 3, 2019 at 7:44 AM Chris Lumnah notifications@github.com
wrote:

Are you using the Powershell run type or the Operating system run type?

From: rwyoung01 notifications@github.com
Sent: Thursday, May 30, 2019 5:28 PM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Subscribed
Subject: [rubrikinc/rubrik-scripts-for-powershell]
Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
When I use the following script in a SQL Agent job as a cmdshell script
type
powershell.exe D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile
Export-RubrikDatabaseJobFile.json Nothing happens and I get the following
message in the job history
The step did not generate any output. Process Exit Code 0. The step
succeeded.
If I trying the script as a Powershell type
D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -Jobfile
Export-RubrikDatabaseJobFile.json
I get the following message
A job step received an error at line 177 in a PowerShell script. The
corresponding line is ' } while ($RubrikRequestInfo.status -notin
$ExitList) '. Correct the script and reschedule the job. The error
information returned by PowerShell is: 'You must provide a value
expression
on the right-hand side of the '-' operator. '. Process Exit Code -1. The
step failed.
The only way it will run is not passing the json file as a parm. Do you
know what I am doing wrong
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<

https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSBJYXFMME3V3WYT67DPYBBJFA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GW2J6QA&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324617384&sdata=2N3GHn3rOKqfuPObP%2FW1Ed0yrjw4ay0lKDk0F3JcK4U%3D&reserved=0

,
or mute the thread<

https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSG45G3PG6LW6J5OJSDPYBBJFANCNFSM4HRL2OWQ&data=02|01||b242996db0c04604043408d6e545cf95|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636948485324627395&sdata=uqrLTp%2FotYCmTVLFSqtB3FSX%2BcloTd1pMw8ANWL4wPs%3D&reserved=0

.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUHV5XWNRIQT2RNJELTPYUG3RA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZI3GQ#issuecomment-498240922
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AFZFZUHVFK67A73U7VFY6ZTPYUG3RANCNFSM4HRL2OWQ
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSGOA4KZ42GUETTJDCLPYUKMPA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWZLNPQ%23issuecomment-498251454&data=02|01||d47c3165bee546b463de08d6e82573b5|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636951644880050253&sdata=L4G5TwBI8qLtSfCx2HErfmtGRsc0z9h%2F%2FsUvd0KeyZI%3D&reserved=0>,
or mute the thread<
https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSDKKAE6UJC4RNF23ADPYUKMPANCNFSM4HRL2OWQ&data=02|01||d47c3165bee546b463de08d6e82573b5|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636951644880060258&sdata=gHo%2BueqF7rArhb%2B9LhXPJCXcyl%2FIPHh3X1VgQ8jVSOw%3D&reserved=0

.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUDYG7S7MOMPTGLXZW3PYZUBRA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW4ROIY#issuecomment-498669347,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFZFZUG7MLWVFFJ37MOGWLTPYZUBRANCNFSM4HRL2OWQ
.

Please see this article on running powershell with sql agent.
https://www.sqlhammer.com/running-powershell-in-a-sql-agent-job/
For SQL Server 2012, i could get the script to run if i do the below as a job step
powershell.exe -file  E:\Scripts\Export-RubrikDatabasesJob.ps1
I had to modify the script to have this as the param section
param(
$JobFile = "E:\Scripts\Export-RubrikDatabasesJobFile.json"
)
I am going to test the functionality on other versions of SQL Server.

I was not able to run it on SQL 2012 because the Powershell type run
version 2.0 and your code operator 'notin' is not supporter.  But I was
able to get it to run as CMDEXE  but I had to code it this way
powershell.exe D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -jobfile
d:\powershell\rubrik\Export-RubrikDatabaseJobFile.json
When I didn't specify the path to the json file it didn't do anything.  So
we can run it on 2012 when we upgrade powershell to 3.0 and run as CMDEXE.
Russell Young
On Wed, Jun 5, 2019 at 10:07 AM Chris Lumnah notifications@github.com
wrote:

Please see this article on running powershell with sql agent.
https://www.sqlhammer.com/running-powershell-in-a-sql-agent-job/
For SQL Server 2012, i could get the script to run if i do the below as a
job step
powershell.exe -file E:\Scripts\Export-RubrikDatabasesJob.ps1
I had to modify the script to have this as the param section
param(
$JobFile = "E:\Scripts\Export-RubrikDatabasesJobFile.json"
)
I am going to test the functionality on other versions of SQL Server.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUDDYEISBTLHX4ZSK2DPY7JCLA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXAANAY#issuecomment-499123843,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFZFZUCA5OIJXZSG3M4ZNQLPY7JCLANCNFSM4HRL2OWQ
.

After some testing, I was able to confirm your way of running things.
For the version thing, there is not much I can do there due to the nature of what is supported as you can see from the blog post article.
Now that you have the script running, shall I close the issue as resolved?

From: rwyoung01 notifications@github.com
Sent: Wednesday, June 5, 2019 2:36 PM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Chris Lumnah; Comment
Subject: Re: [rubrikinc/rubrik-scripts-for-powershell] Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
I was not able to run it on SQL 2012 because the Powershell type run
version 2.0 and your code operator 'notin' is not supporter. But I was
able to get it to run as CMDEXE but I had to code it this way
powershell.exe D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -jobfile
d:\powershell\rubrik\Export-RubrikDatabaseJobFile.json
When I didn't specify the path to the json file it didn't do anything. So
we can run it on 2012 when we upgrade powershell to 3.0 and run as CMDEXE.
Russell Young
On Wed, Jun 5, 2019 at 10:07 AM Chris Lumnah notifications@github.com
wrote:

Please see this article on running powershell with sql agent.
https://www.sqlhammer.com/running-powershell-in-a-sql-agent-job/
For SQL Server 2012, i could get the script to run if i do the below as a
job step
powershell.exe -file E:\Scripts\Export-RubrikDatabasesJob.ps1
I had to modify the script to have this as the param section
param(
$JobFile = "E:\Scripts\Export-RubrikDatabasesJobFile.json"
)
I am going to test the functionality on other versions of SQL Server.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUDDYEISBTLHX4ZSK2DPY7JCLA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXAANAY#issuecomment-499123843,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFZFZUCA5OIJXZSG3M4ZNQLPY7JCLANCNFSM4HRL2OWQ
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSDZZ52Z7LXSXRRPJE3PZABT5A5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXAUCMY%23issuecomment-499204403&data=02|01||5eb3c95f89814f630fbd08d6e9e4c497|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636953566090470044&sdata=oKluql%2FegEdtB1PE7UB0n3M1iCIvkmKD6q%2Foko1Y5SA%3D&reserved=0, or mute the threadhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSFVU2SZURALJ3OGKT3PZABT5ANCNFSM4HRL2OWQ&data=02|01||5eb3c95f89814f630fbd08d6e9e4c497|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636953566090480055&sdata=dqa0%2BFjuUKdyldlU7MdPufGnSdwYiMh6ynQ7FC%2BQHp8%3D&reserved=0.

yes, thanks for helping
Russell Young
On Wed, Jun 5, 2019 at 9:55 PM Chris Lumnah notifications@github.com
wrote:

After some testing, I was able to confirm your way of running things.
For the version thing, there is not much I can do there due to the nature
of what is supported as you can see from the blog post article.
Now that you have the script running, shall I close the issue as resolved?

From: rwyoung01 notifications@github.com
Sent: Wednesday, June 5, 2019 2:36 PM
To: rubrikinc/rubrik-scripts-for-powershell
Cc: Chris Lumnah; Comment
Subject: Re: [rubrikinc/rubrik-scripts-for-powershell]
Export-RubrikDatabasejob pass json file in SQL Server Agent Job (#91)
I was not able to run it on SQL 2012 because the Powershell type run
version 2.0 and your code operator 'notin' is not supporter. But I was
able to get it to run as CMDEXE but I had to code it this way
powershell.exe D:\Powershell\Rubrik\Export-RubrikDatabasejob.ps1 -jobfile
d:\powershell\rubrik\Export-RubrikDatabaseJobFile.json
When I didn't specify the path to the json file it didn't do anything. So
we can run it on 2012 when we upgrade powershell to 3.0 and run as CMDEXE.
Russell Young
On Wed, Jun 5, 2019 at 10:07 AM Chris Lumnah notifications@github.com
wrote:

Please see this article on running powershell with sql agent.
https://www.sqlhammer.com/running-powershell-in-a-sql-agent-job/
For SQL Server 2012, i could get the script to run if i do the below as a
job step
powershell.exe -file E:\Scripts\Export-RubrikDatabasesJob.ps1
I had to modify the script to have this as the param section
param(
$JobFile = "E:\Scripts\Export-RubrikDatabasesJobFile.json"
)
I am going to test the functionality on other versions of SQL Server.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUDDYEISBTLHX4ZSK2DPY7JCLA5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXAANAY#issuecomment-499123843
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AFZFZUCA5OIJXZSG3M4ZNQLPY7JCLANCNFSM4HRL2OWQ
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frubrikinc%2Frubrik-scripts-for-powershell%2Fissues%2F91%3Femail_source%3Dnotifications%26email_token%3DAFKMBSDZZ52Z7LXSXRRPJE3PZABT5A5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXAUCMY%23issuecomment-499204403&data=02|01||5eb3c95f89814f630fbd08d6e9e4c497|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636953566090470044&sdata=oKluql%2FegEdtB1PE7UB0n3M1iCIvkmKD6q%2Foko1Y5SA%3D&reserved=0>,
or mute the thread<
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAFKMBSFVU2SZURALJ3OGKT3PZABT5ANCNFSM4HRL2OWQ&data=02|01||5eb3c95f89814f630fbd08d6e9e4c497|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636953566090480055&sdata=dqa0%2BFjuUKdyldlU7MdPufGnSdwYiMh6ynQ7FC%2BQHp8%3D&reserved=0

.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rubrikinc/rubrik-scripts-for-powershell/issues/91?email_source=notifications&email_token=AFZFZUCQC7RYENHKG7EHYQDPZB4D3A5CNFSM4HRL2OW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXBSQ5Q#issuecomment-499329142,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFZFZUGLPQ7BXVTQFY2NAV3PZB4D3ANCNFSM4HRL2OWQ
.

repo: rubrikinc/rubrik-scripts-for-powershell