Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove --unstable flag in default #316

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Remove --unstable flag in default #316

merged 1 commit into from
Jan 25, 2024

Conversation

Shougo
Copy link
Contributor

@Shougo Shougo commented Jan 25, 2024

Because --unstable flag will be removed in Deno 2.0 and Deno 1.40 has the warnings.

It should not be merged yet. Because if --unstable flag is removed, Deno kv storage cannot be used.

Deno KV works in Deno 1.40 without --unstable.

Summary by CodeRabbit

  • Bug Fixes
    • Removed the --unstable flag to enhance stability and compatibility.
    • Adjusted server restart delay to prevent related issues.
  • Documentation
    • Updated default program arguments in documentation.
  • Chores
    • Updated the molt module to version 0.11.0.

Copy link

coderabbitai bot commented Jan 25, 2024

Walkthrough

The updates to the Denops project reflect a stabilization of Deno features by removing the --unstable flag for server startup. The denops#server#deno_args configuration has been simplified, and documentation has been updated to reflect this new default setting. Additionally, the molt module upgrade task targets a newer version, and a fix has been implemented to address a restart delay issue.

Changes

File Path Change Summary
autoload/denops/.../server.vim Removed --unstable flag from Deno server arguments.
deno.jsonc Updated upgrade task to [email protected] and removed --unstable flag.
doc/denops.txt Updated default Deno arguments and modified restart delay setting.

Poem

🐇✨
In the Deno land, flags unfurl no more,
For stability is what we adore.
--unstable gone, the server's delight,
A molt upgrade makes everything right.
🎉📜

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@Shougo Shougo requested a review from lambdalisue January 25, 2024 01:47
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6489b17) 96.47% compared to head (4311ce0) 96.47%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #316   +/-   ##
=======================================
  Coverage   96.47%   96.47%           
=======================================
  Files           3        3           
  Lines          85       85           
  Branches        6        6           
=======================================
  Hits           82       82           
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 6489b17 and 4311ce0.
Files selected for processing (3)
  • autoload/denops/server.vim (1 hunks)
  • deno.jsonc (1 hunks)
  • doc/denops.txt (1 hunks)
Files skipped from review due to trivial changes (1)
  • autoload/denops/server.vim
Additional comments: 6
deno.jsonc (4)
  • 4-4: The removal of the --unstable flag from the test task aligns with the upcoming Deno 2.0 changes.
  • 5-5: The removal of the --unstable flag from the check task is consistent with the Deno 2.0 compatibility update.
  • 6-6: The --unstable flag has been correctly removed from the coverage task.
  • 6-6: The upgrade task now uses version 0.11.0 of the molt module. Ensure that this version is compatible with the rest of the codebase and that all necessary testing has been performed to confirm that the upgrade does not introduce any regressions.
doc/denops.txt (2)
  • 108-108: The --unstable flag has been removed from the default Deno arguments for starting a server, which is necessary for compatibility with Deno 2.0.
  • 108-108: The documentation mentions a restart delay setting to avoid issue Bug: nvim +"autocmd VimEnter * qa!" would be stuck. #136. Verify that the restart delay has been properly set and documented, and that it effectively addresses the issue.
Verification successful

The search for mentions of issue #136 in the repository has yielded a section in doc/denops.txt that explicitly mentions the g:denops#server#restart_delay setting with a comment stating "Restart delay in milliseconds to avoid #136." This is followed by a link to the GitHub issue. This documentation confirms that the restart_delay setting is indeed intended to address issue #136 and is documented as such.

Based on this information, the review comment has been verified as the restart delay has been properly set and documented, and it is explicitly stated to effectively address issue #136.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Check if the restart delay setting is documented and verify it against issue #136.
rg --type vim 'g:denops#server#restart_delay' -C 5
# Expecting to see the restart delay setting and its explanation in the context of issue #136.

Length of output: 773



Script:

#!/bin/bash
# Search for documentation or comments regarding 'restart_delay' in the vicinity of its usage.
rg --type vim 'restart_delay' -C 10
# Expecting to find explanatory comments or documentation that connects the setting to issue #136.

Length of output: 5608



Script:

#!/bin/bash
# Search for any mentions of issue #136 in the repository to see if 'restart_delay' is referenced in that context.
rg '#136' -C 10
# Expecting to find a connection between 'restart_delay' and the resolution of issue #136.

Length of output: 928

@lambdalisue lambdalisue merged commit 16d4bbc into main Jan 25, 2024
16 checks passed
@lambdalisue lambdalisue deleted the remove_unstable branch January 25, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants