[JBoss JIRA] (ERT-338) [formatter] Unwanted alignment on Enter when inside array literal [EBZ#356606]
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/ERT-338?page=com.atlassian.jira.plugin.sy... ]
Ilya Buziuk updated ERT-338:
----------------------------
Fix Version/s: Neon.1 (4.6)
(was: Future)
> [formatter] Unwanted alignment on Enter when inside array literal [EBZ#356606]
> ------------------------------------------------------------------------------
>
> Key: ERT-338
> URL: https://issues.jboss.org/browse/ERT-338
> Project: Eclipse Release Train
> Issue Type: Task
> Components: JSDT
> Reporter: Friendly Jira Robot
> Labels: Future, General, bzira
> Fix For: Neon.1 (4.6)
>
>
> Eclipse 3.7 (I20110613-1736)
> JSDT 1.3.0 (20110527214303)
> WTP 3.3.0 (20100921193530)
> 1. Create a new JavaScript file and add this code:
> function() {
> var myArray = [];
> }
> 2. Put the editing caret between the square brackets, and press Enter.
> 3. You get
> function() {
> var myArray = [
> ];
> }
> Inside array literals, pressing Enter causes the editor to insert spaces to align the new line with the opening [ bracket. I expected it to just increase the indentation level.
> This happens when using a new workspace with all the default preference settings.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (ERT-333) An internal error occurred during: "Requesting JavaScript AST from selection". [EBZ#496749]
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/ERT-333?page=com.atlassian.jira.plugin.sy... ]
Ilya Buziuk resolved ERT-333.
-----------------------------
Resolution: Done
> An internal error occurred during: "Requesting JavaScript AST from selection". [EBZ#496749]
> -------------------------------------------------------------------------------------------
>
> Key: ERT-333
> URL: https://issues.jboss.org/browse/ERT-333
> Project: Eclipse Release Train
> Issue Type: Task
> Components: JSDT
> Reporter: Friendly Jira Robot
> Labels: 3.8.1, General, bzira
> Fix For: Neon.1 (4.6)
>
>
> OSX Fresh install of Neon, editing a relatively complex JavaScript file.
> An internal error occurred during: "Requesting JavaScript AST from selection".
> org.eclipse.wst.jsdt.internal.core.dom.binding.VariableBinding cannot be cast to org.eclipse.wst.jsdt.core.dom.IFunctionBinding
> -- Configuration Details --
> Product: Eclipse 4.6.0.20160613-1800 (org.eclipse.epp.package.javascript.product)
> Installed Features:
> org.eclipse.platform 4.6.0.v20160606-1342
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months
[JBoss JIRA] (ERT-342) Breakpoints doesn't hit if create Project from existing source. [EBZ#439778]
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/ERT-342?page=com.atlassian.jira.plugin.sy... ]
Ilya Buziuk updated ERT-342:
----------------------------
Story Points: 2
> Breakpoints doesn't hit if create Project from existing source. [EBZ#439778]
> ----------------------------------------------------------------------------
>
> Key: ERT-342
> URL: https://issues.jboss.org/browse/ERT-342
> Project: Eclipse Release Train
> Issue Type: Task
> Components: JSDT
> Reporter: Friendly Jira Robot
> Labels: Debug, bzira
> Fix For: Neon.1 (4.6)
>
>
> I created JavaScript project (Name: Sample) using "Create Project from existing source" Let see in "C:\TestProject" which contains test.js script.
> Now i opened test.js and added some breakpoint in that script, now when I'm running the script breakpoint is Not Hitting.
> *****************Investigation********************
> org.eclipse.wst.jsdt.debug.internal.core.model.ScriptResolutionManager there is a function guessScriptMatches(ScriptReference script, IPath path).
> JavaDoc of this function: "Guesses if the paths are considered equal by walking backward from the last segment of the paths and counting the matching segments. The paths are guessed to be equal iff any two or more segments match in order."
> So in My case because Project name and physical folder name are different. That why only file name is matching, but this function is checking for at least 2 segment to match, so it returns false and caller function will not add JavaScriptDebugTarget for this script.
> ******************** Solution Proposal*********************
> We can check if current script is inside root folder of project then if one segment matches we'll return true, for other case it will remain check for at least two segment to match
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 8 months