Skip to content

project rename, resource path is still under old project name #421

Open

Description

@whysqwhw

Eclipse content assist set auto and prompt more characters.

egg.
<link href="css/base.css">

It will prompt "href" and it's value. The former seems supported by jsdt and the latter is by angularjs-eclipse.It's cool.But after I changed the project name, it does not work anymore unless I restart Eclipse.
In Eclipse's "Error Log" view there are some resource path errors which are use old project name.

I find some rename related plugins as follows.But I do not how it works.I guess tern.java need do something,so I report a issue here.

org.eclipse.ltk.core.refactoring
org.eclipse.ltk.ui.refactoring
org.eclipse.jdt.ui
org.eclipse.wst.jsdt.ui

Activity

  1. angelozerr commented on Jun 5, 2016

    @angelozerr
    Owner

    Could you please give a simple and detailled scenario with your problem, please.

  2. whysqwhw commented on Jun 8, 2016

    @whysqwhw
    Author

    1.Create a new javascript project which named "HelloWorld". In this project, it contains some css files in a folder. The index.html will link the css files.
    2. Input the <link> tag, it will prompt the css files path.
    3. Rename the project's name as "HH2".
    4. The <link> tag cannot prompt the css files path.
    5. Then open the Error Log view of eclipse, there are multiple errors. It shows "Error while collecting resource for container css". Resource '/HelloWorld/css/base.css' does not exist.
    6. The project name is already "HH2", but the eclipse still tries to find the old path. Perhaps the project's context does not change.

  3. angelozerr commented on Jun 8, 2016

    @angelozerr
    Owner

    This issue is not for tern.java, but for https://github.com/angelozerr/eclipse-wtp-webresources

    But I think I will give up this project since @mickaelistria is to move features from https://github.com/angelozerr/eclipse-wtp-webresources to WTP HTML Editor step by step.

  4. whysqwhw commented on Jun 14, 2016

    @whysqwhw
    Author

    Yes,hello cow force. I fix it by change WebResourcesIndexManager.performAction function to update WebResourcesProjectConfiguration data; and WebResourcesProviderType.collect function to avoid resource not exists.Is it ok?

  5. mickaelistria commented on Jun 14, 2016

    @mickaelistria
    Contributor

    @whysqwhw Would you rather be interested in contributing those features to Eclipse directly? As @angelozerr explained, we're trying to move/copy those features to Eclipse WTP directly (where the HTML editor lives). See https://bugs.eclipse.org/bugs/show_bug.cgi?id=495132 for example.

  6. whysqwhw commented on Jun 14, 2016

    @whysqwhw
    Author

    ok,thanks

  7. mickaelistria commented on Jun 14, 2016

    @mickaelistria
    Contributor

    @whysqwhw a nice contribution would be to try the Gerrit patch I suggested and to report whether it works for your use-case or not ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions