Typescript intellisense and autocomplete not working

VSCode Version: Code 1.13.1 (379d2efb5539b09112c793d3d9a413017d736f89, 2017-06-14T18:13:05.928Z)
OS Version: Darwin x64 16.4.0
Extensions:

Extension
Author
Version

EditorConfig
EditorConfig
0.9.3

vscode-docker
PeterJausovec
0.0.16

html-snippets
abusaidm
0.1.0

vscode-eslint
dbaeumer
1.2.11

python
donjayamanne
0.6.5

tslint
eg2
0.15.0

Go
lukehoban
0.6.62

debugger-for-chrome
msjsdiag
3.1.4

Ruby
rebornix
0.12.1

vscode-icons
robertohuertasm
7.9.0

JavaScriptSnippets
xabikos
1.4.0

Steps to Reproduce:

Install vscode
Use typescript 2.4.0
Use a tsconfig.json file in root directory
Autocomplete and intellisense does not work for typescript

I have tried:

Reload Window

Reload Typescript project

Restart computer

Remove all extensions except for tslint

Completely uninstall vscode and reinstalled - delete application, delete ~/.vscode, and delete $HOME/Libraries/Application Support/Code

My tsserver logs looks like this where it is erroring:

Info 9    Search path: /path/to/project/src/modules
Info 10   Config file name: /path/to/project/tsconfig.json
Info 11   Loading  from /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js/../../.. (resolved to /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/node_modules)
Info 12   Failed to load module: {}
Info 13   Loading  from  (resolved to /path/to/project/node_modules)
Info 14   Failed to load module: {}
Info 15   Couldn't find  anywhere in paths: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js/../../..,

This folder doesn't exist:

/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/node_modules

tsconfig.json file:
{
    "compileOnSave": false,
    "compilerOptions": {
        "target": "es6",
        "module": "commonjs",
        "declaration": false,
        "moduleResolution": "node",
        "experimentalDecorators": true,
        "baseUrl": "",
        "typeRoots": [
            "node_modules/@types"
        ],
        "lib": [
            "es2016",
            "es2017"
        ]
    }
}

tsconfig.app.json file:
{
    "extends": "../tsconfig.json",
    "compilerOptions": {
        "outDir": "../dist",
        "sourceMap": true,
        "baseUrl": "",
        "types": []
    },
    "exclude": [
        "**/*.spec.ts"
    ]
}

I noticed there is a ticket open for this here: https://github.com/Microsoft/vscode/issues/24655
I thought maybe some tsserver logs might help, and it's in a mac environment so it could be slightly different.
This project works on other computers, and other projects work on this computer with identical tsconfig and tslint files.
Intellisense for other languages is working, it is only missing in ts files.

Can you please explain how it is not working? Does it return no results? The incorrect results? Never stop loading?
Also, can you share the log file or at least the last section after you try triggering the intellisense?

Autocomplete doesn't work, hovering over any text just shows a "loading..." popup, and the editor doesn't highlight syntax errors (the red squiggly lines). Also, the application takes longer to save when this happens.
I have noticed that deleting my project and re-cloning makes it work again for a few hours, then it breaks again.
I pasted a tsserver.log file in the original ticket description, but here is another one.
[Error  - 12:10:34 AM] 'quickinfo' request failed with error.
Error: Cancelled Request 6
    at TypeScriptServiceClient.tryCancelRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/typescriptServiceClient.js:755:25)
    at token.onCancellationRequested (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/typescriptServiceClient.js:695:30)
    at e.invoke (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:14715)
    at e.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:53565)
    at e.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:56383)
    at e.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:56993)
    at n.Class.derive._oncancel.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:57458)
    at n.Class.derive._oncancel._cancelAction (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:46586)
    at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:42343)
    at n.Class.derive._oncancel._run (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:44654)
    at n.Class.derive._oncancel.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:43819)
    at n.Class.derive._creator._cancelAction (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:44902)
    at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:42343)
    at n.Class.derive._creator._run (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:44654)
    at n.Class.derive._creator.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:43819)
    at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:177059)

I have tried this with typescript@next both globally and in the project node_modules. I've tried updating typescript.tsdk to point to both, and also tried leaving it null. I have tried on Visual Studio Code - Insiders.
Here is the log when verbose is turned on.
[Error  - 12:18:14 AM] 'quickinfo' request failed with error.
Error: Service died.
    at Object.keys.forEach (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/typescriptServiceClient.js:603:45)
    at Array.forEach (native)
    at TypeScriptServiceClient.serviceExited (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/typescriptServiceClient.js:602:37)
    at ChildProcess.childProcess.on (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/typescriptServiceClient.js:400:34)
    at emitTwo (events.js:111:20)
    at ChildProcess.emit (events.js:191:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

I get this warning at the top of my editor:
The TypeScript language service died unexpectedly 5 times in the last 5 Minutes.

I am also getting this same problem which was there in previous versions of VS code. Intellisense just seems to stop working after a while. Requires me to close the project and open it again for it to work.
The 'Loading...' indicator is shown. No error highlighting or code completion.

Do you see Configure Excludes anywhere in the status bar?
Also, can you please upload the entire tsserver.log. I don't see the actual file anywhere

I don't see Configure Excludes anywhere in the status bar.
Here's an actual copy of a log.
tsserver.log.zip

Any update on this issue? I am having the exact same issue and I can't figure out a fix.

@philmoss321 There don't seem to be any errors in that log or really any events. The module load failures are expected. But what were the actual contents of the line:
Info 8    request: {"The toString() of the typescript code of the file I was in when the error was thrown"}

I also suspect you are collecting logs from the current tsserver instance. Instead you'll need to collect the log from the instance of the tsserver that crashed. To do this:

Restart VScode with "typescript.tsserver.log": "verbose" set
In the typescript section of the output panel, look for the line that looks like

[Info  - 12:41:03 PM] Using tsserver from: /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js
[Info  - 12:41:03 PM] TSServer log file: /var/folders/_0/611900jn0yb43f1rc47_2wmh0000gp/T/vscode-tsserver-log-dp1F5Y/tsserver.log

Reproduce this issue and then open the log from from the printed path

Those are the exact steps I used to send you the log above. When it errors, that is what the tsserver.log looks like every time. These are my project settings.
{
    "typescript.tsserver.log": "verbose",
    "typescript.tsserver.trace": "off",
    "editor.formatOnSave": true,
    "window.zoomLevel": 0
}

When the typescript server is working, the tsserver.log file looks different. It lists every module in the node_modules folder, and all of the modules in my project, rather than showing {} and erroring.
The contents of that toString() line is the typescript source code of the file I was in when I hovered over a variable to see "loading..." instead of the intellisense. I can't give you that code since it's company code, and I can't reproduce this error in other repos. It doesn't matter what file I'm in, it will just log out the entire file's source code in the tsserver.log. The problem goes away when I re-clone the repo for a few hours, then it pops up again, and installations of vscode on other machines don't have this problem.

From the logs my only thought is that the TypeScript server is running out of memory. Does the project have a large number of files in it? Can you try explicitly excluding node_modules and other potentially large directories in the tsconfig.json:
{
    "compilerOptions": {
        ...
    },
    "exclude": [
        "node_modules"
    ]
}

Also, if you look in the typescript section of the output panel, do you see any messages about
the server exiting? There should be an exit code if it crashed

You know, now that you mention it, there are 31 instances of "code helper" in my activity monitor taking up anywhere between 50 and 200 MB of memory each, and when tsserver is crashing it's using way more than that.
Yes, this is a large project with a lot of files.
I've added the node_modules to the exclude section as well, thank you for the tip.
I can't reproduce right now, as I just re-cloned, but when it goes down I'll look for server exiting messages and report the memory usage.

Okay. This is what I get in the typescript section of the output panel

[Info  - 10:08:30 AM] TSServer exited
[Info  - 10:08:30 AM] TSServer log file: /var/folders/dw/t413twyn35j7p9l9m8840d0c0000gn/T/vscode-tsserver-log-TuxIQn/tsserver.log
[Info  - 10:08:30 AM] Using tsserver from: /path/to/project/node_modules/typescript/lib/tsserver.js
[Info  - 10:08:30 AM] TSServer log file: /var/folders/dw/t413twyn35j7p9l9m8840d0c0000gn/T/vscode-tsserver-log-MHwBOm/tsserver.log
[Info  - 10:08:30 AM] Forking TSServer
PATH: /bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[Error  - 10:08:31 AM] 'quickinfo' request failed with error.
Error: Cancelled Request 3
at TypeScriptServiceClient.tryCancelRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/typescriptServiceClient.js:755:25)
at token.onCancellationRequested (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/typescriptServiceClient.js:695:30)
at e.invoke (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:14715)
at e.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:53565)
at e.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:56383)
at e.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:56993)
at n.Class.derive._oncancel. (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:57458)
at n.Class.derive._oncancel._cancelAction (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:46586)
at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:42343)
at n.Class.derive._oncancel._run (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:44654)
at n.Class.derive._oncancel.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:43819)
at n.Class.derive._creator._cancelAction (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:44902)
at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:42343)
at n.Class.derive._creator._run (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:44654)
at n.Class.derive._creator.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:43819)
at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:177059)
[Error  - 10:08:32 AM] 'quickinfo' request failed with error.
Error: Cancelled Request 6
at TypeScriptServiceClient.tryCancelRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/typescriptServiceClient.js:755:25)
at token.onCancellationRequested (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/typescriptServiceClient.js:695:30)
at e.invoke (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:14715)
at e.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:53565)
at e.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:56383)
at e.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:56993)
at n.Class.derive._oncancel. (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:57458)
at n.Class.derive._oncancel._cancelAction (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:46586)
at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:42343)
at n.Class.derive._oncancel._run (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:44654)
at n.Class.derive._oncancel.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:43819)
at n.Class.derive._creator._cancelAction (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:44902)
at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:42343)
at n.Class.derive._creator._run (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:44654)
at n.Class.derive._creator.cancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:43819)
at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:23:177059)
[Info  - 10:09:08 AM] TSServer exited
[Info  - 10:09:08 AM] TSServer log file: /var/folders/dw/t413twyn35j7p9l9m8840d0c0000gn/T/vscode-tsserver-log-MHwBOm/tsserver.log
[Info  - 10:09:08 AM] Using tsserver from: /path/to/project/node_modules/typescript/lib/tsserver.js
[Info  - 10:09:08 AM] TSServer log file: /var/folders/dw/t413twyn35j7p9l9m8840d0c0000gn/T/vscode-tsserver-log-6ILynS/tsserver.log
[Info  - 10:09:08 AM] Forking TSServer
PATH: bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[Info  - 10:09:46 AM] TSServer exited
[Info  - 10:09:46 AM] TSServer log file: /var/folders/dw/t413twyn35j7p9l9m8840d0c0000gn/T/vscode-tsserver-log-6ILynS/tsserver.log
[Info  - 10:09:46 AM] Using tsserver from: /path/to/project/node_modules/typescript/lib/tsserver.js
[Info  - 10:09:46 AM] TSServer log file: /var/folders/dw/t413twyn35j7p9l9m8840d0c0000gn/T/vscode-tsserver-log-YJtuC8/tsserver.log
[Info  - 10:09:46 AM] Forking TSServer
PATH: bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin

I have an instance of code helper in my activity monitor taking up 1.5 GB, and maybe 10 others using 50 - 500 MB
I've reinstalled vscode a bunch of times, tried several different versions, and tried several different versions of typescript.
I hope this helps, although there wasn't an exit code in the output. I checked all of the tsserver.log files referenced in this stack and I'm seeing the exact same logs that I posted above.

Here is a verbose trace:

[Info  - 10:26:58 AM] Using tsserver from: /path/to/project/node_modules/typescript/lib/tsserver.js
[Info  - 10:26:58 AM] TSServer log file: /var/folders/dw/t413twyn35j7p9l9m8840d0c0000gn/T/vscode-tsserver-log-u3Vnun/tsserver.log
[Info  - 10:26:58 AM] Forking TSServer
PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[Trace  - 10:26:58 AM] Sending request: configure (0). Response expected: yes. Current queue length: 0
Arguments: {
"hostInfo": "vscode"
}
[Trace  - 10:26:58 AM] Response received: configure (0). Request took 467 ms. Success: true
[Trace  - 10:26:58 AM] Sending request: compilerOptionsForInferredProjects (1). Response expected: yes. Current queue length: 3
Arguments: {
"options": {
"module": "CommonJS",
"target": "ES6",
"allowSyntheticDefaultImports": true,
"allowNonTsExtensions": true,
"allowJs": true,
"jsx": "Preserve",
"checkJs": false
}
}
[Trace  - 10:26:58 AM] Response received: compilerOptionsForInferredProjects (1). Request took 468 ms. Success: true
Result: true
[Trace  - 10:26:58 AM] Sending request: open (2). Response expected: no. Current queue length: 2
Arguments: {
"file": "/path/to/project/src/modules/module.ts",
"fileContent": "some typescript code in module.ts"
"scriptKindName": "TS",
"projectRootPath": "/path/to/project"
}
[Trace  - 10:26:58 AM] Sending request: getSupportedCodeFixes (3). Response expected: yes. Current queue length: 1
[Trace  - 10:26:59 AM] TypeScript Service: canceled request with sequence number 5
[Trace  - 10:27:02 AM] TypeScript Service: canceled request with sequence number 6
[Trace  - 10:27:02 AM] TypeScript Service: canceled request with sequence number 7
[Trace  - 10:27:08 AM] TypeScript Service: canceled request with sequence number 8
[Trace  - 10:27:09 AM] TypeScript Service: canceled request with sequence number 9
[Trace  - 10:27:19 AM] TypeScript Service: canceled request with sequence number 12
[Trace  - 10:27:20 AM] TypeScript Service: canceled request with sequence number 13
[Trace  - 10:27:20 AM] TypeScript Service: canceled request with sequence number 14
[Trace  - 10:27:21 AM] TypeScript Service: canceled request with sequence number 15
[Info  - 10:27:42 AM] TSServer exited
[Info  - 10:27:42 AM] TSServer log file: /var/folders/dw/t413twyn35j7p9l9m8840d0c0000gn/T/vscode-tsserver-log-u3Vnun/tsserver.log
[Info  - 10:27:42 AM] Using tsserver from: /path/to/project/node_modules/typescript/lib/tsserver.js
[Info  - 10:27:42 AM] TSServer log file: /var/folders/dw/t413twyn35j7p9l9m8840d0c0000gn/T/vscode-tsserver-log-6aQsbc/tsserver.log
[Info  - 10:27:42 AM] Forking TSServer
PATH: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[Trace  - 10:27:43 AM] Sending request: configure (0). Response expected: yes. Current queue length: 0
Arguments: {
"hostInfo": "vscode"
}
[Trace  - 10:27:43 AM] Response received: configure (0). Request took 349 ms. Success: true
[Trace  - 10:27:43 AM] Sending request: compilerOptionsForInferredProjects (1). Response expected: yes. Current queue length: 1
Arguments: {
"options": {
"module": "CommonJS",
"target": "ES6",
"allowSyntheticDefaultImports": true,
"allowNonTsExtensions": true,
"allowJs": true,
"jsx": "Preserve",
"checkJs": false
}
}
[Trace  - 10:27:43 AM] Response received: compilerOptionsForInferredProjects (1). Request took 350 ms. Success: true
Result: true
[Trace  - 10:27:43 AM] Sending request: configure (2). Response expected: yes. Current queue length: 0
Arguments: {
"file": "/path/to/project/src/modules/module.ts",
"formatOptions": {
"tabSize": 4,
"indentSize": 4,
"convertTabsToSpaces": true,
"newLineCharacter": "\n",
"insertSpaceAfterCommaDelimiter": true,
"insertSpaceAfterSemicolonInForStatements": true,
"insertSpaceBeforeAndAfterBinaryOperators": true,
"insertSpaceAfterKeywordsInControlFlowStatements": true,
"insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
"insertSpaceBeforeFunctionParenthesis": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": false,
"placeOpenBraceOnNewLineForFunctions": false,
"placeOpenBraceOnNewLineForControlBlocks": false
}
}
[Trace  - 10:27:43 AM] Response received: configure (2). Request took 340 ms. Success: true
[Trace  - 10:27:43 AM] Sending request: format (3). Response expected: yes. Current queue length: 0
Arguments: {
"file": "/path/to/project/src/modules/module.ts",
"line": 1,
"offset": 1,
"endLine": 27,
"endOffset": 1
}
[Trace  - 10:27:43 AM] Response received: format (3). Request took 11 ms. Success: false . Message: Error processing request. No Project.
Error: No Project.
at Object.ThrowNoProject (/path/to/project/node_modules/typescript/lib/tsserver.js:75710:23)
at IOSession.Session.getFileAndProjectWorker (/path/to/project/node_modules/typescript/lib/tsserver.js:80056:42)
at IOSession.Session.getFileAndProjectWithoutRefreshingInferredProjects (/path/to/project/node_modules/typescript/lib/tsserver.js:80050:29)
at IOSession.Session.getFormattingEditsForRange (/path/to/project/node_modules/typescript/lib/tsserver.js:80122:31)
at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/path/to/project/node_modules/typescript/lib/tsserver.js:79331:61)
at /path/to/project/node_modules/typescript/lib/tsserver.js:80657:88
at IOSession.Session.executeWithRequestId (/path/to/project/node_modules/typescript/lib/tsserver.js:80648:28)
at IOSession.Session.executeCommand (/path/to/project/node_modules/typescript/lib/tsserver.js:80657:33)
at IOSession.Session.onMessage (/path/to/project/node_modules/typescript/lib/tsserver.js:80677:35)
at Interface. (/path/to/project/node_modules/typescript/lib/tsserver.js:81864:27)
[Error  - 10:27:43 AM] 'format' request failed with error.
Error processing request. No Project.
Error: No Project.
at Object.ThrowNoProject (/path/to/project/node_modules/typescript/lib/tsserver.js:75710:23)
at IOSession.Session.getFileAndProjectWorker (/path/to/project/node_modules/typescript/lib/tsserver.js:80056:42)
at IOSession.Session.getFileAndProjectWithoutRefreshingInferredProjects (/path/to/project/node_modules/typescript/lib/tsserver.js:80050:29)
at IOSession.Session.getFormattingEditsForRange (/path/to/project/node_modules/typescript/lib/tsserver.js:80122:31)
at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/path/to/project/node_modules/typescript/lib/tsserver.js:79331:61)
at /path/to/project/node_modules/typescript/lib/tsserver.js:80657:88
at IOSession.Session.executeWithRequestId (/path/to/project/node_modules/typescript/lib/tsserver.js:80648:28)
at IOSession.Session.executeCommand (/path/to/project/node_modules/typescript/lib/tsserver.js:80657:33)
at IOSession.Session.onMessage (/path/to/project/node_modules/typescript/lib/tsserver.js:80677:35)
at Interface. (/path/to/project/node_modules/typescript/lib/tsserver.js:81864:27)
[Trace  - 10:27:43 AM] Sending request: open (4). Response expected: no. Current queue length: 0
Arguments: {
"file": "/path/to/project/src/modules/module.ts",
"fileContent": "code in module.ts",
"scriptKindName": "TS",
"projectRootPath": "/path/to/project"
}
[Trace  - 10:27:43 AM] Sending request: open (5). Response expected: no. Current queue length: 0
Arguments: {
"file": "/path/to/project/src/core/models/workflow.ts",
"fileContent": "code in workflow.ts",
"scriptKindName": "TS",
"projectRootPath": "/path/to/project"
}
[Trace  - 10:27:43 AM] Sending request: geterr (6). Response expected: no. Current queue length: 0
Arguments: {
"delay": 0,
"files": [
"/path/to/project/src/modules/module.ts",
"/path/to/project/src/core/models/workflow.ts"
]
}
[Trace  - 10:27:43 AM] Sending request: geterr (7). Response expected: no. Current queue length: 0
Arguments: {
"delay": 0,
"files": []
}

Same on me. Anyone can fix this ?

I had this issue today.  The only way we fixed it was to switch to lightweight solution loading.

@tmcintire What exactly did you have to do for that? Could you list out the steps? I still have this error and it makes it very hard to code.

Same issue too.

Just got this issue as well on a fresh install of vscode, latest stable node, npm install -g typescript, npm install -g @angular/cli.
No tooltips over anything in a ts file, and no intellisense either.
Ex:     ```
for ( let i = 0; i < 5; i++ ) {
console.log(i);
}
console.log( 'Finally: ' + i );

Should throw an error on + i since we are using "let" instead of "var", that fails to work. When mousing over.

Also: `let a;`

Should be providing a pop up on mouse over that shows the type info like "let a: any".

@mjbvz Any thoughts? I'd love to get this solved, I can't use VSCode on this project until this is figured out.

I found a solution, at least according to my environment. What I did was just change the path of the Tsserver in visual studio code pointing to the one in my project (which was Typescript's 2.2.2 version):
"typescript.tsdk": "./node_modules/typescript/lib"
After I changed the path and reloaded the server and project, everything was working as normal. I hope this can help you :)

What I just did was downgrade TypreScript to v2.3.4 on my project,, as pointed out by @cealmees  and Intellisense went back to normal. Hope it helps.

Has the cause of this issue been found yet? I've been having this problem for months now in mac os sierra. I have to restart the editor every time this happens and its not just autocomplete not working. The red lines don't go away. Its a behavior that happens randomly, mostly when I delete the entire line that is marked with red by doing "cut".

@philmoss321 Can you please test the latest VSCode release with TypeScript 2.5.2 and let me know if you still see this issue.
@pitAlex Please open a new issue for what you are seeing

For me the problem has been solved in the latest VSCode.

@mjbvz I haven't seen this bug since updating a couple days ago. Thanks for your help.

It seems after I deleted everything related to VSCode and uninstall typescript, then re-installed both of them, things work ok for me too. I can't say it fixed it permanently, but I'll come back with an update if it turns up again.

Ok, thank you for the follow up. Please let me know if you start seeing this again

Having a similar issue, but with Typings from NPM packages: Intellisense itself works, e.g. for legacy js-code. But let's say I'm using selenium-webdriver from the npm package and install the typings from @typings/selenium-webdriver, I don't get any autocomplete: Entering require('selenium-webdriver') doesn't show any results.
I'm using version 1.17.2 and already tried both Typescript-SDKs from VS Code and my NPM project as @cealmees already suggested, but no difference.


DllNotFoundException but libraries load :/

Hello,
I am trying to run a program using the branch Tesseract-4... it works fine in Dev but in the target machine it fails. (Dev: Win 10 Pro x64 / Prod: Win 2008 R2 x64)
System.DllNotFoundException: Failed to find library "libtesseract400.dll" for platform x86
Full Output

Tesseract Information: 0 : Test

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocati
on. ---> System.DllNotFoundException: Failed to find library "libtesseract400.dll" for platform x86.
   at InteropDotNet.LibraryLoader.LoadLibrary(String fileName, String platformName)
   at InteropRuntimeImplementer.TessApiSignaturesInstance.TessApiSignaturesImplementation..ctor(LibraryLoader loader)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, Cultu
reInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture,
 Object[] activationAttributes, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo cul
ture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at InteropDotNet.InteropRuntimeImplementer.CreateInstance[T]()
   at Tesseract.Interop.TessApi.Initialize()
   at Tesseract.Interop.TessApi.get_Native()
   at Tesseract.TesseractEngine..ctor(String datapath, String language, EngineMode engineMode, IEnumerable`1 configFiles
, IDictionary`2 initialOptions, Boolean setOnlyNonDebugVariables)
   at Tesseract.TesseractEngine..ctor(String datapath, String language)
   at ConsoleApp1.Program.Main(String[] args) in C:\Users\danie\source\repos\TesseractTest01\ConsoleApp1\ConsoleApp1\Pro
gram.cs:line 19

I read the ERROR 2 Wiki entry and all the other DllNotFound issues and I tried all these:

Compile it using "Any CPU" making sure "Force 32-bits" is disabled.

Compile it using "x86"

Compile it using "x64"

Installed VC++ 2005 Update 3 Redistributable x86 and x64 (Version 14.0.24215.1)

Used Dependency Walker and Dependencies to make sure everything is there... all OK

Captured failed binding logs using Fusion - No binding errors found.

Captured logs using Process Monitor - No bind errors found. Just in case someone wants to see it: ProcMon-Logfile.xlsx

Added Tracing to the App.config file and it does not show any messages (not even in the Dev machine). Just in case, I manually created an entry and the tracing file gets created but Tesseract does not output anything:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
  </startup>
  <system.diagnostics>
    <sources>
      <source name="Tesseract" switchValue="Verbose">
        <listeners>
          <clear />
          <add name="console" />
          <add name="file" />
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add name="console" type="System.Diagnostics.ConsoleTraceListener" />
      <add name="file"
         type="System.Diagnostics.TextWriterTraceListener"
         initializeData="c:\log\tesseract.log" />
    </sharedListeners>
    <trace autoflush="true">

    </trace>
  </system.diagnostics>
</configuration>

The program is very basic:
    class Program
    {
        private static readonly TraceSource trace = new TraceSource("Tesseract");

        static void Main(string[] args)
        {
            trace.TraceInformation("Test");

            var engine = new TesseractEngine("tessdata", "eng");
            Console.WriteLine($"Version: {engine.Version}");
            engine.Dispose();

        }
    }

So, Right now I am out of ideas... Am I forgetting anything?
Thank you.
Daniel.

In Tesseract’s LibraryLoaderTraces.cs, line 12, I change this to “true” and run in a console command.
const bool printToConsole = false;

@tdhintz Seems like that file was deleted in this branch... after reviewing the git history I found the code and applied it to this branch... with that I able to see the error messages:
...<removing successful messages>
Checking executing application domain location 'D:\OpenSource\dulfe\test' for 'libtesseract400.dll' on platform x64.
Trying to load native library "D:\OpenSource\dulfe\test\x64\libtesseract400.dll"...
Failed to load native library "D:\OpenSource\dulfe\test\x64\libtesseract400.dll".
Check windows event log.
Checking current application domain location 'D:\OpenSource\dulfe\test\' for 'libtesseract400.dll' on platform x64.
Trying to load native library "D:\OpenSource\dulfe\test\x64\libtesseract400.dll"...
Failed to load native library "D:\OpenSource\dulfe\test\x64\libtesseract400.dll".
Check windows event log.
No bin directory exists under the current application domain's location, skipping.
Checking working directory 'D:\OpenSource\dulfe\test' for 'libtesseract400.dll' on platform x64.
Trying to load native library "D:\OpenSource\dulfe\test\x64\libtesseract400.dll"...
Failed to load native library "D:\OpenSource\dulfe\test\x64\libtesseract400.dll".
Check windows event log.

Then I checked the event log and I found this:
Faulting application name: ConsoleApp1.exe, version: <IP_ADDRESS>, time stamp: 0x5ad55553
Faulting module name: KERNELBASE.dll, version: 6.1.7601.23915, time stamp: 0x59b94f2a
Exception code: 0xe0434352
Fault offset: 0x000000000001a06d
Faulting process id: 0x8a0
Faulting application start time: 0x01d3d5f206890000
Faulting application path: D:\OpenSource\dulfe\test\ConsoleApp1.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 47fe5a80-41e5-11e8-ae2d-00012e331ae2

I did some Google Search and nothing really help... I will try to create a VM and see if it fails there.
Any ideas would be appreciate it :)
Thank you.

Procmon says it finds the 2015 C++ Redistributable, but my recollection is that the 4.0 libs were built using the 2017 version.

@tdhintz I tried installing 2017 and that did not work either.
I was able to create a VM with 2008 R2 and it worked... so something is wrong with the main server. I also used WinDbg to try and see what was wrong and seems like KernelBase.dll is just "the last one reporting the error" and not who is causing it.
WinDbg catches an "Illegal instruction"
ModLoad: 000007fe`e1740000 000007fe`e1745000   C:\Windows\system32\api-ms-win-crt-multibyte-l1-1-0.dll
(83c.88c): Illegal instruction - code c000001d (first chance)
ModLoad: 000007fe`dc7b0000 000007fe`dccc6000   D:\OpenSource\dulfe\TesseractTest01\x64\libtesseract400.dll

Well... I will reinstall that server (not many thing in it)... that is quicker than trying to debug all dependencies.
Thank you!

@tdhintz No, they are not. They are both Intel but not the same family.

I just checked my builds.  They have AXV2 specified for certain.  That likely isn’t good for some processors.

That is good to know!... that server is pretty old (that is why it is using Windows 2008 R2!), I will try and find out if it supports those extensions.

I was wrong, that box uses AMD and as far as I know AVX2 is Intel. Do you think that is the cause?

I was able to make it work.... after @tdhintz good point about AVX2, I decided to compile Tesseract directly from source (following their compilation instructions) making sure those extensions were disabled (which their are by default) and the program worked on that server (after fixing some file naming issues).
So... the Moral of the story is: If this lib fails, make sure your processor supports AVX2!
Thank you @tdhintz!

Thanks for pointing that out @tdhintz. I'm thinking it'd probably be safest
to distribute the native DLLs with these optimisations turned off. If in
specific cases people want to use them they can provide their own DLLs.
Any thoughts?
On Fri., 20 Apr. 2018, 04:07 Daniel Ulfe<EMAIL_ADDRESS>wrote:

I was able to make it work.... after @tdhintz https://github.com/tdhintz
good point about AVX2, I decided to compile Tesseract directly from source
(following their compilation instructions) making sure those extensions
were disabled (which their are by default) and the program worked on that
server (after fixing some file naming issues).
So... the Moral of the story is: If this lib fails, make sure your
processor supports AVX2!
Thank you @tdhintz https://github.com/tdhintz!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/issues/405#issuecomment-382829405,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPzyPN-aN_R17AKF7-lC4Y9bA4OByL2ks5tqNJpgaJpZM4TXVgL
.

Absolutely.  People ask me for copies of the builds on a regular basis and I just uploaded what I had at the time for their convenience.  I may have even disclosed the build settings in the Wiki, but I haven’t checked.  I’m not inclined to worry about it until a decision is made to post a Nuget beta of 4.0.  When that happens all new builds are needed anyway for both x86 and x64.


{WIP} Refactoring to use qrs-interact

@goldbergjeffrey Take a look and add comments.
Still a work in progress, need to do a few more things.

Pull request won't auto update.. closing...


Try to separate your process from your wiki, you could try using github projects for to-do's, Works like trello

Thanks, i've now separated it!


Unable to deserialize config file: /config.json

I'm trying to generate a PHP client using a specific configuration file that is part of my repository.
The following is working (explicit version declaration for the openapitools-generator-action action):
on:
  workflow_dispatch:
  schedule:
    # * is a special character in YAML so you have to quote this string
    - cron:  '0 0 * * *'

jobs:
  generate-php-client:
    runs-on: ubuntu-latest
    name: Generate PHP Client
    steps:

      # Checkout your code
      - name: Checkout
        uses: actions/checkout@v3

      - name: Get the version
        id: set-version
        run: |
          wget -O swagger.json "https://demo.channelengine.net/api/swagger/merchant/swagger.json"
          version=$(cat swagger.json | jq '.info.version')
          echo "The version is ${version}"
          echo "packageVersion=${version}" >> $GITHUB_OUTPUT

      # Generate your OpenAPI document (if you don't write it manually)

      # Use the action to generate a client package
      # This uses the default path for the openapi document and thus assumes there is an openapi.json in the current workspace.
      - name: Generate PHP Client
        uses<EMAIL_ADDRESS>        with:
          generator: php
          openapi-url: "https://demo.channelengine.net/api/swagger/merchant/swagger.json"
          config-file: /config.json
          command-args: --artifact-version=${{ steps.set-version.outputs.packageVersion }}

If I try to use v1 instead of v1.3.0 (so, using the latest available version), I get the following error:

Digest: sha256:45515b497db7b785416f23b24309aea28258edbd8029dde183b92fb2f6884f68
Status: Downloaded newer image for openapitools/openapi-generator-cli:latest
[main] ERROR o.o.c.config.CodegenConfigurator - /config.json (No such file or directory)
[main] ERROR o.o.c.config.CodegenConfigurator - /config.json (No such file or directory)
Exception in thread "main" java.lang.RuntimeException: Unable to deserialize config file: /config.json
at org.openapitools.codegen.config.CodegenConfigurator.readDynamicSettings(CodegenConfigurator.java:171)
at org.openapitools.codegen.config.CodegenConfigurator.fromFile(CodegenConfigurator.java:90)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:314)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Error: Process completed with exit code 1.

Could you please fix this behavior? Thanks in advance!

1.4.0 (latest version) enabled using absolute paths for files—so /config.json is looking in the root of the files system instead of the current working directory. I think all you need to do is remove the /, so just config.json

Hi @dbanty. You are completely right. Thank you for your answer and for your support.


<IP_ADDRESS> to <IP_ADDRESS>

Your message:
I am working with 1-click upgrade module. I get the following error. What is the solution?
[INTERNAL] /var/www/vhosts/website.com/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php line 168 - Error: Class 'Smarty_Internal_Undefined' not found #0 /var/www/vhosts/website.com/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(277): Smarty_Internal_Extension_Handler->__get('registerPlugin') #1 /var/www/vhosts/website.com/httpdocs/config/smarty.config.inc.php(125): Smarty_Internal_TemplateBase->registerPlugin('function', 'toolsConvertPri...', Array) #2
/var/www/vhosts/website.com/httpdocs/config/smartyadmin.config.inc.php(35): smartyRegisterFunction(Object(Smarty), 'function', 'toolsConvertPri...', 'toolsConvertPri...') #3 /var/www/vhosts/website.com/httpdocs/config/smarty.config.inc.php(57): require_once('/var/www/vhosts...') #4 /var/www/vhosts/website.com/httpdocs/config/config.inc.php(202): require_once('/var/www/vhosts...') #5 /var/www/vhosts/website.com/httpdocs/modules/autoupgrade/classes/UpgradeContainer.php(475): require_once('/var/www/vhosts...') #6 /var/www/vhosts/website.com/httpdocs/modules/autoupgrade/classes/TaskRunner/AbstractTask.php(120): PrestaShopModuleAutoUpgradeUpgradeContainer->initPrestaShopCore() #7 /var/www/vhosts/website.com/httpdocs/modules/autoupgrade/classes/TaskRunner/Upgrade/UpgradeDb.php(75): PrestaShopModuleAutoUpgradeTaskRunnerAbstractTask->init() #8 /var/www/vhosts/website.com/httpdocs/adminyd/autoupgrade/ajax-upgradetab.php(51): PrestaShopModuleAutoUpgradeTaskRunnerUpgradeUpgradeDb->init() #9 {main}

This issue may be fixed with #306. Please wait for the v4.8.0 and please try again.

When is it published?

I expect it to be released next week. I need the QA team to review the module before getting it published.

thanks. Waiting Impatiently.

Hi Thomas,
Thanks for the 4.8 version, but I'm having a different problem right now. Can you help?
Error Messages:
[INTERNAL] /var/www/vhosts/website.com/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_extension_handler.php line 168 - Error: Class 'Smarty_Internal_Undefined' not found #0 /var/www/vhosts/website.com/httpdocs/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(277): Smarty_Internal_Extension_Handler->__get('registerPlugin') #1 /var/www/vhosts/website.com/httpdocs/config/smarty.config.inc.php(125): Smarty_Internal_TemplateBase->registerPlugin('function', 'toolsConvertPri...', Array) #2 /var/www/vhosts/website.com/httpdocs/config/smartyadmin.config.inc.php(35): smartyRegisterFunction(Object(Smarty), 'function', 'toolsConvertPri...', 'toolsConvertPri...') #3 /var/www/vhosts/website.com/httpdocs/config/smarty.config.inc.php(57): require_once('/var/www/vhosts...') #4 /var/www/vhosts/website.com/httpdocs/config/config.inc.php(202): require_once('/var/www/vhosts...') #5 /var/www/vhosts/website.com/httpdocs/modules/autoupgrade/classes/UpgradeContainer.php(499): require_once('/var/www/vhosts...') #6 /var/www/vhosts/website.com/httpdocs/modules/autoupgrade/classes/TaskRunner/AbstractTask.php(120): PrestaShop\Module\AutoUpgrade\UpgradeContainer->initPrestaShopCore() #7 /var/www/vhosts/website.com/httpdocs/modules/autoupgrade/classes/TaskRunner/Upgrade/UpgradeDb.php(75): PrestaShop\Module\AutoUpgrade\TaskRunner\AbstractTask->init() #8 /var/www/vhosts/website.com/httpdocs/adminyd/autoupgrade/ajax-upgradetab.php(52): PrestaShop\Module\AutoUpgrade\TaskRunner\Upgrade\UpgradeDb->init() #9 {main}

I may already know the answer, but could you tell me if the file vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php exists in your shop when the error occurs?
If yes, this may be caused by some cached data, but I can't figure out which one. In the meantime, note you can try to run the database upgrade manually by calling the file <install-folder>/upgrade/uprade.php

Yes. There is a file named smarty_internal_undefined.php.
https://www.website.com/install/upgrade/upgrade.php I have access to this address. but it was not successful.

Can you help me?


PyTorch implementation generates same image samples

Hi, I'm getting the same output image samples (see below) when I train the PyTorch implementation on FFHQ from scratch. The only changes I made (due to some memory issues mentioned in #33) were adding --batch-gpu 1 and removing saving attention map functionality (commenting out pytorch_version/training/visualize.py lines 167-206).
python run_network.py --train --gpus 0 --batch-gpu 1 --ganformer-default --expname ffhq-scratch --dataset ffhq

Hi, Thank you for sharing that! Based on the info that seems to be a bug, I've started now several experiments that seek to identify the source of the problem and hope to get back to you in couple days with more info!

one more thing, what number does it show you as the training set size? It should say:

Loading training set...
Num images: [NUM]

I want to make sure you have the training data correctly. As a further indication, you should have a file reals.png, would you be able to upload it? Thanks!

Thank you for looking into this! I have Num images: 20004. And this is my r ![reals](https://user-images.githubusercontent.com/35235566/155040780-11c7d15b-1834-40da-ac3b-6455036cf104.png) eals.png.

Thanks!  I had a small bug in the PyTorch initialization of the mapping network's weight parameters (see e98744879e1a01da7200a9d2cd38c1f457200600), that should both resolve the same-images issue, and more importantly, I expect it to speed up the model's learning substantially.
Please consider retraining a new model from scratch (so that the weights get initialized correctly) to achieve the improved learning. I will run too further experiments now to verify it indeed gets resolved and get back to you!
python run_network.py --train --gpus 0 --batch-gpu 1 --ganformer-default --expname ffhq-scratch-new --dataset ffhq

Alright I tested the model and things look good!

Can also confirm model is no longer generating the same images. Thank you!


Error while training on mac

I get this when training to train on my M1 mac
Traceback (most recent call last):
File "/Users/jonathan/miniconda/lib/python3.10/tkinter/init.py", line 1921, in call
return self.func(*args)
File "/Users/jonathan/miniconda/lib/python3.10/site-packages/nam/train/gui.py", line 287, in _train
trained_model = core.train(
File "/Users/jonathan/miniconda/lib/python3.10/site-packages/nam/train/core.py", line 377, in train
input_version = _detect_input_version(input_path)
File "/Users/jonathan/miniconda/lib/python3.10/site-packages/nam/train/core.py", line 50, in _detect_input_version
raise RuntimeError(
RuntimeError: Provided input file /Users/jonathan/Downloads/v1_1_1.wav does not match any known standard input files.

Try downloading v1_1_1.wav again?

Closing bc no activity


Add Session Feedback Button

Issue

#74 Create Session Feedback page

Overview (Required)

Add session feedback button, dummy googleform url

Links
N/A
Screenshot
N/A
I tried it. necessary everyone's follow. 🌵 🌵

Sorry, as I said before, the detailed spec is not decided.
Please wait more 🙇

sorry I rebased it.
After specifying the specifications of feedback items, we will implement the layout and client, so could you this p-r merge?
Before the client conflicts become hard 😭

I know what you mean...
Maybe we'll create the feedback page as same as 2016 app.
Okay! I'll merge this first after CI success 😉

OMG... Sorry, the conflict occurred. Next time, I'll merge this first. Can you merge this? 🙇

Sure!

Thanks for contribution 👍

Thank you for following me!


SED-2725-add type and metadata to metric attribute

@lucianbaciu the PR looks OK, however I'd like to see the private Map<String, Object> metadata = new HashMap<>(); in use first.  Is there a PR for Step?


[BUG] Fix - nipoppy dev

Is there an existing issue for this?

[x] I have searched the existing issues

Expected Behavior

in person work

Current Behavior

remote work

Error message

congestion
allergies

Environment
Sunny weather, McGill reservoir
Version
How to reproduce
Try outdoor yoga again
Anything else?

[ ] medication
[ ] sleep
[ ] feel better

😮


Some sessions are not recorded, actions not being recorded at all

Describe what happened
Only 50% of the sessions are being recorded and displayed at the RUM dashboard.
Steps to reproduce the issue:
Follow the README / getting started guides.
Describe what you expected:
All sessions and actions should be recorded.
Additional context
1.0.0-rc9

Hi @andrestone, thanks for reaching out!
Could you share the following information to help us troubleshoot:

the SDK configuration you used
react-native version
does the problem happen both on iOS and Android

Thanks a lot!

Sure.
  const config = new DdSdkReactNativeConfiguration(
    // 'redacted',
    // 'redacted',
    // 'redacted',
    true, // track User interactions (e.g.: Tap on buttons. You can use 'accessibilityLabel' element property to give tap action the name, otherwise element type will be reported)
    true, // track XHR Resources
    true // track Errors
  );
  // Optional: Select your Datadog website (one of "US", "EU" or "GOV")
  config.site = 'EU1';
  // Optional: enable or disable native crash reports
  config.nativeCrashReportEnabled = true;

react-native 0.69.4
Can only test on iOS.

Hi @andrestone, thanks for your quick reply!
By default only 80% of the sessions are recorded. If you want 100% you can specify it by adding config. sessionSamplingRate = 100.
You can look at our documentation for more options.
Tell me if this fixes your case :)
As always we're happy to improve our documentation, please tell us if it is missing or unclear somewhere :)

Hey @louiszawadzki,
If that's the case, the documentation is wrong, as it says that the default is 100%.
// ...
// Optional: sample RUM sessions (here, 80% of session will be sent to Datadog. Default = 100%)
config.sessionSamplingRate = 80;
// ...

Besides, none of the actions are being recorded.
Here's how I'm adding actions:
DdRum.addAction('ready', 'playback', {}, Date.now());

Hi @andrestone ,
Sorry you're totally right, thanks for correcting me, it looks like I needed more coffee this morning 😅
Everything looks fine on your configuration :)
Are you making sure to initialize the SDK (waiting for DdSdkReactNative.initialize to resolve) before making any DdRum call?
As of today, sending any event or log before initializing the SDK disables parts of it, so it could be the reason behind it.
Could you share the following to help us troubleshoot:

XCode logs when starting the app from XCode
The code where you initialize the SDK

You can also reach out to Datadog's support mentioning this issue to share logs and code more easily :)

Hi @andrestone,
I'm closing this issue as it's been stale for over a month.
If you didn't manage to solve your issue, don't hesitate to reopen it or reach out again through our support team, it makes it easier to share logs and code if there is data you want to keep private :)
Thanks a lot!


Bird

import pygame_sdl2
pygame_sdl2.import_as_pygame()
'''
Android is much faster with hardware rendering
This dirty code shows how it could be done
We have just replaced SCREEN.blit with SCREEN_blit
and pygame.display.update with pygame_display_update
and gained much more playable framerate
Note that this code probably contains memory leaks,
unoptimal reinitialization of Sprites and other bad stuff
It is here just to display how slow is blitting
Writing everything correctly from start (Sprite) is preferred
'''
def SCREEN_blit(what, at):
global RENDERER, spritecache
Sprite(RENDERER.load_texture(what)).render(at)
def pygame_display_update():
RENDERER.render_present()
RENDERER.clear((0, 0, 0))
Set this variable to use the deprecated behavior
useswblitting = False
from itertools import cycle
import random
import sys
import pygame
from pygame.locals import *
from pygame.render import *
FPS = 30
SCREENWIDTH = 288 * 2
SCREENHEIGHT = 512 * 2
amount by which base can maximum shift to left
PIPEGAPSIZE = 100 * 2  # gap between upper and lower part of pipe
BASEY = SCREENHEIGHT * 0.79
image, sound and hitmask  dicts
IMAGES, SOUNDS, HITMASKS = {}, {}, {}
list of all possible players (tuple of 3 positions of flap)
PLAYERS_LIST = (
# red bird
(
'assets/sprites/redbird-upflap.png',
'assets/sprites/redbird-midflap.png',
'assets/sprites/redbird-downflap.png',
),
# blue bird
(
# amount by which base can maximum shift to left
'assets/sprites/bluebird-upflap.png',
'assets/sprites/bluebird-midflap.png',
'assets/sprites/bluebird-downflap.png',
),
# yellow bird
(
'assets/sprites/yellowbird-upflap.png',
'assets/sprites/yellowbird-midflap.png',
'assets/sprites/yellowbird-downflap.png',
),
)
list of backgrounds
BACKGROUNDS_LIST = (
'assets/sprites/background-day.png',
'assets/sprites/background-night.png',
)
list of pipes
PIPES_LIST = (
'assets/sprites/pipe-green.png',
'assets/sprites/pipe-red.png',
)
try:
xrange
except NameError:
xrange = range
def main():
global SCREEN, FPSCLOCK, RENDERER
pygame.init()
FPSCLOCK = pygame.time.Clock()
SCREEN = pygame.display.set_mode((SCREENWIDTH, SCREENHEIGHT))
RENDERER = Renderer(None)
pygame.display.set_caption('Flappy Bird')
if useswblitting:
    global SCREEN_blit, pygame_display_update
    SCREEN_blit = SCREEN.blit
    pygame_display_update = pygame.display.update

# numbers sprites for score display
IMAGES['numbers'] = (pygame.image.load('assets/sprites/0.png').convert_alpha(), pygame.image.load('assets/sprites/1.png').convert_alpha(), pygame.image.load('assets/sprites/2.png').convert_alpha(), pygame.image.load('assets/sprites/3.png').convert_alpha(), pygame.image.load('assets/sprites/4.png').convert_alpha(), pygame.image.load('assets/sprites/5.png').convert_alpha(), pygame.image.load('assets/sprites/6.png').convert_alpha(), pygame.image.load('assets/sprites/7.png').convert_alpha(), pygame.image.load('assets/sprites/8.png').convert_alpha(), pygame.image.load('assets/sprites/9.png').convert_alpha())

# game over sprite
IMAGES['gameover'] = pygame.image.load('assets/sprites/gameover.png').convert_alpha()
# message sprite for welcome screen
IMAGES['message'] = pygame.image.load('assets/sprites/message.png').convert_alpha()
# base (ground) sprite
IMAGES['base'] = pygame.image.load('assets/sprites/base.png').convert_alpha()

# sounds
if 'win' in sys.platform:
    soundExt = '.wav'
else:
    soundExt = '.ogg'

SOUNDS['die'] = pygame.mixer.Sound('assets/audio/die' + soundExt)
SOUNDS['hit'] = pygame.mixer.Sound('assets/audio/hit' + soundExt)
SOUNDS['point'] = pygame.mixer.Sound('assets/audio/point' + soundExt)
SOUNDS['swoosh'] = pygame.mixer.Sound('assets/audio/swoosh' + soundExt)
SOUNDS['wing'] = pygame.mixer.Sound('assets/audio/wing' + soundExt)

while True:
    # select random background sprites
    randBg = random.randint(0, len(BACKGROUNDS_LIST) - 1)
    IMAGES['background'] = pygame.image.load(BACKGROUNDS_LIST[randBg]).convert()

    # select random player sprites
    randPlayer = random.randint(0, len(PLAYERS_LIST) - 1)
    IMAGES['player'] = (
        pygame.image.load(PLAYERS_LIST[randPlayer][0]).convert_alpha(),
        pygame.image.load(PLAYERS_LIST[randPlayer][1]).convert_alpha(),
        pygame.image.load(PLAYERS_LIST[randPlayer][2]).convert_alpha(),
    )

    # select random pipe sprites
    pipeindex = random.randint(0, len(PIPES_LIST) - 1)
    IMAGES['pipe'] = (
        pygame.transform.rotate(pygame.image.load(PIPES_LIST[pipeindex]).convert_alpha(), 180),
        pygame.image.load(PIPES_LIST[pipeindex]).convert_alpha(),
    )

    # hismask for pipes
    HITMASKS['pipe'] = (
        getHitmask(IMAGES['pipe'][0]),
        getHitmask(IMAGES['pipe'][1]),
    )

    # hitmask for player
    HITMASKS['player'] = (
        getHitmask(IMAGES['player'][0]),
        getHitmask(IMAGES['player'][1]),
        getHitmask(IMAGES['player'][2]),
    )

    movementInfo = showWelcomeAnimation()
    crashInfo = mainGame(movementInfo)
    showGameOverScreen(crashInfo)

def showWelcomeAnimation():
"""Shows welcome screen animation of flappy bird"""
# index of player to blit on screen
playerIndex = 0
playerIndexGen = cycle([0, 1, 2, 1])
# iterator used to change playerIndex after every 5th iteration
loopIter = 0
playerx = int(SCREENWIDTH * 0.2)
playery = int((SCREENHEIGHT - IMAGES['player'][0].get_height()) / 2)

messagex = int((SCREENWIDTH - IMAGES['message'].get_width()) / 2)
messagey = int(SCREENHEIGHT * 0.12)

basex = 0
# amount by which base can maximum shift to left
baseShift = IMAGES['base'].get_width() - IMAGES['background'].get_width()

# player shm for up-down motion on welcome screen
playerShmVals = {'val': 0, 'dir': 1}

while True:
    for event in pygame.event.get():
        if event.type == QUIT or (event.type == KEYDOWN and event.key == K_ESCAPE):
            pygame.quit()
            sys.exit()
        if event.type == KEYDOWN and (event.key == K_SPACE or event.key == K_UP) or event.type == MOUSEBUTTONDOWN:
            # make first flap sound and return values for mainGame
            SOUNDS['wing'].play()
            return {
                'playery': playery + playerShmVals['val'],
                'basex': basex,
                'playerIndexGen': playerIndexGen,
            }

    # adjust playery, playerIndex, basex
    if (loopIter + 1) % 5 == 0:
        playerIndex = next(playerIndexGen)
    loopIter = (loopIter + 1) % 30
    basex = -((-basex + 4) % baseShift)
    playerShm(playerShmVals)

    # draw sprites
    SCREEN_blit(IMAGES['background'], (0, 0))
    SCREEN_blit(IMAGES['player'][playerIndex], (playerx, playery + playerShmVals['val']))
    SCREEN_blit(IMAGES['message'], (messagex, messagey))
    SCREEN_blit(IMAGES['base'], (basex, BASEY))

    pygame_display_update()
    FPSCLOCK.tick(FPS)

def mainGame(movementInfo):
score = playerIndex = loopIter = 0
playerIndexGen = movementInfo['playerIndexGen']
playerx, playery = int(SCREENWIDTH * 0.2), movementInfo['playery']
basex = movementInfo['basex']
baseShift = IMAGES['base'].get_width() - IMAGES['background'].get_width()

# get 2 new pipes to add to upperPipes lowerPipes list
newPipe1 = getRandomPipe()
newPipe2 = getRandomPipe()

# list of upper pipes
upperPipes = [
    {
        'x': SCREENWIDTH + 200 * 2,
        'y': newPipe1[0]['y']
    },
    {
        'x': SCREENWIDTH + 200 * 2 + (SCREENWIDTH / 2),
        'y': newPipe2[0]['y']
    },
]

# list of lowerpipe
lowerPipes = [
    {
        'x': SCREENWIDTH + 200 * 2,
        'y': newPipe1[1]['y']
    },
    {
        'x': SCREENWIDTH + 200 * 2 + (SCREENWIDTH / 2),
        'y': newPipe2[1]['y']
    },
]

pipeVelX = -4

# player velocity, max velocity, downward accleration, accleration on flap
playerVelY = -9  # player's velocity along Y, default same as playerFlapped
playerMaxVelY = 10  # max vel along Y, max descend speed
playerMinVelY = -8  # min vel along Y, max ascend speed
playerAccY = 1  # players downward accleration
playerRot = 45  # player's rotation
playerVelRot = 3  # angular speed
playerRotThr = 20  # rotation threshold
playerFlapAcc = -9  # players speed on flapping
playerFlapped = False  # True when player flaps

while True:
    for event in pygame.event.get():
        if event.type == QUIT or (event.type == KEYDOWN and event.key == K_ESCAPE):
            pygame.quit()
            sys.exit()
        if event.type == KEYDOWN and (event.key == K_SPACE or event.key == K_UP) or event.type == MOUSEBUTTONDOWN:
            if playery > -2 * IMAGES['player'][0].get_height():
                playerVelY = playerFlapAcc
                playerFlapped = True
                SOUNDS['wing'].play()

    # check for crash here
    crashTest = checkCrash({'x': playerx, 'y': playery, 'index': playerIndex}, upperPipes, lowerPipes)
    if crashTest[0]:
        return {'y': playery, 'groundCrash': crashTest[1], 'basex': basex, 'upperPipes': upperPipes, 'lowerPipes': lowerPipes, 'score': score, 'playerVelY': playerVelY, 'playerRot': playerRot}

    # check for score
    playerMidPos = playerx + IMAGES['player'][0].get_width() / 2
    for pipe in upperPipes:
        pipeMidPos = pipe['x'] + IMAGES['pipe'][0].get_width() / 2
        if pipeMidPos <= playerMidPos < pipeMidPos + 4:
            score += 1
            SOUNDS['point'].play()

    # playerIndex basex change
    if (loopIter + 1) % 3 == 0:
        playerIndex = next(playerIndexGen)
    loopIter = (loopIter + 1) % 30
    basex = -((-basex + 100) % baseShift)

    # rotate the player
    if playerRot > -90:
        playerRot -= playerVelRot

    # player's movement
    if playerVelY < playerMaxVelY and not playerFlapped:
        playerVelY += playerAccY
    if playerFlapped:
        playerFlapped = False

        # more rotation to cover the threshold (calculated in visible rotation)
        playerRot = 45

    playerHeight = IMAGES['player'][playerIndex].get_height()
    playery += min(playerVelY, BASEY - playery - playerHeight)

    # move pipes to left
    for uPipe, lPipe in zip(upperPipes, lowerPipes):
        uPipe['x'] += pipeVelX
        lPipe['x'] += pipeVelX

    # add new pipe when first pipe is about to touch left of screen
    if 0 < upperPipes[0]['x'] < 5:
        newPipe = getRandomPipe()
        upperPipes.append(newPipe[0])
        lowerPipes.append(newPipe[1])

    # remove first pipe if its out of the screen
    if upperPipes[0]['x'] < -IMAGES['pipe'][0].get_width():
        upperPipes.pop(0)
        lowerPipes.pop(0)

    # draw sprites
    SCREEN_blit(IMAGES['background'], (0, 0))

    for uPipe, lPipe in zip(upperPipes, lowerPipes):
        SCREEN_blit(IMAGES['pipe'][0], (uPipe['x'], uPipe['y']))
        SCREEN_blit(IMAGES['pipe'][1], (lPipe['x'], lPipe['y']))

    SCREEN_blit(IMAGES['base'], (basex, BASEY))
    # print score so player overlaps the score
    showScore(score)

    # Player rotation has a threshold
    visibleRot = playerRotThr
    if playerRot <= playerRotThr:
        visibleRot = playerRot

    playerSurface = pygame.transform.rotate(IMAGES['player'][playerIndex], visibleRot)
    SCREEN_blit(playerSurface, (playerx, playery))

    pygame_display_update()
    FPSCLOCK.tick(FPS)

def showGameOverScreen(crashInfo):
"""crashes the player down ans shows gameover image"""
score = crashInfo['score']
playerx = SCREENWIDTH * 0.2
playery = crashInfo['y']
playerHeight = IMAGES['player'][0].get_height()
playerVelY = crashInfo['playerVelY']
playerAccY = 2
playerRot = crashInfo['playerRot']
playerVelRot = 7
basex = crashInfo['basex']

upperPipes, lowerPipes = crashInfo['upperPipes'], crashInfo['lowerPipes']

# play hit and die sounds
SOUNDS['hit'].play()
if not crashInfo['groundCrash']:
    SOUNDS['die'].play()

while True:
    for event in pygame.event.get():
        if event.type == QUIT or (event.type == KEYDOWN and event.key == K_ESCAPE):
            pygame.quit()
            sys.exit()
        if event.type == KEYDOWN and (event.key == K_SPACE or event.key == K_UP) or event.type == MOUSEBUTTONDOWN:
            if playery + playerHeight >= BASEY - 1:
                return

    # player y shift
    if playery + playerHeight < BASEY - 1:
        playery += min(playerVelY, BASEY - playery - playerHeight)

    # player velocity change
    if playerVelY < 15:
        playerVelY += playerAccY

    # rotate only when it's a pipe crash
    if not crashInfo['groundCrash']:
        if playerRot > -90:
            playerRot -= playerVelRot

    # draw sprites
    SCREEN_blit(IMAGES['background'], (0, 0))

    for uPipe, lPipe in zip(upperPipes, lowerPipes):
        SCREEN_blit(IMAGES['pipe'][0], (uPipe['x'], uPipe['y']))
        SCREEN_blit(IMAGES['pipe'][1], (lPipe['x'], lPipe['y']))

    SCREEN_blit(IMAGES['base'], (basex, BASEY))
    showScore(score)

    playerSurface = pygame.transform.rotate(IMAGES['player'][1], playerRot)
    SCREEN_blit(playerSurface, (playerx, playery))

    FPSCLOCK.tick(FPS)
    pygame_display_update()

def playerShm(playerShm):
"""oscillates the value of playerShm['val'] between 8 and -8"""
if abs(playerShm['val']) == 8:
playerShm['dir'] *= -1
if playerShm['dir'] == 1:
    playerShm['val'] += 1
else:
    playerShm['val'] -= 1

def getRandomPipe():
"""returns a randomly generated pipe"""
# y of gap between upper and lower pipe
gapY = random.randrange(0, int(BASEY * 0.6 - PIPEGAPSIZE))
gapY += int(BASEY * 0.2)
pipeHeight = IMAGES['pipe'][0].get_height()
pipeX = SCREENWIDTH + 10
return [
    {
        'x': pipeX,
        'y': gapY - pipeHeight
    },  # upper pipe
    {
        'x': pipeX,
        'y': gapY + PIPEGAPSIZE
    },  # lower pipe
]

def showScore(score):
"""displays score in center of screen"""
scoreDigits = [int(x) for x in list(str(score))]
totalWidth = 0  # total width of all numbers to be printed
for digit in scoreDigits:
    totalWidth += IMAGES['numbers'][digit].get_width()

Xoffset = (SCREENWIDTH - totalWidth) / 2

for digit in scoreDigits:
    SCREEN_blit(IMAGES['numbers'][digit], (Xoffset, SCREENHEIGHT * 0.1))
    Xoffset += IMAGES['numbers'][digit].get_width()

def checkCrash(player, upperPipes, lowerPipes):
"""returns True if player collders with base or pipes."""
pi = player['index']
player['w'] = IMAGES['player'][0].get_width()
player['h'] = IMAGES['player'][0].get_height()
# if player crashes into ground
if player['y'] + player['h'] >= BASEY - 1:
    return [True, True]
else:

    playerRect = pygame.Rect(player['x'], player['y'], player['w'], player['h'])
    pipeW = IMAGES['pipe'][0].get_width()
    pipeH = IMAGES['pipe'][0].get_height()

    for uPipe, lPipe in zip(upperPipes, lowerPipes):
        # upper and lower pipe rects
        uPipeRect = pygame.Rect(uPipe['x'], uPipe['y'], pipeW, pipeH)
        lPipeRect = pygame.Rect(lPipe['x'], lPipe['y'], pipeW, pipeH)

        # player and upper/lower pipe hitmasks
        pHitMask = HITMASKS['player'][pi]
        uHitmask = HITMASKS['pipe'][0]
        lHitmask = HITMASKS['pipe'][1]

        # if bird collided with upipe or lpipe
        uCollide = pixelCollision(playerRect, uPipeRect, pHitMask, uHitmask)
        lCollide = pixelCollision(playerRect, lPipeRect, pHitMask, lHitmask)

        if uCollide or lCollide:
            return [True, False]

return [False, False]

def pixelCollision(rect1, rect2, hitmask1, hitmask2):
"""Checks if two objects collide and not just their rects"""
rect = rect1.clip(rect2)
if rect.width == 0 or rect.height == 0:
    return False

x1, y1 = rect.x - rect1.x, rect.y - rect1.y
x2, y2 = rect.x - rect2.x, rect.y - rect2.y

for x in xrange(rect.width):
    for y in xrange(rect.height):
        if hitmask1[x1 + x][y1 + y] and hitmask2[x2 + x][y2 + y]:
            return True
return False

def getHitmask(image):
"""returns a hitmask using an image's alpha."""
mask = []
for x in xrange(image.get_width()):
mask.append([])
for y in xrange(image.get_height()):
mask[x].append(bool(image.get_at((x, y))[3]))
return mask
if name == 'main':
main()

Hi @holy-boi, I think this issue was opened in error. Good luck with the game!


add a rule to disable tests

When any tests need to be disabled for reasons, such as a bug in test framework or in the test environment, that fact should be documented as a comment, the test should be pending instead of removing it, and an issue should be created because the test cannot show the hidden issue, the issue would be overlooked, and would not be caught in the Weekly Review.

an example: https://github.com/reallyenglish/ansible-role-nsd/pull/28/commits/e7ec4dfc74225cbfa968ea060f6a61bd0edca9c1


Prepare to release v5.3.3.

Modification:

Update README.
Upgrade version to v5.3.3
Modify change_version.sh for support SNAPSHOT.

Codecov Report

:exclamation: No coverage uploaded for pull request base (5.3@aab9704). Click here to learn what that means.
The diff coverage is n/a.

@@          Coverage Diff           @@
##             5.3     #150   +/-   ##
======================================
  Coverage       ?   63.58%
  Complexity     ?      582
======================================
  Files          ?      263
  Lines          ?    11251
  Branches       ?     1876
======================================
  Hits           ?     7154
  Misses         ?     3126
  Partials       ?      971

Impacted Files
Coverage Δ
Complexity Δ

.../main/java/com/alipay/sofa/rpc/common/Version.java
0% <ø> (ø)
0 <0> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aab9704...749d903. Read the comment docs.


Site Crashed After Composer Update - Logger

Laravel Version: #5.8.31#
Adldap2-Laravel Version: #6.0#
PHP Version: #7.2#
LDAP Type: Active Directory

Description:
Performed a "Composer update" commandand now my site has crashed.  When I log in I am getting the following error message:
"Call to undefined method Adldap\Log\EventLogger::log()"

Steps To Reproduce:
Nothing else changed except running a composer update command

Hi @kellerisddev,
What version of Adldap2-Laravel are you targeting in your composer.json file?

Also, please post the entire stack trace with any sensitive details omitted so I can help you track down what caused this.
I would also try running composer dump-autoload just to be sure.

"adldap2/adldap2-laravel": "^6.0",

Symfony\Component\Debug\Exception\FatalThrowableError  …\vendor\adldap2\adldap2\src\Adldap.php181 73 Adldap\Adldap Adldap\{closure} …\vendor\adldap2\adldap2\src\Events\Dispatcher.php266 72 Adldap\Events\Dispatcher Adldap\Events\{closure} …\vendor\adldap2\adldap2\src\Events\Dispatcher.php112 71 Adldap\Events\Dispatcher dispatch …\vendor\adldap2\adldap2\src\Events\Dispatcher.php94 70 Adldap\Events\Dispatcher fire …\vendor\adldap2\adldap2\src\Auth\Guard.php243 69 Adldap\Auth\Guard fireBindingEvent …\vendor\adldap2\adldap2\src\Auth\Guard.php98 68 Adldap\Auth\Guard bind …\vendor\adldap2\adldap2\src\Auth\Guard.php121 67 Adldap\Auth\Guard bindAsAdministrator …\vendor\adldap2\adldap2\src\Connections\Provider.php234 66 Adldap\Connections\Provider connect …\vendor\adldap2\adldap2-laravel\src\AdldapServiceProvider.php111 65 Adldap\Laravel\AdldapServiceProvider addProviders …\vendor\adldap2\adldap2-laravel\src\AdldapServiceProvider.php68 64 Adldap\Laravel\AdldapServiceProvider Adldap\Laravel\{closure} …\vendor\laravel\framework\src\Illuminate\Container\Container.php791 63 Illuminate\Container\Container build …\vendor\laravel\framework\src\Illuminate\Container\Container.php671 62 Illuminate\Container\Container resolve …\vendor\laravel\framework\src\Illuminate\Container\Container.php619 61 Illuminate\Container\Container make …\vendor\laravel\framework\src\Illuminate\Foundation\Application.php767 60 Illuminate\Foundation\Application make …\vendor\adldap2\adldap2-laravel\src\AdldapAuthServiceProvider.php55 59 Adldap\Laravel\AdldapAuthServiceProvider Adldap\Laravel\{closure} …\vendor\laravel\framework\src\Illuminate\Container\Container.php791 58 Illuminate\Container\Container build …\vendor\laravel\framework\src\Illuminate\Container\Container.php671 57 Illuminate\Container\Container resolve …\vendor\laravel\framework\src\Illuminate\Container\Container.php619 56 Illuminate\Container\Container make …\vendor\laravel\framework\src\Illuminate\Foundation\Application.php767 55 Illuminate\Foundation\Application make …\vendor\laravel\framework\src\Illuminate\Container\Container.php1233 54 Illuminate\Container\Container offsetGet …\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php175 53 Illuminate\Support\Facades\Facade resolveFacadeInstance …\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php144 52 Illuminate\Support\Facades\Facade getFacadeRoot …\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php231 51 Illuminate\Support\Facades\Facade __callStatic …\vendor\adldap2\adldap2-laravel\src\Listeners\BindsLdapUserModel.php33 50 Adldap\Laravel\Listeners\BindsLdapUserModel handle …\vendor\laravel\framework\src\Illuminate\Events\Dispatcher.php366 49  call_user_func_array …\vendor\laravel\framework\src\Illuminate\Events\Dispatcher.php366 48 Illuminate\Events\Dispatcher Illuminate\Events\{closure} …\vendor\laravel\framework\src\Illuminate\Events\Dispatcher.php196 47 Illuminate\Events\Dispatcher dispatch …\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php618 46 Illuminate\Auth\SessionGuard fireAuthenticatedEvent …\vendor\laravel\framework\src\Illuminate\Auth\SessionGuard.php132 45 Illuminate\Auth\SessionGuard user …\vendor\laravel\framework\src\Illuminate\Auth\GuardHelpers.php60 44 Illuminate\Auth\SessionGuard check …\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authenticate.php62 43 Illuminate\Auth\Middleware\Authenticate authenticate …\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authenticate.php41 42 Illuminate\Auth\Middleware\Authenticate handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 41 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 40 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php75 39 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 38 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 37 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php49 36 Illuminate\View\Middleware\ShareErrorsFromSession handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 35 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 34 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php56 33 Illuminate\Session\Middleware\StartSession handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 32 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 31 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php37 30 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 29 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 28 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php66 27 Illuminate\Cookie\Middleware\EncryptCookies handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 26 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 25 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php104 24 Illuminate\Pipeline\Pipeline then …\vendor\laravel\framework\src\Illuminate\Routing\Router.php682 23 Illuminate\Routing\Router runRouteWithinStack …\vendor\laravel\framework\src\Illuminate\Routing\Router.php657 22 Illuminate\Routing\Router runRoute …\vendor\laravel\framework\src\Illuminate\Routing\Router.php623 21 Illuminate\Routing\Router dispatchToRoute …\vendor\laravel\framework\src\Illuminate\Routing\Router.php612 20 Illuminate\Routing\Router dispatch …\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php176 19 Illuminate\Foundation\Http\Kernel Illuminate\Foundation\Http\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php30 18 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\fideloper\proxy\src\TrustProxies.php57 17 Fideloper\Proxy\TrustProxies handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 16 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 15 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php21 14 Illuminate\Foundation\Http\Middleware\TransformsRequest handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 13 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 12 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php21 11 Illuminate\Foundation\Http\Middleware\TransformsRequest handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 10 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 9 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php27 8 Illuminate\Foundation\Http\Middleware\ValidatePostSize handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 7 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 6 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php62 5 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode handle …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php163 4 Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure} …\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php53 3 Illuminate\Routing\Pipeline Illuminate\Routing\{closure} …\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php104 2 Illuminate\Pipeline\Pipeline then …\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php151 1 Illuminate\Foundation\Http\Kernel sendRequestThroughRouter …\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php116 0 Illuminate\Foundation\Http\Kernel handle …\public\index.php55

Strange... EventLogger::log() is definitely a method.
Can you run composer dump-autoload and try again?
Also, is this happening on only authentication attempts?

Thank you.  Just ran composer dump-autoload again.                                                                                Generated optimized autoload files containing 14018 classes`

This laravel install requires users to be logged in so I have the auth middleware on all routes.
It appears to be attached to the authentication attempts only

Ok, do you have logging enabled in your config/ldap.php config file?

I do not, I didn't see that as an option when I installed and configured.

Did you upgrade Adlda2-Laravel from v5.0? Or has this application been using v6.0 from the beginning?

I honestly don't remember what version I was using when i installed it.  It has been at least 6 months ago.

Oh, wait, it looks like I was already on 6:
`failed to open stream: HTTP request failed!
https://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Updating dependencies (including require-dev)
Package operations: 6 installs, 50 updates, 1 removal

Removing symfony/contracts (v1.0.2)
Updating symfony/polyfill-ctype (v1.11.0 => v1.12.0): Downloading (100%)
Updating vlucas/phpdotenv (v3.3.3 => v3.4.0): Loading from cache
Updating symfony/css-selector (v4.2.4 => v4.3.3): Loading from cache
Updating symfony/polyfill-php72 (v1.11.0 => v1.12.0): Downloading (100%)
Updating symfony/polyfill-mbstring (v1.11.0 => v1.12.0): Downloading (100%)
Updating symfony/var-dumper (v4.2.4 => v4.3.3): Loading from cache
Updating symfony/routing (v4.2.4 => v4.3.3): Loading from cache
Updating symfony/process (v4.2.4 => v4.3.3): Loading from cache
Updating symfony/polyfill-intl-idn (v1.11.0 => v1.12.0): Downloading (100%)
Installing symfony/mime (v4.3.3): Loading from cache
Updating symfony/http-foundation (v4.2.4 => v4.3.3): Loading from cache
Installing symfony/event-dispatcher-contracts (v1.1.5): Loading from cache
Updating symfony/event-dispatcher (v4.2.4 => v4.3.3): Loading from cache
Updating symfony/debug (v4.2.4 => v4.3.3): Loading from cache
Installing symfony/polyfill-php73 (v1.12.0): Downloading (100%)
Updating symfony/http-kernel (v4.2.4 => v4.3.3): Loading from cache
Updating symfony/finder (v4.2.4 => v4.3.3): Loading from cache
Installing symfony/service-contracts (v1.1.5): Loading from cache
Updating symfony/console (v4.2.4 => v4.3.3): Loading from cache
Updating symfony/polyfill-iconv (v1.11.0 => v1.12.0): Downloading (100%)
Updating doctrine/lexer (v1.0.1 => 1.1.0): Loading from cache
Updating egulias/email-validator (2.1.7 => 2.1.10): Loading from cache
Updating swiftmailer/swiftmailer (v6.2.0 => v6.2.1): Loading from cache
Updating opis/closure (3.1.6 => 3.3.1): Loading from cache
Installing symfony/translation-contracts (v1.1.5): Loading from cache
Updating symfony/translation (v4.2.4 => v4.3.3): Loading from cache
Updating nesbot/carbon (2.16.2 => 2.22.3): Downloading (100%)
Updating league/flysystem (1.0.46 => 1.0.53): Loading from cache
Updating erusev/parsedown (v1.7.2 => 1.7.3): Loading from cache
Updating laravel/framework (v5.8.8 => v5.8.31): Downloading (100%)
Updating ralouphie/getallheaders (2.0.5 => 3.0.3): Loading from cache
Updating guzzlehttp/psr7 (1.5.2 => 1.6.1): Loading from cache
Updating tightenco/collect (v5.8.8 => v5.8.31): Downloading (100%)
Updating nikic/php-parser (v4.2.1 => v4.2.3): Downloading (100%)
Updating adldap2/adldap2 (v10.0.6 => v10.0.11): Downloading (100%)
Updating adldap2/adldap2-laravel (v6.0.2 => v6.0.7): Downloading (100%)
Updating fideloper/proxy (4.1.0 => 4.2.0): Loading from cache
Updating intervention/image (2.4.2 => 2.5.0): Downloading (100%)
Updating lab404/laravel-impersonate (1.3.0 => 1.4.0): Downloading (100%)
Updating laravel/tinker (v1.0.8 => v1.0.9): Loading from cache
Updating spatie/laravel-permission (2.36.1 => 2.37.0): Downloading (100%)
Updating webklex/laravel-imap (1.4.0 => 1.4.2): Downloading (100%)
Updating beyondcode/laravel-dump-server (1.2.2 => 1.3.0): Downloading (100%)
Updating filp/whoops (2.3.1 => 2.5.0): Downloading (100%)
Updating mockery/mockery (1.2.2 => 1.2.3): Downloading (100%)
Updating sebastian/exporter (3.1.0 => 3.1.1): Downloading (100%)
Updating sebastian/environment (4.1.0 => 4.2.2): Loading from cache
Updating phpunit/php-timer (2.1.1 => 2.1.2): Loading from cache
Updating theseer/tokenizer (1.1.0 => 1.1.3): Loading from cache
Updating phpunit/php-token-stream (3.0.1 => 3.1.0): Loading from cache
Updating phpdocumentor/reflection-docblock (4.3.0 => 4.3.1): Loading from cache
Updating phpspec/prophecy (1.8.0 => 1.8.1): Loading from cache
Updating myclabs/deep-copy (1.8.1 => 1.9.3): Downloading (100%)
Updating phpunit/phpunit (7.5.8 => 7.5.14): Loading from cache
Updating paragonie/sodium_compat (v1.9.1 => v1.10.1): Downloading (100%)
Installing webpatser/laravel-uuid (3.0.2): Downloading (100%)
symfony/event-dispatcher-contracts suggests installing psr/event-dispatcher
symfony/service-contracts suggests installing symfony/service-implementation
Writing lock file
Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
Discovered Package: adldap2/adldap2-laravel
Discovered Package: barryvdh/laravel-dompdf
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: fideloper/proxy
Discovered Package: intervention/image
Discovered Package: lab404/laravel-impersonate
Discovered Package: laravel/tinker
Discovered Package: maddhatter/laravel-fullcalendar
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: spatie/laravel-permission
Discovered Package: webklex/laravel-imap
Discovered Package: webpatser/laravel-uuid
Package manifest generated successfully.`

Ok, can you validate that the Adldap\Log\EventLogger class exists in your applications vendor\adldap2\adldap2\Log folder?

I see EventLogger in the vendor\adldap2\adldap2\src\Log folder

Very strange... Logging was added in v6.0, so you've had the logging feature already for a while.
What else changed with your application prior to running composer update?

I attempted to run a composer install of another package and found a error
`composer require "webpatser/laravel-uuid:^3.0"
The "https://repo.packagist.org/packages.json" file could not be downloaded: SSL: An existing connection was forcibly closed by the remote host.
send of 158 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.
failed to open stream: HTTP request failed!
https://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
./composer.json has been updated
Loading composer repositories with package information`

I renamed the config/ldap.php and config/ldap_auth.php files and I was able to log in again.  Does that mean that there is an issue with those files or that without them I am not using LDAP?

Yeah something is going on with your connectivity with Packagist. I would delete the entire vendor folder and try complete reinstall using composer install.
Does the server / host where you have this app running have access to the internet?

I renamed the config/ldap.php and config/ldap_auth.php files

What did you rename them from?

I renamed them to ldap_old.php and ldap_auth_old.php and left them in the config directory

I tried running these commands:
php artisan vendor:publish --provider=Adldap\Laravel\AdldapServiceProvider
php artisan vendor:publish --provider=Adldap\Laravel\AdldapAuthServiceProvider
No new files were generated

Does the server / host where you have this app running have access to the internet?

Yes, it does.  I was able to ping google.com

Ok, delete the vendor folder and re-download all packages via composer install. Make sure no errors are encountered while downloading the packages. Afterwards, try logging in again and see if you encounter the same issue.
Let me know!

Ok, carried out your instructions and I can log in again.
I deleted the ldap.php and ldap_auth.php files from the config folder and ran the commands below:
php artisan vendor:publish --provider=Adldap\Laravel\AdldapServiceProvider
php artisan vendor:publish --provider=Adldap\Laravel\AdldapAuthServiceProvider
I still don't see the new ldap.php and ldap_auth.php files, so how can I be using LDAP to successfully login?

When you run php artisan vendor:publish alone, do you see those service providers as selectable options?

I still don't see the new ldap.php and ldap_auth.php files, so how can I be using LDAP to successfully login?

Have you configured it via your .env file?

No, I don't have anything for LDAP configured in my .env file.
I just went back to the documentation and see that the quotes were missing from the provider name
php artisan vendor:publish --provider=Adldap\Laravel\AdldapServiceProvider
supposed to be
php artisan vendor:publish --provider="Adldap\Laravel\AdldapServiceProvider"

No, I don't have anything for LDAP configured in my .env file.

Oh so you haven't configured Adldap2-Laravel at all yet?

I just went back to the documentation and see that the quotes were missing from the provider name

Did the config files publish correctly and are you receiving any errors?

Believe that all got it working again.
Thank you very much

Great, no problem! Thanks for your quick responses and for closing the issue out.