小编Tim*_*Tim的帖子

Oomph 安装程序错误:无法加载目录

我正在尝试安装较新版本的 Eclipse。Oomph Eclipse 安装程序不断出现以下错误:

在此输入图像描述

我确实已连接到网络 - 并且我已经通过配置网络代理设置完成了我能想到的一切。我每次仍然收到错误。

有什么建议么?谢谢!

eclipse oomph

14
推荐指数
2
解决办法
3万
查看次数

在 IntelliJ 的 Springboot 配置中“更正应用程序的类路径”

我有这样一个带有 IntelliJ-Idea IDE 的应用程序,该应用程序的 Springboot 配置会出错并给出以下建议:

The following method did not exist:

org.springframework.context.ConfigurableApplicationContext.setApplicationStartup(Lorg/springframework/core/metrics/ApplicationStartup;)V

The method's class, org.springframework.context.ConfigurableApplicationContext, is available from the following locations:

jar:file:/C:/Users/tlmitch/.m2/repository/org/springframework/spring-context/5.2.8.RELEASE/spring-context-5.2.8.RELEASE.jar!/org/springframework/context/ConfigurableApplicationContext.class

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.context.ConfigurableApplicationContext
Run Code Online (Sandbox Code Playgroud)

我对 IntelliJ-Idea 和 Springboot 比较陌生。如果是 Eclipse,我可能会转到 Java 构建路径并添加包含该类的 jar 文件。

我对 IntelliJ 不太熟悉。到目前为止,如果缺少某些内容,我只是运行“npm install”,这通常会解决它。

有什么建议么?

非常感谢

java intellij-idea spring-boot

5
推荐指数
2
解决办法
1万
查看次数

为什么当你执行“gitbranch-a”时,git 中已删除的远程分支仍然显示?

我正在尝试在本地和远程删除 git 上的分支。我想我已经成功了。问题是当我执行“gitbranch-a”时它仍然会远程显示

我这样做是为了在本地删除它:

git branch -d branchToDelete
Run Code Online (Sandbox Code Playgroud)

这是远程删除它:

git push origin --delete branchToDelete
Run Code Online (Sandbox Code Playgroud)

我想我两端都成功删除了它。

如果我执行 git pull BranchToDelete

我收到以下致命消息:“branchToDelete”似乎不是 git 存储库致命消息:无法从远程存储库读取。

我认为这意味着它不再远程存在?

但如果我这样做

git branch -a
Run Code Online (Sandbox Code Playgroud)

然后它仍然显示在列表中

remotes/origin/branchToDelete
Run Code Online (Sandbox Code Playgroud)

那么,如果本地和远程都删除了它,为什么它仍然会出现呢?

是的,分支在本地和远程都被命名为相同的。

非常感谢

git

5
推荐指数
1
解决办法
2581
查看次数

在 Cypress 中,XLSX 文件的读取并不总是正确

我有一个前端 Angular 应用程序,在其中实现 Cypress 测试。

但 XLSX 文件的读取并不总是正确。

如果我这样做:

cy.readFile('cypress/downloads/myfile.XLSX');
Run Code Online (Sandbox Code Playgroud)

它实际上确实按预期读取了文件。

但是如果我这样做:

cy.readFile('cypress/downloads/myfile.XLSX').should('contain', 'mytext');
Run Code Online (Sandbox Code Playgroud)

即使我知道它在文件中,它也不会读取“mytext”。

我知道我在语法上是正确的,因为它可以很好地读取 .xls 文件中的文本。

有什么方法可以让 cypress 查找带有 .XLSX 文件的文本吗?

非常感谢。

xlsx angular cypress

4
推荐指数
1
解决办法
70
查看次数

在 Cypress 中,您可以在 Element 上调用 .click() 方法而不识别错误吗?

我有一个 Angular 应用程序,正在为其创建 Cypress E2E。

该应用程序的一个页面有一个表,其中第三列包含一个类名“link ng-star-inserted”的链接,我希望测试在找到特定行后单击该链接。

我实际上已经进行了执行此操作的测试 - 事实上该链接已被单击。

但它不是很优雅,它将 .click() 方法标记为错误(即使它确实有效)。

我正在寻找一种方法,让它不将 .click() 方法标记为错误。

这是我的代码...

cy.get(SELECTOR.dataTableBody).should('be.visible')
        .contains('tr', 'Text I am looking for in the row I want')
        .then($row => {
            cy.log('found it');
            cy.log('on row ' + $row.index());

            //Yes this is kind of ugly.  I tried it every other way I could think of and this is the only way it worked
            let cellWithLink = $row.find('td:nth-child(3)');
            cellWithLink.children().get(0).getElementsByClassName('link ng-star-inserted').item(0).click();
            
});
Run Code Online (Sandbox Code Playgroud)

这是 IDE 将 click() 标记为错误的镜头 - 尽管它确实有效。

在此输入图像描述

非常感谢!

typescript e2e-testing angular cypress e2e

2
推荐指数
1
解决办法
57
查看次数