Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- { rust: 'stable', r: '4.2' }
# Nightly rust
- { rust: 'nightly', r: 'release' }
# Track upstream breaking changes
- { rust: 'stable', r: 'devel' }
timeout-minutes: 40
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions crates/ark/src/lsp/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl RHtmlHelp {
let mut headers = x.select(&selector);

// Do any have a usage section?
headers.any(|header| header.html() == "<h3>Usage</h3>")
headers.any(|header| elt_text(header).trim() == "Usage")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you happen to know what the change in R was?

Did you look at what this is connected to and try to interactively cause whatever LSP feature it is connected to to trigger in R-devel and R-release after this change? I just really want to make sure we don't accidentally regress on something here, and I'm not sure we have the best coverage at the moment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R -q -e 'cat(tools::Rd2HTML(utils:::.getHelpFile(help("match"))))' 2>/dev/null | grep '<h3' 

On R 4.5:

<h3>Description</h3>
<h3>Usage</h3>
<h3>Arguments</h3>
<h3>Details</h3>
<h3>Value</h3>
<h3>References</h3>
<h3>See Also</h3>
<h3>Examples</h3>

On R 4.6:

<h3 id='_sec_description'>Description</h3>
<h3 id='_sec_usage'>Usage</h3>
<h3 id='_sec_arguments'>Arguments</h3>
<h3 id='_sec_details'>Details</h3>
<h3 id='_sec_value'>Value</h3>
<h3 id='_sec_references'>References</h3>
<h3 id='_sec_seealso'>See Also</h3>
<h3 id='_sec_examples'>Examples</h3>

}

pub fn topic(&self) -> Option<String> {
Expand Down Expand Up @@ -192,7 +192,7 @@ impl RHtmlHelp {
let selector = Selector::parse("h3").unwrap();
let mut headers = self.html.select(&selector);
let header = headers
.find(|node| node.html() == "<h3>Arguments</h3>")
.find(|node| elt_text(*node).trim() == "Arguments")
.into_result()?;

let mut elt = header;
Expand Down