-
Notifications
You must be signed in to change notification settings - Fork 5
📝 Use JSR instead to support Denops v7 #14
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
Conversation
WalkthroughThe recent updates primarily involve a significant overhaul of import paths and module references for the Denops plugin development framework. The standard module previously known as Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Plugin
participant JSR
participant NPM
User->>Plugin: Initiate plugin
Plugin->>JSR: Import @denops/std
Plugin->>NPM: Import maze_generator
JSR-->>Plugin: Provide updated module
NPM-->>Plugin: Provide maze functions
Plugin-->>User: Execute functionality
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? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (11)
src/tutorial/helloworld/creating-a-minimal-denops-plugin.md (1)
35-35
: Update import path for Entrypoint.The import path for
Entrypoint
appears to be incorrect as the URL "https://jsr.io/@denops/std@7.0.0" returned a 404 Not Found status. Please verify and update the import path to the correct one.
- File:
src/tutorial/helloworld/creating-a-minimal-denops-plugin.md
- Line: 35
Analysis chain
Update import path for Entrypoint.
The import path for
Entrypoint
has been updated to use the new module path and version. Ensure that this new path is correct and accessible.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new import path for Entrypoint. # Test: Check if the new import path is accessible. curl -I "https://jsr.io/@denops/std@7.0.0"Length of output: 1537
src/getting-started/README.md (1)
25-25
: Update import path for Entrypoint.The import path for
Entrypoint
("jsr:@denops/std@7.0.0") is incorrect and inaccessible. Please verify and update the import path to the correct location.
src/getting-started/README.md
src/getting-started/explanation.md
src/tutorial/maze/properly-create-a-virtual-buffer.md
src/tutorial/maze/creating-applicative-plugin.md
src/tutorial/maze/utilizing-third-party-library.md
src/tutorial/maze/reduce-the-number-of-rpc-calls.md
src/tutorial/maze/adjusting-maze-size-to-fit-the-window.md
src/tutorial/maze/properly-configured-the-buffer.md
src/tutorial/helloworld/creating-a-minimal-denops-plugin.md
src/tutorial/helloworld/adding-an-api.md
src/tutorial/helloworld/calling-vim-features.md
src/tutorial/maze/outputting-content-to-buffer.md
Analysis chain
Update import path for Entrypoint.
The import path for
Entrypoint
has been updated to use the new module path and version. Ensure that this new path is correct and accessible.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new import path for Entrypoint. # Test: Check if the new import path is accessible. curl -I "https://jsr.io/@denops/std@7.0.0"Length of output: 1544
Script:
#!/bin/bash # Search for any references to `Entrypoint` in the codebase to find the correct import path. rg 'Entrypoint' -A 5Length of output: 11751
src/tutorial/helloworld/calling-vim-features.md (2)
64-64
: Update API reference link.The provided API reference link "https://jsr.io/@denops/std" returns a 404 error and is not accessible. Please update it with the correct and accessible URL.
Analysis chain
Update API reference link.
The API reference link has been updated to use the new JSR link. Ensure that this new link is correct and accessible.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new API reference link. # Test: Check if the new API reference link is accessible. curl -I "https://jsr.io/@denops/std"Length of output: 1531
8-9
: Update import paths for Entrypoint, assert, and is.The import paths for
Entrypoint
,assert
, andis
are not accessible at the specified URLs. Please verify the correct paths and update them accordingly.
https://jsr.io/@denops/std@7.0.0
returned a 404 status code.https://jsr.io/@core/unknownutil@3.18.1
returned a 404 status code.Analysis chain
Update import paths for Entrypoint, assert, and is.
The import paths for
Entrypoint
,assert
, andis
have been updated to use the new module paths and versions. Ensure that these new paths are correct and accessible.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new import paths for Entrypoint, assert, and is. # Test: Check if the new import paths are accessible. curl -I "https://jsr.io/@denops/std@7.0.0" curl -I "https://jsr.io/@core/unknownutil@3.18.1"Length of output: 3083
src/tutorial/maze/creating-applicative-plugin.md (2)
71-71
: Correct grammatical error: Missing article "the".The sentence should read "In the above code, we utilize the following
@denops/std
modules".- In above code, we utilize the following `@denops/std` modules: + In the above code, we utilize the following `@denops/std` modules:Tools
LanguageTool
[uncategorized] ~71-~71: You might be missing the article “the” here.
Context: ...alse); }); }, }; }; ``` In above code, we utilize the following `@denops...(AI_EN_LECTOR_MISSING_DETERMINER_THE)
78-79
: Correct grammatical error: Singular form.The noun should be in the singular form: "each module".
- about each modules. + about each module.Tools
LanguageTool
[grammar] ~79-~79: The noun should probably be in the singular form.
Context: ...denops/std) for more details about each modules. That's it. Now you can see a smaller ...(EVERY_EACH_SINGULAR)
src/tutorial/maze/reduce-the-number-of-rpc-calls.md (1)
99-99
: Correct grammatical error: Missing article "the".The sentence should read "See the API reference".
- See API reference + See the API referencesrc/getting-started/explanation.md (4)
94-94
: Incorrect import path:jsr:@denops/std@7.0.0
The import path
jsr:@denops/std@7.0.0
is incorrect or the resource is not available at the specified location, as it returned a 404 error.
- Please verify and update the correct import path.
Analysis chain
LGTM! Verify the new import path.
The import statement has been updated correctly to use the new package management approach.
However, ensure that the new import path
jsr:@denops/std@7.0.0
is correct and accessible.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new import path is correct and accessible. # Test: Check if the new import path is accessible. curl -I https://jsr.io/@denops/std@7.0.0Length of output: 1537
218-218
: Import path not accessibleThe import path
jsr:@denops/std@7.0.0/function
is not accessible, as indicated by the HTTP 404 error. Please verify the correct path or check for any typos.
- Ensure the correct version and package name are being used.
- Double-check the availability of the resource at the specified location.
Analysis chain
LGTM! Verify the new import path.
The import statement has been updated correctly to use the new package management approach.
However, ensure that the new import path
jsr:@denops/std@7.0.0/function
is correct and accessible.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new import path is correct and accessible. # Test: Check if the new import path is accessible. curl -I https://jsr.io/@denops/std@7.0.0/functionLength of output: 1553
110-110
: The import path is incorrect or the resource is not available.The URL
https://jsr.io/@denops/std@7.0.0
returned a 404 error, indicating that the resource is not found. Please verify the correct import path or version for the@denops/std
package.
- Ensure that the package
@denops/std
exists at the specified version7.0.0
.- Verify the correct import path for the package.
Analysis chain
LGTM! Verify the new import path.
The import statement has been updated correctly to use the new package management approach.
However, ensure that the new import path
jsr:@denops/std@7.0.0
is correct and accessible.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new import path is correct and accessible. # Test: Check if the new import path is accessible. curl -I https://jsr.io/@denops/std@7.0.0Length of output: 1544
133-135
: The reference to@denops/core
is incorrect or inaccessible.The URL
https://jsr.io/@denops/core
returned a 404 Not Found error. Please verify the correct URL or package reference for@denops/core
.
- Ensure that the package
@denops/core
is correctly referenced and accessible.- Update the documentation with the correct URL or reference.
Analysis chain
LGTM! Verify the new reference.
The reference to
denops_core
has been updated correctly to@denops/core
.However, ensure that the new reference
@denops/core
is correct and accessible.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the new reference is correct and accessible. # Test: Check if the new reference is accessible. curl -I https://jsr.io/@denops/coreLength of output: 1539
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (15)
- src/api-reference.md (1 hunks)
- src/getting-started/README.md (1 hunks)
- src/getting-started/explanation.md (6 hunks)
- src/install.md (1 hunks)
- src/tutorial.md (1 hunks)
- src/tutorial/helloworld/adding-an-api.md (2 hunks)
- src/tutorial/helloworld/calling-vim-features.md (2 hunks)
- src/tutorial/helloworld/creating-a-minimal-denops-plugin.md (2 hunks)
- src/tutorial/maze/adjusting-maze-size-to-fit-the-window.md (3 hunks)
- src/tutorial/maze/creating-applicative-plugin.md (2 hunks)
- src/tutorial/maze/outputting-content-to-buffer.md (1 hunks)
- src/tutorial/maze/properly-configured-the-buffer.md (1 hunks)
- src/tutorial/maze/properly-create-a-virtual-buffer.md (1 hunks)
- src/tutorial/maze/reduce-the-number-of-rpc-calls.md (2 hunks)
- src/tutorial/maze/utilizing-third-party-library.md (2 hunks)
Files skipped from review due to trivial changes (5)
- src/api-reference.md
- src/tutorial.md
- src/tutorial/helloworld/adding-an-api.md
- src/tutorial/maze/adjusting-maze-size-to-fit-the-window.md
- src/tutorial/maze/outputting-content-to-buffer.md
Additional context used
LanguageTool
src/tutorial/maze/creating-applicative-plugin.md
[uncategorized] ~71-~71: You might be missing the article “the” here.
Context: ...alse); }); }, }; }; ``` In above code, we utilize the following `@denops...(AI_EN_LECTOR_MISSING_DETERMINER_THE)
[grammar] ~79-~79: The noun should probably be in the singular form.
Context: ...denops/std) for more details about each modules. That's it. Now you can see a smaller ...(EVERY_EACH_SINGULAR)
Additional comments not posted (15)
src/tutorial/helloworld/creating-a-minimal-denops-plugin.md (1)
48-48
: Update documentation references.The documentation references the
@denops/std
library. Ensure that all references to the library are updated and consistent with the new module path.src/tutorial/maze/properly-configured-the-buffer.md (5)
10-10
: LGTM! Import path updated to usejsr:
prefix and new version.The import statement has been correctly updated to reflect the new version and source.
11-11
: LGTM! Import path updated to usejsr:
prefix and new version for buffer module.The import statement has been correctly updated to reflect the new version and source for the buffer module.
12-12
: LGTM! Import path updated to usejsr:
prefix and new version for function module.The import statement has been correctly updated to reflect the new version and source for the function module.
13-13
: LGTM! Import path updated to usejsr:
prefix and new version for option module.The import statement has been correctly updated to reflect the new version and source for the option module.
14-14
: LGTM! Import path updated to usenpm:
prefix and new source formaze_generator
library.The import statement has been correctly updated to reflect the new source for the
maze_generator
library.src/install.md (4)
79-79
: LGTM! Supported Deno version updated to1.45.0
.The supported Deno version has been correctly updated to reflect the latest version.
80-80
: LGTM! Detected Deno version updated to1.45.4
.The detected Deno version has been correctly updated to reflect the latest version.
82-82
: LGTM! Supported Neovim version updated to0.10.0
.The supported Neovim version has been correctly updated to reflect the latest version.
83-83
: LGTM! Detected Neovim version updated to0.10.0
.The detected Neovim version has been correctly updated to reflect the latest version.
src/tutorial/maze/utilizing-third-party-library.md (2)
32-32
: LGTM! Import path updated to usejsr:
prefix and new version.The import statement has been correctly updated to reflect the new version and source.
33-33
: LGTM! Import path updated to usenpm:
prefix and new source formaze_generator
library.The import statement has been correctly updated to reflect the new source for the
maze_generator
library.src/tutorial/maze/creating-applicative-plugin.md (1)
36-41
: Verify correctness of updated import paths.Ensure the new import paths with the
jsr:
prefix and updated module versions are correct and consistent.Verification successful
Verify correctness of updated import paths.
The updated import paths with the
jsr:
prefix and updated module versions are correct and consistently used across the codebase.
- The import paths were found in multiple files, confirming their correctness:
import type { Entrypoint } from "jsr:@denops/std@7.0.0"
import { batch, collect } from "jsr:@denops/std@7.0.0/batch"
import * as fn from "jsr:@denops/std@7.0.0/function"
import * as op from "jsr:@denops/std@7.0.0/option"
import { Maze } from "npm:@thewizardbear/maze_generator@0.4.0"
import { assert, is } from "jsr:@core/unknownutil@3.18.1"
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the correctness of the updated import paths. # Test: Search for the import paths in the codebase. Expect: Only occurrences of the new paths. rg --type ts -A 5 $'import type { Entrypoint } from "jsr:@denops/std@7.0.0"' rg --type ts -A 5 $'import { batch, collect } from "jsr:@denops/std@7.0.0/batch"' rg --type ts -A 5 $'import * as fn from "jsr:@denops/std@7.0.0/function"' rg --type ts -A 5 $'import * as op from "jsr:@denops/std@7.0.0/option"' rg --type ts -A 5 $'import { Maze } from "npm:@thewizardbear/maze_generator@0.4.0"' rg --type ts -A 5 $'import { assert, is } from "jsr:@core/unknownutil@3.18.1"'Length of output: 1378
Script:
#!/bin/bash # Description: Verify the correctness of the updated import paths. # Test: Search for the import paths in the codebase. Expect: Only occurrences of the new paths. rg -A 5 $'import type { Entrypoint } from "jsr:@denops/std@7\\.0\\.0"' rg -A 5 $'import { batch, collect } from "jsr:@denops/std@7\\.0\\.0/batch"' rg -A 5 $'import * as fn from "jsr:@denops/std@7\\.0\\.0/function"' rg -A 5 $'import * as op from "jsr:@denops/std@7\\.0\\.0/option"' rg -A 5 $'import { Maze } from "npm:@thewizardbear/maze_generator@0\\.4\\.0"' rg -A 5 $'import { assert, is } from "jsr:@core/unknownutil@3\\.18\\.1"'Length of output: 1040
Script:
#!/bin/bash # Description: Verify the correctness of the updated import paths. # Test: Search for the import paths in the codebase. Expect: Only occurrences of the new paths. rg -A 5 $'import type { Entrypoint } from "jsr:\\@denops/std@7\\.0\\.0"' rg -A 5 $'import { batch, collect } from "jsr:\\@denops/std@7\\.0\\.0/batch"' rg -A 5 $'import * as fn from "jsr:\\@denops/std@7\\.0\\.0/function"' rg -A 5 $'import * as op from "jsr:\\@denops/std@7\\.0\\.0/option"' rg -A 5 $'import { Maze } from "npm:\\@thewizardbear/maze_generator@0\\.4\\.0"' rg -A 5 $'import { assert, is } from "jsr:\\@core/unknownutil@3\\.18\\.1"'Length of output: 1342
Script:
#!/bin/bash # Description: Verify the correctness of the updated import paths. # Test: Search for the import paths in the codebase. Expect: Only occurrences of the new paths. grep -r -A 5 -F 'import type { Entrypoint } from "jsr:@denops/std@7.0.0"' grep -r -A 5 -F 'import { batch, collect } from "jsr:@denops/std@7.0.0/batch"' grep -r -A 5 -F 'import * as fn from "jsr:@denops/std@7.0.0/function"' grep -r -A 5 -F 'import * as op from "jsr:@denops/std@7.0.0/option"' grep -r -A 5 -F 'import { Maze } from "npm:@thewizardbear/maze_generator@0.4.0"' grep -r -A 5 -F 'import { assert, is } from "jsr:@core/unknownutil@3.18.1"'Length of output: 18371
src/tutorial/maze/properly-create-a-virtual-buffer.md (1)
13-16
: Verify correctness of updated import paths.Ensure the new import paths with the
jsr:
prefix and updated module versions are correct and consistent.Verification successful
Correct the import path verification script.
The initial script encountered regex parse errors and did not search any files. Adjust the script to escape special characters and ensure ripgrep searches the correct files.
Adjust the import path verification script with debugging.
The script did not search any files. Add the
--debug
flag to understand why files are being skipped and remove unnecessary filters.
Verified: Correctness of updated import paths.
The updated import paths with the
jsr:
prefix and new module versions are consistently used across the codebase.
import type { Entrypoint } from "jsr:@denops/std@7.0.0";
import * as buffer from "jsr:@denops/std@7.0.0/buffer";
import * as fn from "jsr:@denops/std@7.0.0/function";
import { Maze } from "npm:@thewizardbear/maze_generator@0.4.0";
These paths are correctly referenced in the relevant files.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the correctness of the updated import paths. # Test: Search for the import paths in the codebase. Expect: Only occurrences of the new paths. rg --type ts -A 5 $'import type { Entrypoint } from "jsr:@denops/std@7.0.0"' rg --type ts -A 5 $'import * as buffer from "jsr:@denops/std@7.0.0/buffer"' rg --type ts -A 5 $'import * as fn from "jsr:@denops/std@7.0.0/function"' rg --type ts -A 5 $'import { Maze } from "npm:@thewizardbear/maze_generator@0.4.0"'Length of output: 918
Script:
#!/bin/bash # Description: Verify the correctness of the updated import paths. # Test: Search for the import paths in the codebase. Expect: Only occurrences of the new paths. rg --type ts -A 5 'import type \{ Entrypoint \} from "jsr:@denops/std@7.0.0"' rg --type ts -A 5 'import \* as buffer from "jsr:@denops/std@7.0.0/buffer"' rg --type ts -A 5 'import \* as fn from "jsr:@denops/std@7.0.0/function"' rg --type ts -A 5 'import \{ Maze \} from "npm:@thewizardbear/maze_generator@0.4.0"'Length of output: 916
Script:
#!/bin/bash # Description: Verify the correctness of the updated import paths with debugging. # Test: Search for the import paths in the codebase. Expect: Only occurrences of the new paths. rg --debug -A 5 'import type \{ Entrypoint \} from "jsr:@denops/std@7.0.0"' rg --debug -A 5 'import \* as buffer from "jsr:@denops/std@7.0.0/buffer"' rg --debug -A 5 'import \* as fn from "jsr:@denops/std@7.0.0/function"' rg --debug -A 5 'import \{ Maze \} from "npm:@thewizardbear/maze_generator@0.4.0"'Length of output: 26507
src/tutorial/maze/reduce-the-number-of-rpc-calls.md (1)
9-14
: Verify correctness of updated import paths.Ensure the new import paths with the
jsr:
prefix and updated module versions are correct and consistent.
Summary by CodeRabbit
New Features
Documentation
Bug Fixes