问题标签 [intellij-14]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
823 浏览

maven-2 - 如何运行最基本的 Vaadin 应用程序

我一直在尝试创建一个开箱即用的 Vaadin 应用程序,但迄今为止没有成功。

使用 IntelliJ IDEA 14,添加了正确的 Vaadin maven 原型并创建了应用程序。
我最终得到了三个项目文件夹(production、ui 和 widgetset),根据教程,我预计只有src. 反正。

所以现在当我尝试在 Tomcat 下部署时,我得到了臭名昭著的

未从文件系统或通过类加载器找到请求的资源 [/VAADIN/widgetsets/com.vaadin.DefaultWidgetSet/com.vaadin.DefaultWidgetSet.nocache.js]。

错误。关于如何更改 web.xml 文件来解决这个问题的文章已经足够多了。但是,我没有要更改的 web.xml 文件。

我也不需要添加任何客户端 js,所以我真的不需要任何这些东西,我只需要服务器端 Vaadin。

我可以摆脱整个 WidgetSet 依赖,从而也摆脱这个错误,只运行最基本的服务器端 Vaadin 应用程序,而不需要所有花哨的东西吗?

我已经尝试注释掉所有对客户端编译器小部件集和其他一切的引用,我对 Java 的微不足道的知识让我在这个过程中失去了很多天。

一些天才的洞察力会很棒。提前致谢。

0 投票
3 回答
2014 浏览

intellij-idea - Intellij IDEA,控制向上翻页,向下翻页滚动大小

我对 intellij 中向上翻页、向下翻页的滚动行为不满意。感觉不对。总感觉好像我超出了范围。

是否可以调整向上翻页、向下翻页的滚动大小?也许到半页或类似的。

0 投票
1 回答
16335 浏览

intellij-idea - Building war with Gradle, Debugging with IntelliJ IDEA

I have JavaEE webapp project(named ProjectA) developed in IntelliJ IDEA.It has build.gradle file that applies war plugin :

I want to debug(or run) gradle generated war file instead of debugging auto generated intellij artifact. It's very important for me that I can update classes changed during debugging without need to restart server.

enter image description here

How can I do it?

Note that :

1) When click refresh button in gradle plugin tab (refresh all Gradle peojects) Intellij updates all project configurations(for example module dependencies) and generate artifacts.I called it auto generated intellij artifact. enter image description here

For run it,I should only create new local Tomcat Server configuration and add artifact to deployment tab. enter image description here

enter image description here

2) In addition,there is some gradle tasks(clean,build,war and etc).I can execute build task or war task to generate war file.I called it gradle generated war file.

0 投票
1 回答
107 浏览

java - 有什么方法可以将“this”关键字自动添加到 Intellij Idea 的类字段中?

例如,而不是这个:

我想得到这个:

看来我在 Eclipse 中使用了这样的设置,但我在 Idea 中找不到它......

0 投票
2 回答
7120 浏览

java - 我的世界锻造不加载纹理

我正在尝试自学 Java 语法并使用 minecraft 作为潜水平台。但我遇到了问题,因为我的纹理都没有被加载。就此而言,我的本地化也不是。这是我的块的代码

这是我的常量类

我的纹理保存在

根据日志,它无法找到我的纹理。这是我收到的信息

客户端加载并显示我的项目,但具有默认的黑色和紫色纹理。我做错了什么?我认为这可能与我的命名约定有关,因为 .lang 文件也永远不会被读取,而我可以给我的块起一个友好名称的唯一方法是使用现在已弃用的LanguageRegistry.addName()方法

0 投票
1 回答
533 浏览

intellij-idea - Configure automatic excluded directories and other directory types when they are present

In the Community Edition when I import a module IntelliJ goes through and tries to figure out which directories are what types. The modules I deal with sometimes have a src and a test directory, which work fine, but more often than not the test directory is actually named tst. IntelliJ likes to mark is as a "Sources" directory rather than "Tests". With the tools I am working with, the dependency configuration and generation of the .iml file happens after this, as well as using a modified build system that is not IntelliJ supported. I have to build via commandline which generates a build folder which I would like to have automatically excluded.

So a couple questions.

  1. Can I configure IntelliJ to automatically recognize different folder names "Tests" and mark them as such?
  2. Can I configure IntelliJ to automatically mark a folder as excluded when it is present in a module?
0 投票
7 回答
19347 浏览

intellij-idea - IntelliJ Ultimate 14 发现用法不起作用

我正在使用 Intellij IDEA 14 Ultimate。当我搜索查找用法时,在查找视图中有类似的信息

在项目文件中搜索用法”并且不返回任何结果。范围是“整个项目”。

我也有 IntelliJ 14 社区版。当它尝试在社区版中查找用法时,它可以工作。

你有什么主意吗?

0 投票
1 回答
1710 浏览

intellij-idea - IntelliJ - 禁止代码自动格式化

IntelliJ 14 总是想在保存时格式化我的代码。通常这很好,但如果我正在处理格式非常糟糕的文件,我宁愿它不这样做。否则,我的更改会在格式更改中丢失。有没有办法选择性地甚至永久地关闭它?我唯一能找到的启用的“@formatter”标签,但即使我将整个文件放在这些标签中,IntelliJ仍然想要格式化它。

0 投票
1 回答
1074 浏览

java - 如何让 IntelliJ 在终端模拟器中运行我的程序?

我的应用程序依赖于 TTY,因此我无法使用应用程序配置运行它。是否可以让 IntelliJ 在终端模拟器中运行我的应用程序?

0 投票
1 回答
1851 浏览

intellij-idea - IntelliJ 不对 Kotlin 导入进行排序

在编写 Java 代码时,IntelliJ 会自动按名称对导入进行排序。但是,当在 Kotlin 中导入成员时,它们仍然是未排序的。选择 Code → Optimize Imports ( Ctrl++ Alt)O什么都不做。

这是一个例子:

我所期待的:

我正在使用带有 Kotlin 插件的 IntelliJ 14.0.2(版本 0.10.195)