GithubHelp home page GithubHelp logo

Keyword completion cache not updated. about red HOT 4 CLOSED

nokia avatar nokia commented on August 14, 2024
Keyword completion cache not updated.

from red.

Comments (4)

KrzysztofJozefowicz avatar KrzysztofJozefowicz commented on August 14, 2024

Hi
"Changing libs from within RED and outside and reload" is already covered in RED.

For reloading libs on change action (only for main module file,not dependencies) there is option "Automatically reload changed libraries" in red.xml under Referenced libraries tab. You can also force to Project clean from Project menu.

RED/Eclipse does not track changes (yet) of any libs dependencies so if you make a change in dependent files you can manually reload RED Python env by RMC on project name, from Robot Framework use Reset Robot Environment. For special cases use Project clean and remove libspecs from project folder from disk.

I will add those hints to RED help in next release as it seems to be missing.
If above is useful you can close the issue.

from red.

kootstra avatar kootstra commented on August 14, 2024

Not entirely sure what dependend libs are, and if the main jar file in the SikulyLibrary projects fits that descrition. If that is the case, then it explains it somewhat.

In any case I've been able to find a workaround. The information is cached in the LibSpec file, stored in:

 \\workspace\\<project name>\libspecs\\SikuliLibrary.libspec

By removing this file followed by a Project Clean from the Project menu, I needed to add the library reference again and the new LibSpec file was generated with the additional keywords.

In my view refreshing the LibSpec files is desireable, and as this is at workspace level, having this connected to the Project Clean action might be a good approach.

from red.

KrzysztofJozefowicz avatar KrzysztofJozefowicz commented on August 14, 2024

What I mean about lib dependencies is that currently RED tracks changes only at parent lib file (for instance sikuli.py from robotframework-SikuliLibrary ) but does not track any inherited files from sikuli.py ( generally all imports).
Therefore check if you have enabled lib reload option from red.xml and if there are any changes in dependent files try Reset Python Env action.

from red.

KrzysztofJozefowicz avatar KrzysztofJozefowicz commented on August 14, 2024

Added info about lib reloading under Recognizing external libraries and variable files in RED in Help.
This will be released in v 0.7.1

from red.

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.