[Plugin] Layers Panel 1.2.1
-
I had this as well when trying to update it from the pluginstore inside SU8.
(I use SU8 to check everything is right after an update)
I deleted Layers Panel in the plugin folder and installed it again from the PS. Works fine... I thought it was a permission issue, but maybe the fact that you have it proves it's something else ?
I already had this kind of problem in the past, with files not being properly replaced during an update with the PS. -
If you have changed a script file etc then it might be advisable to popup a warning to tell the user to restart SketchUp to effect the changes - depends on how the menus/toolbars etc are written.
BUT if you have a file that is still loading that shouldn't be - e.g. you have replaced it with a new file [with a different name] BUT that older now-not-needed legacy-file is left behind and is loaded/going-to-load-next-time, then your code really needs to do its own tidying up and delete these legacy-files as it itself loads; AND if so; then warn the user to restart SketchUp to effect all of the changes... -
Nope, no new file, just updated ones. And restarting SU does not solve this...
-
YEs, I restarted 6 times and still error occured.
I needed to remove and install fresh.
But there is something funky going on with Layers Panel for me for a while. It needs gets listed as needing an update in My Plugins and I could never figure out why.
Great plugin BTW. I ain't knocking it just doing some investigation while I have some time
-
If you manually remove all of the plugin's subfolder-of-support files and the lone loader .rb... then re-auto-install it is there still the error ?
If so something is wrong in the files/archives - the error message tells you that some js code is adrift ??
Your newly install script needs to tidy up after itself IF there are file changes...
As a 'trusted author'... Are you really sure that you are properly making the two files needed for inclusion in the PluginStore database - the RBZ for the page and then the 'second-format' needed for the in-SketchUp dialog etc ??
What ZIP program are you using to make the ZIP you are renaming as RBZ ?
Are you using definitely v8 to process the RBZ into the 'second-format' and NOT v2013 ? OR if it has to be made in v2013 are you remembering to do a Save_as to v8, to keep it compatible with earlier versions...I suspect this might be the core issue - i.e. archives from an author who fails to provide the dialog-version in the required v8 compatible format ! The server-side database built-in version-checker for the 'second-format' ought to trap this, so it is disallowed... but it might be failing ??
GΓ‘bor
Comments need asap - an author should NOT be able to upload incorrectly versioned 'second-format' archives to the PluginStore - they must all be v8.Please all reread the Author's Guide sticky in the special forum if you are in any doubt as to what you must do...
-
@tig said:
If you manually remove all of the plugin's subfolder-of-support files and the lone loader .rb... then re-auto-install it is there still the error ?
Nope, no error after a clean install.
@tig said:
js code is adrift ??
In this case it's JS, but some time ago I had the same issue with the main CSS file.
@tig said:
Your newly install script needs to tidy up after itself IF there are file changes...
How can I detect it has been updated ?
@tig said:
As a 'trusted author'... Are you really sure that you are properly making the two files needed for inclusion in the PluginStore database - the RBZ for the page and then the 'second-format' needed for the in-SketchUp dialog etc ??
Yes
@tig said:
What ZIP program are you using to make the ZIP you are renaming as RBZ ?
Windows Explorer
@tig said:
Are you using definitely v8 to process the RBZ into the 'second-format' and NOT v2013 ?
Yes
-
You don't need to detect if a file has been updated.
All files in the RBZ or second-format are extract and overwrite any preexisting files.The problem comes if you have some files from an older version that are not included in the newest installation.
Now they a left behind in the subfolder and might still load if you globally 'require' or 'load' files, or the html etc is still referring to them [you might have removed them but the user hasn't] - iin that case adjust the current code too.If you know that some files are obsolete then your loader rb file' code needs to check for their existence - make an array of their subfolder_location/names: then use:
File.exist?(obsolete_file)
If it does then
File.delete(obsolete_file)
AND increment acounter
.
If thecounter!=0
then you need to popup a message that old-legacy files have been deleted and SketchUp needs to restart to complete the new installation. Otherwise the older files code is still loaded and will often break your new installation OR SketchUp itself... -
I had the same problem(s). Turns out that the new version is called jb_layers_panel and jb_layers_panel.rb whereas the previous version did not have the "jb".
I unloaded the new version, deleted the old version, and restarted SU.
SU immediately crashed
Restarted SU and loaded in a model.
Worked okay except- The saved options where not in effect.
- Still got the unexpected ')' error and had to click four times "yes" before it went away. When I did that the saved options took effect.
I tried it the other way around: loaded SU (no error), then opened a model. The Layers Panel filled out but the options were wrong and I got the error message and had to click yes four times to make it go away.
It clearly has something to do with the options.
I could implement all of the new functions.
I can resize the dialog, but "Added a dark bar at the top to minimize/maximize the dialog" is not there
-
If you click Ctrl-Z while in the panel you get the same error
-
In that case == BIG mess up.
If you have 'layer_panel' as your plugin name and others have installed it before then issuing a new version called 'jbb_layer_panel' is regarded as another tool.
ALL of the legacy files for the old version continue to load their old code in tandem with you new version - causing inevitable clashes when similar module/methods are called...
When you decide to rename a plugin it cannot be entered into lightly.
Your new version must find and delete all earlier versions that are using the older name, these will NOT get overwritten by an auto-install and load and mess things up...
Also consider that an .rb file in the Plugins folder might have been 'managed' or 'uninstalled' so you need to look for say layer_panel.rb and layer_panel.rb! and layer_panel.rbx files in case they exist !!!
The files in the 'layer_panel' subfolder need deleting and then the folder removing, you cannot [easily] delete a folder that currently contains files...If this is the cause of this issue I suggest you immediately 'unpublish' the plugin and we agree a strategy for a new version to correct the legacy issue files/folder, and advise current users to at least disable ALL versions they have installed.
-
@unknownuser said:
Added different color for groups
Thank you! But the difference in the light grays is not very discernible.
If you move a group with all the layers showing, after moving the layers are no longer showing, but the arrow is still down. You have to click on the down arrow (which opens up the layers) and then click the arrow again to collapse the layers.
-
Aha!! I found the "dark bar": I thought it was just part of the outline.
A little wider might help. It's okay once you know it, but not too obvious to begin with.
Please accept these comments as critique of a GREAT plugin, not criticism.
-
There are no obsolete files. And the plugin already takes care of the old versions with different names. What can remain are the old folders, but that's not a problem since no rb file access these folders. It's been a while since that, and nobody never had any issue.
Bob , you actually have a different issue than Rich. I'll look into that.
-
The folder version called "layers_panel" was downloaded on 14 Oct 2013.
I also had a "jbb_layers_panel" folder with the same download date.The "layers_panel" version started out:
%(#FF0040)[#-----------------------------------------------------------------------------
require 'sketchup.rb'
require 'jbb_layers_panel/Win32API.so'
#-----------------------------------------------------------------------------Sketchup.send_action(CMD_RUBY_CONSOLE)
module JBB_LayersPanel]
and the rb was dated 9 Sep 2013
In the "jbb_layers_panel" version the rb is dated 16 Sep 2013
UPDATE
As jiminy said, in both cases the rb was called "layers_panel.rb". It was only the folder names that were differentI'm verysorry if my ignorance caused a problem
-
I downloaded version .7
As soon as I clicked on the Layer Panel I get an error message. (see attachment)
When I try to add a layer with Layer Panel it doesn't respond.
When I add with the Layers window I get an error message.
What am I doing wrong?
-
I notice that your html files do not define 'scripts' in the 'header' but at the end of the 'body'... is this an issue?
Also your main html file doesn't include:
<script src="./js/jquery.min.js"></script>
Is this likely to cause an issue ?
After all the error relates to JQuery... -
Maybe you mods/admins guys could move these posts to a new thread in the devs forum ?
@bob james said:
As jiminy said, in both cases the rb was called "layers_panel.rb". It was only the folder names that were different
Let's sum it up.
Alpha version until 0.02, May 15th 2013 :
Plugins/Layers Panel.rb Plugins/Layers Panel/...
From Alpha version 0.03 to Beta version 0.3.1, Sept 9th 2013 :
Plugins/layers_panel.rb Plugins/layers_panel/...
Since Beta version 0.3.2, Sept 16th 2013 : (For compatibility with the Extension Warhouse)
Plugins/jbb_layers_panel.rb Plugins/jbb_layers_panel/...
When this one loads, it automatically deletes
Layers Panel.rb
andlayers_panel.rb
"J" being loaded before "L", the two old files never get loaded before they are deleted.
Ok so, I can reproduce the issue by reverting back to 0.6 and trying to update through the PS or the default rbz installer inside SU. Both fail to update the "js" folder, in both SU8 and SU13. Therefore, some new JS files don't get added, and we get the JS error.
This. Is. Weird.
Actually, the "css" folder is not updated either...
The two sub-folders ofPlugins/jbb_layers_panel/
Here is version 0.6 if you want to test :
Layers Panel 0.6 beta (Obsolete)
@tig said:
I notice that your html files do not define 'scripts' in the 'header' but at the end of the 'body'... is this an issue?
Also your main html file doesn't include:
<script src="./js/jquery.min.js"></script>
Is this likely to cause an issue ?
After all the error relates to JQuery...No, the fact that the scripts are at the bottom shouldn't cause any issue. It certainly didn't in the past.
0.7 doesn't includejquery.min.js
because it includesjquery.js
, which is not added due to the "js" folder not being updated... -
There is no issue when updated while Layers Panel is disabled (Through the Sketchucation Extension Manager, or SU's preferences window)
So I guess the problematic files are not replaced because Windows sees them as used.
What is even weirder is that some pre-non-existent files are not added. -
@huckrorick said:
I downloaded version .7
As soon as I clicked on the Layer Panel I get an error message. (see attachment)
When I try to add a layer with Layer Panel it doesn't respond.
When I add with the Layers window I get an error message.
What am I doing wrong?You need a clean install of the plugin.
Go toC:\Program Files (x86)\Google\Google SketchUp 8\Plugins\
, and delete the filejbb_layers_panel.rb
, and the folderjbb_layers_panel
.
Then you can reinstall it normally.EDIT : See the post below, you can just disable the extension before updating.
-
deleting the folder and file, then installing worked fine.
Very nice the way the program is working now.
thanks.
Advertisement