VSCode not finding files
I have forked an existing 1.8.9 minecraft forge mod and am trying to edit the code of this, when I edit the code of this exact mod in VSCode, it can find libraries which are used like
However when I try to create a new project myself with mostly the same code, it cannot find it.
I noticed its getting the files from
C:\Users\jesse\.gradle\caches\essential-loom\1.8.9\de.oceanlabs.mcp.mcp_stable.1_8_9.22-1.8.9-forge-1.8.9-11.15.1.2318-1.8.9\forge\forge-mapped.jar
Does anyone know why my own project cannot find this file and why the forked version can?28 Replies
⌛
This post has been reserved for your question.
Hey @j_sse! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Image of it finding it in the forked project
image of it not finding it on my own project
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
I prefer vscode for most things so if it can work in vscode Id really prefer that over any other ide
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
my edited version
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
from the forked project
I removed the least I had to
they are basically identical just removed most comments and some files that were giving me errors
When I build it and add it to my mods folder it works as expected, just vscode is not recognizing the net.minecraft and net.minecraftforge etc files
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
I dont have a setupDecompWorkspace task
though neither does the forked project
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
successfully builds
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
yeah both
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
the mod works, its just vscode not recognising libraries
its not recognising libraries for my project, it is recognising them in the forked version
forked project, can recognise them
mine, it cannot
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
yeah thats what im saying lol
its just that I would like to edit the code in vscode and its nice if vscode actually recognises the libraries
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
so I dont have to guess if an attribute is a thing
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
Yeah I get that just am not sure whats the difference between the 2 projects
restarted everything, deleted .vscode folders
the forked project recognises the libraries again, my project doenst
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
if anyone cares, it was as simple as adding to my settings.json file in the .vscode folder. I swear to god I had looked in this file with the forked project when it was working and did not find something simular to this..
Anyway its working as expected now so im happy
?close
Post Closed
This post has been closed by <@476083615000821771>.