PDA

View Full Version : Visual Studio Code trigerring bootstrap.js (Access is denied) when run sencha watch



SebTardif
22 Nov 2016, 10:30 AM
I work with Sencha watch for years, never had that, now when I have Visual Studio Code with the plugin open I get that, and when I close it, it fix immediately.

C:\workspace\ees\apps\nextt\ui\nextt\.sencha\app\refresh-impl.xml:66: java.io.FileNotFoundException: C:\workspace\ees\apps\nextt\ui\nextt\bootstrap.js (Access is denied)

This is blocker for me, even if F1 is not working, and it's also confused on how to jump to Ext JS framework, I was going to use it for what work, but it keep breaking sencha app watch...

Mark.Brocato
30 Nov 2016, 7:08 AM
Can you try uninstalling the plugin and then installing the latest nightly from the support portal? I believe this issue is now fixed.

SebTardif
30 Nov 2016, 9:51 AM
Will do, I was using 1.0.1 but now I realize any build, even previous number version keep changing, see dates below are all recent:

55575

Mark.Brocato
30 Nov 2016, 9:54 AM
Well that's confusing... let us get that worked out. In the meantime, you want the 1.0.0.129 build. After some internal discussion we decided not to increment the build number to 1.0.1 until after GA.

Mark.Brocato
30 Nov 2016, 10:09 AM
Support portal has been cleaned up now. 1.0.0.129 should be the only nightly build you see there.

SebTardif
13 Dec 2016, 8:23 AM
Can you try uninstalling the plugin and then installing the latest nightly from the support portal? I believe this issue is now fixed.
It still not fixed in latest build 1.0.0-ea.2. However, it seems to happen less often.

Error in console:


C:\workspace\ees\apps\nextt\ui\nextt\.sencha\app\watch-impl.xml:4: The following error occurred while executing this line:
C:\workspace\ees\apps\nextt\ui\nextt\.sencha\app\build-impl.xml:380: The following error occurred while executing this line:
C:\workspace\ees\apps\nextt\ui\nextt\.sencha\app\refresh-impl.xml:66: java.io.FileNotFoundException: C:\workspace\ees\apps\nextt\ui\nextt\bootstrap.js (Access is denied)

SebTardif
19 Dec 2016, 5:57 AM
This is still the worst blocker. I have a nightly build 1.0.0.176, so after the release, and still get:


[ERR] Error during rebuild : The following error occurred while executing this line:
C:\workspace\ees\apps\nextt\ui\nextt\.sencha\app\watch-impl.xml:4: The following error occurred while executing this line:
C:\workspace\ees\apps\nextt\ui\nextt\.sencha\app\build-impl.xml:380: The following error occurred while executing this line:
C:\workspace\ees\apps\nextt\ui\nextt\.sencha\app\refresh-impl.xml:66: java.io.FileNotFoundException: C:\workspace\ees\apps\nextt\ui\nextt\bootstrap.js (Access is denied)
[INF] Refresh complete in 0 sec. at 08:52:43 AM


I suggest Sencha switch to Windows to develop and test that plug-in and then they should experience that by themselve. This is an entry point that can help figure out where the problem is: http://www.winhelponline.com/blog/resource-monitor-find-process-locked-file-windows-7/

That would be a reasonable solution to modify Sencha Cmd to 'retry' when they hit a temporarily lock, which is the case here. I have seen lot of professional code doing that. Also, for helping debugging, when Sencha Cmd is hitting lock, it could output information about the process holding the lock.

Mark.Brocato
19 Dec 2016, 6:37 AM
The problem does seem to be confined to Windows 7. We were able to reproduce it, so a fix should be coming shortly.

SebTardif
20 Dec 2016, 6:56 AM
The problem does seem to be confined to Windows 7. We were able to reproduce it, so a fix should be coming shortly.
Great News! If possible please assign bug number to the thread, so we can follow progression.

Mark.Brocato
21 Dec 2016, 6:40 AM
Update: I did a deep dive into this and found that it's not really fixable in the plugin, because it actually happens even when the plugin is not installed. My guess is that node's file watching implementation on Windows 7 creates intermittent locks that sometimes collide with changes Cmd tries to make to the bootstrap files (js and css). I've done my best to reduce the frequency of this error in latest nightly by using VSCode's built-in file watcher, but it still happens.

The ultimate fix will need to come in the form of an update to Sencha Cmd. We are working on that, and we'll probably have something in a nightly in the first two weeks of January.

ithompson
21 Dec 2016, 10:29 AM
I'm facing this issue as well and eagerly await a fix as this makes "sencha app watch" nearly useless.

Mark.Brocato
21 Dec 2016, 10:59 AM
ithompson, just making sure - you're on Windows 7 as well?

ithompson
21 Dec 2016, 11:04 AM
Yes.

Windows 7 Professional x64
Sencha Cmd v6.2.0.103
Visual Studio Code v1.8.1

SebTardif
21 Dec 2016, 12:51 PM
This is now tracked by Sencha bug SDKTOOLS-1653: Error when trying to write to locked bootstrap.js or bootstrap.css

eugene82kr
28 Dec 2016, 5:10 PM
I'm fresher at Ext JS and am doing practice now. I've also faced this problem and I need to report in progress about this to my team. Can I get the Bug Number for tracking this?

update:oh, sorry. i got that number above post. thank you.

Mark.Brocato
11 Jan 2017, 7:30 AM
I've confirmed we have a fix in development now that will be released as part of Cmd 6.5.

Mark.Brocato
20 Jan 2017, 7:50 AM
This should now be fixed in the latest nightly of Sencha Cmd, 6.5.0.56.

https://support.sencha.com/#download