The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compile using LA Portable Version
#1
I imported the HTTP server project into the LA portable version, and the following error occurred during compilation. The path mentioned in red below does not exist.


Failed to compile 'HTTP server.cs'. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Au.folders.get_NetRuntimeDesktop()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   at System.Reflection.PropertyInfo.GetValue(Object obj)
   at Au.folders.<>c.<.cctor>b__315_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location ---
   at System.Lazy`1.CreateValue()
   at Au.folders.unexpandPath(String path, String& folder, String& name)
   at Au.folders.unexpandPath(String path)
   at Au.Compiler.Compiler.XCompiled.AddCompiled(FileNode f, String outFile, MetaComments m, MPFlags miniFlags) in C:\code\au\Au.Editor\Compiler\XCompiled.cs:line 178
   at Au.Compiler.Compiler._Compile(CCReason reason, FileNode f, CompResults& r, FileNode projFolder, Action& aFinally, Func`2 canCompile, MCFlags addMetaFlags) in C:\code\au\Au.Editor\Compiler\Compiler.cs:line 298
   at Au.Compiler.Compiler.Compile(CCReason reason, CompResults& r, FileNode f, FileNode projFolder, Boolean needMeta, Func`2 canCompile, MCFlags addMetaFlags) in C:\code\au\Au.Editor\Compiler\Compiler.cs:line 58

Adding DLL reference doesn't work.
https://i.ibb.co/7rp2w9R/AAA.gif

In the LA portable version, sometimes the referenced path is added in the following format.
/*/ r data\doc\Main\dll\Newtonsoft.Json.dll; /*/

I think it should be added in this format.
/*/ r %dll%\Newtonsoft.Json.dll; /*/


Messages In This Thread
Compile using LA Portable Version - by Davider - 06-05-2024, 10:20 PM

Forum Jump:


Users browsing this thread: 7 Guest(s)