Git Product home page Git Product logo

Comments (7)

noseglid avatar noseglid commented on June 3, 2024

I see. I think it really should match the file relative to the specified cwd. If cwd is not specified it should be relative the root directory of the project. Thanks for reporting!

from atom-build.

noseglid avatar noseglid commented on June 3, 2024

I have fixed this on master. Please test it and see if it works for you!

It will be included in the next release (v0.30.0).

Thanks for reporting this!

from atom-build.

nikswamy avatar nikswamy commented on June 3, 2024

Thanks for looking into this promptly.
I tried your change, and it almost works ... but not quite.

The problem is that it is not expanding variables that appear in the cwd field.

Specifically, my cwd field is set to "{FILE_ACTIVE_PATH}". So, your change causes the error jumping feature to go searching for {FILE_ACTIVE_PATH}/myfile.txt ... which is bad, of course.

Can you expand variables before pre-pending to the path?

Thanks!

from atom-build.

nikswamy avatar nikswamy commented on June 3, 2024

This change does the trick:
At build.js line 181:

    atom.workspace.open(this.replace(this.cmd.cwd) + path.sep + this.match[0].file, {

At build.js line 198:

 atom.workspace.open(this.replace(this.cmd.cwd) + path.sep + this.match[0].file, {

from atom-build.

noseglid avatar noseglid commented on June 3, 2024

That is true! Excellent catch. Do you want to make a PR for that change, or should I just change it?

from atom-build.

nikswamy avatar nikswamy commented on June 3, 2024

Please change yourself... Thanks!

Sent from my Windows Phone


From: Alexander Olssonmailto:[email protected]
Sent: ‎4/‎30/‎2015 10:01
To: noseglid/atom-buildmailto:[email protected]
Cc: nikswamymailto:[email protected]
Subject: Re: [atom-build] Prefixing the value of cwd to the file of matched errors (#63)

That is true! Excellent catch. Do you want to make a PR for that change, or should I just change it?


Reply to this email directly or view it on GitHub:
#63 (comment)

from atom-build.

noseglid avatar noseglid commented on June 3, 2024

This has been fixed on master. Would you mind testing it out?

from atom-build.

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.