Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
View | Details | Raw Unified | Return to bug 121477
Collapse All | Expand All

(-)ruby/platform/src/org/netbeans/api/ruby/platform/RubyInstallation.java (+8 lines)
 Lines 779-784    Link Here 
779
     * @return The actual root the in the system the file is under.
779
     * @return The actual root the in the system the file is under.
780
     */
780
     */
781
    public FileObject getSystemRoot(FileObject file) {
781
    public FileObject getSystemRoot(FileObject file) {
782
        // Don't initialize the Ruby interpreter here if it hasn't already been initialized 
783
        // (see issue #121477). Our class path resolver may be called even when there are no
784
        // Ruby projects open, and we don't want to make the user ask about Ruby interpreters
785
        // in that case.
786
        if (ruby == null) {
787
            return null;
788
        }
789
        
782
        // See if the file is under the Ruby libraries
790
        // See if the file is under the Ruby libraries
783
        FileObject rubyLibFo = getRubyLibFo();
791
        FileObject rubyLibFo = getRubyLibFo();
784
        FileObject rubyStubs = getRubyStubs();
792
        FileObject rubyStubs = getRubyStubs();
(-)ruby/projects/src/org/netbeans/modules/ruby/rubyproject/RubyProject.java (+4 lines)
 Lines 54-59    Link Here 
54
import org.netbeans.api.project.Project;
54
import org.netbeans.api.project.Project;
55
import org.netbeans.api.project.ProjectInformation;
55
import org.netbeans.api.project.ProjectInformation;
56
import org.netbeans.api.project.ProjectManager;
56
import org.netbeans.api.project.ProjectManager;
57
import org.netbeans.api.ruby.platform.RubyInstallation;
57
import org.netbeans.modules.ruby.rubyproject.classpath.ClassPathProviderImpl;
58
import org.netbeans.modules.ruby.rubyproject.classpath.ClassPathProviderImpl;
58
import org.netbeans.modules.ruby.rubyproject.queries.RubyProjectEncodingQueryImpl;
59
import org.netbeans.modules.ruby.rubyproject.queries.RubyProjectEncodingQueryImpl;
59
import org.netbeans.modules.ruby.rubyproject.ui.RubyLogicalViewProvider;
60
import org.netbeans.modules.ruby.rubyproject.ui.RubyLogicalViewProvider;
 Lines 386-391    Link Here 
386
        ProjectOpenedHookImpl() {}
387
        ProjectOpenedHookImpl() {}
387
        
388
        
388
        protected void projectOpened() {
389
        protected void projectOpened() {
390
            // Force Ruby interpreter initialization
391
            RubyInstallation.getInstance().getRuby(false);
392
389
            // Check up on build scripts.
393
            // Check up on build scripts.
390
/*
394
/*
391
            try {
395
            try {
(-)ruby/railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsProject.java (+4 lines)
 Lines 53-58    Link Here 
53
import org.netbeans.api.project.Project;
53
import org.netbeans.api.project.Project;
54
import org.netbeans.api.project.ProjectInformation;
54
import org.netbeans.api.project.ProjectInformation;
55
import org.netbeans.api.project.ProjectManager;
55
import org.netbeans.api.project.ProjectManager;
56
import org.netbeans.api.ruby.platform.RubyInstallation;
56
import org.netbeans.modules.ruby.railsprojects.classpath.ClassPathProviderImpl;
57
import org.netbeans.modules.ruby.railsprojects.classpath.ClassPathProviderImpl;
57
import org.netbeans.modules.ruby.railsprojects.queries.RailsProjectEncodingQueryImpl;
58
import org.netbeans.modules.ruby.railsprojects.queries.RailsProjectEncodingQueryImpl;
58
import org.netbeans.modules.ruby.railsprojects.server.RailsServer;
59
import org.netbeans.modules.ruby.railsprojects.server.RailsServer;
 Lines 382-387    Link Here 
382
        public ProjectOpenedHookImpl() {}
383
        public ProjectOpenedHookImpl() {}
383
        
384
        
384
        protected void projectOpened() {
385
        protected void projectOpened() {
386
            // Force Ruby interpreter initialization
387
            RubyInstallation.getInstance().getRuby(false);
388
385
            open();
389
            open();
386
        }
390
        }
387
        
391
        

Return to bug 121477
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo