GithubHelp home page GithubHelp logo

Comments (15)

hyperloop-rails avatar hyperloop-rails commented on May 23, 2024

Which version of the powerstation are you using? The latest version should work.

And did you follow the tutorial here: https://hyperloop-rails.github.io/powerstation/docs/install/, there are some libraries to install before using it.

from powerstation.

autotelik avatar autotelik commented on May 23, 2024

Hi ... My bad I just saw in README to install from disc in Rubymine so think I was missing the jruby part

might be worth just clarifying in section that starts 'As a RubyMine plugin.....' that people need to follow the install instruction to install the prerequisites

The Analyse run now takes much longer but still fails

In the console I see

FINISH dataflow
run analysis
/data/users/thomas.statter/.RubyMine2018.1/config/plugins/static-analyzer/controller_model_analysis

Ignoring yajl-ruby-1.2.1 because its extensions are not built.  Try: gem pristine yajl-ruby --version 1.2.1
RuntimeError: On JRuby but Java extensions failed to load.
  load_native_extensions at /data/users/thomas.statter/SoftwareDev/git/rubystack-2.3.1-6/rvm/gems/ruby-2.2.2/gems/concurrent-ruby-1.0.5/lib/concurrent/utility/native_extension_loader.rb:63
                   <top> at /data/users/thomas.statter/SoftwareDev/git/rubystack-2.3.1-6/rvm/gems/ruby-2.2.2/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization.rb:5
                 require at org/jruby/RubyKernel.java:939
                  (root) at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
                   <top> at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
                 require at org/jruby/RubyKernel.java:939
                  (root) at /data/users/thomas.statter/SoftwareDev/git/rubystack-2.3.1-6/rvm/gems/ruby-2.2.2/gems/concurrent-ruby-1.0.5/lib/concurrent/map.rb:3
                   <top> at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
                 require at org/jruby/RubyKernel.java:939
                 require at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:121
                   <top> at /data/users/thomas.statter/SoftwareDev/git/rubystack-2.3.1-6/rvm/gems/ruby-2.2.2/gems/activesupport-5.1.6/lib/active_support/inflector/inflections.rb:1
                 require at org/jruby/RubyKernel.java:939
                  (root) at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
                   <top> at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
                 require at org/jruby/RubyKernel.java:939
                  (root) at /data/users/thomas.statter/SoftwareDev/git/rubystack-2.3.1-6/rvm/gems/ruby-2.2.2/gems/activesupport-5.1.6/lib/active_support/inflections.rb:1
                   <top> at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
                 require at org/jruby/RubyKernel.java:939
                 require at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
                   <top> at /data/users/thomas.statter/SoftwareDev/git/rubystack-2.3.1-6/rvm/gems/ruby-2.2.2/gems/activesupport-5.1.6/lib/active_support/inflector/methods.rb:1
                 require at org/jruby/RubyKernel.java:939
                  (root) at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
                   <top> at /data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
                    load at org/jruby/RubyKernel.java:957
                   <top> at main.rb:11
FINISH analysis
./integrate.sh: 1: ./integrate.sh: Syntax error: "(" unexpected

I am using :

path of powerstation is /data/users/thomas.statter/.RubyMine2018.1/config/plugins/
snapshot name is :powerstation-1.3-SNAPSHOT.jar

thanks for your help

from powerstation.

hyperloop-rails avatar hyperloop-rails commented on May 23, 2024

Thanks for you suggestions, we will make it clear in the README about those prerequisites.

For your issues, I believe there are some missing libraries. Let me check again and try to find out them.

from powerstation.

hyperloop-rails avatar hyperloop-rails commented on May 23, 2024

Have you installed yajl-ruby-1.2.1 successfully?

from powerstation.

autotelik avatar autotelik commented on May 23, 2024

Hi ... no I had not - don't think that is mentioned in the install instructions.

I installed it but did not change situation. So I tried ensuring it was using right ruby via 👍

$JRUBY_PATH/jruby -S gem pristine yajl-ruby --version 1.2.1

But this leads to

Ignoring yajl-ruby-1.2.1 because its extensions are not built. Try: gem pristine yajl-ruby --version 1.2.1
Error loading RubyGems plugin "/data/users/thomas.statter/SoftwareDev/git/rubystack-2.3.1-6/rvm/gems/ruby-2.2.2@global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb": no such file to load -- executable-hooks/wrapper (LoadError)
Error loading RubyGems plugin "/data/users/thomas.statter/SoftwareDev/git/rubystack-2.3.1-6/rvm/gems/ruby-2.2.2@global/gems/gem-wrappers-1.2.7/lib/rubygems_plugin.rb": no such file to load -- gem-wrappers (LoadError)
/data/users/thomas.statter/Downloads/powerstation-master/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `require':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.

from powerstation.

akcheung avatar akcheung commented on May 23, 2024

What's the error message you are getting now? I don't think the tool requires yajl-ruby, but just that it showed up on the first line in your original trace (Ignoring yajl-ruby-1.2.1 because its extensions are not built.)

from powerstation.

sliminas avatar sliminas commented on May 23, 2024

I have a similar issue on ubuntu 18.04.
The rubymine console log looks like this:

path of powerstation is /home/stephan/.RubyMine2018.1/config/plugins/
snapshot name is :powerstation-1.4-SNAPSHOT.jar
command is [chmod, +x, single_action.sh]
pb directory is :/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer
IO EXCEPTION
/home/stephan/projects/my_project
path of powerstation is /home/stephan/.RubyMine2018.1/config/plugins/
snapshot name is :powerstation-1.4-SNAPSHOT.jar
Weird stuff happening...java.io.FileNotFoundException: /home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/applications/PW-my_project/results/inefficient_render.xml (No such file or directory)

Content of the rubymine error reporting window:

null
java.lang.NullPointerException
	at Util.constructIRPanel(Util.java:382)
	at MainMenu.<init>(MainMenu.java:54)
	at Util.showToolWindows(Util.java:570)
	at MainPlugin$1.actionPerformed(MainPlugin.java:69)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6548)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
	at java.awt.Component.processEvent(Component.java:6313)
	at java.awt.Container.processEvent(Container.java:2237)
	at java.awt.Component.dispatchEventImpl(Component.java:4903)
	at java.awt.Container.dispatchEventImpl(Container.java:2295)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
	at java.awt.Container.dispatchEventImpl(Container.java:2281)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4725)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:737)
	at java.awt.EventQueue$4.run(EventQueue.java:735)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	at com.intellij.ide.IdeEventQueue.o(IdeEventQueue.java:786)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:723)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:395)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

from powerstation.

hyperloop-rails avatar hyperloop-rails commented on May 23, 2024

Does this also occur when you run Whole Application or only occurs when running on single action.
It seems that the problems occur when java try to run chmod +x single_action.sh.

Can you check whether your computer can run that shell script correctly?

from powerstation.

sliminas avatar sliminas commented on May 23, 2024

It happens on both single action and whole application.
I think the problem is that my plugins/static-analyzer directory doesn't exist.
If the plugin was installed correctly in this directory there should be the file single_action.sh right?
Currently there is only the powerstation-1.4-SNAPSHOT.jar file in the plugins directory.

from powerstation.

hyperloop-rails avatar hyperloop-rails commented on May 23, 2024

yes, there should be a static-analyser folder under the plugins, did you install all those prerequisites as shown on https://hyperloop-rails.github.io/powerstation/docs/install/ .

from powerstation.

sliminas avatar sliminas commented on May 23, 2024

Yeah I followed the instructions.
But I figured out that the gems were installed for another ruby version since I'm using rvm.
I know tried this and get another error:

$ which jruby
/home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/bin/jruby
$ jruby -S gem install activesupport
unsupported Java version "10", defaulting to 1.5
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.io.FilenoUtil to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of org.jruby.util.io.FilenoUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Ignoring bcrypt-3.1.11 because its extensions are not built.  Try: gem pristine bcrypt --version 3.1.11
Ignoring binding_of_caller-0.8.0 because its extensions are not built.  Try: gem pristine binding_of_caller --version 0.8.0
Ignoring binding_of_caller-0.7.2 because its extensions are not built.  Try: gem pristine binding_of_caller --version 0.7.2
Ignoring bootsnap-1.3.0 because its extensions are not built.  Try: gem pristine bootsnap --version 1.3.0
Ignoring bootsnap-1.1.5 because its extensions are not built.  Try: gem pristine bootsnap --version 1.1.5
Ignoring byebug-2.7.0 because its extensions are not built.  Try: gem pristine byebug --version 2.7.0
Ignoring curb-0.8.8 because its extensions are not built.  Try: gem pristine curb --version 0.8.8
Ignoring debase-0.2.2 because its extensions are not built.  Try: gem pristine debase --version 0.2.2
Ignoring debug_inspector-0.0.3 because its extensions are not built.  Try: gem pristine debug_inspector --version 0.0.3
Ignoring debug_inspector-0.0.2 because its extensions are not built.  Try: gem pristine debug_inspector --version 0.0.2
Ignoring eventmachine-1.0.9.1 because its extensions are not built.  Try: gem pristine eventmachine --version 1.0.9.1
Ignoring eventmachine-1.0.5 because its extensions are not built.  Try: gem pristine eventmachine --version 1.0.5
Ignoring executable-hooks-1.4.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.4.2
Ignoring ffi-1.9.25 because its extensions are not built.  Try: gem pristine ffi --version 1.9.25
Ignoring ffi-1.9.10 because its extensions are not built.  Try: gem pristine ffi --version 1.9.10
Ignoring gem-wrappers-1.4.0 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.4.0
Ignoring hiredis-0.6.1 because its extensions are not built.  Try: gem pristine hiredis --version 0.6.1
Ignoring interception-0.5 because its extensions are not built.  Try: gem pristine interception --version 0.5
Ignoring json-1.8.6 because its extensions are not built.  Try: gem pristine json --version 1.8.6
Ignoring msgpack-1.2.4 because its extensions are not built.  Try: gem pristine msgpack --version 1.2.4
Ignoring msgpack-1.1.0 because its extensions are not built.  Try: gem pristine msgpack --version 1.1.0
Ignoring mysql2-0.3.19 because its extensions are not built.  Try: gem pristine mysql2 --version 0.3.19
Ignoring nokogiri-1.8.3 because its extensions are not built.  Try: gem pristine nokogiri --version 1.8.3
Ignoring nokogiri-1.8.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.8.2
Ignoring pg-0.18.3 because its extensions are not built.  Try: gem pristine pg --version 0.18.3
Ignoring pg_query-1.0.2 because its extensions are not built.  Try: gem pristine pg_query --version 1.0.2
Ignoring pg_query-1.0.1 because its extensions are not built.  Try: gem pristine pg_query --version 1.0.1
Ignoring posix-spawn-0.3.12 because its extensions are not built.  Try: gem pristine posix-spawn --version 0.3.12
Ignoring redcarpet-3.4.0 because its extensions are not built.  Try: gem pristine redcarpet --version 3.4.0
Ignoring redcarpet-3.3.3 because its extensions are not built.  Try: gem pristine redcarpet --version 3.3.3
Ignoring ruby-debug-ide-0.7.0.beta4 because its extensions are not built.  Try: gem pristine ruby-debug-ide --version 0.7.0.beta4
Ignoring sqlite3-1.3.13 because its extensions are not built.  Try: gem pristine sqlite3 --version 1.3.13
Ignoring sqlite3-1.3.11 because its extensions are not built.  Try: gem pristine sqlite3 --version 1.3.11
Ignoring thin-1.5.1 because its extensions are not built.  Try: gem pristine thin --version 1.5.1
Ignoring unf_ext-0.0.7.5 because its extensions are not built.  Try: gem pristine unf_ext --version 0.0.7.5
Ignoring unf_ext-0.0.7.4 because its extensions are not built.  Try: gem pristine unf_ext --version 0.0.7.4
Ignoring websocket-driver-0.6.3 because its extensions are not built.  Try: gem pristine websocket-driver --version 0.6.3
Ignoring bcrypt-3.1.11 because its extensions are not built.  Try: gem pristine bcrypt --version 3.1.11
Ignoring binding_of_caller-0.8.0 because its extensions are not built.  Try: gem pristine binding_of_caller --version 0.8.0
Ignoring binding_of_caller-0.7.2 because its extensions are not built.  Try: gem pristine binding_of_caller --version 0.7.2
Ignoring bootsnap-1.3.0 because its extensions are not built.  Try: gem pristine bootsnap --version 1.3.0
Ignoring bootsnap-1.1.5 because its extensions are not built.  Try: gem pristine bootsnap --version 1.1.5
Ignoring byebug-2.7.0 because its extensions are not built.  Try: gem pristine byebug --version 2.7.0
Ignoring curb-0.8.8 because its extensions are not built.  Try: gem pristine curb --version 0.8.8
Ignoring debase-0.2.2 because its extensions are not built.  Try: gem pristine debase --version 0.2.2
Ignoring debug_inspector-0.0.3 because its extensions are not built.  Try: gem pristine debug_inspector --version 0.0.3
Ignoring debug_inspector-0.0.2 because its extensions are not built.  Try: gem pristine debug_inspector --version 0.0.2
Ignoring eventmachine-1.0.9.1 because its extensions are not built.  Try: gem pristine eventmachine --version 1.0.9.1
Ignoring eventmachine-1.0.5 because its extensions are not built.  Try: gem pristine eventmachine --version 1.0.5
Ignoring executable-hooks-1.4.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.4.2
Ignoring ffi-1.9.25 because its extensions are not built.  Try: gem pristine ffi --version 1.9.25
Ignoring ffi-1.9.10 because its extensions are not built.  Try: gem pristine ffi --version 1.9.10
Ignoring gem-wrappers-1.4.0 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.4.0
Ignoring hiredis-0.6.1 because its extensions are not built.  Try: gem pristine hiredis --version 0.6.1
Ignoring interception-0.5 because its extensions are not built.  Try: gem pristine interception --version 0.5
Ignoring json-1.8.6 because its extensions are not built.  Try: gem pristine json --version 1.8.6
Ignoring msgpack-1.2.4 because its extensions are not built.  Try: gem pristine msgpack --version 1.2.4
Ignoring msgpack-1.1.0 because its extensions are not built.  Try: gem pristine msgpack --version 1.1.0
Ignoring mysql2-0.3.19 because its extensions are not built.  Try: gem pristine mysql2 --version 0.3.19
Ignoring nokogiri-1.8.3 because its extensions are not built.  Try: gem pristine nokogiri --version 1.8.3
Ignoring nokogiri-1.8.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.8.2
Ignoring pg-0.18.3 because its extensions are not built.  Try: gem pristine pg --version 0.18.3
Ignoring pg_query-1.0.2 because its extensions are not built.  Try: gem pristine pg_query --version 1.0.2
Ignoring pg_query-1.0.1 because its extensions are not built.  Try: gem pristine pg_query --version 1.0.1
Ignoring posix-spawn-0.3.12 because its extensions are not built.  Try: gem pristine posix-spawn --version 0.3.12
Ignoring redcarpet-3.4.0 because its extensions are not built.  Try: gem pristine redcarpet --version 3.4.0
Ignoring redcarpet-3.3.3 because its extensions are not built.  Try: gem pristine redcarpet --version 3.3.3
Ignoring ruby-debug-ide-0.7.0.beta4 because its extensions are not built.  Try: gem pristine ruby-debug-ide --version 0.7.0.beta4
Ignoring sqlite3-1.3.13 because its extensions are not built.  Try: gem pristine sqlite3 --version 1.3.13
Ignoring sqlite3-1.3.11 because its extensions are not built.  Try: gem pristine sqlite3 --version 1.3.11
Ignoring thin-1.5.1 because its extensions are not built.  Try: gem pristine thin --version 1.5.1
Ignoring unf_ext-0.0.7.5 because its extensions are not built.  Try: gem pristine unf_ext --version 0.0.7.5
Ignoring unf_ext-0.0.7.4 because its extensions are not built.  Try: gem pristine unf_ext --version 0.0.7.4
Ignoring websocket-driver-0.6.3 because its extensions are not built.  Try: gem pristine websocket-driver --version 0.6.3
Error loading RubyGems plugin "/home/stephan/.rvm/gems/ruby-2.3.3@global/gems/executable-hooks-1.4.2/lib/rubygems_plugin.rb": no such file to load -- executable-hooks/wrapper (LoadError)
Error loading RubyGems plugin "/home/stephan/.rvm/gems/ruby-2.3.3@global/gems/gem-wrappers-1.4.0/lib/rubygems_plugin.rb": no such file to load -- gem-wrappers (LoadError)
/home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `require':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
LoadError: no such file to load -- psych
    require at org/jruby/RubyKernel.java:939
    require at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
      <top> at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/psych_jars.rb:2
    require at org/jruby/RubyKernel.java:939
     (root) at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
      <top> at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
    require at org/jruby/RubyKernel.java:939
     (root) at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/psych.rb:3
      <top> at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
    require at org/jruby/RubyKernel.java:939
    require at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
     (root) at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/yaml.rb:5
     (root) at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
    require at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
  load_yaml at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems.rb:624
  load_file at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/config_file.rb:328
      <top> at /home/stephan/projects/powerstation/powerstation/lib/compiled-jruby/lib/ruby/stdlib/rubygems/config_file.rb:197

from powerstation.

hyperloop-rails avatar hyperloop-rails commented on May 23, 2024

activesupport and yard is not used by jruby, so there is no need to install activesupport with jruby -S gem install activesupport.
Maybe you can try the 1.5 version and see what's going on.
powerstation-1.5-SNAPSHOT.jar.zip

does jar xf powerstation-1.4-SNAPSHOT.jar static-analyzer runs successfully?

from powerstation.

sliminas avatar sliminas commented on May 23, 2024

Thanks for the suggestion.
The jar command ran successfully without any output and created the static-analyzer directory in my plugins directory.

I then tried the snapshot 1.5 and it creates the static-analyzer and a lot of .class files in the plugins directory

rubymine_plugins

The single action produces more output now and the check_system.sh fails.
I executed the script manually and it also fails when using my default shell zsh.
I tried changing my default shell chsh -s /bin/bash and after logging in again the script printed the correct output when executed manually, but when using the plugins it still fails (see 2nd log).

Gtk-Message: 21:57:30.618: Failed to load module "canberra-gtk-module"
path of powerstation is /home/stephan/.RubyMine2018.1/config/plugins/
snapshot name is :powerstation-1.5-SNAPSHOT.jar
command is: rm -rf static-analyzer/
command is [rm, -rf, static-analyzer/]
pb directory is :/home/stephan/.RubyMine2018.1/config/plugins
Success!
command is: jar xf powerstation-1.5-SNAPSHOT.jar
command is [jar, xf, powerstation-1.5-SNAPSHOT.jar]
pb directory is :/home/stephan/.RubyMine2018.1/config/plugins
Success!
command is: chmod +x single_action.sh
command is [chmod, +x, single_action.sh]
pb directory is :/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer
Success!
command is: ./single_action.sh PW-makerist CatalogController,index
command is [./single_action.sh, PW-makerist, CatalogController,index]
pb directory is :/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer
remove existing
move app dir to applications 
cp: cannot stat '/app/*': No such file or directory
cp: cannot stat '/calls.txt': No such file or directory
cp: cannot stat '/db/schema.rb': No such file or directory
finished moving
preprocessing
PW-makerist
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/preprocess_views
./check_system.sh: 3: [: Linux: unexpected operator
./check_system.sh: 6: [: Linux: unexpected operator
Not Mac or Linux
/home/stephan/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/find.rb:43:in `block in find': No such file or directory - ../applications/PW-makerist/views/ (Errno::ENOENT)
	from /home/stephan/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/find.rb:43:in `collect!'
	from /home/stephan/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/find.rb:43:in `find'
	from /home/stephan/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/pathname.rb:565:in `find'
	from util.rb:8:in `os_walk'
	from read_view_file.rb:2:in `read_view_files'
	from main.rb:81:in `<main>'
../applications/PW-makerist/views/
finish preprocessing
jruby get dataflow
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/applications
generate_dataflow_log.rb:29:in `initialize': No such file or directory @ rb_sysopen - PW-makerist/merged_controllers/catalog_controller.rb (Errno::ENOENT)
	from generate_dataflow_log.rb:29:in `open'
	from generate_dataflow_log.rb:29:in `generate_dataflow'
	from generate_dataflow_log.rb:81:in `<main>'
FINISH dataflow
run analysis
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/controller_model_analysis
main.rb:275:in `initialize': No such file or directory @ rb_sysopen - .././applications//PW-makerist//merged_controllers/catalog_controller.rb (Errno::ENOENT)
	from main.rb:275:in `open'
	from main.rb:275:in `<main>'
Start 2018-07-17 21:58:25 +0200
dir = .././applications//PW-makerist/
FINISH analysis
./single_action.sh: 33: ./single_action.sh: Syntax error: "(" unexpected
[./single_action.sh, PW-makerist, CatalogController,index]
remove existing
move app dir to applications 
cp: cannot stat '/app/*': No such file or directory
cp: cannot stat '/calls.txt': No such file or directory
cp: cannot stat '/db/schema.rb': No such file or directory
finished moving
preprocessing
PW-makerist
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/preprocess_views
./check_system.sh: 3: [: Linux: unexpected operator
./check_system.sh: 6: [: Linux: unexpected operator
Not Mac or Linux
/home/stephan/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/find.rb:43:in `block in find': No such file or directory - ../applications/PW-makerist/views/ (Errno::ENOENT)
	from /home/stephan/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/find.rb:43:in `collect!'
	from /home/stephan/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/find.rb:43:in `find'
	from /home/stephan/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/pathname.rb:565:in `find'
	from util.rb:8:in `os_walk'
	from read_view_file.rb:2:in `read_view_files'
	from main.rb:81:in `<main>'
../applications/PW-makerist/views/
finish preprocessing
jruby get dataflow
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/applications
generate_dataflow_log.rb:29:in `initialize': No such file or directory @ rb_sysopen - PW-makerist/merged_controllers/catalog_controller.rb (Errno::ENOENT)
	from generate_dataflow_log.rb:29:in `open'
	from generate_dataflow_log.rb:29:in `generate_dataflow'
	from generate_dataflow_log.rb:81:in `<main>'
FINISH dataflow
run analysis
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/controller_model_analysis
main.rb:275:in `initialize': No such file or directory @ rb_sysopen - .././applications//PW-makerist//merged_controllers/catalog_controller.rb (Errno::ENOENT)
	from main.rb:275:in `open'
	from main.rb:275:in `<main>'
Start 2018-07-17 21:58:25 +0200
dir = .././applications//PW-makerist/
FINISH analysis
./single_action.sh: 33: ./single_action.sh: Syntax error: "(" unexpected

Writing finish
/home/stephan/projects/makerist
path of powerstation is /home/stephan/.RubyMine2018.1/config/plugins/
snapshot name is :powerstation-1.5-SNAPSHOT.jar
Weird stuff happening...java.io.FileNotFoundException: /home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/applications/PW-makerist/results/inefficient_render.xml (No such file or directory)

2nd time with bash as default shell:

Gtk-Message: 22:21:51.190: Failed to load module "canberra-gtk-module"
path of powerstation is /home/stephan/.RubyMine2018.1/config/plugins/
snapshot name is :powerstation-1.5-SNAPSHOT.jar
command is: rm -rf static-analyzer/
command is [rm, -rf, static-analyzer/]
pb directory is :/home/stephan/.RubyMine2018.1/config/plugins
Success!
command is: jar xf powerstation-1.5-SNAPSHOT.jar
command is [jar, xf, powerstation-1.5-SNAPSHOT.jar]
pb directory is :/home/stephan/.RubyMine2018.1/config/plugins
Success!
command is: chmod +x single_action.sh
command is [chmod, +x, single_action.sh]
pb directory is :/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer
Success!
command is: ./single_action.sh PW-makerist CatalogController,index
command is [./single_action.sh, PW-makerist, CatalogController,index]
pb directory is :/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer
remove existing
move app dir to applications 
cp: cannot stat '/app/*': No such file or directory
cp: cannot stat '/calls.txt': No such file or directory
cp: cannot stat '/db/schema.rb': No such file or directory
finished moving
preprocessing
PW-makerist
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/preprocess_views
./check_system.sh: 3: [: Linux: unexpected operator
./check_system.sh: 6: [: Linux: unexpected operator
Not Mac or Linux
/home/stephan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/find.rb:43:in `block in find': No such file or directory (Errno::ENOENT)
	from /home/stephan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/find.rb:43:in `collect!'
	from /home/stephan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/find.rb:43:in `find'
	from /home/stephan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/pathname.rb:563:in `find'
	from util.rb:8:in `os_walk'
	from read_view_file.rb:2:in `read_view_files'
	from main.rb:81:in `<main>'
../applications/PW-makerist/views/
finish preprocessing
jruby get dataflow
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/applications
generate_dataflow_log.rb:29:in `initialize': No such file or directory @ rb_sysopen - PW-makerist/merged_controllers/catalog_controller.rb (Errno::ENOENT)
	from generate_dataflow_log.rb:29:in `open'
	from generate_dataflow_log.rb:29:in `generate_dataflow'
	from generate_dataflow_log.rb:81:in `<main>'
FINISH dataflow
run analysis
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/controller_model_analysis
main.rb:275:in `initialize': No such file or directory @ rb_sysopen - .././applications//PW-makerist//merged_controllers/catalog_controller.rb (Errno::ENOENT)
	from main.rb:275:in `open'
	from main.rb:275:in `<main>'
Start 2018-07-17 22:22:29 +0200
dir = .././applications//PW-makerist/
FINISH analysis
./single_action.sh: 33: ./single_action.sh: Syntax error: "(" unexpected
[./single_action.sh, PW-makerist, CatalogController,index]
remove existing
move app dir to applications 
cp: cannot stat '/app/*': No such file or directory
cp: cannot stat '/calls.txt': No such file or directory
cp: cannot stat '/db/schema.rb': No such file or directory
finished moving
preprocessing
PW-makerist
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/preprocess_views
./check_system.sh: 3: [: Linux: unexpected operator
./check_system.sh: 6: [: Linux: unexpected operator
Not Mac or Linux
/home/stephan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/find.rb:43:in `block in find': No such file or directory (Errno::ENOENT)
	from /home/stephan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/find.rb:43:in `collect!'
	from /home/stephan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/find.rb:43:in `find'
	from /home/stephan/.rvm/rubies/ruby-2.3.3/lib/ruby/2.3.0/pathname.rb:563:in `find'
	from util.rb:8:in `os_walk'
	from read_view_file.rb:2:in `read_view_files'
	from main.rb:81:in `<main>'
../applications/PW-makerist/views/
finish preprocessing
jruby get dataflow
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/applications
generate_dataflow_log.rb:29:in `initialize': No such file or directory @ rb_sysopen - PW-makerist/merged_controllers/catalog_controller.rb (Errno::ENOENT)
	from generate_dataflow_log.rb:29:in `open'
	from generate_dataflow_log.rb:29:in `generate_dataflow'
	from generate_dataflow_log.rb:81:in `<main>'
FINISH dataflow
run analysis
/home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/controller_model_analysis
main.rb:275:in `initialize': No such file or directory @ rb_sysopen - .././applications//PW-makerist//merged_controllers/catalog_controller.rb (Errno::ENOENT)
	from main.rb:275:in `open'
	from main.rb:275:in `<main>'
Start 2018-07-17 22:22:29 +0200
dir = .././applications//PW-makerist/
FINISH analysis
./single_action.sh: 33: ./single_action.sh: Syntax error: "(" unexpected

Writing finish
/home/stephan/projects/makerist
path of powerstation is /home/stephan/.RubyMine2018.1/config/plugins/
snapshot name is :powerstation-1.5-SNAPSHOT.jar
Weird stuff happening...java.io.FileNotFoundException: /home/stephan/.RubyMine2018.1/config/plugins/static-analyzer/applications/PW-makerist/results/inefficient_render.xml (No such file or directory)

from powerstation.

hyperloop-rails avatar hyperloop-rails commented on May 23, 2024

It seems that the check_system.sh cannot execute correctly on your computer. Let me check for a moment whether you can bypass that scripts.

from powerstation.

hyperloop-rails avatar hyperloop-rails commented on May 23, 2024

It seems zsh check_system.sh will cause the check_system.sh to fail. Can you try the plugin with running bash as the default shell on your OS?

from powerstation.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.