package-cop:原子编辑器

  • g4_946860
    了解作者
  • 19.2KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-05 02:11
    上传日期
包装警察 Atom 编辑器:查找导致错误的包等。 寻找导致双重输入的 70 个包中的 1 个...... 使用场景 通过快速专用测试隔离导致错误的包 启用和禁用二进制搜索或git bisect 测试通常不需要重新加载 Atom 每次测试只需点击两次 记录错误和临时测试 出现问题时只需单击,不打扰工作流程 在每个测试报告上,每个包的状态都被记录下来 所有历史都可以在一张表中看到 管理包 一键启用和禁用软件包 查看当前加载/激活状态 包开发帮助 无需重新加载 Atom 即可重新加载包 测试激活和停用 安装 使用设置页面查找并安装package-cop或键入atom install package-cop 。 打开包裹警察页面 整个 UI 位于一个选项卡中的一页中。 命令package-cop:open出此页面。 默认情况下,组合键ctrl-F12绑定到此命令。 详细的用户界面说明 使用
package-cop-master.zip
  • package-cop-master
  • styles
  • package-cop.less
    8.7KB
  • lib
  • package-cop-item.coffee
    686B
  • help.md
    4.2KB
  • package.coffee
    5.7KB
  • data-store.coffee
    2.4KB
  • package-cop-item-view.coffee
    20.7KB
  • package-cop.coffee
    1.4KB
  • problem.coffee
    604B
  • keymaps
  • package-cop.cson
    51B
  • menus
  • package-cop.cson
    209B
  • LICENSE.md
    1KB
  • README.md
    4.6KB
  • standard-deactivation-issue.txt
    227B
  • .gitignore
    13B
  • CHANGELOG.md
    400B
  • package.json
    456B
内容介绍
# Package-Cop Atom editor: Find package causing an error and more. **Looking for the 1 of 70 packages causing double typing ...** ![Image inserted by Atom editor package auto-host-markdown-image](http://i.imgur.com/BqmnoUb.gif) ### Usage Scenarios - Isolate package causing error with fast dedicated testing - Enables and disables packages like a binary search or `git bisect` - Testing usually does not require reloading Atom - Only two clicks per test - Logging errors and casual testing - Just click when a problem happens, doesn't disturb workflow - On each test-report the state of every package is recorded - All history can be seen in one table - Manage packages - Enable and disable packages with one click - View current loaded/activated state - Package development aid - Reload package without reloading Atom - Test activation and deactivation ### Installation Use the settings page to find and install `package-cop` or type `atom install package-cop`. ### Open the Package-Cop page The entire UI is in one page in one tab. The command `package-cop:open` brings up this page. The key combination `ctrl-F12` is bound to this command by default. ### Detailed UI description Turn on help using the button at the top right of the package-cop page to see inline text decribing all UI features. That help is not duplicated here. Note that the UI is fully functional when it is embedded in the help text. ### Using safe mode Whenever you run into a problem, restart Atom in safe mode with the command `atom --safe`. If the problem persists in safe mode then submit an issue to https://github.com/atom/atom. This package will not help you in that situation. ### Isolate package causing error with fast dedicated testing Detailed instructions (same as video above) ... - When you see an error, open the package-cop page and click `Problem Occurred` and then `Test Problem (Bisect)`. You will now see green checkmarks for each problem cleared, i.e. known to not cause the problem. - Repeat the test, bring up the package-cop page, and click on `Problem Occurred` or `Test Passed`. Click on `Test Problem (Bisect)` again. - Repeat the last step multiple times and observe the results shown in the box in the upper right. They will look like `Packages Cleared: 38/70, 52%`. You will see the progress as more packges are cleared. When finished you should see `Package causing problem: some-evil-package` in red. - If you see `Packages Cleared: 70/70, 100%` in red then the overall process failed. If that happens you should start with a new problem name and after each time you click `Test Problem (Bisect)` then click on `Reload Atom`. After the reload you will see the package-cop page again. Repeat the test reloading Atom each time. - If it still fails you can select the checkbox `Activate all enabled on reload` before you click on `Reload Atom`. This will cause all packages to activate immediately upon reload and improve the accuracy of testing. - If this still doesn't work then the problem is too complex for this method. Maybe it relies on two packages being loaded at once. In this case you can look at the report results on the right of the package list and maybe figure it out yourself. See the page help for the meaning of that section. ### Logging errors and casual testing If you are using the editor and a problem occurs, you don't have to stop immediately to test it. Just bring up the package-cop page, enter a problem name, and click on `Problem Occurred`. You can then go back to work. You can do this every time the problem occurs and it only takes one click after the first time. This not only creates a log of the problems, but it also calculates which packages are cleared with whatever information it has. Green marks will appear for each cleared package. If you enable and disable packages every so often then more packages will be cleared. You may find the cause without ever doing specific testing. This can be done for multiple projects by clicking on the problem name before reporting the error. ### Test report buttons You might have noticed the fail button is labeled `Problem Occurred` instead of `Test Failed` to match the button `Test Passed`. This is because reporting a failure is fundamentally different than passing a specific test. It may be surprising but you can isolate a bad package without ever using `Test Passed`. While this may be slower it will be more accurate since you never know with complete confidence a test is accurate. But you do know exactly when a problem occurs. ### License Package-Cop is copyright Mark Hahn using the MIT license.
评论
    相关推荐
    • atombook:Atom.io 编辑器的 Gitbook 集成
      原子书 Atom.io 编辑器的集成。
    • Splitdown, 像 Markdown 编辑器替换一样的Ghost.zip
      Splitdown, 像 Markdown 编辑器替换一样的Ghost #Splitdown WordPress的Markdown 编辑器替换安装将插件克隆到插件目录中,通常位于内容/插件。你需要运行 git submodule init 和 git submodule update 来拉 show
    • svgeditor:SVG模式编辑器上的React
      Svg Shcema编辑器 在react svg + redux上进行的原理图编辑器。 版本转换为Immutable.js 事件处理的概念已经改变。 现在,这些组件不处理事件,而是将其转变为高级操作。 所有mouseDown,mouseUp,mouseMove事件均按...
    • mobile 注册表编辑器
      可以查看mobile手机的注册表,相当于windows上面的redegit
    • atom-git-grep:原子编辑器中的git-grep
      原子编辑器中的git grep 。 安装 apm install git-grep 如何使用 根据需要设置keybind.cson。 ' .workspace ' : ' cmd-k cmd-g ' : ' git-grep:grep ' # default git grep根始终是工作空间的当前根。
    • Atom-git-blame,Atom编辑器插件。切换Git.zip
      Atom-git-blame.zip,Plugin for Atom Editor. Toggle git-blame annotations for the current file in the gutter.怪罪,atom是一个用web技术构建的开源文本编辑器
    • livelesson-git
      git commit :打开文本编辑器以编写提交消息 git commit -m "MESSAGE" :将MESSAGE作为提交写入,而没有文本编辑器 git log :显示我们提交的日志(历史) git log --oneline :显示较短的git log --oneline提交 ...
    • Atom-git-commit-atom,在当前atom窗格中轻松编辑git提交消息.zip
      Atom-git-commit-atom.zip,在当前atom窗格中轻松编辑git提交消息git提交原子,atom是一个用web技术构建的开源文本编辑器
    • git_kv_store_tutorial:探索git
      探索Git:从git init到KV商店 ...如果我们在编辑器中检出.git子目录: $ tree .git .git ├── branches ├── config ├── description ├── HEAD ├── hooks │ ├── applypatch-msg.samp
    • EditAndPublishArticle编辑器
      作者zhaoquntao,源码EditAndPublishArticle,虽然编辑和发布文章,现在很少app用到.由于公司的项目中用到了,我把这部门内容分离出来,写了一个demo分享给大家,还有一些需要完善的地方,多谢理解. gihub:/zhaoquntao/...