SapphireSteel Forum
Welcome,
Guest
. Please
login
or
register
.
May 24, 2013, 03:30:56 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Welcome to the SapphireSteel forum - for discussion of the Ruby In Steel and Amethyst IDEs
3884
Posts in
800
Topics by
669
Members
Latest Member:
m
SapphireSteel Forum
General
Ruby In Steel
Plugins not synchronizing
« previous
next »
Pages:
[
1
]
Author
Topic: Plugins not synchronizing (Read 3307 times)
zimtech
Newbie
Posts: 17
Plugins not synchronizing
«
on:
June 11, 2009, 09:35:10 AM »
I'm having a problem with plugins not showing up in the project - even though they are in the folder. This is happening with a plugin that was created outside of RIS though all the other plugins are present. I have also created a new plugin with RIS and the folders/files are created but they still don't appear in the project - even with Synchronization. The synchronization properties are at defaults and none of the files/folders hidden.
I'm running VS 2008 (with AnkhSVN) installed on D: drive with Developer Edition 1.4
Logged
Huw Collingbourne
Administrator
Hero Member
Posts: 934
Re: Plugins not synchronizing
«
Reply #1 on:
June 11, 2009, 10:29:31 AM »
Sorry but we don't understand exactly what you are doing. When you say you create a plugin inside RiS do you mean that yo are creating a grouping of ruby files under a folder in your RiS project? If so, they must be visible in the Solution Explorer or you wouldn't have been able to create them from within RiS.
In order that we can understand what's causing this problem, you will need to give us much more detail. If you provide us with a step by step guide to creating a plugin in RiS in such a way that this problem shows up, we will try to duplicate this.
best wishes
Huw
Logged
zimtech
Newbie
Posts: 17
Re: Plugins not synchronizing
«
Reply #2 on:
June 11, 2009, 10:43:01 AM »
What I'm doing is going to the Generate tab and running:
ruby script/generate plugin plugin_name
The little window pops up and tells me everything it's doing - creating the various folder and files etc then synchronizing. However, when it's done the new plugin does not show up in the vendors folder in the Solution tree. The folder and files do exist though.... Essentially, the problem is that the synchronization is not picking up the new plugin. One other piece of information is that I'm running with Rails 2.3.
Logged
Huw Collingbourne
Administrator
Hero Member
Posts: 934
Re: Plugins not synchronizing
«
Reply #3 on:
June 11, 2009, 03:31:35 PM »
We can't duplicate this. For us, the files are synchronized whether we run the script inside or outside VS. The only thing I can think of at the moment is that a folder or file name may be incompatible with the Project definition file maintained by Visual Studio. Any characters that cannot be contained in XML, for example, will cause a problem.
Can you give us the following information:
1) What is the full path name to the plugin directory which you create?
2) What happens when you run other scripts (e.g. Generate) - do you have any similar problems?
3) After the problem with the plugin generation, are there any message in the VS Output window? If so, what do they say?
best wishes
Huw
Logged
zimtech
Newbie
Posts: 17
Re: Plugins not synchronizing
«
Reply #4 on:
June 12, 2009, 07:21:45 AM »
Here's the path:
C:\Documents and Settings\rsinek.ADVANCEDFLOW0\My Documents\Visual Studio 2008\Projects\Ublip\vendor\plugins\intouch_mvc
In general, I have not had problems in the past with generating models etc. Also, I suspect that it has something to do with destroying or removing a plug-in. I initially created a plug-in (with a different name) that I then destroyed before modifying or adding to it in any way. I am pretty sure that when I created it that first time it was added to the project correctly - it was only after that, when I created the new plug-in that problems occurred. A similar situation exists with an existing plug-in that will also not synchronize. In that case, I had removed the plug-in from the project - it still exists in the folder.
I have just tried to replicate this in another project and so far I am unable to do so... generate my_plugin - destroy my_plugin - generate new_plugin - generate my_plugin all work OK.
I now tried it in the "problem" project running in a separate instance of VS and it still doesn't work. The only entry in the VS output tab is:
The program '[5328] cmd.exe: RubyInSteel IDE' has exited with code 0 (0x0).
The progress window contents:
Starting Generate 'ruby script/generate plugin my_plugin' ...
** [NewRelic] Error parsing C:/Documents and Settings/rsinek.ADVANCEDFLOW0/My Documents/Visual Studio 2008/Projects/Ublip/vendor/plugins/newrelic_rpm/../../../config/newrelic.yml
** [NewRelic] undefined method `load_paths' for Dependencies:Module
** [NewRelic] C:/Documents and Settings/rsinek.ADVANCEDFLOW0/My Documents/Visual Studio 2008/Projects/Ublip/vendor/plugins/newrelic_rpm/init.rb:46:in `evaluate_init_rb'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin.rb:146:in `evaluate_init_rb'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin.rb:142:in `evaluate_init_rb'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin.rb:48:in `load'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/loader.rb:38:in `load_plugins'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/loader.rb:37:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/loader.rb:37:in `load_plugins'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:348:in `load_plugins'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:163:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
C:/Documents and Settings/rsinek.ADVANCEDFLOW0/My Documents/Visual Studio 2008/Projects/Ublip/config/environment.rb:13
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/generate.rb:1
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
script/generate:3
** [NewRelic] Agent is disabled.
create vendor/plugins/my_plugin/lib
create vendor/plugins/my_plugin/tasks
create vendor/plugins/my_plugin/test
create vendor/plugins/my_plugin/README
create vendor/plugins/my_plugin/MIT-LICENSE
create vendor/plugins/my_plugin/Rakefile
create vendor/plugins/my_plugin/init.rb
create vendor/plugins/my_plugin/install.rb
create vendor/plugins/my_plugin/uninstall.rb
create vendor/plugins/my_plugin/lib/my_plugin.rb
create vendor/plugins/my_plugin/tasks/my_plugin_tasks.rake
create vendor/plugins/my_plugin/test/my_plugin_test.rb
create vendor/plugins/my_plugin/test/test_helper.rb
Generate completed - now synchronizing project
Project synchronization complete
Logged
Dermot
Administrator
Hero Member
Posts: 1005
Re: Plugins not synchronizing
«
Reply #5 on:
June 12, 2009, 11:18:36 AM »
I can't see what the problem is yet. When I run a Generate I get (in the Output pane):
Starting process 'C:\Windows\system32\cmd.exe'
arguments '/S /C ""c:\ruby\bin\ruby.exe" -r"C:\Program Files\SapphireSteel Software\Ruby In Steel\v1.0\Debugger\sync.rb" script/generate plugin plugin_name"'
Console error 'Thread T0 failed; operation Wait; error code 0'
Starting synchronization on Rails5 ...
Added directory C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\
Added directory C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\lib\
Added file C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\lib\plugin_name.rb
Added directory C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\tasks\
Added file C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\tasks\plugin_name_tasks.rake
Added directory C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\test\
Added file C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\test\plugin_name_test.rb
Added file C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\test\test_helper.rb
Added file C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\init.rb
Added file C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\install.rb
Added file C:\Users\dermot\Documents\Visual Studio 2008\Projects\Rails5\Rails5\vendor\plugins\plugin_name\uninstall.rb
Synchronization completed in 0.17 seconds
This is in addition to the output in the Script Console pane. This is where the output ffrom the Sync run goes - can you past that output here?
Thanks,
Dermot
Logged
zimtech
Newbie
Posts: 17
Re: Plugins not synchronizing
«
Reply #6 on:
June 12, 2009, 03:10:40 PM »
This if from the output pane - the first line was generated on opening the project:
IntelliSense library 'C:\Documents and Settings\rsinek.ADVANCEDFLOW0\Local Settings\Application Data\SapphireSteel Software\SymbolTables\rails.rst' read in 3391ms
Starting process 'C:\WINDOWS\system32\cmd.exe'
arguments '/C ""C:\Program Files\SapphireSteel Software\Ruby In Steel\v1.0\Debugger\debug.bat" "c:\ruby\bin\ruby.exe" -I"C:\Program Files\SapphireSteel Software\Ruby In Steel\v1.0\Debugger" -r"C:\Program Files\SapphireSteel Software\Ruby In Steel\v1.0\Debugger\steelcylon.rb" "C:\Program Files\SapphireSteel Software\Ruby In Steel\v1.0\Scripts\webbrick_service.rb" -p3000"'
Console error 'Thread T0 failed; operation Wait; error code 0'
Starting process 'C:\WINDOWS\system32\cmd.exe'
arguments '/S /C ""c:\ruby\bin\ruby.exe" -r"C:\Program Files\SapphireSteel Software\Ruby In Steel\v1.0\Debugger\sync.rb" script/generate plugin the_plugin"'
Console error 'Thread T0 failed; operation Wait; error code 0'
Starting synchronization on Ublip ...
Excluded directory C:\Documents and Settings\rsinek.ADVANCEDFLOW0\My Documents\Visual Studio 2008\Projects\Ublip\SyntaxCheck
Synchronization completed in 0.38 seconds
Thanks
Richard
Logged
zimtech
Newbie
Posts: 17
Re: Plugins not synchronizing
«
Reply #7 on:
June 22, 2009, 01:53:46 PM »
I think this is now resolved. It may have been caused by a conflict with TortoiseSVN/AnkhSVN. I manually added all the plugin files to my subversion repository and then checked the project out into a new folder. When I opened the project from the new working copy VS had no problem synchronizing and adding the new files and folders. After committing the updated project file and updating my original working copy, VS showed the plugins (the new one I created and an old one that was also missing) correctly in the solution tree. However, AnkhSVN showed all the corresponding files as marked for deletion which leads me to believe that it was somehow blocking them from being added.
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> News and Announcements
=> Amethyst
=> Ruby In Steel
=> Ruby Programming
=> The Snug Bar