Compilation error: openFile: does not exist (No such file or directory)* - visual-studio-code

When I attempt to compile the Main.elm file (via Ctrl+F5) using Visual Studio Code, I receive the following error:
Error:
elm-make: c:\Users\Bizmonger\Documents\Visual: openFile: does not exist (No such file or directory)
Note:
I am trying to compile an Elm solution that I cloned from GitHub.
Here's the parent directory:
Here's the src directory with the elm files:
Why am I receiving this error?

The error message looks like it truncates the folder name after Visual, but I'm assuming you're in a folder called something like Visual Studio Projects. Try moving the project to a folder tree without a space in the name.

Related

The project could not be compiled.Would you like to open in visula studio error

When I choose c++ instead of blueprint.It shows me error
I chaged path of directory

File not exist Solc error when trying to import data feed into my contract

I have tried changing different versions of solc, solidity, and chainlink contracts but it doesn't work.
Error:
contracts/Lottery.sol:4:1: ParserError: Source "#chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol" not found: File outside of allowed directories.
import "#chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
Perhaps the yaml file being in the tests folder is the problem. I would move that file to live in your top level directory.

Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : Two assets found targeting the same path with incompatible asset kinds

C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : Two assets found targeting the same path with incompatible asset kinds: [D:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : ‘D:\Migration\XXXXXX\XXXX.App\wwwroot\assets\images\AAA.png’ with kind ‘All’ [X:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : ‘X:\Migration\XXXXXX\XXXX.App\wwwroot\assets\images\AAA.png’ with kind ‘All’ [D:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
C:\Program Files\dotnet\sdk\6.0.101\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(442,5): error : for path ‘assets/images/Cancel.png’ [D:\Migration\XXXXXX\XXXX.App\XXXX.csproj]
0 Warning(s)
1 Error(s)
Error occurs while building the Solution. Not sure why this error is happening in .NET 6, the same copy of wwwroot folder content to output directory works fine in .Netcore3.1. But giving error in .Net 6.
Did initial research on any other alterative for this problem. It only builds if content of wwwroot folder are deleted each time in the project directory location. hence works fine on the first time of clean workspace.
Background: basically need to copy the icons and images used in client to wwwroot folder and also copying this to output directory using
Sample mini project is in git https://github.com/Shruthi1984/StaticWebAssestscopyissue .
Similar error propped up in our project after upgrading to net6.0
Project had a .nuget package reference to said static asset(i.e bootstrap), and also files under wwwroot folder. The duplication made the project to throw error. We removed the reference to package. And that solved the problem.
I had the same problem after updating from .net5.0 to .net6.0. The error happened because I had this command in the project file:
<Content Include="$(ProjectDir)\wwwroot\**\*.*" CopyToPublishDirectory="PreserveNewest" />
After removing it I was finally able to build the project, because in .NET 6 the copying is automatically done and it will try to copy the files twice with this command

Swift 5 VIPER template generator (Permission denied)

I found this viper template generator. I inhaled everything but now I faced with an permission issue.
When I try to execute swift template generate MyModule --use viper-module command I got this:
error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/
XcodeDefault.xctoolchain/usr/bin/swift-template (Permission denied)
Before this error I got another one:
error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-template (No such file or directory)
Not sure if I am on a right way but I just copied swift-template folder into the path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
I found this one work for VIPER Template in Swift 5.
https://github.com/zafarivaev/VIPER-Template
How To Install
Clone the repository
Navigate to Xcode Templates folder: ~/Library/Developer/Xcode/Templates/.
If 3. Templates folder doesn't exist, create it
Copy and paste the VIPER Module.xctemplate in Templates folder
Use
Open Xcode
File -> New -> File or ⌘ N
Scroll down till you see VIPER Module template and choose it.
Set a name for your module. Examples: Home, Auth, SignIn

source_sink `appl' does not exist

I have this line in a project (the project was not created by me, but it is a university project)
:- [appl], assert(max_id(333)).
when i try to compile in eclipse with the ProDT plugin it gives me this error:
source_sink `appl' does not exist
What does the line of code mean? And what about the error now?
Assuming a appl.pl file does exists in the project, most likely your current directory is not the directory of the file. Either use a full path to load the file (e.g. ['/full/path/to/appl']) or change directory first to the directory of the file (using the cd/1 predicate; e.g. cd('/some/path/'), [appl]).
To find the current directory, use the pwd/0 predicate:
?- pwd.