Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

При запуске OneScript.Web получаем ошибку Unknown directiveИспользовать ("model" #14

Open
wolfktl opened this issue May 22, 2024 · 6 comments

Comments

@wolfktl
Copy link

wolfktl commented May 22, 2024

При запуске OneScript.Web получаем ошибку Unknown directiveИспользовать ("model"

Что не так ?

@arkuznetsov
Copy link
Owner

Какая версия os.web?
Дайте полный текст ошибки!

@wolfktl
Copy link
Author

wolfktl commented Jun 17, 2024

os.web v0.9.3

dbug: Microsoft.AspNetCore.Hosting.Diagnostics[3]
Hosting starting
dbug: OneScript.WebHost.Application.ApplicationInstance[0]
No database configured
ScriptEngine.Compiler.CompilerException: {Модуль C:\1c-tools\oscript.web\main.os / Ошибка в строке: 11,0 / Unknown directiveИспользовать ("model")}

at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at OneScript.WebHost.Application.ApplicationInstance.Create(ICodeSource src, IApplicationRuntime webApp) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Application/ApplicationInstance.cs:line 264
at OneScript.WebHost.Infrastructure.AppStarter.CreateApp() in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Infrastructure/AppStarter.cs:line 74
at OneScript.WebHost.Infrastructure.OneScriptServicePlugin.<>c.b__4_0(IServiceProvider sp) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Infrastructure/OneScriptServicePlugin.cs:line 80
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at OneScript.WebHost.Startup.StartOneScriptApp(IApplicationBuilder app, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 108
Application startup exception: ScriptEngine.Compiler.CompilerException: {Модуль C:\1c-tools\oscript.web\main.os / Ошибка в строке: 11,0 / Unknown directiveИспользовать ("model")}

at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at OneScript.WebHost.Application.ApplicationInstance.Create(ICodeSource src, IApplicationRuntime webApp) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Application/ApplicationInstance.cs:line 264
at OneScript.WebHost.Infrastructure.AppStarter.CreateApp() in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Infrastructure/AppStarter.cs:line 74
at OneScript.WebHost.Infrastructure.OneScriptServicePlugin.<>c.b__4_0(IServiceProvider sp) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Infrastructure/OneScriptServicePlugin.cs:line 80
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at OneScript.WebHost.Startup.StartOneScriptApp(IApplicationBuilder app, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 108
at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 98
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.b__0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass0_0.b__0(IApplicationBuilder app)
at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
crit: Microsoft.AspNetCore.Hosting.WebHost[6]
Application startup exception
ScriptEngine.Compiler.CompilerException: {Модуль C:\1c-tools\oscript.web\main.os / Ошибка в строке: 11,0 / Unknown directiveИспользовать ("model")}

at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at OneScript.WebHost.Application.ApplicationInstance.Create(ICodeSource src, IApplicationRuntime webApp) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Application/ApplicationInstance.cs:line 264
at OneScript.WebHost.Infrastructure.AppStarter.CreateApp() in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Infrastructure/AppStarter.cs:line 74
at OneScript.WebHost.Infrastructure.OneScriptServicePlugin.<>c.b__4_0(IServiceProvider sp) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Infrastructure/OneScriptServicePlugin.cs:line 80
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at OneScript.WebHost.Startup.StartOneScriptApp(IApplicationBuilder app, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 108
at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 98
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.b__0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass0_0.b__0(IApplicationBuilder app)
at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
dbug: Microsoft.AspNetCore.Hosting.Diagnostics[5]
Hosting shutdown
Unhandled exception. ScriptEngine.Compiler.CompilerException: {Модуль C:\1c-tools\oscript.web\main.os / Ошибка в строке: 11,0 / Unknown directiveИспользовать ("model")}

at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at OneScript.WebHost.Application.ApplicationInstance.Create(ICodeSource src, IApplicationRuntime webApp) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Application/ApplicationInstance.cs:line 264
at OneScript.WebHost.Infrastructure.AppStarter.CreateApp() in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Infrastructure/AppStarter.cs:line 74
at OneScript.WebHost.Infrastructure.OneScriptServicePlugin.<>c.b__4_0(IServiceProvider sp) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Infrastructure/OneScriptServicePlugin.cs:line 80
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at OneScript.WebHost.Startup.StartOneScriptApp(IApplicationBuilder app, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 108
at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Startup.cs:line 98
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.b__0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass0_0.b__0(IApplicationBuilder app)
at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at OneScript.WebHost.Program.Main(String[] args) in /var/jenkins_home/workspace/1Script.Web_master/src/OneScript/Program.cs:line 81

@arkuznetsov
Copy link
Owner

Попробуйте взять os.web тут (9.4): https://build.oscript.io/job/1Script.Web/job/develop/lastSuccessfulBuild/artifact/oscript.web-win-x64.zip.

@wolfktl
Copy link
Author

wolfktl commented Jun 19, 2024

ScriptEngine.Compiler.CompilerException: {Модуль C:\1c-tools\oscript.web\model\modules\Настройки.os / Ошибка в строке: 11,0 / Библиотека не найдена: 'irac'}

at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary(String value)
at ScriptEngine.HostedScript.LibraryResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.DirectiveMultiResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.CompilerService.ResolveDirective(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at ScriptEngine.Machine.Contexts.AttachedScriptsFactory.CompileModuleFromSource(CompilerService compiler, ICodeSource code, ExternalContextData externalContext)
at ScriptEngine.HostedScript.LibraryLoader.CompileFile(String path)
at ScriptEngine.HostedScript.LibraryLoader.b__28_0(UserAddedScript moduleFile)
at ScriptEngine.Utils.ForEach[T](IEnumerable1 input, Action1 action)
at ScriptEngine.HostedScript.LibraryLoader.CompileDelayedModules(ExternalLibraryDef library)
at ScriptEngine.HostedScript.LibraryLoader.ProcessLibrary(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.ProcessLibrary(Library lib)
at ScriptEngine.HostedScript.LibraryResolver.LoadLibraryInternal(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadByPath(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadByRelativePath(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary(String value)
at ScriptEngine.HostedScript.LibraryResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.DirectiveMultiResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.CompilerService.ResolveDirective(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at OneScript.WebHost.Application.ApplicationInstance.Create(ICodeSource src, IApplicationRuntime webApp) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Application/ApplicationInstance.cs:line 264
at OneScript.WebHost.Infrastructure.AppStarter.CreateApp() in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Infrastructure/AppStarter.cs:line 74
at OneScript.WebHost.Infrastructure.OneScriptServicePlugin.<>c.b__4_0(IServiceProvider sp) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Infrastructure/OneScriptServicePlugin.cs:line 80
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at OneScript.WebHost.Startup.StartOneScriptApp(IApplicationBuilder app, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Startup.cs:line 108
Application startup exception: ScriptEngine.Compiler.CompilerException: {Модуль C:\1c-tools\oscript.web\model\modules\Настройки.os / Ошибка в строке: 11,0 / Библиотека не найдена: 'irac'}

at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary(String value)
at ScriptEngine.HostedScript.LibraryResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.DirectiveMultiResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.CompilerService.ResolveDirective(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at ScriptEngine.Machine.Contexts.AttachedScriptsFactory.CompileModuleFromSource(CompilerService compiler, ICodeSource code, ExternalContextData externalContext)
at ScriptEngine.HostedScript.LibraryLoader.CompileFile(String path)
at ScriptEngine.HostedScript.LibraryLoader.b__28_0(UserAddedScript moduleFile)
at ScriptEngine.Utils.ForEach[T](IEnumerable1 input, Action1 action)
at ScriptEngine.HostedScript.LibraryLoader.CompileDelayedModules(ExternalLibraryDef library)
at ScriptEngine.HostedScript.LibraryLoader.ProcessLibrary(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.ProcessLibrary(Library lib)
at ScriptEngine.HostedScript.LibraryResolver.LoadLibraryInternal(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadByPath(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadByRelativePath(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary(String value)
at ScriptEngine.HostedScript.LibraryResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.DirectiveMultiResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.CompilerService.ResolveDirective(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at OneScript.WebHost.Application.ApplicationInstance.Create(ICodeSource src, IApplicationRuntime webApp) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Application/ApplicationInstance.cs:line 264
at OneScript.WebHost.Infrastructure.AppStarter.CreateApp() in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Infrastructure/AppStarter.cs:line 74
at OneScript.WebHost.Infrastructure.OneScriptServicePlugin.<>c.b__4_0(IServiceProvider sp) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Infrastructure/OneScriptServicePlugin.cs:line 80
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at OneScript.WebHost.Startup.StartOneScriptApp(IApplicationBuilder app, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Startup.cs:line 108
at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Startup.cs:line 98
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.b__0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass0_0.b__0(IApplicationBuilder app)
at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
crit: Microsoft.AspNetCore.Hosting.WebHost[6]
Application startup exception
ScriptEngine.Compiler.CompilerException: {Модуль C:\1c-tools\oscript.web\model\modules\Настройки.os / Ошибка в строке: 11,0 / Библиотека не найдена: 'irac'}

at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary(String value)
at ScriptEngine.HostedScript.LibraryResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.DirectiveMultiResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.CompilerService.ResolveDirective(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at ScriptEngine.Machine.Contexts.AttachedScriptsFactory.CompileModuleFromSource(CompilerService compiler, ICodeSource code, ExternalContextData externalContext)
at ScriptEngine.HostedScript.LibraryLoader.CompileFile(String path)
at ScriptEngine.HostedScript.LibraryLoader.b__28_0(UserAddedScript moduleFile)
at ScriptEngine.Utils.ForEach[T](IEnumerable1 input, Action1 action)
at ScriptEngine.HostedScript.LibraryLoader.CompileDelayedModules(ExternalLibraryDef library)
at ScriptEngine.HostedScript.LibraryLoader.ProcessLibrary(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.ProcessLibrary(Library lib)
at ScriptEngine.HostedScript.LibraryResolver.LoadLibraryInternal(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadByPath(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadByRelativePath(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary(String value)
at ScriptEngine.HostedScript.LibraryResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.DirectiveMultiResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.CompilerService.ResolveDirective(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at OneScript.WebHost.Application.ApplicationInstance.Create(ICodeSource src, IApplicationRuntime webApp) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Application/ApplicationInstance.cs:line 264
at OneScript.WebHost.Infrastructure.AppStarter.CreateApp() in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Infrastructure/AppStarter.cs:line 74
at OneScript.WebHost.Infrastructure.OneScriptServicePlugin.<>c.b__4_0(IServiceProvider sp) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Infrastructure/OneScriptServicePlugin.cs:line 80
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at OneScript.WebHost.Startup.StartOneScriptApp(IApplicationBuilder app, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Startup.cs:line 108
at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Startup.cs:line 98
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.b__0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass0_0.b__0(IApplicationBuilder app)
at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
Unhandled exception. ScriptEngine.Compiler.CompilerException: {Модуль C:\1c-tools\oscript.web\model\modules\Настройки.os / Ошибка в строке: 11,0 / Библиотека не найдена: 'irac'}

at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary(String value)
at ScriptEngine.HostedScript.LibraryResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.DirectiveMultiResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.CompilerService.ResolveDirective(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at ScriptEngine.Machine.Contexts.AttachedScriptsFactory.CompileModuleFromSource(CompilerService compiler, ICodeSource code, ExternalContextData externalContext)
at ScriptEngine.HostedScript.LibraryLoader.CompileFile(String path)
at ScriptEngine.HostedScript.LibraryLoader.b__28_0(UserAddedScript moduleFile)
at ScriptEngine.Utils.ForEach[T](IEnumerable1 input, Action1 action)
at ScriptEngine.HostedScript.LibraryLoader.CompileDelayedModules(ExternalLibraryDef library)
at ScriptEngine.HostedScript.LibraryLoader.ProcessLibrary(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.ProcessLibrary(Library lib)
at ScriptEngine.HostedScript.LibraryResolver.LoadLibraryInternal(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadByPath(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadByRelativePath(String libraryPath)
at ScriptEngine.HostedScript.LibraryResolver.LoadLibrary(String value)
at ScriptEngine.HostedScript.LibraryResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.DirectiveMultiResolver.Resolve(String directive, String value, Boolean codeEntered)
at ScriptEngine.CompilerService.ResolveDirective(String directive, String value, Boolean codeEntered)
at ScriptEngine.Compiler.Compiler.HandleDirective()
at ScriptEngine.Compiler.Compiler.HandleImportDirectives()
at ScriptEngine.Compiler.Compiler.DispatchModuleBuild()
at ScriptEngine.Compiler.Compiler.BuildModule()
at ScriptEngine.Compiler.Compiler.Compile(ILexemGenerator lexer, ICompilerContext context)
at ScriptEngine.CompilerService.CompileInternal(ICodeSource source)
at ScriptEngine.CompilerService.Compile(ICodeSource source)
at OneScript.WebHost.Application.ApplicationInstance.Create(ICodeSource src, IApplicationRuntime webApp) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Application/ApplicationInstance.cs:line 264
at OneScript.WebHost.Infrastructure.AppStarter.CreateApp() in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Infrastructure/AppStarter.cs:line 74
at OneScript.WebHost.Infrastructure.OneScriptServicePlugin.<>c.b__4_0(IServiceProvider sp) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Infrastructure/OneScriptServicePlugin.cs:line 80
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.b__0(ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at OneScript.WebHost.Startup.StartOneScriptApp(IApplicationBuilder app, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Startup.cs:line 108
at OneScript.WebHost.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider services) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Startup.cs:line 98
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.b__0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass0_0.b__0(IApplicationBuilder app)
at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at OneScript.WebHost.Program.Main(String[] args) in /var/jenkins_home/workspace/1Script.Web_develop/src/OneScript/Program.cs:line 81

@arkuznetsov
Copy link
Owner

arkuznetsov commented Jun 19, 2024

А библиотеку irac ставили?
В общий каталог или в локальный каталог модулей?
В src/appsettings.json прописано:

    "OneScript": {
      "lib.additional": [ "oscript_modules" ]
    },

?

@wolfktl
Copy link
Author

wolfktl commented Jun 19, 2024

{
"OneScript": {
"lib.additional": [ "oscript_modules" ]
},
"urls": "http://localhost:5005/",
"Logging":{
"Console":{
"LogLevel":{
"OneScript.WebHost.Application.ApplicationInstance":"Debug",
"Default":"Debug"
}
}
}
}

К сожалению инструкция не совсем понятная, и приходиться искать библиотеки по всего интернету

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants