Created attachment 137502 [details] Screenshot showing described bug Short description ----------------- This bug extends bug no 232200: https://netbeans.org/bugzilla/show_bug.cgi?id=232200 After doing fresh-install of 7.3.1 (and 7.4 Beta) and importing user-exported settings, various things fails in Netbeans editor, including unable to display *.html files source, not working color profile and keymap. In addition, exactly the same effects may happen on working installation, without any user changes in configuration. So bug seems to be not related with importing settings. Longer description ------------------ First found in installed and working 7.3.1 PHP Edition, then (after uninstall) in freshly instaleld in 7.4 Beta PHP Edition and then (after again uninstalling beta) in freshly installed 7.3.1. In first case happens without warning, on installed and working copy of NB PHP. Yesterday I was fully using my Netbeans and I was able -- of course -- to edit source. Just like the day before yesterday, weeks and months ago. Today morning, I started my computer and Netbeans and without reason or configuration change, Netbeans forced me from seeing my source files for particular type of files. This issue is the same as described here: http://netbeans-org.1045718.n5.nabble.com/74cat-editor-Stuck-in-History-mode-of-editor-td5724739.html For *.html, *.xml and many other type of files, Netbeans editor stopped showing source a at all. Whenever I double click such file in project tree or drag and drop it from system to Netbeans, I can see only "History" button / tab, View/Editor also contains only History option and tab for particular file has no title (see attached screenshot). In addition, color profile fails (no code colouring) and keymap fails as well (most keyboard shortcuts stops working in editor). More info --------- I checked the problem with: a) full set of plugins, that I normally use, b) with removing all "extra" plugins (leaving only "Base IDE" and "PHP" category) and c) with deactivating all, that can be deactivated (running NB on minimum set of plugins -- Database, CSS Source Model, IDE Platform, PHP, PHP Static Analysis, ApiGen and RCP Platform). Still no effect, so the problem seems to be in core PHP. The weirdest part of this story, is that it happened suddenly, without any change in the configuration, on working and installed copy of Netbeans 7.3.1. Additionally, I have noticed, that code coloring (for files, that I can see source) is gone and most of editor shortcuts doesn't work, including such basic like Delete or Backspace. However, adding new text is possible, so file isn't opened in read-only mode. I found that coloring can be restored, by switching to Netbeans 5.5. "Netbeansh" coloring profile does not work at all -- no colors, not positions in Category, and Java exception, when trying to enable it. Unfortunately, changing keymap profile to Netbeans 5.5 doesn't helps and keyboard shortcuts doesn't work still. This seems like general editor fail. But the strangest part is, that uninstalling and freshly installing NB doesn't help. Summary ------- This is a complete blocker (at least for me). I'm left with two options. Either being unable to edit HTML files in Netbeans and not being able to use default color scheme and keymap (including not working Backspace and Delete which makes editing impossible). Or reinstall Netbeans without using my private set of settings (including many macros). Both options are not acceptible, so I must quite using Netbeans at all until this is fixed.
New findings after long serie of tests -- Font & Colors ------------- Importing user settings from .zip file and checking this tree node makes default ("Netbeans") Fonts & Colors profile corrupted. Editor looses all colouring functionality and user can not select this profile any more and therfore must downgrade to "Netbeans 5.5". Following solution given in bug # and removing file: C:\Users\Trejder\AppData\Roaming\NetBeans\7.3.1\config\Editors\FontsColors\NetBeans\Defaults_hidden solves this problem. Keymaps ------- Importing user settings from this node causes editor to lost most of the keyboard shortcuts. Including Backspace and Delete, which makes editing nearly impossible. There is no known workaround than downgrading to "Netbeans 5.5" profile in Keymaps section. Additional bug: Selecting "Netbeans 5.5" Keymaps profile and reopening options windows reveals that actually "Eclipse" keymap is selected. There is no way to select "Netbeans 5.5". Each time, after reopening config window, "Eclipse" is selected. Missing "Source" pane in editor ------------------------------- I was only able to detect, that this problem is NOT related to importing user configuration. It is related to importing existing project that contains Git local repository. Either by importing project settings from ZIP file (previously exported) or adding new project basing on existing sources. In both cases Netbeans does not allows to access source of certain files, showing only "History" pane in editor. This happens when local Git repositories were clonend or pulled out using earlier version of Netbeans or some external client like TortoiseGit. Netbeans is also unable to pull / push changes to such repository. Possible workaround -- delete local completely and pull it again from remote, using newest Netbeans. -- This bug possibly should be split into several, each covering different case.
OK, so first rule is: file a separate defect for each issue. Duplication is easy, splitting hard (especially if information for a particular case is spread through the comments) and the dev's time spent in 'administrativia' could be better invested in actual bug fixing. In addition, not all supposed problems are P1, and some are already reported/fixed - but it's hard to record that in such complex report. The "Fonts and Colors" issue mentioned in comment #1 is probably a duplicate of issue #232200; please post your observations there. The "Keymaps" issue is also unrelated to the main issue, extracted as issue #233146 Please do not post further about 'keymap' and 'fonts/colors' here, but to the relevant issues for proper tracking. --- So if I understand well, the issue is triggered by opening a project over existing sources which were pulled by other client than the current NB. Based on observation for both html AND xml files - the defect is not specific to PHP, but rather to IDE core; html and xml have completely different underlying implementations except base editor support in openide.text. Questions: * what is the exact version of the CLI/external tool you used to pull the source from the git ? * what is the exact version of "earlier version of Netbeans" mentioned in the comments ? * did the sources for the project (created over existing sources) contain some traces e.g. from earlier NB version, or was it a pristine local pulled from Git ? * please provide the IDE's message log. It's possible that an exception was thrown & logged that prevented full creation of the editor. * right after the invalid editor window appears, please try to shoot a thread dump; though unlikely, the state might be caused by some background process getting stuck / locked. See http://wiki.netbeans.org/GenerateThreadDump for the steps. Attach the thread dump here. * is it possible to reproduce the defect from a 'pristine' state, that is: clean NB-3.1.1 installation (which edition ? you mentioned PHP edition once), pristine sources pulled from Git by e.g. TortoiseGit, project created from existing sources -> defect. Please provide a step-by-step scenario, ideally for some O/S git-stored project, so I can recreate the environment as closely as possible. Please provide the requested info & reopen; thanks.
Sorry for mixing up more than one issue in one bug report and thanks for cleaning the situation up (splitting bugs). As for your question concerning "not showing HTML source": 1. Versions: I've initially cloned Git remote using TortoiseGit 1.8.3.0 and Git 1.8.1.2 for Windows (mSysGit). After initial clone, I was doing pulls using NetBeans 7.3.1. only. After last of these pulls Netbeans stopped showing source of *.html files. Since I thought it was a bug in Netbeans 7.3.1, I've uninstalled it and installed 7.4 Beta with the same result. So "version of the CLI/external tool" refers to "TortoiseGit 1.8.3.0 and Git 1.8.1.2" and "earlier version of Netbeans" means "using Netbeans 7.4 Beta after NetBeans 7.3.1". 2. "did the sources for the project (...) contain some traces"? Yes, it probably dit. At any point I was dealing with repository alterady existing, cloned out many weeks ago and pulled out from remote from time to time. At any point I haven't cloned / pulled brand new Git remote. 3. Logs: I'm on a bussines trip. I'll post logs as soon as I get back to my home computer. 4. "is it possible to reproduce the defect from a 'pristine' state": Netbeans 7.3.1 on my home computer (important, on my office computer all still works just fine) failed yesterday, while I've been using this pulled sources for months. I don't remember exact details today. I'll do some more tests, once I get back from business trip. We're talking about public GitHub repo all the time, placed at: https://github.com/trejder/pg-demo-bootstrap. Right know, you can try to clone it using TortiseGit and then try to pull some changes using Netbeans. If I'm not mistaken, that was the way all things happend. The only thing is, that I've been able to pull changes using Netbeans all the time, except for yesterday. If I'm not mistaken, all strange/buggy things with not showing source, started to happen after last pull.
Did you tried to open a file outside the GIT tree with the faulty IDE version, e.g. from some sample/non-versioned project ? Ideally shut down the faulty IDE with no file(s) opened, then after restart, first open a non-versioned file, then one of the files that exhibit the fault, then again a non-versioned file.
No, I haven't tried to open a HTML file outside Git repo. I'll add it to list of tests I should perform, once I get back to my home computer. I have just realize, that I have Netbeans 7.3 (7.3.0) installed at my office computer. This explains, why I can't reproduce this bug on the very same repo. So, it seems, that this bug is entirely related to 7.3.1 and up (7.4 beta as well).
Created attachment 137964 [details] messages.log As requested: messages.log file captured right after starting Netbeans and opening "invalid" file / editor (without "Source" tab). There's a "no connection to SVN server" error logged at the end of dumped file, but it is irrelevant. "invalid" editor appears even after opening files from repositories that has access to remote server.
Additional info: 1. I'm unable to make thread dump. I'm opening Netbeans with "--console new" option, as requested, but opened console window remains empty, no matter, what I do. 2. I've installed plugin called "Show path in title bar". It displays path and file name to "invalid" file correctly, so I assume, that Netbeans has accesss to each file, which it tries to open and fails displaing source. 3. I've tried opening PHP file (with which I have the same problems as with HTML) outside repository tree, and it openend the same, this time even without history, as it is now beyond version control. I see only a tab with "x" button and empty title / file name, a "History" button and empty rest of the screen.
OK, no exceptions in the log which could prevent the source tab from appearing. I've tried to git clone (using cmdline git; I don't have tortoise on Linux), but nothing happened. Could you please zip your config directory ($userdir/config), and since we're talking about rather a small and opensource project (did I understand it right ?) , could you zip your *local clone* of the project where you experience the issues, so I can work with the same data ? Thanks. Setting to P3, as the defect seems to happen on a specific configuration / tool set (specific version of vcs, possibly specific content or operations)
Created attachment 138213 [details] Zipped user-dir/config of NB 7.3.1, which can display source in some certain situation
Created attachment 138214 [details] Zipped full SVN local working copy of a project, in which NB 7.3.1 can't display source for *.php files
Sure thing. Here are examples, you've been asking for...
Created attachment 138218 [details] User-dir of newly installed 7.3 (Build 201306052037) User-dir of brand new, newly installed 7.3 (Build 201306052037), which fails to display source of *.php files.
Created attachment 138219 [details] Full Git local repo in which 7.3 (Build 201306052037) fails to display source of *.php files
Created attachment 138220 [details] Options imported into 7.3 (Build 201306052037) These exported user options and macros were imported into 7.3 (Build 201306052037) right after installation. They maybe somehow releated to this bug, though I'm not sure.
I too have the issue where .html files don't show a source tab. I have it on Netbeans 7.3.1 for Windows 64 bit. When I create a new HTML5 project through Netbeans, first the project doesn't show in the project window. Secondly I can't view the source of any html files because of the reported bug. When I restart Netbeans, then the new html5 project shows in the project tree.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss