After deploying a Spoofax plugin into a new Eclipse instance there some of the live update features are broken (tested with the example Entity project):

  1. The generated files are not added to the project. You need to manually refresh the project workspace to discover the new files.

  2. The live update feature of Spoofax does not seem to work. When opening the source and generated file side-by-side the project, the generated file is not automatically updated as in the development version. You have to transfer the focus the generated file editor to for Eclipse detect the change. Additionally eclipse popup an dialog asking of the content should be loaded from disk or not.

While saving and regenerating the file the following error/warning is emitted:


ERROR: SSL/mkdir: Cannot create directory /Users/sven/Documents/workspace/Test/src/

MyEditor: rewriting failed, trace:
index_compilation_0_0
filter_1_0
index_compilation_file_0_0
map_1_0
index_compilation_ast_0_2
dr_scope_1_1
try_1_0
index_compile_ast_0_2
to_java_0_0
map_1_0
[ MyEditor | critical ] Internal error: with clause failed unexpectedly in rule ‘index-compile-ast’
()

Submitted by Sven Stork on 17 January 2013 at 22:54
MyEditor_1.0.0.jar23 January 2013 at 18:44

On 17 January 2013 at 23:09 Sven Stork commented:

Manually enabling the following options solve the issues:


General -> Workspace -> Refresh using native hooks or polling
General -> Workspace -> Refresh on access


On 18 January 2013 at 02:04 Vlad Vergu tagged index

On 18 January 2013 at 02:05 Vlad Vergu tagged eclipse

On 18 January 2013 at 02:08 Vlad Vergu commented:

I think this may be a combination of a few problems. Having to manually enable those options (which are definitely disabled by default) is strange. Could you give detailed steps to reproduce this?

Thanks.


On 18 January 2013 at 02:39 Sven Stork commented:
  1. Create an Entity example project.
  2. Export the plugin into a local update site (as described in the Spoofax tour).
  3. Start a clean (straight from the webpage) Eclipse instance.
  4. Import the example plugin from the local update site (restart eclipse).
  5. Create a new project.
  6. Create a new file matching the file extension of the Entity plugin.
    • add content to the file
    • save file

Without the changes of the settings Eclipse will not see the newly generated files. Once the workspace has been refreshed Eclipse will see the generated files. When opening the generated file side-by-side the update of the generated files is not reflected in the editor window (without the changes).

NOTE: The shown error message occurs regardless of the update settings have been enabled or not.


On 18 January 2013 at 07:51 Gabriël Konat commented:

What Spoofax version is this on? Unstable?


On 18 January 2013 at 11:37 Vlad Vergu commented:

The refresh problems are moved to a separate issue https://yellowgrass.org/issue/Spoofax/619. Please comment there.


On 18 January 2013 at 11:37 Vlad Vergu tagged @gohla

On 18 January 2013 at 19:33 Sven Stork commented:

I use the unstable branch.


On 22 January 2013 at 07:37 Gabriël Konat commented:

I could not reproduce this on the unstable or nightly branch. I don’t get any index-compile-ast errors. Any more missing info?


On 23 January 2013 at 18:45 Sven Stork commented:

Not sure what to tell you. I attached the plugin jar to the issue. Below is the listing of the created update site.


update/artifacts.jar
update/content.jar
update/features
update/plugins
update/plugins/com.ibm.icu_4.4.2.v20110823.jar
update/plugins/com.ibm.wala.shrike_1.1.3.201211090009.jar
update/plugins/lpg.runtime_2.0.17.201211090009.jar
update/plugins/MyEditor_1.0.0.jar
update/plugins/org.apache.ant_1.8.2.v20120109-1030.jar
update/plugins/org.apache.lucene.analysis_2.9.1.v201101211721.jar
update/plugins/org.apache.lucene.core_2.9.1.v201101211721.jar
update/plugins/org.apache.lucene_2.9.1.v201101211721.jar
update/plugins/org.eclipse.ant.core_3.2.302.v20120110-1739.jar
update/plugins/org.eclipse.ant.launching_1.0.101.v20120110-1739.jar
update/plugins/org.eclipse.ant.ui_3.5.101.v20120110-1739.jar
update/plugins/org.eclipse.compare.core_3.5.200.I20110208-0800.jar
update/plugins/org.eclipse.compare_3.5.202.R37x_v20111109-0800.jar
update/plugins/org.eclipse.core.commands_3.6.0.I20110111-0800.jar
update/plugins/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar
update/plugins/org.eclipse.core.databinding.observable_1.4.0.I20110222-0800.jar
update/plugins/org.eclipse.core.databinding.property_1.4.0.I20110222-0800.jar
update/plugins/org.eclipse.core.databinding_1.4.0.I20110111-0800.jar
update/plugins/org.eclipse.core.expressions_3.4.300.v20110228.jar
update/plugins/org.eclipse.core.externaltools_1.0.100.v20111007_r372.jar
update/plugins/org.eclipse.core.filebuffers_3.5.200.v20110928-1504.jar
update/plugins/org.eclipse.core.filesystem_1.3.100.v20110423-0524.jar
update/plugins/org.eclipse.core.jobs_3.5.101.v20120113-1953.jar
update/plugins/org.eclipse.core.resources_3.7.101.v20120125-1505.jar
update/plugins/org.eclipse.core.runtime_3.7.0.v20110110.jar
update/plugins/org.eclipse.core.variables_3.2.500.v20110928-1503.jar
update/plugins/org.eclipse.debug.core_3.7.1.v20111129-2031.jar
update/plugins/org.eclipse.debug.ui_3.7.102.v20111129-1423_r372.jar
update/plugins/org.eclipse.equinox.app_1.3.100.v20110321.jar
update/plugins/org.eclipse.equinox.common_3.6.0.v20110523.jar
update/plugins/org.eclipse.equinox.frameworkadmin.equinox_1.0.300.v20110815-1438.jar
update/plugins/org.eclipse.equinox.frameworkadmin_2.0.0.v20110815-1438.jar
update/plugins/org.eclipse.equinox.p2.artifact.repository_1.1.101.v20110815-1419.jar
update/plugins/org.eclipse.equinox.p2.core_2.1.1.v20120113-1346.jar
update/plugins/org.eclipse.equinox.p2.director.app_1.0.300.v20111126-0153.jar
update/plugins/org.eclipse.equinox.p2.director_2.1.1.v20111126-0211.jar
update/plugins/org.eclipse.equinox.p2.engine_2.1.1.R37x_v20111003.jar
update/plugins/org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110815-1419.jar
update/plugins/org.eclipse.equinox.p2.jarprocessor_1.0.200.v20110815-1438.jar
update/plugins/org.eclipse.equinox.p2.metadata.repository_1.2.0.v20110815-1419.jar
update/plugins/org.eclipse.equinox.p2.metadata_2.1.0.v20110815-1419.jar
update/plugins/org.eclipse.equinox.p2.operations_2.1.1.R37x_v20111111.jar
update/plugins/org.eclipse.equinox.p2.publisher.eclipse_1.0.0.v20110815-1438.jar
update/plugins/org.eclipse.equinox.p2.publisher_1.2.0.v20110815-1419.jar
update/plugins/org.eclipse.equinox.p2.repository.tools_2.0.100.v20110815-1438.jar
update/plugins/org.eclipse.equinox.p2.repository_2.1.1.v20120113-1346.jar
update/plugins/org.eclipse.equinox.p2.touchpoint.eclipse_2.1.1.v20110815-1419.jar
update/plugins/org.eclipse.equinox.p2.ui_2.1.1.v20120113-1346.jar
update/plugins/org.eclipse.equinox.preferences_3.4.2.v20120111-2020.jar
update/plugins/org.eclipse.equinox.registry_3.5.101.R37x_v20110810-1611.jar
update/plugins/org.eclipse.equinox.security.ui_1.1.0.v20101004.jar
update/plugins/org.eclipse.equinox.security_1.1.1.R37x_v20110822-1018.jar
update/plugins/org.eclipse.equinox.simpleconfigurator.manipulator_2.0.0.v20110815-1438.jar
update/plugins/org.eclipse.equinox.simpleconfigurator_1.0.200.v20110815-1438.jar
update/plugins/org.eclipse.help.base_3.6.2.v201202080800.jar
update/plugins/org.eclipse.help.ui_3.5.101.r37_20110819.jar
update/plugins/org.eclipse.help_3.5.100.v20110426.jar
update/plugins/org.eclipse.imp.java.hosted_0.1.25900.201211090009.jar
update/plugins/org.eclipse.imp.lpg.ide_0.1.875900.201211090009.jar
update/plugins/org.eclipse.imp.lpg_0.1.845900.201211090009.jar
update/plugins/org.eclipse.imp.metatooling_0.1.925900.201211090009.jar
update/plugins/org.eclipse.imp.preferences_0.1.865900.201211090009.jar
update/plugins/org.eclipse.imp.prefspecs_0.1.895900.201211090009.jar
update/plugins/org.eclipse.imp.presentation_0.1.75900.201211090009.jar
update/plugins/org.eclipse.imp.runtime_0.1.1015900.201211090009.jar
update/plugins/org.eclipse.imp.smapi_0.1.895900.201211090009.jar
update/plugins/org.eclipse.imp.smapifier_0.1.895900.201211090009.jar
update/plugins/org.eclipse.imp.xform_0.1.915900.201211090009.jar
update/plugins/org.eclipse.jdt.core.manipulation_1.4.0.v20110928-1453.jar
update/plugins/org.eclipse.jdt.core_3.7.3.v20120119-1537.jar
update/plugins/org.eclipse.jdt.debug.ui_3.6.1.v20111006_r372.jar
update/plugins/org.eclipse.jdt.debug_3.7.1.v20111006_r372.jar
update/plugins/org.eclipse.jdt.junit.core_3.7.0.v20110928-1453.jar
update/plugins/org.eclipse.jdt.junit.runtime_3.4.300.v20110928-1453.jar
update/plugins/org.eclipse.jdt.junit_3.7.0.v20110928-1453.jar
update/plugins/org.eclipse.jdt.launching_3.6.1.v20111006_r372.jar
update/plugins/org.eclipse.jdt.ui_3.7.2.v20120109-1427.jar
update/plugins/org.eclipse.jface.databinding_1.5.0.I20100907-0800.jar
update/plugins/org.eclipse.jface.text_3.7.2.v20111213-1208.jar
update/plugins/org.eclipse.jface_3.7.0.v20110928-1505.jar
update/plugins/org.eclipse.ltk.core.refactoring_3.5.201.r372_v20111101-0700.jar
update/plugins/org.eclipse.ltk.ui.refactoring_3.6.0.v20110928-1453.jar
update/plugins/org.eclipse.osgi.services_3.3.0.v20110513.jar
update/plugins/org.eclipse.osgi_3.7.2.v20120110-1415.jar
update/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009.jar
update/plugins/org.eclipse.pde.core_3.7.1.v20120103_r372.jar
update/plugins/org.eclipse.pde.launching_3.6.0.v20110506.jar
update/plugins/org.eclipse.pde.ui_3.6.100.v20120103_r372.jar
update/plugins/org.eclipse.pde_3.7.2.v201202080800.jar
update/plugins/org.eclipse.search_3.7.0.v20110928-1504.jar
update/plugins/org.eclipse.swt_3.7.2.v3740f.jar
update/plugins/org.eclipse.team.core_3.6.0.I20110525-0800.jar
update/plugins/org.eclipse.team.ui_3.6.101.R37x_v20111109-0800.jar
update/plugins/org.eclipse.text_3.5.101.v20110928-1504.jar
update/plugins/org.eclipse.ui.cheatsheets_3.4.100.v20110425.jar
update/plugins/org.eclipse.ui.console_3.5.100.v20111007_r372.jar
update/plugins/org.eclipse.ui.editors_3.7.0.v20110928-1504.jar
update/plugins/org.eclipse.ui.externaltools_3.2.0.v20111007_r372.jar
update/plugins/org.eclipse.ui.forms_3.5.101.v20111011-1919.jar
update/plugins/org.eclipse.ui.ide_3.7.0.v20110928-1505.jar
update/plugins/org.eclipse.ui.intro_3.4.100.v20110425.jar
update/plugins/org.eclipse.ui.navigator.resources_3.4.300.v20110928-1505.jar
update/plugins/org.eclipse.ui.navigator_3.5.101.v20120106-1355.jar
update/plugins/org.eclipse.ui.views.log_1.0.200.v20110404.jar
update/plugins/org.eclipse.ui.views.properties.tabbed_3.5.200.v20110928-1505.jar
update/plugins/org.eclipse.ui.views_3.6.0.v20110928-1505.jar
update/plugins/org.eclipse.ui.workbench.texteditor_3.7.0.v20110928-1504.jar
update/plugins/org.eclipse.ui.workbench_3.7.1.v20120104-1859.jar
update/plugins/org.eclipse.ui_3.7.0.v20110928-1505.jar
update/plugins/org.eclipse.update.configurator_3.3.100.v20100512.jar
update/plugins/org.hamcrest.core_1.1.0.v20090501071000.jar
update/plugins/org.junit4_4.8.1.v20100525.jar
update/plugins/org.junit_3.8.2.v3_8_2_v20100427-1100.jar
update/plugins/org.junit_4.8.2.v4_8_2_v20110321-1705.jar
update/plugins/org.sat4j.core_2.3.0.v20110329.jar
update/plugins/org.sat4j.pb_2.3.0.v20110329.jar
update/plugins/org.spoofax.aterm_0.2.3.201211090009.jar
update/plugins/org.spoofax.compiler_0.3.9.201211090009.jar
update/plugins/org.spoofax.interpreter.adapter.ecj_0.2.0.201211090009.jar
update/plugins/org.spoofax.interpreter.core_0.4.1.201211090009.jar
update/plugins/org.spoofax.interpreter.library.eclipse_0.2.0.201211090009.jar
update/plugins/org.spoofax.interpreter.library.interpreter_0.1.0.201211090009.jar
update/plugins/org.spoofax.interpreter.library.java_0.1.1.201211090009.jar
update/plugins/org.spoofax.interpreter.library.jline_0.1.1.201211090009.jar
update/plugins/org.spoofax.interpreter.library.jsglr_0.3.9.201211090009.jar
update/plugins/org.spoofax.interpreter.library.language_1.0.0.201211090009.jar
update/plugins/org.spoofax.interpreter.library.xml_1.0.0.201211090009.jar
update/plugins/org.spoofax.interpreter.ui_0.4.2.201211090009.jar
update/plugins/org.spoofax.interpreter_0.4.1.201211090009.jar
update/plugins/org.spoofax.jsglr_0.3.0.201211090009.jar
update/plugins/org.spoofax.terms_1.0.0.201211090009.jar
update/plugins/org.strategoxt.imp.debug.core_0.1.1.201211090009.jar
update/plugins/org.strategoxt.imp.debug.stratego.core_0.1.1.201211090009.jar
update/plugins/org.strategoxt.imp.debug.stratego.runtime_0.1.0.201211090009.jar
update/plugins/org.strategoxt.imp.debug.stratego.transformer_0.1.0.201211090009.jar
update/plugins/org.strategoxt.imp.debug.ui_0.1.1.201211090009.jar
update/plugins/org.strategoxt.imp.editors.aster_0.1.0.201211090009.jar
update/plugins/org.strategoxt.imp.editors.aterm_0.1.1.201211090009.jar
update/plugins/org.strategoxt.imp.editors.editorservice_0.1.1.201211090009.jar
update/plugins/org.strategoxt.imp.editors.pp_0.1.0.201211090009.jar
update/plugins/org.strategoxt.imp.editors.rtg_0.1.0.201211090009.jar
update/plugins/org.strategoxt.imp.editors.sdf_0.1.1.201211090009.jar
update/plugins/org.strategoxt.imp.editors.spoofax.configuration_1.0.0.jar
update/plugins/org.strategoxt.imp.editors.spoofax_1.0.0.201211090009.jar
update/plugins/org.strategoxt.imp.editors.stratego_0.1.1.201211090009.jar
update/plugins/org.strategoxt.imp.editors.template_0.1.0.201211090009.jar
update/plugins/org.strategoxt.imp.generator_0.1.2.201211090009.jar
update/plugins/org.strategoxt.imp.metatooling_0.1.1.201211090009.jar
update/plugins/org.strategoxt.imp.names_0.1.0.201211090009.jar
update/plugins/org.strategoxt.imp.nativebundle_0.1.1.201211090009.jar
update/plugins/org.strategoxt.imp.runtime.sidebyside.latest_0.0.1.201211090009.jar
update/plugins/org.strategoxt.imp.runtime.sidebyside.legacy_0.0.1.201211090009.jar
update/plugins/org.strategoxt.imp.runtime.sidebyside.main_0.0.1.201211090009.jar
update/plugins/org.strategoxt.imp.runtime_0.1.2.201211090009.jar
update/plugins/org.strategoxt.imp.spoofax.generator_0.1.2.201211090009.jar
update/plugins/org.strategoxt.imp.testing.ui_1.0.1.201211090009.jar
update/plugins/org.strategoxt.imp.testing_1.0.1.201211090009.jar
update/plugins/org.strategoxt.strj_0.17.92.201211090009.jar
update/features/com.svenstork.MyEditor_1.0.0.201301171327.jar
update/features/org.strategoxt.imp_1.0.9.0-r25227.jar


On 31 January 2013 at 11:43 Gabriël Konat commented:

Maybe the index got corrupted somehow? You could try closing Eclipse, remove the .cache directory on the project that gives the error and open Eclipse again. There’s a few bugs in unstable that could cause this, but will be fixed in the upcoming 1.1 release.


On 31 January 2013 at 23:42 Sven Stork commented:

I can confirm that removing the .cache directory removed the issue.


On 31 January 2013 at 23:44 Gabriël Konat commented:

Great :)


On 31 January 2013 at 23:44 Gabriël Konat closed this issue.

Log in to post comments