<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3022</bug_id>
          
          <creation_ts>2012-08-28 13:06:28 +0000</creation_ts>
          <short_desc>Cannot open file &quot;local.conf&quot; with double click in a &quot;General&quot; project</short_desc>
          <delta_ts>2019-08-29 15:17:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Eclipse Plugin</product>
          <component>eclipse-plugin</component>
          <version>1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Oberhuber">mober.at</reporter>
          <assigned_to name="Ioana Grigoropol">ioanax.grigoropol</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>ioanax.grigoropol</cc>
    
    <cc>yp.ep.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24537</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Oberhuber">mober.at</who>
    <bug_when>2012-08-28 13:06:28 +0000</bug_when>
    <thetext>CQ:WIND00372649
Build ID: org.yocto.bc.ui_1.2.0.201204241345.jar

1. File &gt; New &gt; Project &gt; General:Project : name &quot;foo&quot;
2. File &gt; New &gt; File : name &quot;local.conf&quot;
3. Double clock local.conf

--&gt; A &quot;Could not open editor&quot; error appears. 
Workaround: Right-click &gt; Open File in Text Editor.


Pressing the details button on the broken editor reveweals:

org.eclipse.ui.PartInitException: 
	at org.yocto.bc.ui.editors.bitbake.BitBakeFileEditor.init(Unknown Source)
[...]

Plus on the console where Eclipse was started, this is shown:

java.io.FileNotFoundException: /installations/workspaces/mober/lx50_lb11/foo/.eclipse-data (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:106)
	at java.io.FileReader.&lt;init&gt;(FileReader.java:55)
	at org.yocto.bc.bitbake.ProjectInfoHelper.getInitScriptPath(Unknown Source)
	at org.yocto.bc.ui.Activator.getShellSession(Unknown Source)
	at org.yocto.bc.ui.Activator.getBBSession(Unknown Source)
	at org.yocto.bc.ui.editors.bitbake.BitBakeFileEditor.init(Unknown Source)
	at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
[...]



It looks like the BitBakeFileEditor requires existence of a &quot;.eclipse-data&quot; file in the project, but existence of that file can not be guaranteed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24538</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Oberhuber">mober.at</who>
    <bug_when>2012-08-28 13:16:49 +0000</bug_when>
    <thetext>Looking at the source code in ProjectInfoHelper, it seems that this has actually been fixed already in master and JunoSSH as a side-effect of fixing bug 2288 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24835</commentid>
    <comment_count>2</comment_count>
    <who name="Ioana Grigoropol">ioanax.grigoropol</who>
    <bug_when>2012-09-05 12:12:17 +0000</bug_when>
    <thetext>Fixed as a side-effect of fixing bug 2288</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26334</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-08 12:29:41 +0000</bug_when>
    <thetext>verified</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84814</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-08-29 15:17:21 +0000</bug_when>
    <thetext>closing</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>