Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 488526

Summary: Error stripe not updated
Product: [ECD] Orion Reporter: Steve Northover <steve_northover>
Component: JS ToolsAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Steve Northover CLA 2016-02-26 02:44:57 EST
1) get minesweeper-objects
1.5) make sure you have .tern-project configured to see index.html
2) add junk.js next to main.js
3) junk.js
	function squareAt(i, j) {
	}

	function initBoard () {
		var rows = 10, columns = 10;
		for (var i=0; i<rows; i++) {
			for (var j=0; j<columns; j++) {
				if (!squareAt(i, j).image) {
					var awayCount = 0;
					for (k=i-1; k<i+2; k++) {
						for (l=j-1; l<j+2; l++) {
							if (0 <= k && k < rows) {
								if (0 <= l && l < columns) {
									if (squareAt(k, l).image === mine) awayCount++;
								}
							}
						}
					}
					if (awayCount !== 0) squareAt(i, j).image = "images/" + awayCount + "mines.gif";
				}
			}
		}
	}
4) edit index.html to reference junk.js
5) fix the errors one by one in junk.js
6) BUG: when you are done, there are still errors in the error strip
7) Refresh they are gone
Comment 1 Olivier Thomann CLA 2016-03-02 12:15:08 EST
Steve, I cannot reproduce this one. You would need to show me how to get it. I tried with the change for bug 488530. Maybe this was a side-effect of it. Can you try again in self-hosting in a workspace in which you got the fix for bug 488530? Thanks.
Comment 2 Steve Northover CLA 2016-03-07 09:41:59 EST
Cannot recreate this one either.