Giter Site home page Giter Site logo

Comments (5)

BartmanAbyss avatar BartmanAbyss commented on May 2, 2024

Hi. why did you need to modify tasks.json?
Do you have a 64-bit version of Windows?
I don't know why a installed GIT Bash would matter..
Did you just create a new project and tried to build? It should work out of the box.

from vscode-amiga-debug.

rafamiga avatar rafamiga commented on May 2, 2024

OK, here's the situation:

I'm still using Windows 7 so I don't have built-in bash [vendor's version] hence I use GIT Bash. It works quite alright most of the time.

I all boils down to VS/plugin inserting paths in a usual Windows form, with the drive letter and a colon, like this:

C:/Users/rafamiga/OneDrive/tmp/amiga/amiga-1st/support/

Now, GIT Bash does not subscribe to this convention, it uses a Unix-like one:

/c/Users/rafamiga/OneDrive/tmp/amiga/amiga-1st/support/

That's the reason I had to modify tasks.json; instead of variables I had to use hardcoded filenames like:

"command": "/c/Users/rafamiga/.vscode/extensions/bartmanabyss.amiga-debug-1.0.0/bin/gnumake.exe",
"PATH": "/c/Users/rafamiga/.vscode/extensions/bartmanabyss.amiga-debug-1.0.0/opt/bin/;/c/Users/rafamiga/.vscode/extensions/bartmanabyss.amiga-debug-1.0.0/bin"

because variables here seem to adhere to Windows convention.

I'm sorry for not describing it adequately.

I think the example will work out of the box, it starts compiling but the show stopper is the path inserted to m68k-amiga-elf-gcc and I bet other script commands as well – they stick to Windows convention. I'm looking for a way to change it and hence my question.

Maybe there's a VS setting to change C:\ convention to /c/ or maybe it's a plugin setting?

from vscode-amiga-debug.

rafamiga avatar rafamiga commented on May 2, 2024

OK, I did a little googling and found the same issue here:

microsoft/vscode#35593

Although there's no solution there, it's a good start to find the fix for my [and others'] problems.

from vscode-amiga-debug.

rafamiga avatar rafamiga commented on May 2, 2024

OK, it seems this tweak in tasks.json does the trick:

[...]
 "version": "2.0.0",
   "windows": {
       "options": {
           "shell": {
               "executable": "c:\\windows\\system32\\cmd.exe",
               "args": ["/d", "/c"]
           }
       },
   },
       "tasks": [
       {
[...]

from vscode-amiga-debug.

BartmanAbyss avatar BartmanAbyss commented on May 2, 2024

Glad it works for you.

from vscode-amiga-debug.

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.