[JBoss JIRA] (JBIDE-18752) Freemarker plugin does not work for square bracket (since JBT 4.2.0.Final)
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18752?page=com.atlassian.jira.plugi... ]
Denis Golovin commented on JBIDE-18752:
---------------------------------------
[~matteo.pelucco] thank you for reporting this, I'll check if I we can fix obvious problems.
> Freemarker plugin does not work for square bracket (since JBT 4.2.0.Final)
> --------------------------------------------------------------------------
>
> Key: JBIDE-18752
> URL: https://issues.jboss.org/browse/JBIDE-18752
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.2.0.Final
> Reporter: Denis Golovin
> Assignee: Max Rydahl Andersen
> Fix For: 4.3.0.Alpha2
>
>
> From https://github.com/jbosstools/jbosstools-freemarker/issues/26
> {quote}
> When using the plugin to edit freemarker files that use the square bracket syntax the editor fails to highlight the syntax (this is happening in JBoss Tools 4.20 Final).
> I think the file: src / org / jboss / ide / eclipse / freemarker / editor / DocumentProvider.java
> on line 70 is causing the syntax highlighting problem:
> {code}if (ch != LexicalConstants.SQUARE_SYNTAX_MARKER.charAt(i)) {
> return SyntaxMode.ANGLE;
> }
> SQUARE_SYNTAX_MARKER.charAt(i)
> {code}
> It should start in 0 and have a different index than i (the index of the file content) to have a proper string matching. Also, SQUARE_SYNTAX_MARKER is [#ftl, not all files start with a ftl tag, so I don't see the need for "ftl" at the end, so that's why in the following example fix I put j < 2.
> e.g.
> {code}
> int j =0;
> for (; i < docLength && j < 2; i++) {
> char ch = document.getChar(i);
> if (ch != LexicalConstants.SQUARE_SYNTAX_MARKER.charAt(j)) {
> return SyntaxMode.ANGLE;
> }
> j++;
> }
> {code}
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 1 month
[JBoss JIRA] (JBIDE-18752) Freemarker plugin does not work for square bracket (since JBT 4.2.0.Final)
by Denis Golovin (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18752?page=com.atlassian.jira.plugi... ]
Denis Golovin commented on JBIDE-18752:
---------------------------------------
[~maxandersen] 2.4 was not released yet, latest release was at March 1st 2015: FreeMarker 2.3.22.
> Freemarker plugin does not work for square bracket (since JBT 4.2.0.Final)
> --------------------------------------------------------------------------
>
> Key: JBIDE-18752
> URL: https://issues.jboss.org/browse/JBIDE-18752
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.2.0.Final
> Reporter: Denis Golovin
> Assignee: Max Rydahl Andersen
> Fix For: 4.3.0.Alpha2
>
>
> From https://github.com/jbosstools/jbosstools-freemarker/issues/26
> {quote}
> When using the plugin to edit freemarker files that use the square bracket syntax the editor fails to highlight the syntax (this is happening in JBoss Tools 4.20 Final).
> I think the file: src / org / jboss / ide / eclipse / freemarker / editor / DocumentProvider.java
> on line 70 is causing the syntax highlighting problem:
> {code}if (ch != LexicalConstants.SQUARE_SYNTAX_MARKER.charAt(i)) {
> return SyntaxMode.ANGLE;
> }
> SQUARE_SYNTAX_MARKER.charAt(i)
> {code}
> It should start in 0 and have a different index than i (the index of the file content) to have a proper string matching. Also, SQUARE_SYNTAX_MARKER is [#ftl, not all files start with a ftl tag, so I don't see the need for "ftl" at the end, so that's why in the following example fix I put j < 2.
> e.g.
> {code}
> int j =0;
> for (; i < docLength && j < 2; i++) {
> char ch = document.getChar(i);
> if (ch != LexicalConstants.SQUARE_SYNTAX_MARKER.charAt(j)) {
> return SyntaxMode.ANGLE;
> }
> j++;
> }
> {code}
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 1 month
[JBoss JIRA] (JBIDE-18752) Freemarker plugin does not work for square bracket (since JBT 4.2.0.Final)
by Matteo Pelucco (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18752?page=com.atlassian.jira.plugi... ]
Matteo Pelucco edited comment on JBIDE-18752 at 3/5/15 11:32 AM:
-----------------------------------------------------------------
I've just tested: WIN8.1 + LUNA (SR2) + JBoss Tools 4.2.2 Final.
No supports by default for [ directive ]
If I try to add [#ftl] at the beginning of a template, it crash (no colours, weird keybord input responses..)
On WIN8.1 + LUNA (R) + JBoss Tools (Freemarker IDE 1.3.100)
Support for [ directive ] working pretty fine.
Waiting for a fix (or maybe, an option to enable / disable it..)
Sample template: just create a new file: test.ftl and start typing [#ftl]
You will start to see weird things, like:
{noformat}
[#ftl
]
{noformat}
or
{noformat}
[#ft ]l
{noformat}
Other more complex templates completely crashes. Something like
{noformat}
[#assign urlOg = nectarfn.createAbsoluteLink(content)!""]
[#assign defaultBaseUrl = nectarfn.defaultBaseUrl!""]
[#assign siteTitleOg = siteTitle!""]
[#assign pageTitleOg = contentPageTitle!""]
[#if siteTitleOg?has_content && siteTitleOg != "" && pageTitleOg != siteTitleOg]
[#assign pageTitleOg = "${pageTitleOg} - ${siteTitleOg}"]
[/#if]
[#assign imgOg = stkfn.getAssetLink(content, "teaserImg")!""]
[#if imgOg?has_content]
[#assign imgOg = defaultBaseUrl + imgOg]
[/#if]
[#assign abstractPageOg = content.abstract!""]
[#assign abstractPageOg = abstractPageOg?replace("<br />", " ")]
[#assign abstractPageOg = abstractPageOg?replace("<br/>", " ")]
[#assign abstractPageOg = abstractPageOg?replace("<br>", " ")]
{noformat}
was (Author: matteo.pelucco):
I've just tested: WIN8.1 + LUNA (SR2) + JBoss Tools 4.2.2 Final.
No supports by default for [ directive ]
If I try to add [#ftl] at the beginning of a template, it crash (no colours, weird keybord input responses..)
On WIN8.1 + LUNA (R) + JBoss Tools (Freemarker IDE 1.3.100)
Support for [ directive ] working pretty fine.
Waiting for a fix (or maybe, an option to enable / disable it..)
Sample template: just create a new file: test.ftl and start typing [#ftl]
You will start to see weird things, like:
[#ftl
]
or
[#ft ]l
Other more complex templates completely crashes. Something like
---
[#assign urlOg = nectarfn.createAbsoluteLink(content)!""]
[#assign defaultBaseUrl = nectarfn.defaultBaseUrl!""]
[#assign siteTitleOg = siteTitle!""]
[#assign pageTitleOg = contentPageTitle!""]
[#if siteTitleOg?has_content && siteTitleOg != "" && pageTitleOg != siteTitleOg]
[#assign pageTitleOg = "${pageTitleOg} - ${siteTitleOg}"]
[/#if]
[#assign imgOg = stkfn.getAssetLink(content, "teaserImg")!""]
[#if imgOg?has_content]
[#assign imgOg = defaultBaseUrl + imgOg]
[/#if]
[#assign abstractPageOg = content.abstract!""]
[#assign abstractPageOg = abstractPageOg?replace("<br />", " ")]
[#assign abstractPageOg = abstractPageOg?replace("<br/>", " ")]
[#assign abstractPageOg = abstractPageOg?replace("<br>", " ")]
> Freemarker plugin does not work for square bracket (since JBT 4.2.0.Final)
> --------------------------------------------------------------------------
>
> Key: JBIDE-18752
> URL: https://issues.jboss.org/browse/JBIDE-18752
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.2.0.Final
> Reporter: Denis Golovin
> Assignee: Max Rydahl Andersen
> Fix For: 4.3.0.Alpha2
>
>
> From https://github.com/jbosstools/jbosstools-freemarker/issues/26
> {quote}
> When using the plugin to edit freemarker files that use the square bracket syntax the editor fails to highlight the syntax (this is happening in JBoss Tools 4.20 Final).
> I think the file: src / org / jboss / ide / eclipse / freemarker / editor / DocumentProvider.java
> on line 70 is causing the syntax highlighting problem:
> {code}if (ch != LexicalConstants.SQUARE_SYNTAX_MARKER.charAt(i)) {
> return SyntaxMode.ANGLE;
> }
> SQUARE_SYNTAX_MARKER.charAt(i)
> {code}
> It should start in 0 and have a different index than i (the index of the file content) to have a proper string matching. Also, SQUARE_SYNTAX_MARKER is [#ftl, not all files start with a ftl tag, so I don't see the need for "ftl" at the end, so that's why in the following example fix I put j < 2.
> e.g.
> {code}
> int j =0;
> for (; i < docLength && j < 2; i++) {
> char ch = document.getChar(i);
> if (ch != LexicalConstants.SQUARE_SYNTAX_MARKER.charAt(j)) {
> return SyntaxMode.ANGLE;
> }
> j++;
> }
> {code}
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 1 month
[JBoss JIRA] (JBIDE-18752) Freemarker plugin does not work for square bracket (since JBT 4.2.0.Final)
by Matteo Pelucco (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18752?page=com.atlassian.jira.plugi... ]
Matteo Pelucco commented on JBIDE-18752:
----------------------------------------
I've just tested: WIN8.1 + LUNA (SR2) + JBoss Tools 4.2.2 Final.
No supports by default for [ directive ]
If I try to add [#ftl] at the beginning of a template, it crash (no colours, weird keybord input responses..)
On WIN8.1 + LUNA (R) + JBoss Tools (Freemarker IDE 1.3.100)
Support for [ directive ] working pretty fine.
Waiting for a fix (or maybe, an option to enable / disable it..)
Sample template: just create a new file: test.ftl and start typing [#ftl]
You will start to see weird things, like:
[#ftl
]
or
[#ft ]l
Other more complex templates completely crashes. Something like
---
[#assign urlOg = nectarfn.createAbsoluteLink(content)!""]
[#assign defaultBaseUrl = nectarfn.defaultBaseUrl!""]
[#assign siteTitleOg = siteTitle!""]
[#assign pageTitleOg = contentPageTitle!""]
[#if siteTitleOg?has_content && siteTitleOg != "" && pageTitleOg != siteTitleOg]
[#assign pageTitleOg = "${pageTitleOg} - ${siteTitleOg}"]
[/#if]
[#assign imgOg = stkfn.getAssetLink(content, "teaserImg")!""]
[#if imgOg?has_content]
[#assign imgOg = defaultBaseUrl + imgOg]
[/#if]
[#assign abstractPageOg = content.abstract!""]
[#assign abstractPageOg = abstractPageOg?replace("<br />", " ")]
[#assign abstractPageOg = abstractPageOg?replace("<br/>", " ")]
[#assign abstractPageOg = abstractPageOg?replace("<br>", " ")]
> Freemarker plugin does not work for square bracket (since JBT 4.2.0.Final)
> --------------------------------------------------------------------------
>
> Key: JBIDE-18752
> URL: https://issues.jboss.org/browse/JBIDE-18752
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.2.0.Final
> Reporter: Denis Golovin
> Assignee: Max Rydahl Andersen
> Fix For: 4.3.0.Alpha2
>
>
> From https://github.com/jbosstools/jbosstools-freemarker/issues/26
> {quote}
> When using the plugin to edit freemarker files that use the square bracket syntax the editor fails to highlight the syntax (this is happening in JBoss Tools 4.20 Final).
> I think the file: src / org / jboss / ide / eclipse / freemarker / editor / DocumentProvider.java
> on line 70 is causing the syntax highlighting problem:
> {code}if (ch != LexicalConstants.SQUARE_SYNTAX_MARKER.charAt(i)) {
> return SyntaxMode.ANGLE;
> }
> SQUARE_SYNTAX_MARKER.charAt(i)
> {code}
> It should start in 0 and have a different index than i (the index of the file content) to have a proper string matching. Also, SQUARE_SYNTAX_MARKER is [#ftl, not all files start with a ftl tag, so I don't see the need for "ftl" at the end, so that's why in the following example fix I put j < 2.
> e.g.
> {code}
> int j =0;
> for (; i < docLength && j < 2; i++) {
> char ch = document.getChar(i);
> if (ch != LexicalConstants.SQUARE_SYNTAX_MARKER.charAt(j)) {
> return SyntaxMode.ANGLE;
> }
> j++;
> }
> {code}
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 1 month
[JBoss JIRA] (JBIDE-19413) remove ICredentialsConnection
by Andre Dietisheim (JIRA)
Andre Dietisheim created JBIDE-19413:
----------------------------------------
Summary: remove ICredentialsConnection
Key: JBIDE-19413
URL: https://issues.jboss.org/browse/JBIDE-19413
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: openshift
Affects Versions: 4.3.0.Alpha2
Reporter: Andre Dietisheim
Assignee: Andre Dietisheim
In JBIDE-18999 we added a username to the v3 Connection. Before that v3 connections did not have a username and we therefore had to check connections (v2 and v3) whether they had a username on behalf of the ICredentialsConnection interface. This became now obsolete
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 1 month
[JBoss JIRA] (JBIDE-19413) remove ICredentialsConnection
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-19413?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-19413:
-------------------------------------
Fix Version/s: 4.3.0.Alpha2
> remove ICredentialsConnection
> -----------------------------
>
> Key: JBIDE-19413
> URL: https://issues.jboss.org/browse/JBIDE-19413
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.3.0.Alpha2
> Reporter: Andre Dietisheim
> Assignee: Andre Dietisheim
> Fix For: 4.3.0.Alpha2
>
>
> In JBIDE-18999 we added a username to the v3 Connection. Before that v3 connections did not have a username and we therefore had to check connections (v2 and v3) whether they had a username on behalf of the ICredentialsConnection interface. This became now obsolete
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 1 month