Using ::warning or ::error with col and endColumn parameters has no effect - github-actions

According to the Workflow commands for GitHub Actions documentation, I can pass a col and endColumn parameter to indicate a position in a file where the warning/error occurs. For example, I am writing out the line below, following the docs:
::warning title=Possible spelling mistake found.,file=README.md,line=3,col=30,endColumn=40::Possible replacements: «Docusates»
This does work, to an exent, in annotating the file in the Pull Request as shown in this screenshot:
However, nothing is apparently done with col and endColumn. I was hoping it would highlight the text in some way. I cannot find anything in the docs to indicate what these two parameters are used for, if not for that purpose.
Is this expected behavior? Or, am I doing something wrong?

Related

How do I debug lua functions called from conky?

I'm trying to add some lua functionality to my existing conky setup so that repetitive "code" in my conky text can be cleaned up. For example, I have information for each mounted FS, each core, etc. where each row displayed in my panel differs ONLY by one parameter.
My first skeletal, attempt at using lua functions for this seems to run but displays nothing in my panel. I've only found very simple examples to base this on, so I may have made a simple error, but I don't even know how to diagnose it. My code here is modeled after what I HAVE been able to find regarding writing functions, such as this How to implement a basic Lua function in Conky? , but that's about all the depth I've found on the topic except for drawing and cairo examples.
Here's the code added to my conky config, as well as the contents of my functions.lua file
conky.config = {
...
lua_load = '/home/conky-manager/MyConky/functions.lua',
};
conky.text = [[
...
${voffset 5}${lua conky_test 'test'}
...
]]
file - functions.lua
function conky_test(parm1)
return 'result text'
end
What I would expect is to see is "result text" displayed in my panel at the location where that function call appears, but nothing shows.
Is there a log created by conky as it runs, or a way to provide some debug output? Even if I'd made a simple error here, I'd still like to have the ability to diagnose things as my code gets more complex.
Success!
After cobbling info from several articles together, I figured out my basic flaws -
1. Missing a 'conky_main' function,
2. Missing a 'lua_draw_hook_post' to invoke it, and
3. Realizing that if I invoke conky from a terminal, print statements in lua would appear there.
So, for anyone who sees this question and has the same issues, here's the corrected code.
conky.config = {
...
lua_load = '/home/conky-manager/MyConky/functions.lua',
lua_draw_hook_post = "main",
};
conky.text = [[
...
${lua conky_test 'test'}
...
]]
and the proper basics in my functions.lua file
function conky_test(parm1)
return 'result text'
end
function conky_main()
if conky_window == nil then
return
end
end
A few notes:
I still haven't determined if using 'lua_draw_hook_pre' instead of 'lua_draw_hook_post' makes any difference, but it doesn't seem to in this example.
Also, some examples showed actually calling this 'test' function instead of writing a 'main', but the 'main' seemed to have value in checking to see if conky_window existed.
Some examples seemed to state that naming functions with the prefix 'conky_' was required, but then showed examples of calling those functions without the prefix, so I assume the prefix is inferred during the call.
a major note: you should run conky from the directory containing the lua scripts.

regular expressions solution, Trouble accessing a previously easy to access nba STATS url

This might be slightly off topic, but since the solution is a general expressions problem I thought it could be interesting to solve it here.
I am trying to access a URL that has data that I usually scrape for Analysis:
http://stats.nba.com/stats/shotchartdetail?CFID=33&CFPARAMS=2011-12&ContextFilter=&ContextMeasure=FGA&DateFrom=&DateTo=&GameID=&GameSegment=&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PaceAdjust=N&PerMode=PerGame&Period=0&PlayerID=0&PlusMinus=N&Position=&Rank=N&RookieYear=&Season=2011-12&SeasonSegment=&SeasonType=Regular+Season&TeamID=0&VsConference=&VsDivision=&mode=Advanced&showDetails=0&showShots=1&showZones=0
As you can see in the url it has many fields to be filled, and this url that previously worked now it gives me the following error:
The PlayerPosition property is required.
So I thought that as in many other fields in the URL if I added
&PlayerPosition=0
It would use every position, so I used this url:
http://stats.nba.com/stats/shotchartdetail?CFID=33&CFPARAMS=2011-12&ContextFilter=&ContextMeasure=FGA&DateFrom=&DateTo=&GameID=&GameSegment=&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PaceAdjust=N&PerMode=PerGame&Period=0&PlayerID=0&PlusMinus=N&Position=&Rank=N&RookieYear=&Season=2011-12&SeasonSegment=&SeasonType=Regular+Season&TeamID=0&VsConference=&VsDivision=&mode=Advanced&showDetails=0&showShots=1&showZones=0&PlayerPosition=0
But it gave me the following error:
The field PlayerPosition must match the regular expression '^((Guard)|(Center)|(Forward))?$'.
So I tried replacing &PlayerPosition=0 to:
&PlayerPosition=&PlayerPosition='^((Guard)|(Center)|(Forward))?$'
&PlayerPosition=&PlayerPosition= ^((Guard)|(Center)|(Forward))?$
&PlayerPosition=&PlayerPosition=((Guard)|(Center)|(Forward))?
&PlayerPosition=&PlayerPosition=((Guard)|(Center)|(Forward))
But nothing worked, and it gives me back the same error, any suggestions?
Player position should match against this regex:
'^((Guard)|(Center)|(Forward))?$'
the ()? states that everything between the parentheses is optional. So, (Guard)|(Center)|(Forward) is optional. It can be blank.
Meaning that the following values are all valid:
PlayerPosition=Guard
PlayerPosition=Center
PlayerPosition=Forward
PlayerPosition=
I've tried in the browser using it without anything after it and it worked:
http://stats.nba.com/stats/shotchartdetail?CFID=33&CFPARAMS=2011-12&ContextFilter=&ContextMeasure=FGA&DateFrom=&DateTo=&GameID=&GameSegment=&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0&OpponentTeamID=0&Outcome=&PaceAdjust=N&PerMode=PerGame&Period=0&PlayerID=0&PlusMinus=N&Position=&Rank=N&RookieYear=&Season=2011-12&SeasonSegment=&SeasonType=Regular+Season&TeamID=0&VsConference=&VsDivision=&mode=Advanced&showDetails=0&showShots=1&showZones=0&PlayerPosition=
Add the parameter PlayerPosition your url string, where ever you want. But value can be "Guard" or "Center" or "Forward" only.
for example
http://stats.nba.com/stats/shotchartdetail?CFID=33&CFPARAMS=2011-12
&ContextFilter=&ContextMeasure=FGA&DateFrom=&DateTo=&GameID=&GameSegment=
&LastNGames=0&LeagueID=00&Location=&MeasureType=Base&Month=0
&OpponentTeamID=0&Outcome=&PaceAdjust=N&PerMode=PerGame
&Period=0&PlayerID=0&PlusMinus=N&Position=&Rank=N&RookieYear=
&Season=2011-12&SeasonSegment=&SeasonType=Regular+Season&TeamID=0
&VsConference=&VsDivision=&mode=Advanced&showDetails=0&showShots=1
&showZones=0
&PlayerPosition=Guard

Extract a html tag that contains a string in openrefine?

There is not much to add to the title. It's what i'm trying to do. Any suggestions?
I reviewed the docs at github and googled extensively.
The best i got is:
value.parseHtml().select('p[contains('xyz')]')
It results in a syntax error.
The 'select' syntax is based on the select syntax in Beautiful Soup (http://jsoup.org/cookbook/extracting-data/selector-syntax)
In this case I believe the syntax you need is:
value.parseHtml().select("p:contains(xyz)")
Owen
Perhaps you missed my writeup (and WARNING) on the wiki :) here ?
https://github.com/OpenRefine/OpenRefine/wiki/StrippingHTML#extract-html-attributes-text-links-with-integrated-grel-jsoup-commands
WARNING: Make sure to use .toString() suffixes when needed to output strings into Refine cells while working with the built-in HTML GREL commands (the default output is org.jsoup.nodes objects). Otherwise you'll get a preview just fine in the Expression Editor, BUT no data shown in the Refine cells when you apply it!
BTW, How could we make the docs better and where, so that someone doesn't miss this in the future ?
I even gave folks a nice example in our docs that shows using .toString() :
https://github.com/OpenRefine/OpenRefine/wiki/GREL-Other-Functions#selectelement-e-string-s

completion shows function name and creates documentation in tooltip but documentation not found for scipy

When I complete sp.integrate.quad I see a tooltip with the function documentation, but as soon as I accept the completion, the tooltip goes away. I'd prefer to see the the main part of the doc string underneath the function the entire time I'm editing it's arguments. As a stop gap, I tried getting at the documentation another way. jedi:show-doc or company-jedi-show-doc look like promising functions for at least re-displaying the docstring information, but they give an error saying they can't find the documentation. Why can't these procedures see the documentation, yet the initial completion tooltip can? Has anyone used jedi to achieve something close to my desired setup?
Jedi Setup Info:
https://gist.github.com/anonymous/11180631
py-install-directory var must be set correctly for jedi:show-doc.
you can simply set the variable directly in your emacs init file as the following sentance.
(setq py-install-directory "~/.emacs.d/elpa/PYTHON-MODE DIRECTORY")
or following sentance for the case python-mode package is updated
(setq py-install-directory (concat "~/.emacs.d/elpa/" (car (directory-files "~/.emacs.d/elpa/" nil "python-mode*"))))

Three rows of almost the same code behave differently

I have three dropdown boxes on a Main_Form. I will add the chosen content into three fields on the form, Form_Applications.
These three lines are added :
Form_Applications.Classification = Form_Main_Form.Combo43.Value
Form_Applications.Countryname_Cluster = Form_Main_Form.Combo56.Value
Form_Applications.Application = Form_Main_Form.Combo64.Value
The first two work perfectly but the last one gives error code 438!
I can enter in the immediate window :
Form_Applications.Classification = "what ever"
Form_Applications.Countryname_Cluster = "what ever"
but not for the third line. Then, after enter, the Object doesn't support this property or method error appears.
I didn't expect this error as I do exactly the same as in the first two lines.
Can you please help or do you need more info ?
In VBA Application is a special word and should not be used to address fields.
FormName.Application will return an object that points to the application instance that is running that form as opposed to an object within that form.
From the Application object you can do all sorts of other things such as executing external programs and other application level stuff like saving files/
Rename your Application field to something else, perhaps ApplicationCombo and change your line of code to match the new name. After doing this the code should execute as you expect.
Form_Applications.Application is referring to the application itself. It is not a field, so therefore it is not assignable (at least with a string).
You really haven't provided enough code to draw any real conclusions though. But looking at what you have posted, you definitely need to rethink your approach.
It's to say definitely but you are not doing the same. It looks like you are reading a ComboBox value the same (I will assume Combo64 is the same as 43 and 56) but my guess is that what you are assigning that value to is the problem:
Form_Applications.Application =
Application is not assignable. Is there another field you meant to use there?