Giter Site home page Giter Site logo

Comments (4)

sgmace avatar sgmace commented on September 12, 2024

i get the message "Cannot find declaration to go to" when i try to jump to declaration.

from robot-plugin.

AmailP avatar AmailP commented on September 12, 2024

Can you please provide a sample project where this does not work?

Anyway jump to declaration is currently supported just for keywords defined
in robot files.

Cheers
Valerio

On Wednesday, 27 January 2016, sgmace [email protected] wrote:

i get the message "Cannot find declaration to go to" when i try to jump to
declaration.


Reply to this email directly or view it on GitHub
#22 (comment).

from robot-plugin.

sgmace avatar sgmace commented on September 12, 2024

I kind of nailed down the issue. In my robot files i have the following code.


*** Settings ***
Test Timeout 10 minutes

Resource ${top_level_dir}/resources/configs/MyResources.robot

*** Variables ***
${top_level_dir} %{DEV_ROOT}/tools/test/robot

*** Keywords ***


If i remove the path portion from the code (${top_level_dir}/resources/configs) i am able to fetch the keywords in MyResources.robot. I will need to access keywords in resources from testcase directory.

How can i make it work without removing the path?

from robot-plugin.

AmailP avatar AmailP commented on September 12, 2024

Your use case is far from being easily implemented in the plugin. The plugin would need to know the value of the DEV_ROOT env variable and resolve the value of the top_level_dir variable. This information is available only at runtime.

I would suggest you to use relative paths to reference the resources if possible, like:
Resource ../../resources/configs/MyResources.robot

If that is not possible I would suggest you to put resources in the module search path and then add each path as source path in pycharm.

from robot-plugin.

Related Issues (20)

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.