Coder Social home page Coder Social logo

Comments (9)

a-w avatar a-w commented on July 26, 2024

git bisect says:
2615249 is the first bad commit (tagged dev_0.10.143.383)

from intellibot.

lte2000 avatar lte2000 commented on July 26, 2024

can you give an example?

from intellibot.

lte2000 avatar lte2000 commented on July 26, 2024

@a-w please try
intellibot.zip

It resolve relative library/resource path according to current file first. If not found, it resolve the path relative to project "content root".

I ever try to resolve relative path in whole project in any directory, but it may result too many unwanted founds. So I restrict it to "relative to project content root".

from intellibot.

lte2000 avatar lte2000 commented on July 26, 2024

fixed in v0.10.143.398

from intellibot.

a-w avatar a-w commented on July 26, 2024

can you give an example?

Please find an example here

The issue still persists with release IntelliBot #patched 0.10.143.398

I ever try to resolve relative path in whole project in any directory, but it may result too many unwanted founds. So I restrict it to "relative to project content root".

I am not asking for "any directory". Im asking only that all directories which contribute to PYTHONPATH at runtime be used as bases for relative path evaluation in the plugin.

Rationale: by default, both content roots and source roots are used to populate PYTHONPATH at runtime, and that's what Robotframework uses to resolve relative paths. So, when RF is able to resolve a path, then the plugin should be able to resolve that same path too.

That used to work until dev_0.10.143.382 (and also in the original version from Millennial Media). The request is to restore the original search algorithm, as the behavior since dev_0.10.143.383 breaks many existing scripts (around 1k in my case).

If you think that limiting the search scope is necessary, you could provide options to select whether content and/or source roots should be used to resolve paths, but IMHO it is not a major performance concern to leave both on at all times. Usually, projects don't have that many source roots...

from intellibot.

lte2000 avatar lte2000 commented on July 26, 2024

@a-w please try this one,
search order of relative physical resource/library path: robot file, project source root, project content root
intellibot.zip

original version from Millennial Media it not suitable if you have multiple resource files having same name in different directory.
Current method improve this though in some situation it still match wrong file.

from intellibot.

tryb93 avatar tryb93 commented on July 26, 2024

I have the same problem.

from intellibot.

lte2000 avatar lte2000 commented on July 26, 2024

I have the same problem.

@tryb93 do you still have the problem with https://github.com/lte2000/intellibot/files/7080761/intellibot.zip

from intellibot.

lte2000 avatar lte2000 commented on July 26, 2024

search order of relative physical resource/library path:

  • relative to current robot file, then project source root, then project content root

Implemented in version 0.11.191.8026

from intellibot.

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.