This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Project name is different than user supplied in new project with existing sources wizard. To reproduce: - have a folder with one html file on local disk (e.g. Site1/index.html) - open new project wizard - select HTML/JavaScript|HTML 5 Application with Existing Sources" and click Next - browse for Site1 folder as Site Root - change project directory to ...\Site1Project - leave unchanged project name Site1 - click Finish - change default run config to "Chrome with NetBeans Integration" - run project (F6) - open index.html, modify it and save it - nothing happens in browser. It shows previous content. Product Version: NetBeans IDE Dev (Build EaselCSS-520-on-20120821) Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
This does not look related to "From Existing Sources" so assigning back to myself. I cannot reproduce. It just works for me. There is similar (and valid) issue for Embedded Browser.
Vlada reproduced it on Linux as well. Please, be careful to change project directory to something else than Site Root folder.
Marking as WORKSFORME since I cannot reproduce it. Can you guys verify? Thanks. Product Version: NetBeans IDE Dev (Build 20121106-28f2059fb76f) Java: 1.6.0_35; Java HotSpot(TM) 64-Bit Server VM 20.10-b01 Runtime: Java(TM) SE Runtime Environment 1.6.0_35-b10 System: Linux version 3.2.0-32-generic running on amd64; UTF-8; cs_CZ (nb)
Still reproducible in build 201211070001. Workaround is to change Autorefresh in properties to false and then to true.
Will fix it.
Sorry, still cannot reproduce - just found out that if the property is not set yet (our case), it is taken from the "browser integration" property itself [1]. Davide, have you any idea why this could be false for Jirka? Jirko, if you open Project Properties > Run, you see Chrome with NetBeans integration - right? [1] ClientProjectConfigurationImpl.isAutoRefresh() Product Version: NetBeans IDE Dev (Build 20121114-81d2ab562d59) Java: 1.6.0_35; Java HotSpot(TM) 64-Bit Server VM 20.10-b01 Runtime: Java(TM) SE Runtime Environment 1.6.0_35-b10 System: Linux version 3.5.0-18-generic running on amd64; UTF-8; cs_CZ (nb)
Still reproducible with original steps. From the following lines in code it seems that FileChangeListener listens just on project root and not source/site root protected void projectOpened() { projectFileChangesListener = new ProjectFilesListener(p); FileUtil.addRecursiveListener(projectFileChangesListener, FileUtil.toFile(p.getProjectDirectory())); Structure of project is the following Site1/index.html Site1Project/config /nbproject /test
Aaaah, sorry, now I see it. My project structure is: . ├── config ├── nbproject │ ├── project.properties │ └── project.xml ├── Site1 │ └── index.html └── test I will fix it, thanks Jirko!
Davide, I plan to fix it this way - register FS listener just on Site Root. However, then we need to handle: - Site Root changes, - Site Root can be null (broken project). Do you agree? Or is there any other reason why we should listen to project (or test or config) directory? Please, reassign back to me, thanks.
(In reply to comment #9) > Davide, I plan to fix it this way - register FS listener just on Site Root. Yes. > However, then we need to handle: > - Site Root changes, > - Site Root can be null (broken project). Yes, listening on ClientSideProjectConstants.PROJECT_SITE_ROOT_FOLDER changes in project's evaluator should do the trick, right? > > Do you agree? Yes. > Or is there any other reason why we should listen to project (or > test or config) directory? No. It's a leftover from times when project root used to be also site root.
Fixed I hope. http://hg.netbeans.org/web-main/rev/a21b251e032b
Integrated into 'main-golden', will be available in build *201211160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a21b251e032b User: Tomas Mysik <tmysik@netbeans.org> Log: #217145 - Project with existing sources - browser not refreshed
The fix caused bug 222251.
Closing back as FIXED, issue #222249 is fixed now. Please verify. Thanks.