Closed Ivan-Igorevich closed 1 year ago
Hello. Could you please share a sample project and tell IntelliJ version?
IDEA 2022.3.1CE Plugin 0.11.1162
https://git.iovchinnikov.ru/ivan-igorevich/erlang-labs
if you can import it and run tests - show me how, please))
Index: src/rss_parse.erl
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/rss_parse.erl b/src/rss_parse.erl
--- a/src/rss_parse.erl (revision f7f73cd26f4929832e71f2bf5f23458a6cebc60e)
+++ b/src/rss_parse.erl (date 1683124378079)
@@ -1,7 +1,7 @@
-module(rss_parse).
-export([is_rss2_feed/1, get_feed_items/1, get_item_time/1, compare_feed_items/2]).
--include_lib("/usr/lib/erlang/lib/xmerl-1.3.26/include/xmerl.hrl"<).
+-include_lib("xmerl/include/xmerl.hrl").
% В этой функции вызываем функцию `xmerl_scan:file/1`, которая возвращает парсер XML-документа. Затем используем `xmerl_xpath:string/2` для поиска элемента `<rss>` с атрибутом `version` равным "2.0". Если такой элемент найден, то функция возвращает true, иначе false.
is_rss2_feed(Name)->
Index: erlang.iml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/erlang.iml b/erlang-labs.iml
rename from erlang.iml
rename to erlang-labs.iml
--- a/erlang.iml (revision f7f73cd26f4929832e71f2bf5f23458a6cebc60e)
+++ b/erlang-labs.iml (date 1683124210370)
@@ -11,7 +11,7 @@
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
- <orderEntry type="jdk" jdkName="Erlang 25" jdkType="Erlang SDK" />
+ <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
Index: src/rss_queue.erl
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/rss_queue.erl b/src/rss_queue.erl
--- a/src/rss_queue.erl (revision f7f73cd26f4929832e71f2bf5f23458a6cebc60e)
+++ b/src/rss_queue.erl (date 1683124437583)
@@ -2,8 +2,8 @@
-compile(export_all).
--include("logging.hrl")
--include_lib("/usr/lib/erlang/lib/xmerl-1.3.26/include/xmerl.hrl")
+-include("logging.hrl").
+-include_lib("xmerl/include/xmerl.hrl").
% The server implements the gen_server behavior.
-behaviour(gen_server).
something like that may help a lot
Hello, first of all, thank you for your work.
I've created a simple erlang project and put it under VCS (everything works perfectly, thank you)
But when i've cloned this very same project on my other PC, it has opened as a Java project and Project structure wants me to choose the installed JDK version.
I didn't find any difference in generated (in
.idea
folder) meta information files, and the main*.iml
file is under VCS.Debian11 IDEA 2022.3.1CE Plugin 0.11.1162
Upd: the same problem happens if you start a repository on one device, create files (and push them) on the other device, then pull them to the initial project. I guess, there's some kind of inner indexing happen.
Upd2: found a problem creating new Java project after working with plugin. Simple "Hello world" doesn't compile because of an exception (shown below). Disabling plugin fixes issue. After enabling plugin again the issue returns with the same exception.